
Untitled
By: a guest on
Aug 7th, 2012 | syntax:
None | size: 1.23 KB | hits: 6 | expires: Never
public int loop() {
if (shouldBank()) {
if (atArea(bankArea)) {
if (Bank.isOpen()) {
if (gemCrafting) {
if (gemCrafting) {
if (Inventory.getCountExcept(Mould) > 0) {
Bank.depositAllExcept(Mould);
sleep(1000);
}
if (Inventory.getCountExcept(Mould) < 1) {
Bank.withdraw(goldBarID, 13);
sleep(1000);
}
if (Inventory.getCount(goldBarID) <= 13 && !Inventory.contains(Gem)) {
Bank.withdraw(Gem, 13);
sleep(1000);
}
else {
if (Inventory.getCount(goldBarID) > 13) {
Bank.depositAllExcept(Mould);
sleep(1000);
}
}
} else {
if (!gemCrafting) {
Bank.depositAllExcept(Mould);
if (!Inventory.contains(goldBarID)) {
Bank.withdraw(goldBarID, 0);
}
}
}
} else {
Bank.open();
}
} else {
walkTo(bankArea);
}
} else {
if (atArea(smeltArea)) {
craft();
while (isCrafting() && Inventory.getCount(goldBarID) > 0) {
antiban();
sleep(100);
}
}
else {
walkTo(smeltArea);
}
}
if (Widgets.canContinue()) {
Widgets.clickContinue();
}
}
return 0;
}