Skill Upando Sem Parar (Help)

Kirsch
Por Kirsch
em Resolvidos

Kirsch

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 06/10/15Posts: 54

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 NG

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 06/11/16Posts: 8

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

 

Kirsch

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 06/10/15Posts: 54
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 NG

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 06/11/16Posts: 8
25 minutos atrás, Kirsch disse:

?

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

Kirsch

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 06/10/15Posts: 54
16 minutos atrás, Codex NG disse:

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

0.4 rev3777 local do script ?