so prescisa modificar o creaturescripts para nao ganhar os points:
local config = {
repeatAfterDeath = false,
points = 5,
storage = 14005,
vocations = {1,2,3}, -- IDs das vocation que poderao ganhar points.
}
function onAdvance(cid, skill, oldlevel, newlevel)
if skill ~= SKILL__LEVEL or (not config.repeatAfterDeath and getPlayerStorageValue(cid, config.storage) >= newlevel) then return true end
if not isInArray(config.vocations, getPlayerVocation(cid)) then return true end
doShowTextDialog(cid, 0, "Voce recebeu 5 points. \n Va ao dumbledore para trocar seus pontos.")
addPoints(cid, config.points)
setPlayerStorageValue(cid, config.storage, newlevel)
return true
end






info
Grupo: Campones
Registrado: 21/07/13
Posts: 55
Reputação: +2
Char no Tibia: Kavaskiva
Olá galera do xTibia ! eu gostaria de pedir ajuda com um sistema ','
sempre que um personagem passar de nivel ele ganha 5 Pontos , e esses pontos são trocados por Life ou Mana ..
-> creaturescript ~ scripts ~ AdvPoints.lua
PS : como coloca em spoiler ??
Editado Fevereiro 23 por kazaana