SRL Archive - SRL Archives

function GainLvl: Boolean;


timmyboy

2006-10-23 09:06:41

Well, i found this lying around, and decided to post it. Yup, my like, 4th thread. This checks to see if you have gained a level, and if you did, it clicks to continue and returns true. It hecks it in the chat window, not on the stats page.

{*******************************************************************************
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;

YoHoJo

2006-10-23 10:22:07

make it a little more precice.
this could just find talking and click yes and think it was a level
make it look for
"Congratulation you have just gained"
and i thinik we already have this procedure(not sure)

prety good though. just add a bit more