Prolax Posted June 23, 2016 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
Aiban Posted June 23, 2016 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
Chris Posted June 23, 2016 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.
LoudPacks Posted June 23, 2016 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
Explv Posted June 23, 2016 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
LoudPacks Posted June 23, 2016 Posted June 23, 2016 If you just call Area[] banks = { ... }; getWalking().webWalk(banks); It would walk to the closest one. your lying
Explv Posted June 23, 2016 Posted June 23, 2016 (edited) your lying Nope, check the API Edited June 23, 2016 by Explv
Prolax Posted June 24, 2016 Author 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.