Retrieve item
boolean retrieve_item( int quantity, item it )
uses KoLmafia internal logic to gather the items in the least destructive manner. See the “acquire” documentation in the CLI manual for more details.
# function to get your class-specific Epic Weapon hermit item boolean get_epic_item() { item[class] epic_items; epic_items[$class[seal clubber]] = $item[seal tooth]; epic_items[$class[turtle tamer]] = $item[chisel]; epic_items[$class[pastamancer]] = $item[petrified noodles]; epic_items[$class[sauceror]] = $item[jabañero pepper]; epic_items[$class[disco bandit]] = $item[banjo strings]; epic_items[$class[accordion thief]] = $item[hot buttered roll]; return retrieve_item(1, epic_items[my_class()]); }