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

Gammon 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]  EXP gain mod.
Home  |  Users  |  Search  |  FAQ
Register forum user name
Forgotten password?

EXP gain mod.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Posted by LucasM   (4 posts)  [Biography] bio
Date Wed 18 Nov 2009 07:41 PM (UTC)

Amended on Wed 18 Nov 2009 08:42 PM (UTC) by LucasM

I've been trying to find a way to make a global gain mod. I have been going at it for a few days now.

I have tried to use this http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=6524 as a reference.. but not sure how I can make it so a admin high enough level can make a global change in the exp gain.

For example, the admin could type in expgain 10 and the percentage gain would increase by 10 and maybe show up in an announcement or on the who list or on the score card.

Since I'm new to programing in the SMAUG engine I'm slowly learning all the decorations and process of the code. So bare with me thanks.

Ok got it to show up in the game, the mod system in theory works. I just do not know how to tell yet. As for as the percentage mod I'm able to figure that out... thanks for viewing, and if you do have tips on how I can display this as an announcement and or on the who list please let me know.

[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio
Date Reply #1 on Wed 18 Nov 2009 10:39 PM (UTC)
You can add it to the MotD for example, by editing the "motd" help file (I think that's the name, at least).

You can add it to the who list by editing the code that displays it; do_who would be a starting point.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

[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.


It is now over 60 days since the last post. This thread is closed.     [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.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

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

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]