- Joined
- Mar 29, 2016
- Messages
- 54
- Thread Author
- #1
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...
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: