Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.12 KB | None | 0 0
  1. if (getInventory().contains("Coins") || pendingCollection()) {
  2.                 if (pendingCollection()) {
  3.                     if (getGrandExchange().collect()) {
  4.                         new ConditionalSleep(3000) {
  5.                             @Override
  6.                             public boolean condition() throws InterruptedException {
  7.                                 return !pendingCollection();
  8.                             }
  9.                         }.sleep();
  10.                     }
  11.                 } else {
  12.                     int coins = getInventory().getItem("Coins").getAmount();
  13.                     if (getGrandExchange().buyItem(id, search, random((coins /2),coins), 1)) {
  14.                         new ConditionalSleep(3000) {
  15.                             @Override
  16.                             public boolean condition() throws InterruptedException {
  17.                                 return pendingCollection();
  18.                             }
  19.                         }.sleep();
  20.                     }
  21.                 }
  22.             } else {
  23.              //get coins somehow, from bank or selling items
  24.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement