Creaturescript / Scripts / Promotion.lua E Adicione
local config = {
promoLevel = 1, -- promotion level : )
needLevel = 20, -- level to get promotion
needPremium = "yes" -- need premium (YES/NO)? ![]()
}
function onAdvance(cid, skill, oldlevel, newlevel)
if (skill == 0) and (newlevel >= config.needLevel and getPlayerPromotionLevel(cid)<config.promoLevel) then
if(string.lower(config.needPremium) == "yes" and isPremium(cid) == TRUE) or (string.lower(config.needPremium) == "no") then
setPlayerPromotionLevel(cid, config.promoLevel)
doPlayerSendTextMessage(cid, 22, "You have been promoted to " .. getVocationInfo(getPlayerVocation(cid)).name .. ".")
end
end
return TRUE
end
Creaturescript.xml Adicione
<event type="advance" name="promotion" script="promotion.lua"/>
Créditos: Pinpao



info
Grupo: Campones
Registrado: 23/12/10
Posts: 34
Reputação: +37
Eu queria que meu ot desse promotion automatico
Com os leveis do tibia normal, qd o player chegasse em tal level, desse promotion sozinho a ele.
me ajudaaaa
do 2 rep +
...