Jump to content

Prayer pot drinker?


Recommended Posts

Posted

As I think you wanna play legit and just need auto potion drinking then it's easy. "Pseudo" non tested code below

int prayerPointThreshold = 10;
String prayerPotName = "Prayer potion";
public int onLoop() {
	if (skills.getDynamic(Skill.PRAYER) <= prayerPointThreshold && inventory.contains(prayerPotName)) {
     	inventory.interact("Drink", prayerPotName);
      	new ConditionalSleep(5000, 250) {
        	public boolean evaluate() {
            	return skills.getDynamic(Skill.PRAYER) > prayerPointThreshold;
            }
        }
    }
}

Use proper potion names (can't remember how they are called) and dunno if the conditional sleep syntax is correct. Otherwise should work.

  • 4 months later...

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