I am having a small problem with object flags. I think
I might have fixed it, but I am not sure. Heres the code, maybe you
can help me out (I hope).
}
if (((IS_OBJ_STAT(obj, ITEM_NOMAGE) && GET_CLASS(ch) == CLASS_MAGIC_USER) ||
(IS_OBJ_STAT(obj, ITEM_NOCLERIC) && GET_CLASS(ch) == CLASS_CLERIC) ||
(IS_OBJ_STAT(obj, ITEM_NOTHIEF) && GET_CLASS(ch) == CLASS_THIEF) ||
(IS_OBJ_STAT(obj, ITEM_NOBARD) && GET_CLASS(ch) == CLASS_BARD) ||
(IS_OBJ_STAT(obj, ITEM_NOWARRIOR) && GET_CLASS(ch) == CLASS_WARRIOR)) ||
(IS_OBJ_STAT(obj, ITEM_NORANGER) && GET_CLASS(ch) == CLASS_RANGER))
!IS_NPC(ch);
{
sprintf(buf, "You have no idea how to use this %s.\n\r",
fname(obj->name));
send_to_char(buf, ch);
obj_to_char(obj, ch);
return;
}
Right now I can't have any objects equipped. I changed the line
!IS_NPC(ch); to
if (ch->IS_NPC(ch);
But it still doesn't work.
I get the error of :
(0494) if (ch->((((ch)->specials2.act) & ((1 << 3))));
Line 494 of "handler.c": [Error #118] Member name expected; "(" found.
If you can't tell, I want to be have objects only equipped by
a few classes (so mages can't wear plate, etc). What am I
doing wrong? Thanks
This archive was generated by hypermail 2b30 : 12/07/00 PST