• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling MaxLevel in Player.cpp

Death Blower

I'm Ready.
Joined
Aug 19, 2011
Messages
49
Reaction score
3
Hi, i need some help editing player.cpp in source so when a player reaches 100,000 he cannot gain anymore experience/levels, ive tried editing stages so that you cant go any higher than 100,000 but it failed epicly, so im gonna try source.
I believe the line that needs to be edited is: if(Player::getExpForLevel(level) > nextLevelExp).

Thanks in advance :)
 
XML:
<?xml version="1.0" encoding="UTF-8"?>
<stages>
	<world id="0" multiplier="1">
		<stage minlevel="1" maxlevel="100000" multiplier="500"/>
	</world>
</stages>

with this, player will have 500x 1 - 100 000 and after that 0x try it :) much easier way
 
Thanks Milice for responding so fast, but i have tried that and it doesnt work, after that stage there must be:
<stage minlevel="100000" maxlevel="100000" multiplier="0"/>, then from 100,000+ it is 0, BUT my problem with that is at 99,999 a player could kill somethnig, and get level 100,058 for example. I dont want that, I want strictly 100,000 then cant level anymore :). Thanks though
 
Easy?
at lvl 99.500 you down the experience to x
then 99.501 to 99.900 to more lower x
then at lvl 99.950 x 2
Keep downing the exp until you get 99.990 x 1
and then x0

You know wich exp you have, and how much time you get that lvl, so make a correct stage and you won't have problems
Don't keep the same exp to lvl 10000!
 
Back
Top