Item Management: Difference between revisions
imported>PhilmASTErpLus m →Informational: Reordered to correctly group X_amount() functions. |
imported>Theraze m Changed mall_price from boolean to int, as it says in its own page. Boolean doesn't make sense for this function, which is why I checked its page... |
||
Line 30: | Line 30: | ||
{{Flink|boolean|is_npc_item|item|desc=Returns whether the item can be bought from an NPC store.}} | {{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|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| | {{Flink|int|mall_price|item|desc=Returns the current (lowest) mall price of the given item.}} | ||
{{Flink|int|historical_price|item|desc=Returns the most recently checked price for an item. This will never hit the server, unlike mall_price().}} | {{Flink|int|historical_price|item|desc=Returns the most recently checked price for an item. This will never hit the server, unlike mall_price().}} | ||
{{Flink|float|historical_age|item|desc=Returns the age of the most recently checked price for an item in days. This allows you to decide if you want to use historical_price() or mall_price().}} | {{Flink|float|historical_age|item|desc=Returns the age of the most recently checked price for an item in days. This allows you to decide if you want to use historical_price() or mall_price().}} |
Revision as of 05:40, 27 September 2010
Informational
int my_meat()
int my_closet_meat()
boolean have_chef()
boolean have_bartender()
int [item] get_campground()
boolean have_mushroom_plot()
string item_type( item )
int [item] get_ingredients( item )
int [item] get_inventory()
int [item] get_related( item, string )

boolean is_tradeable( item )
boolean is_giftable( item )
boolean is_displayable( item )
boolean have_shop()
boolean have_display()
boolean is_npc_item( item )
void refresh_stash()
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 )