I'd imagine its possible to make a list or array work, but straight up use won't work.
EDIT: Adding in failsafes to what i've written below would be an improvement, if statements like how bamboozled wrote it is a step in the right direction.
private String items[] = new String[] {"Death rune", "Nature rune", "Battlestaff", };
bank.withdrawAll(items); // this won't work.
/////////////////////////////////////////////////////////////////////////// This is how i would write it.
getBank().enableMode(Bank.BankMode.WITHDRAW_NOTE);
bank.withdrawAll(A);
new ConditionalSleep(10000) {
@[member='Override']
public boolean condition() throws InterruptedException {
return inventory.contains(A);
}
}.sleep();
bank.withdrawAll(B);
new ConditionalSleep(10000) {
@[member='Override']
public boolean condition() throws InterruptedException {
return inventory.contains(B);
}
}.sleep();
bank.withdrawAll(C);
new ConditionalSleep(10000) {
@[member='Override']
public boolean condition() throws InterruptedException {
return inventory.contains(C);
}
}.sleep();