Re: [NEWBIE] !class flags on objects

From: Tony Robbins (tonyr@pacific101.com)
Date: 05/29/99


class.c, approx. 1605.

/*
 * invalid_class is used by handler.c to determine if a piece of equipment is
 * usable by a particular class, based on the ITEM_ANTI_{class} bitvectors.
 */

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)))
        return 1;
  else
        return 0;
}

Make sure you have that set up properly--or paste it to the list.

-----Original Message-----
From: Circle Discussion List [mailto:CIRCLE@post.queensu.ca] On Behalf Of
Shaun Bourque
Sent: Saturday, May 29, 1999 9:42 AM
To: CIRCLE@post.queensu.ca
Subject:  [NEWBIE] !class flags on objects


all of the logic statements that i can find are correct, unless there are
some somewhere in particular i should be concerned about, that arent involved
in adding classes. and all of the bitvectors and such are in the proper
orders. checked and triple checked. went through how to add classes a few
times to make sure i didnt miss something. still bakers cant wear !butcher
but can wear !baker. thanks for your suggestions... and any more you may have


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



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