Top Players Command

Posted by Sonolin on Sun 16 Mar 2008 02:36 AM — 7 posts, 30,454 views.

#0
I was wondering how to implement a "Top Players" command? I simply want users to be able to type something like "toplist" or maybe "who toplist" (rather the former, without the who in front). Is there some snippet that does this? It seems like something that some builders would want in their muds.

I am quite new to SMAUG and love it, but I just hate the lack of documentation.. usually when I start ANY project, google is my friend. With SMAUG it took me like an hour just to find a map of the stupid darkhaven town lol. (I am not talking about MUDs here.. talking about things in general)

I'd say I am intermediate in my C++ coding abilities, so the code isn't extremely foreign to me.. But it looks just so confusing I looked through the who command and think I'd be able to add a "who toplist" command but I just don't know how to make it list the top say 20 people in the mud.

To clarify - I just want the command to return the top 20 players in the MUD, according to experience.

Also.. I am using the latest SMAUG build (1.8b I think), NOT SmaugFUSS... I was wondering if it would be wise to use SmaugFUSS over SMAUG? And if so, what version? The files on SmaugFUSS's website are a bit confusing.. it shows a SmaugFUSS1.9 but then, more recently, a SmaugFUSS1.8 and 1.7..?

Thank you in advance =)
USA #1
There should be a hiscore snippet around somewhere.

If not, I know it is at least in the DBSaga codebase.

(And yes, use FUSS)
Amended on Sun 16 Mar 2008 03:18 AM by Zeno
#2
Can't seem to find a snippet but I'll download the dbsaga codebase and check it out

OK I will convert to FUSS.. which version, the 1.9? Or one of the others (1.8/1.7)?

Thank you
USA #3
Latest version.

I don't see the snippet either, although I did see a Rom snippet. But DBSaga did have it and it shouldn't be too hard to rip from there.
#4
Thanks!

Yea I'll let you know if I have any problems getting it from dbsaga, I'll take a look tonight.

Again, thank you for your help =)
USA #5
This was cross-posted to the FUSS forums; some more thoughts were given there by Conner and Kayle.

http://www.smaugmuds.org/index.php?a=topic&t=3651
USA #6
David, you're playing such a good intermediary. ;)