Re: Easy Code Question

From: Johan Dustler (
Date: 01/16/97

> From: "DJ Pure" <>
> G'day All,
> Q1.T his might be sorta stupid, but I need to add a check to see if the
> player is **holding** an item (which i have created of course). What's the
> macro for that please ? I couldn't seem to find it (i did look through the
> utils.h)

struct obj_data *holding;

if (holding = GET_EQ(ch, WEAR_HOLD)) {

Then you can use GET_OBJ_TYPE(holding) or GET_OBJ_VNUM(holding)
to check if it is the right object that is held.
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   |

This archive was generated by hypermail 2b30 : 12/18/00 PST