CN 1 Posted May 11, 2017 Share Posted May 11, 2017 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 https://wrobot.eu/forums/topic/5876-unable-to-do-while-moving-loop/ Share on other sites More sharing options...
iMod 99 Posted May 11, 2017 Share Posted May 11, 2017 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 https://wrobot.eu/forums/topic/5876-unable-to-do-while-moving-loop/#findComment-26688 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now