não é de minha autoria...
mais ta ai:
blessing.lua
function onSay(cid, words, param)
if getPlayerBlessing(cid,5) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have already been blessed")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MORTAREA)
else
if doPlayerRemoveMoney(cid, 50000) == TRUE then
for i = 1,5 do
doPlayerAddBlessing(cid,i)
end
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have received blessings!")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_ENERGYAREA)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need 50,000 gp in backpack for blessings.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_ICEAREA)
end
end
end
Vermelho: Preço a ser pago pelos Bless.
Em talkactions.xml adicione:
talkaction words="!buybless" event="script" value="blessing.lua"/>






info
Grupo: Campones
Registrado: 12/05/10
Posts: 30
Reputação: 0
Char no Tibia: Akuma Igneel
Preciso de um script de blessing super urgente =p
Eu supostamente tenho o script e o npc
mas qndo coloco ele no mapa
ele aparece
diz q vende bless, mas qndo eu `compro` , ela n funciona =p
algm? plx