• 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 Max level edit..

Dalt0n

Hiho:)
Joined
Dec 14, 2011
Messages
536
Reaction score
31
Location
Italia
Hello otlanders,

I ask to you, where I can edit the max level for the players, ie do not want creaturescripts, etc.

I would like to find where to edit it, and that you no longer get the most exp, example:
You get to level 2000, you're killing monsters, etc, but no longer will give you experience ...


Thanks :), either by compiling the sources, etc. ..
 
It will work. I have 0 exp from
8 up until 9 so you can only get level 9 after a quest to mainland.
 
Find function like this in player.h:
[cpp]static uint64_t getExpForLevel(uint32_t lv)
{[/cpp]

and after that add:
[cpp]if(lv > 2000)
return 0;[/cpp]
 
its correct?
Code:
	static uint64_t getExpForLevel(uint32_t lv)
		{
			if(lv > 2000)
					return 0;

			static std::map<uint32_t, uint64_t> cache;
			lv--;

			std::map<uint32_t, uint64_t>::iterator it = cache.find(lv);
			if(it != cache.end())
				return it->second;

			uint64_t exp = ((50ULL * lv * lv * lv) - (150ULL * lv * lv) + (400ULL * lv)) / 3ULL;
			cache[lv] = exp;
			return exp;
		}
 
Back
Top