Re: News and mail added to prompt

From: Mike Breuer (mbreuer@new.rr.com)
Date: 11/27/01


----- Original Message -----
From: "Ryan Le Gros" <rlegros4@HOTMAIL.COM>
> i.e.
> 18H 100M 100V (mail) (news)>
>
> Anyone have this on their MUD or have a suggestion on how I would go about
> doing it?

Simplest solution, in comm.c, make_prompt(..):

    if (PRF_FLAGGED(d->character, PRF_DISPMOVE))
      count += sprintf(prompt + count, "%dV ", GET_MOVE(d->character));

+   count += sprintf(prompt + count, "%s",
+                    (has_mail(GET_IDNUM(d->character)) ? "(mail) " : "");

I would recommend also adding a PRF_DISPMAIL flag so that users can turn it
off.  News would be similar, but I don't know offhand how you would
determine whether there is "new" news.

Mike

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/06/01 PST