Hi guys,
This used to work fine before but now it just seems to stand there and complain ("Can't do this while moving!") even though I am not moving (I think).
Here is my code (it should be self explanatory):
Code:
public static void InteractWithObject(ulong guid)
{
if (World == null)
return;
var obj = World.ObjectManager.GetObjectByGUID(guid);
if (obj == null)
return;
ClickToMove(obj.X, obj.Y, obj.Z, 4.5f, 0, ClickToMoveActionType.WalkTo);
Thread.Sleep(100);
ClickToMove(0, 0, 0, 0, guid, ClickToMoveActionType.InteractObject);
}
What am I doing wrong? Is there a better way of doing it?
Thanks for the help.