data/sctions/scripts crie um arquivo chamado statuepromo.lua e adicione isso dentro:
function onUse (cid, item, frompos, item2, topos)
if getPlayerPromotionLevel(cid) => 2 then
doPlayerSendTextMessage(cid, 27, "Você já é promovido!")
return true
end
setPlayerPromotionLevel(cid, 2)
doPlayerSendTextMessage(cid, 27,"Promovido! Relogue para fazer efeito.")
doSendMagicEffect(getCreaturePosition(cid), 22)
return true
end
Agora em data/actions, em actions.xml adicione essa tag:
<action actionid="21559" event="script" value="statuepromo.lua"/>
Prontinho, só adicionar ACTION ID 21559 na estátua =)





info
Grupo: Campones
Registrado: 08/09/12
Posts: 31
Reputação: +5