Saiyan Posted April 18, 2016 Share Posted April 18, 2016 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 Quote Link to comment Share on other sites More sharing options...
justanotherkid Posted April 18, 2016 Author Share Posted April 18, 2016 (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 April 18, 2016 by justanotherkid Quote Link to comment Share on other sites More sharing options...
The Hero of Time Posted April 18, 2016 Share Posted April 18, 2016 (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 April 18, 2016 by The Hero of Time Quote Link to comment Share on other sites More sharing options...
Explv Posted April 18, 2016 Share Posted April 18, 2016 what does 100_000 mean? edit: nvm, readability C_O_R_R_E_C_T Quote Link to comment Share on other sites More sharing options...