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.
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;