- 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. If it is not available from an NPC store or the store is not available, then it returns 0.
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.
Parse your inventory checking to see which NPC items are available to you.
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.