Prolax Posted June 23, 2016 Share Posted June 23, 2016 Hi, Is there any good Walk to Bank and Banking method? Could not really find a good example / snippet. Many thanks, Prolax 1 Quote Link to comment Share on other sites More sharing options...
Aiban Posted June 23, 2016 Share Posted June 23, 2016 (edited) Get area of bank and walk to it, to open bank use this getBank().open(); Edit:: The api has a number of bank areas already Edited June 23, 2016 by Aibanker Quote Link to comment Share on other sites More sharing options...
Chris Posted June 23, 2016 Share Posted June 23, 2016 If !area.contains (myPosition()){ Getwalking.webWalk (BANK_POSITION); } else { If !getbank ().isOpen () { Getbank().open; //ConditionalSleep @return getbank.isopen } else { //Handle banking. } } Wrote this on mobile. Quote Link to comment Share on other sites More sharing options...
LoudPacks Posted June 23, 2016 Share Posted June 23, 2016 (edited) http://osbot.org/forum/topic/100862-bank-closest-to-entity/ that will get the closest bank to your player, or you can hardcode one in instead either way. and then once you have that you can do: if(!currentBank.contains(myPlayer().getPosition()){ getWalking().webWalk(currentBank); } else { if(!getBank().isOpen()){ getBank().open(); new ConditionalSleep(2500, 3000){ @Override public boolean condition(){ return getBank().isOpen(); } }.sleep(); } else { //withdraw stuff etc. } } Edited June 23, 2016 by LoudPacks 1 Quote Link to comment Share on other sites More sharing options...
Explv Posted June 23, 2016 Share Posted June 23, 2016 http://osbot.org/forum/topic/100862-bank-closest-to-entity/ that will get the closest bank to your player, or you can hardcode one in instead either way. If you just call Area[] banks = { ... }; getWalking().webWalk(banks); It would walk to the closest one. 2 Quote Link to comment Share on other sites More sharing options...
LoudPacks Posted June 23, 2016 Share Posted June 23, 2016 If you just call Area[] banks = { ... }; getWalking().webWalk(banks); It would walk to the closest one. your lying Quote Link to comment Share on other sites More sharing options...
Explv Posted June 23, 2016 Share Posted June 23, 2016 (edited) your lying Nope, check the API Edited June 23, 2016 by Explv Quote Link to comment Share on other sites More sharing options...
Lone Posted June 23, 2016 Share Posted June 23, 2016 your lying Lol Quote Link to comment Share on other sites More sharing options...
Prolax Posted June 24, 2016 Author Share Posted June 24, 2016 Thanks for the replies, I'll add this to my script this evening. Will post the full script once it's done. Quote Link to comment Share on other sites More sharing options...