ok i kinda got it to work now, but it takes about 20 seconds until it recognizes a mob, even though i have 20 of them standing around me... and it also keeps klicking on dead mobs. would it be possible to tell the script to stay on one mob until it makes a 90° fall (the dying animation)?
Simba Code:
program AutoFighter;
var
x,y: Integer;
procedure Attack;
begin
If FindColorTolerance(x, y, 63994, 564, 214, 726, 451, 5) then
begin
Writeln('Found NPC > Attacking!')
MoveMouse(x,y+random(3));
wait(randomrange(25,50));
ClickMouse(x,y,mouse_Left);
ClickMouse(x,y,mouse_Left);
Wait(3000); //MS to wait. 1000 = 1sec
end;
end;
begin
repeat
Attack; //Procedure Attack
until(false);
end.