Mall price: Difference between revisions
imported>Bale more detail on how mall_price value can be updated |
imported>Idran m Updating return data based on recent results |
||
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 | special=Untradeable items will return 0 without any server requests. Items not listed in the mall will return -1. When not logged in, this function returns -1 for all items.| | ||
}} | }} | ||
[[Category:Item Management]] | [[Category:Item Management]] |
Revision as of 06:38, 14 March 2012
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. To prevent abuse, this will only perform an actual Mall search once per item per session; subsequent calls for the same item will return a cached value. The cache will be updated after attempts to purchase the item using the CLI or ASH buy()
command (even unsuccessful ones), but not in any other conditions, including purchasing with the purchase tab.
CLI Equivalent
The CLI command "searchmall" also returns current mall prices.
See Also
Special
Untradeable items will return 0 without any server requests. Items not listed in the mall will return -1. When not logged in, this function returns -1 for all items.