Item Management: Difference between revisions
imported>StDoodle mNo edit summary |
imported>StDoodle No edit summary |
||
Line 1: | Line 1: | ||
{{TOCright}} | |||
==Informational== | |||
{{Flink|int|my_meat|desc=Returns the amount of meat you have on hand.}} | {{Flink|int|my_meat|desc=Returns the amount of meat you have on hand.}} | ||
{{Flink|int|my_closet_meat|desc=Returns the amount of meat you have in your Colossal Closet.}} | {{Flink|int|my_closet_meat|desc=Returns the amount of meat you have in your Colossal Closet.}} | ||
Line 15: | Line 17: | ||
{{Flink|int|storage_amount|item|desc=These 7 functions return the total number available of a given item in the respective section of your inventory.}} | {{Flink|int|storage_amount|item|desc=These 7 functions return the total number available of a given item in the respective section of your inventory.}} | ||
{{Flink|int|available_amount|item|desc=Returns the total number available of a given item in all inventory sections accessible to your character based on current restrictions.}} | {{Flink|int|available_amount|item|desc=Returns the total number available of a given item in all inventory sections accessible to your character based on current restrictions.}} | ||
{{Flink|int|creatable_amount|item|desc=Returns the amount of the item that you are capable of creating given your current inventory and skills.}} | |||
{{Flink|int [item]|get_ingredients|item|desc=Returns a map where each key is one of the required ingredients, with the integer value the number required. If you don't have the skills needed to make the item, it will return an empty map.}} | |||
{{Flink|int [item]|get_related|item|string|desc=Returns associated items in a zap or fold group (see page for details).}} | |||
{{Flink|boolean|is_tradeable|item|desc=Returns whether the item can be placed in the mall.}} | |||
{{Flink|boolean|is_giftable|item|desc=Returns whether the item can be traded in a gift package.}} | |||
{{Flink|boolean|is_displayable|item|desc=Returns whether the item can be put in a display case (true for all but quest items).}} | |||
{{Flink|boolean|is_npc_item|item|desc=Returns whether the item can be bought from an NPC store.}} | |||
{{Flink|void|refresh_stash|desc=Takes a new look at the contents of your clan stash, as that section of inventory cannot be internally tracked due to access by others.}} | |||
{{Flink|boolean|mall_price|item|desc=Returns the current (lowest) mall price of the given item.}} | |||
{{Flink|int|autosell_price|item|desc=Returns the autosell price of the item (0 for items that cannot be autosold).}} | |||
==Moving Items Around== | |||
{{Flink|boolean|put_closet|int|{{opt|item}}}} | {{Flink|boolean|put_closet|int|{{opt|item}}}} | ||
{{Flink|boolean|put_display|int|item}} | {{Flink|boolean|put_display|int|item}} | ||
Line 23: | Line 36: | ||
{{Flink|boolean|take_storage|int|item|desc=Attempts to take or put the specified item in the appropriate section of your inventory, and returns its success.<br />If the item parameter is omitted from put_closet() or take_closet(), meat is transferred instead of an item.}} | {{Flink|boolean|take_storage|int|item|desc=Attempts to take or put the specified item in the appropriate section of your inventory, and returns its success.<br />If the item parameter is omitted from put_closet() or take_closet(), meat is transferred instead of an item.}} | ||
{{Flink|boolean|put_shop|int|int|{{opt|int}}|item|desc=Puts items in your store (see page for details).}} | {{Flink|boolean|put_shop|int|int|{{opt|int}}|item|desc=Puts items in your store (see page for details).}} | ||
==Acquiring & Using Items== | |||
{{Flink|boolean|retrieve_item|int|item|desc=Uses KoLmafia internal logic to gather items (see page for details).}} | {{Flink|boolean|retrieve_item|int|item|desc=Uses KoLmafia internal logic to gather items (see page for details).}} | ||
{{Flink|boolean|hermit|int|item|desc=Trades worthless items (adventuring in the sewer if needed) to the hermit for specified items (see page for details).}} | {{Flink|boolean|hermit|int|item|desc=Trades worthless items (adventuring in the sewer if needed) to the hermit for specified items (see page for details).}} | ||
Line 34: | Line 43: | ||
{{Flink|boolean|drink|int|item|desc=Attempts to drink items as specified and reports success.}} | {{Flink|boolean|drink|int|item|desc=Attempts to drink items as specified and reports success.}} | ||
{{Flink|boolean|create|int|item|desc=Attempts to create the specified items, following your KoLmafia settings regarding purchases to gather ingredients & require boxen.}} | {{Flink|boolean|create|int|item|desc=Attempts to create the specified items, following your KoLmafia settings regarding purchases to gather ingredients & require boxen.}} | ||
{{Flink| | {{Flink|boolean|buy|int|item}} | ||
{{Flink|int | {{Flink|int|buy|int|item|int|desc=Tries to purchase the specified items (see page for details).}} | ||
{{Flink|boolean|autosell|int|item|desc=Attempts to autosell the given items and reports success.}} | |||
{{Flink|boolean| | |||
Revision as of 15:20, 7 March 2010
Informational
int my_meat()
int my_closet_meat()
boolean have_chef()
boolean have_bartender()
int [item] get_campground()
boolean have_mushroom_plot()
int [item] get_ingredients( item )
int [item] get_related( item, string )
boolean is_tradeable( item )
boolean is_giftable( item )
boolean is_displayable( item )
boolean is_npc_item( item )
void refresh_stash()
boolean mall_price( item )
Moving Items Around
boolean put_closet( int, [item] )
boolean put_display( int, item )
boolean put_stash( int, item )
boolean take_closet( int, [item] )
boolean take_display( int, item )
boolean take_stash( int, item )
boolean take_storage( int, item )
If the item parameter is omitted from put_closet() or take_closet(), meat is transferred instead of an item.
boolean put_shop( int, int, [int], item )
Acquiring & Using Items
boolean retrieve_item( int, item )
boolean hermit( int, item )
boolean use( int, item )
boolean eat( int, item )
boolean drink( int, item )
boolean create( int, item )
boolean buy( int, item )
boolean autosell( int, item )