Hi, i just wanted to ask if anyone could be so kind and create me a quick script, since i have no idea what i'm doing.
fantasy online is a browsergame with very simple graphics. all i need is a script that automatically attacks mobs with cretain colors. the one i have doesn't work, it always clicks the top left of the screen. i'd appreciate your help :)
(the code that doesn't work):
procedure Attack;
begin
if FindColor 63994 then
begin
Writeln('Found NPC > Attacking!')
MoveMouse(x,y+random(3));
wait(randomrange(25,50));
ClickMouse(x,y,mouse_Left);
Wait(5000); //MS to wait. 1000 = 1sec
end;
end;
begin
repeat
Attack; //Procedure Attack
until(false);
end.

