Jump to content
Juggles

WebWalkEvent Break Condition

Recommended Posts

Has anyone else noticed a delay in the break condition?
For example, if I set it to drink energy pots when below a certain run energy, it will pause for like 10 seconds before doing it. 
Is there a way around this or to remove the built in sleep?

Here is my code. It won't try to drink until like 10seconds after the condition is met. 

if (getSettings().getRunEnergy()>=50 {

WebWalkEvent webWalkEvent = new WebWalkEvent(INSIDE_BANK);
webWalkEvent.setBreakCondition(new Condition() {
    @Override
    public boolean evaluate() {
        return getSettings().getRunEnergy()<50;
    }
});
execute(webWalkEvent); 

} else {

getInventory().interact("Drink","f->f.getName.contains("Energy"));

}

 

 

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