*** In tables.c *** const struct flag_type comm_flags[] = { { "quiet", COMM_QUIET, TRUE }, + { "pdeath", COMM_PDEATH, TRUE }, *** In merc.h *** #define COMM_AFK (Z) + #define COMM_PDEATH (aa) *** In interp.h *** DECLARE_DO_FUN( do_pdeath ); *** In interp.c *** { "pdeath", do_pdeath, POS_RESTING, 0, LOG_NORMAL, 1 }, *** In handler.c *** char *comm_bit_name(int comm_flags) { static char buf[512]; buf[0] = '\0'; if (comm_flags & COMM_QUIET ) strcat(buf, " quiet"); + if (comm_flags & COMM_PDEATH ) strcat(buf, " pdeath"); *** In fight.c (bool damage) *** /*!!! !!!*/ if (IS_NPC(victim)) wiznet(log_buf,NULL,NULL,WIZ_MOBDEATHS,0,0); else wiznet(log_buf,NULL,NULL,WIZ_DEATHS,0,0); /*!!! !!!*/ if (!IS_NPC(victim)) { for ( d = descriptor_list; d; d = d->next ) { if ( d->connected == CON_PLAYING ) { if (IS_SET(d->character->comm, COMM_PDEATH) ) { sprintf(log_buf,"\n\r * %s was struck down! *",victim->name); act(log_buf,ch,0,d->character,TO_VICT); } } } }