Is npc item

From Kolmafia
Revision as of 03:17, 1 March 2010 by imported>StDoodle (Created page with '{{#vardefine:name|is_npc_item}} {{#vardefine:return_type|boolean}} {{FunctionPage| name={{#var:name}}| function_category=Item Management| function1={{Function| name={{#var:name…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search



Function Syntax

boolean is_npc_item(item check )

  • check is an item to check for npc store availability.

Returns true if the item can be bought from an npc store, false if it cannot be.

Note that the function will return true for items that can be bought in sign stores, even if you can't currently access them.

Code Samples

The following would return true even if you are not a moxie sign.

is_npc_item($item[meleegra pills]);