Re: New command help please....

From: Del (caminturn@earthlink.net)
Date: 02/18/99


I would think that if you had it save the information into a small buffer,
(i.e. last 10 as you want) at the same time it logs it, all you have to do is
display that information. I am sure there is some kind of code floating around
that would have something similar that you could use as a basic template.


Mike Kennedy wrote:
>
> Hi there!!!
>
> I'm looking to add a command to list say the last 10 people to have logged
> on to the MUD (using Circle 3.0bpl14) to give a display something like :
>
> Player            Last On
> ----------------------------
> x                       2/2/99 at 8.30pm
> y                       2/2/99 at 8.32pm
> z                       3/2/99 at 9.00am
>
> However, I'm not sure what the best way to do this is.
> I'm thought of 3 ways :
>
> 1. Use the syslog file and search through it for "x logged on at..." type
> messages
> and use them
>
> 2. Every time someone logs on, add a new entry to a log-ons log file and use
> that
>
> 3. Leaf through the player files and extract the last log on time
>
> All 3 of these ways though seem to be slow.   No. 3 is far too slow, No.s 1
> and 2
> would possibly be accessed by numerous people at the same time it is being
> written to (especially the main log file)
>
> It would be good if I could do something that works on Win 95 and Unix
> systems.
>
> Has anyone out there done this sort of thing before or does anyone have any
> good ideas???
>
> Look forward to hearing from you all!!!
> TIA
> Mike Kennedy
>
>      +------------------------------------------------------------+
>      | Ensure that you have read the CircleMUD Mailing List FAQ:  |
>      |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
>      +------------------------------------------------------------+


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



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