SRL Archive - SRL Archives

GainLvl


timmyboy

2006-04-30 19:28:11

Couldn't find this one in the SRL manual, I hope it isn't there…:p
Checks to see if you've gained a lvl, and if you did, it clicks to continue and returns true.

{*******************************************************************************
function GainLvl : Boolean;
by:Timmyboy1234
Description: Checks to see if you've gained a lvl, and if you did, it clicks to continue and returns true.
*******************************************************************************}
function GainLvl: Boolean;
begin
if(FindColorTolerance(x,y,16711680,15,349,466,431,3))then
begin
Mouse(x,y,1,1,true);
wait(500);
if(FindColorTolerance(x,y,16711680,15,349,466,431,3))then
begin
Mouse(x,y,1,1,true);
wait(500);
end;
Result:=True;
end;
end;

Pwnd

2006-04-30 19:40:50

function LeveledUp: Boolean;
var
Levelu: Integer;
Sex, Sey: Integer;
begin
Levelu:= BitmapFromString(58, 19, 'z78DAED97410E40110C0' +
'5AFD4E5BBFFC9FED64AE8ABFC869985850835A4250200208B8616' +
'CEF9C4B06FD51F03B8ED6315F4935B2DD43E4D5B67154DEBC56E5' +
'4BB31AFCC5F7B9A55FDB1B0EBDC0B4745B1C5756E6B77A4066E75' +
'9D5B1DBEB7CE0CFDDDCACE33552FA85CC5C98DCC65486795DDCAF' +
'8C22FF544A5003F8F016EF989BF63B893D50F5D59DBE5');
if(FindBitmap(Levelu, Sex, Sey))then
begin
Writeln(Tab + 'Leveled up');
Result:= True;
end else
Result:= False;
FreeBitmap(Levelu);
end;
I used this in iSexSey.
I didn't have it click continue or anything because I need a different way to "solve" it, but good work.

timmyboy

2006-04-30 20:06:08

Thanks for your comment :)

Sdcit

2006-04-30 21:02:47

nice, but some of us use text and seeing if the permanent level on the bottom is equal to the one it got before. If it isnt, minuses XD :p

GReeat job!

timmyboy

2006-04-30 21:07:19

From: Sdcit
nice, but some of us use text and seeing if the permanent level on the bottom is equal to the one it got before. If it isnt, minuses XD :p

GReeat job!

Wooooooow. I had no idea what you said:p I understood the great job part though XD

WhiteShadow

2006-04-30 21:09:51

You should seriously use FindColorTolerance. That might only work in one world. xD

Anyhow, it's good. Sweet.

~WhiteShadow

timmyboy

2006-04-30 21:37:17

From: WhiteShadow
You should seriously use FindColorTolerance. That might only work in one world. xD

Anyhow, it's good. Sweet.

~WhiteShadow

Meh =P
I'll change it then.