Item Management: Difference between revisions
imported>Bale No edit summary |
imported>PhilmASTErpLus →Informational: Finally, added image and description. Does anyone know how to make in-line function links without manually entering parentheses? |
||
Line 21: | Line 21: | ||
{{Flink|int [item]|get_inventory|desc=Returns a map where each key is an item in your inventory, with the integer value its quantity.}} | {{Flink|int [item]|get_inventory|desc=Returns a map where each key is an item in your inventory, with the integer value its quantity.}} | ||
{{Flink|int [item]|get_related|item|string|desc=Returns associated items in a zap or fold group (see page for details).}} | {{Flink|int [item]|get_related|item|string|desc=Returns associated items in a zap or fold group (see page for details).}} | ||
[[File:Item category.png|frame|You can categorize items in KoL using [[is tradeable|is_tradeable()]], [[is giftable|is_giftable()]], and [[is displayable|is_displayable()]].]] | |||
{{Flink|boolean|is_tradeable|item|desc=Returns whether the item can be placed in the mall.}} | {{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_giftable|item|desc=Returns whether the item can be traded in a gift package.}} |
Revision as of 12:22, 4 July 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_inventory()
int [item] get_related( item, string )

boolean is_tradeable( item )
boolean is_giftable( item )
boolean have_shop()
boolean have_display()
boolean is_displayable( item )
boolean is_npc_item( item )
void refresh_stash()
boolean mall_price( item )
float historical_age( item )
string to_plural( item )
int [item] item_drops( [monster] )
record [int] item_drops_array( [monster] )
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 eatsilent( int, item )
boolean eat( int, item )
boolean overdrink( int, item )
boolean drink( int, item )
boolean create( int, item )
boolean buy( int, item )
boolean autosell( int, item )
int craft( string, int, item, item )