Kill counter

From: Phillip A. Ames (kirk47@JUNO.COM)
Date: 08/29/98

OK, I added in kill counters and DT counters... almost.  The system works
perfectly fine for DT's, but not for kills(these are kills by other
players).  It will always remain at zero, unless I set it to another
value.  I have a macro(GET_KILL_COUNT):

#define GET_KILL_COUNT(ch)        ((ch)->player_specials->saved.killed)

That I use, and the spare I changed I changed it to be int killed....
However, it doesn't work whenever I stat them or when they type score...
It'll just display this:

Rip: [0], DeathTraps [3]:
                        This is the test number o' dt's...  the Rip:
never changes unless I set it to be another value.

int damage(struct char_data * ch, struct char_data * victim, int dam, int
  if (GET_POS(victim) <= POS_DEAD) {
    log("SYSERR: Attempt to damage corpse '%s' in room #%d by '%s'.",
                GET_NAME(victim), GET_ROOM_VNUM(IN_ROOM(victim)),
    if( (!IS_NPC(victim) ) && (!IS_NPC(ch))){
                GET_KILL_COUNT(ch) += 1;
    return 0;                   /* -je, 7/7/92 */

Anyone know why this is happening?


Phillip Ames    | Satisfaction is not guaranteed. | -Ferengi Rule of Acquisition #19
ICQ: 8778335    | AOL IM: Grathol

You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at
Or call Juno at (800) 654-JUNO [654-5866]

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

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