Jump to content

Unable to do while moving loop


CN

Recommended Posts

Any idea to solve this error of "Unable to do while moving" or perhaps using other method? that causing infinite loop of pos and object position.

    if ( wManager.Wow.Bot.Tasks.GoToTask.ToPosition(pos, distance)  && o.IsValid)  {
        wManager.Wow.Helpers.Interact.InteractGameObject(o.GetBaseAddress);
            }  

Link to comment
Share on other sites

  if ( wManager.Wow.Bot.Tasks.GoToTask.ToPosition(pos, distance)  && o.IsValid)  
  {
  	if (!MovementManager.InMovement)
    {
    	wManager.Wow.Helpers.Interact.InteractGameObject(o.GetBaseAddress);
    }
  } 

or if you want to stop the movement since you reached the target
 

            // Still moving?
            if (MovementManager.InMovement)
            {
                // Stop
                MovementManager.StopMove();
            }

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...