• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

How to change the max level

I suggest that you read the rules before you create a thread with a non-descriptive title.

I'll change the title for you this time only but next time it will get deleted without any notification.
 
Well you can put in the stages: 800= 0. But if they 799 and kill a monster that gives lots of exp they can get 801+. However, if there is not such a monster that can give enough exp to level from 799-801+ then you are fine to put the stages multiplier at 800 = 0.
 
If you don't mind source edits, then you should try this.

creature.cpp
[CPP]void Creature::onGainExperience(double& gainExp, Creature* target, bool multiplied)
{
if (Player* player = this->getPlayer())
{
if (player->getPlayerInfo(PLAYERINFO_LEVEL) >= 800)
return;
}[/CPP]
 
I search in my creaturescripts for "creature.cpp" and i dont have "creature.cpp"

- - - Updated - - -

If you don't mind source edits, then you should try this.

creature.cpp
[CPP]void Creature::onGainExperience(double& gainExp, Creature* target, bool multiplied)
{
if (Player* player = this->getPlayer())
{
if (player->getPlayerInfo(PLAYERINFO_LEVEL) >= 800)
return;
}[/CPP]



And Wher to put that??
 
Back
Top