Joseph Posted July 13, 2013 Posted July 13, 2013 (edited) So lately ive been having a problem with withdrawing a certain item that isn't in view, when the bank is open. I heard around the forum of other people having this same issue. But finally i got a solution. if (client.getBank().isOpen()){ if (client.getBank().contains(Bucket)) { client.getBank().scrollToSlot(client.getBank().getSlotForId(Bucket)); client.getBank().withdraw5(Bucket); sleep(3000); } } or for even a shorter code: int B = this.client.getBank().getSlotForId(Bucket); if (client.getBank().isOpen()){ if (client.getBank().contains(Bucket)) { client.getBank().scrollToSlot(B); client.getBank().withdraw5(Bucket); sleep(3000); } } Edited July 13, 2013 by josedpay 2
BotRS123 Posted July 13, 2013 Posted July 13, 2013 I think the admins should just fix the method as it is broken, but this works, too.
Joseph Posted July 13, 2013 Author Posted July 13, 2013 I think the admins should just fix the method as it is broken, but this works, too. the withdraw method use to work fine before.
Rick Posted July 13, 2013 Posted July 13, 2013 nice done. but as there are multiple ways to do so. i dont think the admins will use it.
Joseph Posted July 13, 2013 Author Posted July 13, 2013 nice done. but as there are multiple ways to do so. i dont think the admins will use it. This isnt really for the admin, it just to help out Scripters that are having troubling withdrawing items
Sponsor Posted July 13, 2013 Posted July 13, 2013 Simple fix to this would be for botters to put item in top half of there bank
Joseph Posted July 13, 2013 Author Posted July 13, 2013 Simple fix to this would be for botters to put item in top half of there bank i was thinking about that, and i thought i should try to find a fix before i do that. it didnt even take me that long.
bfir3 Posted July 19, 2013 Posted July 19, 2013 (edited) I would personally use something more like this: public boolean withdraw(int itemId, int quantity) throws InterruptedException { if (!getBank().isOpen()) return false; int slotId = getBank().getSlotForId(itemId); // getSlotForId returns -1 if the item is unavailable if (slotId == -1) return false; if (!getBank().isSlotVisible(slotId)) getBank().scrollToSlot(slotId); return getBank().withdrawX(itemId, quantity); } Edited July 19, 2013 by bfir3