I do this within the mud, sort of.

I have the mud do several things based on command line options.
if I use '-delete'  then it will load a minimal number of areas, and also
read all the players determine last login criteria and delete them if they
are x days old.

So, you can do this within the mud, schedule it as a cron job or something.

> -----Original Message-----
> From: Michael Barton [mailto:[EMAIL PROTECTED] 
> Sent: Saturday, January 25, 2003 9:54 PM
> To: . .; [email protected]
> Subject: Re: Anyone help me out here?
> 
> 
> I wouldn't do this within the mud.. that will involve a ton 
> of disk access searching through all the pfiles, and cause a 
> noticable pause in the mud.
> 
> You could write a perl script pretty easily to search through 
> your pfiles and collect stats on that stuff, then just set a 
> cron job to update the information daily or hourly or whatever.
> 
> What you'll likely end up doing is combining information from 
> in game and out of game into one html file.  For example, the 
> perl script could print out a data file that the mud reads in 
> when creating the html.  Or they could both write to data 
> files, and you could make a cgi that reads in the files and 
> prints out the info in html.
> 
> > Ok, I'm writing a function that creates a file in html. I 
> wan't it to 
> > have all kinds of current stats. What my problem is, is 
> that I can't 
> > find a way for the MUD to figure out certain things. For example, I 
> > wan't to print
> out
> > how many people are of XXX race or class or clan. Perhaps 
> search all 
> > the pfiles and return a # that I can print to the file? Other ideas 
> > welcome.
> 
> 
> -- 
> ROM mailing list
> [email protected]
> http://www.rom.org/cgi-bin/mailman/listinfo/rom
> 

Reply via email to