Jump to content

Conditional sleeping help?


Recommended Posts

Posted

I'm still fairly new to scripting bots, and I'm trying to get conditional scripting to work with, for example a thiever. I see the code for it but I don't understand. For example, instead of: 

		if (getInventory().isFull()) {
			getInventory().dropAll();
			sleep(random(250,500));
		}

how would I add conditional sleep to get it to sleep until everything is dropped. All help appreciated, thanks!

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...