Lobbert 3 Posted October 5, 2018 Share Posted October 5, 2018 Hey, can't find a solution for this: I want my fightclass to stop doing anything/waiting actively if Vanish and Preparation are both on cooldown. So far I tried this as C# function with both condtions, out of combat and highest priority: Fight.StopFight(); MovementManager.StopMove(); Thread.Sleep(5000); My idea was that the bot will wait 5s over and over again until the conditions are no longer met, but he still continues moving after this even though the log says he is perfoming "Thread.Sleep(5000)" Suggestions or other solutions for this? Link to comment https://wrobot.eu/forums/topic/10219-wait-actively-or-stop-moving/ Share on other sites More sharing options...
micam 6 Posted October 5, 2018 Share Posted October 5, 2018 (edited) you can put the bot in pause and loop until vanish and preparation will be up, then unpause the bot robotManager.Products.Products.InPause = true; Edited October 5, 2018 by micam Lobbert 1 Link to comment https://wrobot.eu/forums/topic/10219-wait-actively-or-stop-moving/#findComment-48312 Share on other sites More sharing options...
Lobbert 3 Posted October 5, 2018 Author Share Posted October 5, 2018 3 hours ago, micam said: you can put the bot in pause and loop until vanish and preparation will be up, then unpause the bot robotManager.Products.Products.InPause = true; Thanks, will try! Edit: Working perfectly now, thanks! Used this snippet: Fight.StopFight(); MovementManager.StopMove(); Products.InPause = true; while((!SpellManager.SpellUsableLUA("Vanish")) && (!SpellManager.SpellUsableLUA("Preparation"))) { Thread.Sleep(3000); } Products.InPause = false; Link to comment https://wrobot.eu/forums/topic/10219-wait-actively-or-stop-moving/#findComment-48314 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