Hi, thanks for the reply guys. I tested out the first random function. Not sure if it worked or not, most likely I messed up somewhere. At least it's running…
Here is my code, please feel free to modify it for me…
Procedure FightKnight;
var
x, y:Integer;
begin
if FindColorSpiral(x, y, 3274237, 257, 341, 345, 409) and
FindColorSpiral(x, y, 8215631, 445, 332, 517, 384) then
begin
MoveMouse(x, y);
case Random(50) of
1..10: ClickMouse(316, 584, 1); //Change "ClickStuff, ClickOtherStuff" etc.
11..20: ClickMouse(448, 598, 1); //To your coordinate clicking code.
21..30: ClickMouse(316, 584, 1); //Read this guide on cases: http://villavu.com/forum/showthread.php?t=53840
31..40: ClickMouse(448, 598, 1);
41..50: ClickMouse(316, 584, 1);
end;
wait(15000)
MoveMouse(385, 603);
wait(500)
ClickMouse(385, 603, 1);
end;
end;
Not even sure how to even use
Mouse(TPA[Random(Length(TPA))].x, TPA[Random(Length(TPA))].y, 0, 0, mouse_Left);