If you have an onAdvance function, you can set the maximum level a player can gain.
This code should affect everything but a player's experience level, e.g. magic, sword, club etc..
-- 8.6local maxLevel = 250function onAdvance(cid, skill, oldLevel, newLevel) if skill ~= SKILL__LEVEL and newLevel >= maxLevel then newLevel = maxLevel end return trueend1.xlocal maxLevel = 250function onAdvance(player, skill, oldLevel, newLevel) if skill ~= SKILL_LEVEL and newLevel >= maxLevel then newLevel = maxLevel end return trueend