Jared Noble wrote:
>
> These things are killing me. I first had trouble with setting up anti-racial
> eq and eventually skipped it out of frustration. Unfortunately, here I am
> facing the exact same problem but with classes and this time I cannot skip
> it. I must have anti_class equipment.
>
> Here is the code:
>
int invalid_class(struct char_data *ch, struct obj_data *obj)
{
if (
( IS_OBJ_STAT(obj, ITEM_ANTI_CLERIC) && IS_CLERIC(ch) ) ||
( IS_OBJ_STAT(obj, ITEM_ANTI_THIEF) && IS_THIEF(ch) ) ||
( IS_OBJ_STAT(obj, ITEM_ANTI_WARRIOR) && IS_WARRIOR(ch) ) ||
( IS_OBJ_STAT(obj, ITEM_ANTI_MAGIC_USER) && IS_MAGIC_USER(ch) ) ||
( IS_OBJ_STAT(obj, ITEM_ANTI_PALADIN) && IS_PALADIN(ch) ) ||
( IS_OBJ_STAT(obj, ITEM_ANTI_RANGER) && IS_RANGER(ch) ) ||
( IS_OBJ_STAT(obj, ITEM_ANTI_DRUID) && IS_DRUID(ch) )
)
return 1;
else
return 0;
}
This all looks right to me,
please send the code section that defines all the classes for IS_XXXXXXX(ch)
--
+---------------------------------------------------------------+
| FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
| Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
+---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/04/01 PST