Re: [CODE] Adding AFK Flag..

From: John Evans (evansj@HI-LINE.NET)
Date: 09/29/97


On Mon, 29 Sep 1997, Aaron Miller wrote:

> find this spot, I tried where the AFF_HIDE bit was removed, but that
> caused me to get a "You are no longer AFK." message each time I typed
> something. So I added an if check, making it look like this:
>
>    if (PRF_FLAGGED(ch, PRF_AFK)
>      REMOVE_BIT(PRF_FLAGS(ch), PRF_AFK)
>

You've got the right spot there in interpreter.c.

Try this:

   if (PRF_FLAGGED(ch, PRF_AFK) {
     REMOVE_BIT(PRF_FLAGS(ch), PRF_AFK)
     act("You are no longer AFK.", TRUE, ch, 0, 0, TO_CHAR);
     act("$n is no longer AFK.", TRUE, ch, 0, 0, TO_ROOM);
   }

and remove your old 'no longer AFK' message from wherever you had stuck it.

John Evans <evansj@hi-line.net>

May the source be with you.


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