I am having trouble utilizing these functions. For "DidClick" I am unsure when I am supposed to use this method. What I would like to know is if I have successfully attacked my NPC. I am attempting to use it like this:
Code:
while not Reflect.Mouse.DidClick(True, 3000) do
begin
Reflect.Mouse.Move(chicken.GetMSPoint, 2, 2);
Reflect.Mouse.Click(MOUSE_LEFT);
end;
I am also trying to utilize the "IsUnderAttack" method. However, this simply is not giving the desired results for telling me if I am in combat.
Code:
while not MyPlayer.IsUnderAttack do
begin
Reflect.Mouse.Move(chicken.GetMSPoint, 2, 2);
Reflect.Mouse.Click(MOUSE_LEFT);
Wait(RandomRange(1500, 3000));
end;
Could someone tell me the correct way to use these or if they are broken for some reason? Is there a better way for checking if an Actor is in combat?