So sorry if this is spam(?) but I have managed to get my script to attack revenants the same or lower cb level as me, but I can't figure out the right clicking -> attack.
I would greatly appreciate any help I can get!
What I would like to learn to do/achieve with this script is that is does the procedure "FillPrayer;" every minute or so, and also a way to detect if it actually attacked the monster, if currently attacking is false, click again. can anyone send me to a video/thread with this info, or help me in this thread?
Code:
program AutoRevsV2;
procedure FillPrayer;
begin
MoveMouse(1908, 255);
ClickMouse(1908, 255, 1);
Wait(500);
End;
procedure AutoRevs;
var
x, y:Integer;
begin
if FindColorSpiralTolerance (x, y, 4535348, 8, 36, 1914, 1040, 1) or
FindColorSpiralTolerance (x, y, 9610924, 8, 36, 1914, 1040, 1) then
begin
MoveMouse(x, y);
Wait(500);
ClickMouse(x, y, 1);
Wait(10000);
end;
end;
begin
FillPrayer;
repeat
AutoRevs;
until(false);
end.