j0kerin0 Posted February 21, 2015 Share Posted February 21, 2015 (edited) private void bank() throws InterruptedException{ if (!bank.isOpen()){ bank.open(); } else { bank.depositAll(); sleep(random(1000,2000)); if (inventory.isEmpty()){ if (bank.enableMode(Bank.BankMode.WITHDRAW_NOTE)){ log("SWITCHING TO NOTED MODE"); bank.withdrawAll("Lobster"); sleep(random(1000,2000)); } } } } This is the code. The supposed result is to empty the inventory, then withdraw all the lobsters in the bank not. Cant seem to get it to work though. The log-code excecutes, but it still doesnt switch to noted mode or withdraw any lobsters. Also, if the code is bad/something could be improved, please let me know, I am still learning Edited February 21, 2015 by j0kerin0 Link to comment Share on other sites More sharing options...
Isolate Posted February 21, 2015 Share Posted February 21, 2015 (edited) Enjoy spamming the deposit all button private void bank() throws InterruptedException{ if (!bank.isOpen()){ bank.open(); }else{ if (inventory.isEmpty()){ if(bank.getWithdrawMode().equals(Bank.BankMode.WITHDRAW_NOTE)){ log("SWITCHING TO NOTED MODE"); bank.withdrawAll("Lobster"); sleep(random(1000,2000)); }else{ bank.enableMode(Bank.BankMode.WITHDRAW_NOTE); sleep(random(1000,2000)); } }else{ bank.depositAll(); sleep(random(1000,2000)); } } } double edit, never changed bankmode or used it before, dunno how works but should Edited February 21, 2015 by Isolate 1 Link to comment Share on other sites More sharing options...