> int invalid_class(struct char_data *ch, struct obj_data *obj) { > if ((IS_OBJ_STAT(obj, ITEM_ANTI_MAGIC_USER) && IS_MAGIC_USER(ch)) || > (IS_OBJ_STAT(obj, ITEM_ANTI_CLERIC) && IS_CLERIC(ch)) || > (IS_OBJ_STAT(obj, ITEM_ANTI_WARRIOR) && IS_WARRIOR(ch)) || > (IS_OBJ_STAT(obj, ITEM_ANTI_THIEF) && IS_THIEF(ch)) > (IS_OBJ_STAT(obj, ITEM_ANTI_BRUTE) && IS_BRUTE(ch))) > return 1; > else > return 0; One mistake that I can find is that you do not have the or operand (||) after IS_THIEF(ch)). Hope that helps, Rasdan =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= ** FINALITY ** The Last Great Adventure finality.mudservices.com 4444 "Judge not, lest ye be judged." =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Rasdan: rasdan@necromium.com Magus: magus560@aol.com +-----------------------------------------------------------+ | 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