uyfgfarOS Posted January 5, 2017 Share Posted January 5, 2017 Hi, I've written a script to clean some herbs. I'm also implementing a function that sells the herbs back to the GE and buys grimy ones again, however I can't figure out how to withdraw noted items! else if (!bank.contains("Grimy Harralander")) { //Contains clean avantoes if (bank.contains("Harralander")) { //Withdraw 100 bank.withdraw("Harralander", withdrawNumber); Quote Link to comment Share on other sites More sharing options...
Precise Posted January 5, 2017 Share Posted January 5, 2017 http://osbot.org/api/org/osbot/rs07/api/Bank.html#enableMode-org.osbot.rs07.api.Bank.BankMode- Quote Link to comment Share on other sites More sharing options...
Borre Posted January 5, 2017 Share Posted January 5, 2017 Don't forget to set it back to unnoted items when you want to start cleaning again. Quote Link to comment Share on other sites More sharing options...
Chris Posted January 5, 2017 Share Posted January 5, 2017 if (getBank().getWithdrawMode().equals(Bank.BankMode.WITHDRAW_NOTE)){ //True if bank mode is enabled getBank().withdrawAll(1); // withdrawAll(item); } else getBank().enableMode(Bank.BankMode.WITHDRAW_NOTE); // else enable 1 Quote Link to comment Share on other sites More sharing options...