Stupid ass arrogant grey name..
First of all, if he were to use that poor code of yours, it would only work so long as he has either 28, or over 28 grimy herbs in the bank. Which is stupid. On-top of that, it doesn't check whether or not the inventory is even empty.
Oh and I don't understand? Weird how I have a scripter rank and you don't. Pleb.
if (bank.isOpen() && inventory.isEmpty()) {
Item herby = bank.getItem("grimyHerb");
if (bank.contains("grimyHerb")) {
if (herby.getAmount() >= 28) {
bank.withdraw("grimyHerb", 28);
} else if (herby.getAmount() < 28 && herby.getAmount() > 0) {
bank.withdraw("grimyHerb", herby.getAmount());
} else {
stop();
}
new ConditionalSleep(5000) {
@[member=Override]
public boolean condition() throws InterruptedException {
return inventory.contains("grimyHerb");
}
}.sleep();
}
}