KI
suporte otserv

Skill Upando Sem Parar (Help)

Por Kirsch, 07 de nov. de 2016 em Resolvidos

skill
help
ajuda
parar
sem
upando
5
1.4k
KirschK
07 de novembro de 2016 às 10:13

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.

Codex NGC
07 de novembro de 2016 às 13:56

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

 

KirschK
07 de novembro de 2016 às 14:35
23 minutos atrás, Codex NG disse:

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

 

Which place do I put this script

?

Codex NGC
07 de novembro de 2016 às 15:00
25 minutos atrás, Kirsch disse:

?

Depends on the server version, its two scripts not just one.

KirschK
07 de novembro de 2016 às 15:17
16 minutos atrás, Codex NG disse:

Depends on the server version, its two scripts not just one.

0.4 rev3777 local do script ?