Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 7th, 2012  |  syntax: None  |  size: 1.23 KB  |  hits: 6  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. public int loop() {
  2.  
  3.                 if (shouldBank()) {
  4.                         if (atArea(bankArea)) {
  5.                                 if (Bank.isOpen()) {
  6.                                         if (gemCrafting) {
  7.                                                 if (gemCrafting) {
  8.                                                         if (Inventory.getCountExcept(Mould) > 0) {
  9.                                                         Bank.depositAllExcept(Mould);
  10.                                                         sleep(1000);
  11.                                                         }
  12.                                                         if (Inventory.getCountExcept(Mould) < 1) {
  13.                                                         Bank.withdraw(goldBarID, 13);
  14.                                                         sleep(1000);
  15.                                                         }
  16.                                                         if (Inventory.getCount(goldBarID) <= 13 && !Inventory.contains(Gem)) {
  17.                                                         Bank.withdraw(Gem, 13);
  18.                                                         sleep(1000);
  19.                                                         }
  20.                                                         else {
  21.                                                         if (Inventory.getCount(goldBarID) > 13) {
  22.                                                         Bank.depositAllExcept(Mould);
  23.                                                         sleep(1000);
  24.                                                         }
  25.                                                         }      
  26.  
  27.                                         } else {
  28.                                                 if (!gemCrafting) {
  29.                                                         Bank.depositAllExcept(Mould);
  30.                                                         if (!Inventory.contains(goldBarID)) {
  31.                                                                 Bank.withdraw(goldBarID, 0);
  32.                                                         }
  33.                                                 }
  34.                                         }
  35.                                 } else {
  36.                                         Bank.open();
  37.                                 }
  38.                         } else {
  39.                                 walkTo(bankArea);
  40.                         }
  41.                 } else {
  42.                         if (atArea(smeltArea)) {
  43.                                 craft();
  44.                                 while (isCrafting() && Inventory.getCount(goldBarID) > 0) {
  45.  
  46.                                         antiban();
  47.                                         sleep(100);
  48.  
  49.                                 }
  50.                         }
  51.  
  52.                         else {
  53.                                 walkTo(smeltArea);
  54.                         }
  55.                 }
  56.                 if (Widgets.canContinue()) {
  57.                         Widgets.clickContinue();
  58.                 }
  59.                
  60.         }
  61.                 return 0;
  62.         }