[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  Top Players Command
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Top Players Command

It is now over 60 days since the last post. This thread is closed.   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Sonolin   (6 posts)  [Biography] bio
Date Sun 16 Mar 2008 02:36 AM (UTC)  quote  ]
Message
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 =)
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio   Moderator
Date Reply #1 on Sun 16 Mar 2008 02:48 AM (UTC)  quote  ]

Amended on Sun 16 Mar 2008 03:18 AM (UTC) by Zeno

Message
There should be a hiscore snippet around somewhere.

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

(And yes, use FUSS)

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Sonolin   (6 posts)  [Biography] bio
Date Reply #2 on Sun 16 Mar 2008 03:20 AM (UTC)  quote  ]
Message
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
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio   Moderator
Date Reply #3 on Sun 16 Mar 2008 03:36 AM (UTC)  quote  ]
Message
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.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Sonolin   (6 posts)  [Biography] bio
Date Reply #4 on Sun 16 Mar 2008 03:48 AM (UTC)  quote  ]
Message
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 =)
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Reply #5 on Sun 16 Mar 2008 10:30 PM (UTC)  quote  ]
Message
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

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Conner   USA  (381 posts)  [Biography] bio
Date Reply #6 on Mon 17 Mar 2008 12:13 AM (UTC)  quote  ]
Message
David, you're playing such a good intermediary. ;)

-=Conner=-
--
Come test your mettle in the Land of Legends at telnet://tcdbbs.zapto.org:4000
or, for a little family oriented medieval fun, come join us at The Castle's Dungeon BBS at telnet://tcdbbs.zapto.org
or, if you just want information about either, check our web page at http://tcdbbs.zapto.org
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


3,982 views.

It is now over 60 days since the last post. This thread is closed.   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Web site powered by FutureQuest.Net]