local configuracao = {
efeito = {28, 29}, -- Efeito que vai mandar ao avançar de level.
texto = "Level up!", -- Texto que vai aparecer ao avançar de level.
cortexto = 215 -- Cor do texto, sendo o número entre 1 e 254.
}
function onAdvance(cid, skill, oldLevel, newLevel)
if skill ~= 8 then return true end
doChangeSpeed(cid, -getCreatureSpeed(cid))
doChangeSpeed(cid, PlayerSpeed)
doSendMagicEffect(getThingPos(cid), configuracao.efeito[math.random(#configuracao.efeito)])
if #getCreatureSummons(cid) > 0 then
local summon = getCreatureSummons(cid)[1]
local health = getCreatureMaxHealth(summon) - getCreatureHealth(summon)
doCreatureAddHealth(summon, health)
end
local color = 0
if configuracao.texto then
if configuracao.cortexto ~= 0 then
color = configuracao.cortexto
else
color = math.random(1, 254)
end
doSendAnimatedText(getThingPos(cid), configuracao.texto, color)
end
return true
end





info
Grupo: Campones
Registrado: 16/04/08
Posts: 91
Reputação: +3
Char no Tibia: walquer
Como diz o título, não acho em nenhum lugar esse script...
Servidor: Pokemon Lunus 8.54
Base: Dash Advanced
Script: No sistema de pokemons com Level, gostaria que ao upar de level ele healasse sozinho.
creatreuscript/levelup.lua
Simples porém não tive a capacidade de fazer.
Editado Fevereiro 26 por walquer