I tested the default routine and it clicks ~10 times even with nothing changed, but you're right.
Maybe this will work better:
Code:
if(Player.Position.Distance(CurrentTarget.Position) > 2f)
{
if(!isMoving || DateTime.UtcNow.Subtract(PlayerMover.TimeLastUsedPlayerMover).TotalMilliseconds > 500)
{
ZetaDia.Me.Movement.MoveActor(CurrentTarget.Position);
PlayerMover.TimeLastUsedPlayerMover = DateTime.UtcNow;
}
}
else
{
iInteractAttempts = HandleItemInRange();
}
Now it will click 2 times a second max, hopefully...
EDIT: !isMoving check is needed also