Hello, Not tested, but like this:
int entryIdNpc = 123456;
var path = new List<Vector3>(); // your path
MovementManager.Go(path);
while (MovementManager.InMovement &&
Conditions.InGameAndConnectedAndAliveAndProductStartedNotInPause &&
!Conditions.IsAttackedAndCannotIgnore)
{
// Wait follow path
Thread.Sleep(100);
}
MovementManager.StopMove();
if (path[path.Count - 1].DistanceTo(ObjectManager.Me.Position) < 10)
{
// easy way:
GoToTask.ToPositionAndIntecractWithNpc(path[path.Count - 1], entryIdNpc);
// no easy:
/*var u = ObjectManager.GetNearestWoWUnit(ObjectManager.GetWoWUnitByEntry(entryIdNpc));
if (u.IsValid)
{
// can need to go to but I'll not implement it
Interact.InteractGameObject(u.GetBaseAddress);
}*/
}