View Single Post
  #11  
Old 02-26-2016, 06:49 AM
T7g T7g is offline
Banned


Join Date: Jul 2010
Posts: 69
Default

If you want a leaderboard just make your own.

Here's the source for the log parser portion of Clamdigger, blastfish; http://pastebin.com/sAJQQ7Fa

It's in Perl, but really, here's all you need to do to get chat text out of a log file;

run it in a loop, fill in variables where needed.

Code:
	open(EQLOG, $basepath . $logfile);					# derp

	@lines = <EQLOG>;							# Populate our lines array with the file contents

	close(EQLOG);								# ...and then close the file.

	unlink($basepath.$logfile);						# and then get rid of it, don't need it anymore.

foreach(@lines) {
   #watever~ Timestamp parsing code is in blastfish if you need it.
}
All the other routines you'd need or any parsing hints are all in the blastfish pastebin.

Shit's old so none of the authentication stuff works because the Clamdigger frontend hasn't run in years.