Re: [CODE] [!HYMEN] Npc 'brag' function

From: Cris Jacobin (jacobin@NETREACH.NET)
Date: 09/29/97


        *oops*.  Notice a small bug, if you have pkilling turned on it'll
brag for pc-pc kills.  Add the following IS_NPC check as illustrated to
fix.

-jac 'emote needs builders, badly...'
ButterMud - telnet://betterbox.gameon.net:4000


I inserted a call to the function in the following place in fight.c.
_________________________

 if (!IS_NPC(victim)) {
      sprintf(buf2, "%s killed by %s at %s", GET_NAME(victim), GET_NAME(ch),
              world[victim->in_room].name);
      mudlog(buf2, BRF, LVL_IMMORT, TRUE);
+  if (IS_NPC(ch))   /* Brag Function Call - Muerte 9/29/97 */
+     brag(ch, victim);
      if (MOB_FLAGGED(ch, MOB_MEMORY))
        forget(ch, victim);
    }


     +------------------------------------------------------------+
     | 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/08/00 PST