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
attacktype)
{
  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)),
GET_NAME(ch));
    if( (!IS_NPC(victim) ) && (!IS_NPC(ch))){
                GET_KILL_COUNT(ch) += 1;
        }
        die(victim);
    return 0;                   /* -je, 7/7/92 */
  }

Anyone know why this is happening?

-Phillip

Phillip Ames    | Satisfaction is not guaranteed.
kirk47@juno.com | -Ferengi Rule of Acquisition #19
ICQ: 8778335    | AOL IM: Grathol
http://members.xoom.com/Gowron/index.html(Unfinished)

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


     +------------------------------------------------------------+
     | 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