Jump to content
Attaboy

Prayer pot drinker?

Recommended Posts

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...