i set my max mortal levels to 200 and my wiz levels to 215 .. problem is i noticed after mortals hit level 116 (1 level after the old supreme entity level) their experience tables to into negatives, after that when they gain any exp it shoots em up like 10 levels and resets their tables to 0 ... whats up ?
levels increased to 200...experience goes into negatives
Posted by Kik on Mon 05 Apr 2004 09:11 PM — 4 posts, 20,596 views.
What variable type is experiance defined as and how much is needed to reach the former max_level? It sounds like you need to chance experience to a larger or maybe just an unsigned data type. If experience is being cast as an integer and you try to exceed 32k (64k for unsigned) it will return negative numbers like you've described.
might want to keep in mind that stock smaug doesnt have a set exp per level. instead its something like lvl*lvl*lvl*get_base_exp(ch)
that line is in handler.c in exp_level function if you base exp is 1000 your talking about 200*200*200*1000 or something like 8 billion exp to get to lvl 200. so if that sounds a tad out there you might want to change that line.
that line is in handler.c in exp_level function if you base exp is 1000 your talking about 200*200*200*1000 or something like 8 billion exp to get to lvl 200. so if that sounds a tad out there you might want to change that line.
As others have shown there are lots of ways you can go about this. Sorry can't say if the ways they have listed would work or not. I increased my muds to 100 mortal levels and 115 max level. Also noticed the exp problem at around level 66+ the way i personaly choose to handle it was to instead of always keeping the hold exp and just having to get to the next set, was to take away the exp needed to gain a level when you leveled. Like lets say you start out at 0 exp at level 1. To get to level 2 you need 4000 exp. When they get to 4000 exp and it levels them subtract 4000 exp from their current exp. Yea it isn't just a quick change. Lots of little spots that need changed in order to make it correctly work and handle properly. Just an idea of how to handle it though.