zp_fw_items_select_pre

Syntax

forward zp_fw_items_select_pre(id, itemid, ignorecost)

Usage

id
Player index.
itemid
Internal item ID.
ignorecost
Whether item cost should be ignored.

Description

Called when determining whether an item should be available to a player.

Possible return values are:
 - ZP_ITEM_AVAILABLE (show in menu, allow selection)
 - ZP_ITEM_NOT_AVAILABLE (show in menu, don't allow selection)
 - ZP_ITEM_DONT_SHOW (don't show in menu, don't allow selection)