Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!
RuneMate will permanently shut down on August 7, 2026
due to events outside our control. You can continue using RuneMate until this date after which it will no longer be available. Thank you to everyone that contributed to RuneMate's success and to the community for the opportunity to serve you all these years.

  • Learn about RuneMate Vault and how its zero knowledge local encryption already protects your sensitive information.
  • Edit or delete your RuneMate account from your Account Settings.
  • All account upgrade subscriptions have been cancelled. No action required.

Question Is there a better way to withdraw/deposit from bank?

Joined
Mar 29, 2016
Messages
54
I've been updating one of my bots (Rain Maker OSRS), one of the main issues with it is the fact that it is quite slow due to the fact that it miss clicks a lot (~1/3 of the time) when banking.
I'm using the regular Bank class methods.
I was wondering if there is a better way.

Execute method that withdraws...
@Override
public void execute() {
Logger.debug("Withdrawing from bank...");

if (parameter instanceof String) {
Bank.withdraw((String) parameter, 0);
} else if (parameter instanceof Integer) {
Bank.withdraw((Integer) parameter, 0);
} else if (parameter instanceof Predicate<?>) {
Bank.withdraw((Predicate<SpriteItem>) parameter, 0);
} else {
throw new RuntimeException(String.format("Unknown *parameter* Type: %s", parameter.getClass().getName()));
}

super.execute();
}
 
Last edited:
Joined
Mar 29, 2016
Messages
54
I think it would be wise to add a snippet of your code :)
Added.
The bot I mentioned is OpenSource.
It just calls Bank.withdraw or Bank.depositAllExcept.
I don't see anything I could be doing differently.
 
Top