Pudge 24 Posted September 17, 2020 Share Posted September 17, 2020 Hello! I don't quite understand if it's a bug or not ... Sometimes when a bot makes a quest with a click on an object, for example, a portal click from city 1 to city 2, it sometimes ignores the "Is complete condition" and continues to run somewhere further. For example: Quest: PortalFromDalaranToExodar. The code for this quest (only 1 line): wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithGameObject(new Vector3(5699.33, 735.217, 641.767), 191007); return true; Is complete condition for this quest: return !ObjectManager.Me.IsAlliance || Usefuls.MapZoneName == "The Exodar"; "Not required in quest log" set to true. But, as soon as bot crosses the portal and finds himself in the Exodar - he continues to run along some coordinate! It seems this is the coordinate of Dalaran portal to Exodar, but at this moment the bot is "blind" and does not see that it is already in the Exodar! I tried adding Thread.Sleep after the interact with portal code, but the bot still sometimes ignores Is complete condition ... How can I fix this? Thanks for the answers, if someone understood me and knows what can be done. Link to comment https://wrobot.eu/forums/topic/12517-bot-ignoring-complete-condition/ Share on other sites More sharing options...
TheSmokie 242 Posted September 17, 2020 Share Posted September 17, 2020 Are you alliance or horde? If horde you can not use that portal, the guards in Dala an will port you back out of there. Link to comment https://wrobot.eu/forums/topic/12517-bot-ignoring-complete-condition/#findComment-59950 Share on other sites More sharing options...
Matenia 628 Posted September 17, 2020 Share Posted September 17, 2020 GoToTask is blocking, it will not stop walking unless you also pass a breaking condition to the "whileCondition" parameter. Or use normal MovementManager.Go which is not blocking - but if you have a complete condition, it will just call MovementManager.Go over and over until the condition is fulfilled. This is tick-based vs blocking. Pudge 1 Link to comment https://wrobot.eu/forums/topic/12517-bot-ignoring-complete-condition/#findComment-59952 Share on other sites More sharing options...
TheSmokie 242 Posted September 24, 2020 Share Posted September 24, 2020 (edited) @pudge i do not know if you fix this problem, but i got it working by using this as a return complete condition. return Usefuls.SubMapZoneName.Contains("The Vault of Lights"); if(GoToTask.ToPositionAndIntecractWithGameObject(new Vector3(5699.33, 735.217, 641.767), 191007)) { Thread.Sleep(5000); } return true; tested, works gread. Transport to Exodar from Dalaran.xml Edited September 24, 2020 by TheSmokie Pudge 1 Link to comment https://wrobot.eu/forums/topic/12517-bot-ignoring-complete-condition/#findComment-60060 Share on other sites More sharing options...
Pudge 24 Posted September 29, 2020 Author Share Posted September 29, 2020 A few days ago before reading this thread, I added this: wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithGameObject(new Vector3(-1880.28, 5357.53, -12.4281), 183321); MovementManager.StopMove(); Thread.Sleep(new System.Random().Next(1000, 3000)); robotManager.Products.Products.InPause = true; Thread.Sleep(new System.Random().Next(1000, 3000)); robotManager.Products.Products.InPause = false; return true; But it seems this shit still appears again with a little chance. Thanks for replies! I will try your ways guys. Link to comment https://wrobot.eu/forums/topic/12517-bot-ignoring-complete-condition/#findComment-60130 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