Daher
2012-08-20 12:07:59
So i tried to make my script do another task if it can't find a color, now it seems to give me a FUCKING ERROR EVERYTIME I TRY THIS…
end else
Is the error WHY!?!?!?
end else
Is the error WHY!?!?!?
var
x, y, w, h: integer;
begin
GetClientDimensions(w, h);
if FindColor(x, y, 1872300, 0, 0, w - 1, h - 1) then
Mouse(x, y, 0, 0, True);
begin
loot := (loot + 1);
if FindColor(x, y, COLOR, 0, 0, w - 1, h - 1) then
Mouse(x, y, 0, 0, True);
wait(3000)
end else
Mouse(1103, 426, 0, 0, True);
wait(500);
Mouse(928, 482, 0, 0, True);
wait(15000)
Mouse(1010, 282, 0, 0, True);
wait(3000)
end;