Advertisement
Guest User

Untitled

a guest
Nov 30th, 2015
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.53 KB | None | 0 0
  1. public int onLoop() throws InterruptedException {
  2.         if(bank == null)
  3.             bank = getBank();
  4.         bank.open();
  5.         bank.withdraw("Jug of wine", 28);
  6.         bank.close();
  7.        
  8.         inv = getInventory();
  9.        
  10.         for(Item item : inv.getItems()) {
  11.             if(item.hasAction("Drink")) {
  12.                 item.interact("Drink");
  13.                 sleep(random(1500, 1800));
  14.             }
  15.         }
  16.    
  17.         bank.open();
  18.         bank.depositAll("Jug");
  19.         bank.depositAll("Jug of wine");
  20.            
  21.         stop();
  22.        
  23.         return random(200, 300);
  24.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement