Jump to content

How to withdraw noted items?


j0kerin0

Recommended Posts

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 by j0kerin0
Link to comment
Share on other sites

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 by Isolate
  • Like 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...