Hult
2012-12-21 12:41:53
Getting this error;
[Error] C:\Users\Hult\Desktop\TestColor.simba(34:4): Identifier expected at line 33
Compiling failed.
Here's my code.
[Error] C:\Users\Hult\Desktop\TestColor.simba(34:4): Identifier expected at line 33
Compiling failed.
Here's my code.
program AutoFighter;
Procedure Mouse;
Begin
wait(200)
movemouse (231,214);
wait(200)
clickmouse (231,214, 1)
End;
Procedure FindNPC;
var
x, y:Integer;
Begin
if FindColorSpiralTolerance(x, y, 2839893, 9, 30, 516, 360, 20) or
FindColorSpiralTolerance(x, y, 2118732, 9, 30, 516, 360, 20) or
FindColorSpiralTolerance(x, y, 4352352, 9, 30, 516, 360, 20) or
FindColorSpiralTolerance(x, y, 2243140, 9, 30, 516, 360, 20) Then
Begin
MoveMouse(x, y);
ClickMouse(x, y, 1);
Wait(1000)
End;
Begin
Repeat
Mouse;
FindNPC;
until (IsKeyDown (123)); //Press f3 to stop
End.