SRL Archive - OSR Help

help failsafe help


lolhahauad

2011-12-12 20:40:59

procedure makehide;
var x,y :integer;
begin
if(FindColorSpiralTolerance(x,y,hide1,638,213,683,246,0) or
FindColorSpiraltolerance(x,y,hide2,638,213,683,246,0)) then
begin
mouse(618,235,0,0,true);
wait(250);
mouse(x,y,0,0,true);
wait(250);
mouse(410,419,0,0,false);
wait(100);
mouse(409, 479,0,0,true);
wait(1000);
[COLOR="Red"][B][U]else[/U][/B][/COLOR]
begin
openshop;
purchasehide;
end;
end;
end;



getting a "
Identifier expected
at the red font/"else"

YoHoJo

2011-12-12 20:47:30

procedure makehide;
var x,y :integer;
begin
if(FindColorSpiralTolerance(x,y,hide1,638,213,683,246,0) or
FindColorSpiraltolerance(x,y,hide2,638,213,683,246,0)) then
begin
mouse(618,235,0,0,true);
wait(250);
mouse(x,y,0,0,true);
wait(250);
mouse(410,419,0,0,false);
wait(100);
mouse(409, 479,0,0,true);
wait(1000);
End else
begin
openshop;
purchasehide;
end;
end;

That might do it.
Two things
1) You should relaly fix your standards (spacing, formating, etc) you code made my eyes bleed! Look how much prettier mine is!
2) You are NOT adding randomness to your clicks, so if this is for runescape IT WILL GET YOU BANNED, cange the 0x0s in your mouses to like 5,5
so
mouse(409, 479,5,5,true);  
By having 0,0 you are ALWAYS clicking the EXACT SAME spot.
Also try not to use coordiantes like that, use Bitmaps, DTMs, Color, etc to find things don't just rely on clicking coordinates over and over like that!

lolhahauad

2011-12-12 21:00:26

hey hey, its for a rsps, and i like it when it bleeds, and rsps has no antiban so .. :D i tried using dtms, not working so well :L..

and what are bitmaps used for