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 ➜ Look here for the answer to negative experience on high levels!

Look here for the answer to negative experience on high levels!

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


Posted by Mike Scherling   USA  (20 posts)  Bio
Date Wed 14 Jul 2004 09:29 AM (UTC)

Amended on Wed 14 Jul 2004 09:32 AM (UTC) by Mike Scherling

Message
Heres the exp!

Experience required levels 185 to 195:
185) 430344345 exp
186) 447960218 exp
187) 465767565 exp
188) 483767423 exp
189) 501960825 exp
190) 520348808 exp (You have 520348808)
191) 538932405 exp
192) 557712653 exp
193) 576690585 exp
194) 595867238 exp
195) 615243645 exp



And heres the FIX!!!

Un-Modified
int exp_level (CCharacter *ch, short level)
{
int lvl;

lvl = UMAX (0, level - 1);
return (lvl * lvl * lvl * get_exp_base (ch));
}

Modified
int exp_level (CCharacter *ch, short level)
{
unsigned int lvl;

lvl = UMAX (0, level - 1);
return (lvl * lvl * lvl * get_exp_base (ch));
}




Hope this solves your problems =) This increases the exp to the -max- allowable by the code, somewher ein the range of 650 million or so... anything higher and youll have to find yourself a more custom fix.


Thnxs to Meerclar for the info on using 'unsigned'

The source is all around us...
in the food you eat...
in the air you breath...
in your tooth... yes, your tooth...
any questions?
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.


8,049 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.