SafronMalady Posted March 14, 2016 Posted March 14, 2016 Hi guys, I'm working on my first script ever, and I was wondering if you could help me with banking. How do I tell the script to run to the bank and bank the goods when the bot's inventory is full? Thanks, Safron
Jardem Posted March 14, 2016 Posted March 14, 2016 add me on skype, we can maybe find out of something
SafronMalady Posted March 14, 2016 Author Posted March 14, 2016 there's an issue with my ubuntu and I'm not currently able to install skype. I can talk in PM though.
Acerd Posted March 14, 2016 Posted March 14, 2016 if (inventory.isFull()) { if (!bank.isOpen()) bank.open(); else if (bank.isOpen()) { bank.depositAll(); bank.close(); } } 2
Eagle Scripts Posted March 14, 2016 Posted March 14, 2016 Look at what Acerd posted, this is for you to help with opening the bank. To let it walk to the bank, you need to check if your inventory is full and your player is not in the bank area. If the player is not in the bank area --> walking.webwalk(BANK_AREA): If the player is in the bank area --> Execute bank code
Vilius Posted March 14, 2016 Posted March 14, 2016 (edited) Paste with comments to explain things. //we check if our inventory is full and we are in bank area. if (getInventory().isFull() && Banks.VARROCK_WEST.contains(myPlayer())) { //We are in the bank are, doing banking. //check if bank is open if(getBank().isOpen()){ //Bank open, we are depositing it getBank().depositAll(); }else{ //if bank is closed, open it. getBank().open(); } }else{ //We are walking to the bank area, because we are not in it. getWalking().webWalk(Banks.VARROCK_WEST); } Raw paste: if (getInventory().isFull() && Banks.VARROCK_WEST.contains(myPlayer())) { if(getBank().isOpen()){ getBank().depositAll(); }else{ getBank().open(); } }else{ getWalking().webWalk(Banks.VARROCK_WEST); } Good luck Edited March 14, 2016 by Vilius 2