Jump to content

how to place a sleep when smelting?


Recommended Posts

Posted

 

Easiest way imo is just to do a long sleep, and check if you still have gold bars / have leveled up:

new ConditionalSleep(100_000){					
    @Override
    public boolean condition() throws InterruptedException {
        return !getInventory().contains("Gold bar") || getDialouges().isPendingContinuation();
    }
}.sleep();

leeched

Posted (edited)

 

Easiest way imo is just to do a long sleep, and check if you still have gold bars / have leveled up:

if(getKeyboard().typeString("27")){
    new ConditionalSleep(100_000){					
        @Override
        public boolean condition() throws InterruptedException {
            return !getInventory().contains("Gold bar") || getDialouges().isPendingContinuation();
        }
    }.sleep();
}

ye i'm using basically the same thing

Edited by justanotherkid
Posted (edited)

 

Easiest way imo is just to do a long sleep, and check if you still have gold bars / have leveled up:

if(getKeyboard().typeString("27")){
    new ConditionalSleep(100_000){					
        @Override
        public boolean condition() throws InterruptedException {
            return !getInventory().contains("Gold bar") || getDialouges().isPendingContinuation();
        }
    }.sleep();
}

what does 100_000 mean?

 

 

edit: nvm, readability

Edited by The Hero of Time

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