Mall price: Difference between revisions
Jump to navigation
Jump to search
imported>StDoodle m moved Mall price() to Mall price |
imported>StDoodle No edit summary |
||
Line 1: | Line 1: | ||
{{#vardefine:name|mall_price}} | |||
{{#vardefine:return_type|int}} | |||
{{FunctionPage| | |||
name={{#var:name}}| | |||
function_category=Item Management| | |||
function1={{Function| | |||
name={{#var:name}}| | |||
aggregate={{#var:aggregate}}| | |||
return_type={{#var:return_type}}| | |||
return_also={{#var:return_also}}| | |||
parameter1={{Param|item|shop_for}}| | |||
p1desc={{Pspan|shop_for}} is the item to inquire on the mall price of| | |||
}}| | |||
function_description=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 {{pspan|shop_for}} in the mall, calling this function again will return the new price of the item, again ignoring the first five.| | |||
needscode=yes| | |||
see_also={{SeeAlso|buy|retrieve_item}}| | |||
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.| | |||
}} | |||
When not logged in, this function returns -1. | |||
Revision as of 18:14, 5 March 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
Special
Items not listed in the mall will return 0. When not logged in, this function returns -1.