hello all.
i'm trying to add in some sex specific equipments, and i've added
the necessary changes to structs.h. however, i had some problem
checking the condition, i.e., a male player trying to wear female
only eq. i put in the check in handler.c, in the function equip_char(),
the additions are after the check for class specific eqs. the
code i had was:
if (IS_OBJ_STAT(obj, ITEM_ANTI_MALE) && GET_SEX(ch) == 1) {
send_to_char("some msg.", ch);
obj_to_char(obj, ch);
return; }
and basically the same for ITEM_ANTI_FEMALE
this additions work *except* it sends back a message for actually
wearing the item even though the item doesn't show up on the
equiptment list.
i was wondering if there's something else i'm missing? perhaps some
other changes that's necessary?
thanks for all inputs.
kuan
Kuan Chen
chenk1@vuse.vanderbilt.edu
ICQ UIN: 4401110
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST