Simba Code:
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
Simba Code:
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!