On Thu, 16 May 1996, Chris wrote:
> How would I go about checking to see if a player is holding a
> specific object? I need to see if they are holding a stake so I can
> finish my dang vampire code.
if the stake is just 1 object, say vnum 5555 this should work...
-snip-
if (ch->equipment[WEAR_HOLD] &&
GET_OBJ_VNUM(ch->equipment[WEAR_HOLD]) == 5555)
-snip-
if the stake is an item type, then this...
-snip-
if (ch->equipment[WEAR_HOLD] &&
GET_OBJ_TYPE(ch->equipment[WEAR_HOLD]) == ITEM_STAKE)
-snip-
-Sky
This archive was generated by hypermail 2b30 : 12/18/00 PST