> From: "DJ Pure" <pure@ozramp.net.au> > > 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. -Johan +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | +-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST