Got it working now
This is how my code looks like.
wManager.Events.FightEvents.OnFightLoop += (unit, cancelable) =>
{
var pos = 1;
var me = wManager.Wow.ObjectManager.ObjectManager.Me;
var target = wManager.Wow.ObjectManager.ObjectManager.Target;
if (me.IsAlive && target.IsAlive && pos == 1)
{
Vector3 position = new Vector3(3073.848f, -3116.693f, 294.0692f);
// Move to the given position
MovementManager.Go(PathFinder.FindPath(position), false);
// Wait
while (MovementManager.InMovement && Conditions.InGameAndConnectedAndAliveAndProductStartedNotInPause)
{
// Wait follow path
Thread.Sleep(3000);
pos = 0;
}
}
};
Char runs in position and when in position it kept on trying to keep that position while in combat.
So to let it run once i added an extra var to it called 'pos' which i set to 1
After the 3sec he gets in position i change it to 0 so the if condition returns false.