Welcome!

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

Sign up now!

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