Mall price: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>Bale
mNo edit summary
imported>PhilmASTErpLus
A bit of information about untradeable items.
Line 21: Line 21:
see_also={{SeeAlso|historical_price|buy|retrieve_item}}|
see_also={{SeeAlso|historical_price|buy|retrieve_item}}|
cli_equiv=The CLI command "searchmall" also returns current mall prices.|
cli_equiv=The CLI command "searchmall" also returns current mall prices.|
special=Items not listed in the mall will return 0. When not logged in, this function returns -1.|
special=Items not listed in the mall will return 0 (untradeable items will return 0 without any server requests). When not logged in, this function returns -1.|
}}
}}


[[Category:Item Management]]
[[Category:Item Management]]

Revision as of 01:25, 26 August 2010

needs(code_samples);

Function Syntax

int mall_price(item shop_for )

  • shop_for is the item to inquire on the mall price of

Returns the current mall price of the given item, ignoring the first five items listed to compensate for stores with limits and min-priced sales. This function runs a new check each time it is called, so if you call this function and then purchase some of shop_for in the mall, calling this function again will return the new price of the item, again ignoring the first five.

CLI Equivalent

The CLI command "searchmall" also returns current mall prices.

See Also

historical_price() | buy() | retrieve_item()

Special

Items not listed in the mall will return 0 (untradeable items will return 0 without any server requests). When not logged in, this function returns -1.