Reading this, 2 things come to mind, either of which could be wrong ;) The first is that you need some {}'s after your IS_NPC check to encompass the 2nd if statement also, or else it will chec it every iteration of that function. The second is that you may want to first confirm that there is actually something being wielded, or you might try to access something on a non-existant object and the pointers don't like that a whole lot... Good luck! Ghost Shaidan > if(!IS_NPC(victim)) > send_to_char("You ROCK!\r\n", ch); > if (IS_OBJ_STAT(GET_EQ(ch, WEAR_WIELD), ITEM_PC_SLAYER)) > send_to_char("You SUCK!\r\n", ch); > +------------------------------------------------------------+ | 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