Is npc item: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
mNo edit summary
imported>Bale
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{#vardefine:name|is_npc_item}}
{{
{{#vardefine:return_type|boolean}}
#vardefine:name|is_npc_item}}{{
#vardefine:return_type|boolean}}{{


{{FunctionPage|
FunctionPage|
name={{#var:name}}|
name={{#var:name}}|
function_category=Item Management|


function1={{Function|
function1={{Function|
Line 27: Line 27:


}}
}}
[[Category:Item Management]]

Latest revision as of 21:49, 21 May 2010

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 NPCc 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]);