SCAR Code:
function LongFlag:boolean; // just because the flag disappears sometimes before
begin // you stop moving
Flag;
Wait(500+random(100));
result := true;
end;
function UpdateXY:boolean;
begin
while (LongFlag) do
begin
if (FindColorSpiralTolerance(x, y, MapleMS1, x - 15, y - 15, x + 15, y + 15, 3))
or (FindColorSpiralTolerance(x, y, MapleMS2, x - 15, y - 15, x + 15, y + 15, 3))
or (FindColorSpiralTolerance(x, y, MapleMS3, x - 15, y - 15, x + 15, y + 15, 3)) then
Wait(50+random(50)) else
result := false;
end;
if (FindColorSpiralTolerance(x, y, MapleMS1, x - 10, y - 10, x + 10, y + 10, 3))
or (FindColorSpiralTolerance(x, y, MapleMS2, x - 10, y - 10, x + 10, y + 10, 3))
or (FindColorSpiralTolerance(x, y, MapleMS3, x - 10, y - 10, x + 10, y + 10, 3)) then
result := true;
end;