Diggington 20 Share Posted February 1, 2023 Hey guys, Wondering if this is a bug or a problem with my code. Basically, when my script goes to access the bank at Corsair Cove, for some reason after clicking to interact with the bank booth, it will change to the spellbook tab and click on Wind Strike. I have literally nothing in my code which should be causing this behavior. Here's the banking code: private void Bank(Player localPlayer) { Area bankArea = new Area(2562, 2866, 2572, 2858, 0); if (localPlayer.getZ() < 0) { ClimbUpLadder(localPlayer); } while (!bankArea.contains(localPlayer)) { Walking.walk(bankArea.getRandomTile()); sleep(Calculations.random(300, 2600)); } if (bankArea.contains(localPlayer)) { GameObject booth = GameObjects.closest("Bank booth"); if (booth != null){ if (booth.interact("Bank")){ //HERE'S WHERE IT OPENS THE SPELLBOOK AND CLICKS ON WIND STRIKE if(Sleep.sleepUntil(() -> Bank.open(), Calculations.random(5142, 8694))){ if (Bank.depositAllItems()){ sleep(Calculations.random(1066, 2512)); if (localPlayer.getHealthPercent() <= 75) { Bank.withdraw("Tuna", Calculations.random(3,6)); } Bank.close(); sleep(Calculations.random(620, 1582)); } } } } I've got a video of the issue, but it's too big to attach. Happy to upload it to Google Drive or something and share link link, if that's allowed. Link to comment Share on other sites More sharing options...
Diggington 20 Author Share Posted April 4, 2023 I fixed this btw, it was a problem with caching the local player and starting the script when I was away from the bank :') Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now