Npc price

From Kolmafia
Revision as of 13:42, 19 May 2011 by imported>Theraze (Created page with "{{ #vardefine:name|npc_price}}{{ #vardefine:return_type|int}}{{ FunctionPage| name={{#var:name}}| function1={{Function| name={{#var:name}}| aggregate={{#var:aggregate}}| return...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function Syntax

int npc_price(item shop_for )

  • shop_for is the item to inquire on the npc price and availability of.

Returns the current price of the given item from NPC shops, given availability to the player. This function runs a new check each time it is called, so if you call this function and then unlock a new NPC store, calling this function again will return the new availability state of the item.

See Also

historical_price() | buy() | mall_price() | retrieve_item()

Special

Items not currently available will return 0. When not logged in, this function returns 0 for all items, as none of them are available to you at the time.