spin3x
2012-06-05 14:07:30
Guys I'm trying to make this bit of the script, attack a monster if it doesnt find the colour "38937" and then once it attacked the monster, I want it to stop.
Heres the bit of the code:
I wasnt sure about the until part. :S
Heres the bit of the code:
Procedure Attack;
var
x, y: Integer;
begin
if not FindColorSpiralTolerance(x, y, 38937, 9, 0, 515, 316, 5) then[COLOR="rgb(173, 216, 230)"] //if it doesnt find this code, I want it to attack the monster.[/COLOR]
begin
if FindColorSpiralTolerance(x, y, 5081481, 9, 0, 515, 316, 5) then
Mouse(x, y, 0, 0, mouse_left); [COLOR="rgb(173, 216, 230)"]//Attacking the monster.[/COLOR]
until(FindColorSpiralTolerance(x, y, 38937, 9, 0, 515, 316, 5) [COLOR="LightBlue"]// This is probably wrong. I want it to stop clicking attack the monster once it found the the colour " 38937"[/COLOR]
end;
end; I wasnt sure about the until part. :S