Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ EXP gain mod.

EXP gain mod.

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


Posted by LucasM   (4 posts)  Bio
Date Wed 18 Nov 2009 07:41 PM (UTC)

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

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

~EDIT
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.




Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #1 on Wed 18 Nov 2009 10:39 PM (UTC)
Message
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

http://david.the-haleys.org
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.


12,855 views.

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

Go to topic:           Search the forum


[Go to top] top

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