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


info
Grupo: Campones
Registrado: 06/10/15
Posts: 54
Reputação: +18
Olá bom dia estou com um problema e quem mi ajudar estarei muito grato. as skills do meu servidor estão subindo sem parar elas não tem um limite e quando chegam em 250 de skill ela reseta e volta para o 0, já faz uns dias que estou procurando e realmente não sei como resolver isso pois o rate no config.lua e no xml esta no máximo 1.0 (menos que isso buga), quero saber se alguém sabe se na source tem como por um limite por stage de skill por porcentagem ex: em determinado level de skill a skill diminuir e depois começar a upar bem devagar respeitando a porcentagem. sei trabalhar na source. só quero saber aonde altero para poder parar esse up de skill ex: para parar no 150.