Re: dumb question

From: George (greerga@CIRCLEMUD.ORG)
Date: 08/28/98

On Fri, 28 Aug 1998, Matt Roach wrote:

>would something like this work?  For player Kills only?
>    if (!IS_NPC(victim)) {
>    sprintf(buf2, "Player Kill:%s%s was just pked by %s!%s\r\n", CCRED(ch,
>        GET_NAME(victim), GET_NAME(ch), CCNRM(ch, C_NRM));
>    send_to_all(buf2);
>    }

Yes, but it ignores the color attributes for everyone else.  See
do_gen_comm() for how to do color correctly on global channels. I'll also
mention you're ignoring all invisibility there, even immortal.

George Greer, | Genius may have its limitations, but (not done) | stupidity is not thus handicapped.    |                  -- Elbert Hubbard

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

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