Jump to content

Wait actively or stop moving


Lobbert

Recommended Posts

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
Share on other sites

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
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...