[CODE] Info channel

From: Thomas Smith (ibedemigod@HOTMAIL.COM)
Date: 04/06/98


Hello again,

Sorry to be asking so many stupid questions but i have added an info
channel so the mortals can see who logs on, who died, so on like IMMs
can with syslog on.  Basically it goes:

[INFO] Soandso has returned to the game!

Now, the way i did it was to add a send_to_all under the mudlog in each
instance that i thought relevent info was to be sent to the entire mud.

It looks something like this:

--snip--

  sprintf(buf, "%s advanced to level %d", GET_NAME(ch), GET_LEVEL(ch));
  mudlog(buf, BRF, MAX(LVL_IMMORT, GET_INVIS_LEV(ch)), TRUE);
  sprintf(buf2, "[INFO]%s has advanced to level %d!", GET_NAME(ch),
GET_LEVEL(ch));
  send_to_all(buf2);

--snip--

That may not be exact but it does work.  What i want to know is, is
there a better way to do it? Im sure this is not a good way of doing it,
though it does work.

-=DemiGod=-

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


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