October 5, 20187 yr 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?
October 5, 20187 yr 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, 20187 yr by micam
October 5, 20187 yr Author 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;
Create an account or sign in to comment