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
➜ Ahh question reguarding exp
|
Ahh question reguarding exp
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Rob Harper
(108 posts) Bio
|
| Date
| Tue 23 Sep 2003 05:11 AM (UTC) |
| Message
| Ahh, I lost it, you know the message that displays the exp you gain for every hit you make, well that stoped appearing on my mud after..god knows how many changes, but I just noticed it, does anyone know where that is defaultly located?
Thanks | | Top |
|
| Posted by
| Greven
Canada (835 posts) Bio
|
| Date
| Reply #1 on Tue 23 Sep 2003 06:43 AM (UTC) |
| Message
| | As far as I know, the message you get when you hit something only happens if one of your skills is increasing, like blades or second attack, as these are dependant on the individual hits. At the end of a battle, you should get a message that you gained XP as you level up. The first is in learn_from_success, and the second is in gain_exp, I beleive. Hope that helps. |
Nobody ever expects the spanish inquisition!
darkwarriors.net:4848
http://darkwarriors.net | | Top |
|
| Posted by
| Rob Harper
(108 posts) Bio
|
| Date
| Reply #2 on Tue 23 Sep 2003 06:57 PM (UTC) |
| Message
| Heh, that helped me more then you know, I decided to alter the level system in a way that I would have never thought of normaly. Ahh, another question thou..I assume I would have to do it around gain_exp but do you have and idea of how I can make it that around lets say level 50, if you didnt have a certin skill, you couldnt gain any more exp?
Thanks | | Top |
|
| Posted by
| Greven
Canada (835 posts) Bio
|
| Date
| Reply #3 on Tue 23 Sep 2003 07:12 PM (UTC) |
| Message
| Well, assuming that you meant in a specific class, like, combat level 50, the check would be something like:if ( ch->skill_level[COMBAT_ABILITY] == 50 && ch->pcdata->learned[gsn_YOURSKILL] != 100 )
This would go towards the beginning of the function. If you meant top level 50, same thing, but:if ( ch->top_level == 50 && ch->pcdata->learned[gsn_YOURSKILL] != 100 )
That should work, just have it return after that. Course, I'm using SWR, it might be a little different, I think its just ch->level in smaug, but general principle shuold work. |
Nobody ever expects the spanish inquisition!
darkwarriors.net:4848
http://darkwarriors.net | | Top |
|
| Posted by
| Rob Harper
(108 posts) Bio
|
| Date
| Reply #4 on Wed 24 Sep 2003 03:31 AM (UTC) |
| Message
| | It did help, thanks again. | | 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.
17,205 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top