MightySir2 Posted August 7, 2015 Share Posted August 7, 2015 (edited) Takes bot a while to withdraw items and closes windows without withdrawing. Any solutions? if (inventory.isEmptyExcept(995)) return State.BANK; case BANK: NPC banker = npcs.closest("Banker"); banker.interact("Bank"); sleep(random(500, 700)); bank.withdrawAll(1739); break; Edited August 7, 2015 by MightySir2 Quote Link to comment Share on other sites More sharing options...
Isolate Posted August 7, 2015 Share Posted August 7, 2015 (edited) if (inventory.isEmptyExcept(995)) return State.BANK; case BANK: NPC banker = npcs.closest("Banker"); banker.interact("Bank"); sleep(random(500, 700)); bank.withdrawAll(1739); break; case BANK: if(bank.isOpen()){ bank.withdrawAll(1739); //sleep }else{ bank.Open(); //sleep } forgot the break;... eh... Edited August 7, 2015 by Isolate 1 Quote Link to comment Share on other sites More sharing options...