I've tried a couple of ways to do this, for example if the bank contains a charged glory or stamina potion, basically I am trying to use the lowest value of charge/stamina before going back to the (6) or (4)
Could anyone post a snippet? I've tried searching about, but I am sort of new to lists
What I have so far:
String[] gloryNames = {"Amulet of glory(1)", "Amulet of glory(2)", "Amulet of glory(3)", "Amulet of glory(4)", "Amulet of glory(5)", "Amulet of glory(6)"};
if (needGlory == true && bank.contains(gloryNames)){
new ConditionalSleep(random(5000,7000)) {
public boolean condition() {
if (getBank().withdraw(bank.getSlot(gloryNames),1)) { getStatus = "Withdraw glory";}
return inventory.contains(gloryNames.toString());
}
}.sleep();
inventory.interact(inventory.getSlot(gloryNames.toString()), "Wear");
}