Retrieve item

From Kolmafia
Revision as of 20:29, 9 May 2009 by imported>MapleMario (New page: '''boolean retrieve_item( int quantity, item it )''' <br />uses KoLmafia internal logic to gather the items in the least destructive manner. ''See the “acquire” documentation in the CL...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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()]);

}