June 23, 20169 yr Hi, Is there any good Walk to Bank and Banking method? Could not really find a good example / snippet. Many thanks, Prolax
June 23, 20169 yr 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, 20169 yr by Aibanker
June 23, 20169 yr 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.
June 23, 20169 yr 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, 20169 yr by LoudPacks
June 23, 20169 yr 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.
June 23, 20169 yr If you just call Area[] banks = { ... }; getWalking().webWalk(banks); It would walk to the closest one. your lying
June 24, 20169 yr Author Thanks for the replies, I'll add this to my script this evening. Will post the full script once it's done.
Create an account or sign in to comment