Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int onLoop() throws InterruptedException {
- if(bank == null)
- bank = getBank();
- bank.open();
- bank.withdraw("Jug of wine", 28);
- bank.close();
- inv = getInventory();
- for(Item item : inv.getItems()) {
- if(item.hasAction("Drink")) {
- item.interact("Drink");
- sleep(random(1500, 1800));
- }
- }
- bank.open();
- bank.depositAll("Jug");
- bank.depositAll("Jug of wine");
- stop();
- return random(200, 300);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement