Que tal dar de presente para o seu player, o promotion?
Vá em creaturescript/scripts e crie promote.lua:
function onAdvance(cid, skill, oldlevel, newlevel)
local config = {
level = 20,
storage = 6576,
}
if (getPlayerLevel(cid) >= config.level and getCreatureStorage(cid, config.storage) <= 0) then
doCreatureSetStorage(cid, config.storage, 1)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE, 'Voce foi promovido!')
return doPlayerSetPromotionLevel(cid, 1)
end
end
info
Grupo: Campones
Registrado: 28/10/12
Posts: 43
Reputação: +19
Que tal dar de presente para o seu player, o promotion?
Vá em creaturescript/scripts e crie promote.lua:
function onAdvance(cid, skill, oldlevel, newlevel) local config = { level = 20, storage = 6576, } if (getPlayerLevel(cid) >= config.level and getCreatureStorage(cid, config.storage) <= 0) then doCreatureSetStorage(cid, config.storage, 1) doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE, 'Voce foi promovido!') return doPlayerSetPromotionLevel(cid, 1) end endAgora em creaturescripts.xml adicione a linha:
e em creaturescripts/scripts em login.lua adicione essa linha:
Créditos: Kimoszin
Fim@Final@Bye
Editado Outubro 28 por W0lfer