Queria Que O Script De Bless Feito Por " fireelement "
Foce Compativel Com O Meu WoDBO Ele É 8.0
O Script e Esse
Talkactions/Scripts/Bless_System.lua
function onSay(cid, words, param)
local cost, pos = 50000, getCreaturePosition(cid)
if(getPlayerBlessing(cid, 5)) then
doPlayerSendCancel(cid, "You have already all blessings.")
doSendMagicEffect(pos, CONST_ME_POFF)
return true
end
if(pay(cid, cost) == true) then
doPlayerAddBlessing(cid, 5)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You are now blessed.")
doSendMagicEffect(pos, CONST_ME_MAGIC_BLUE)
else
doPlayerSendCancel(cid, "You do not have enough money.")
doSendMagicEffect(pos, CONST_ME_POFF)
end
return true
end
Talkactions/Talkactions.xml
<talkaction words="!BleSSing" event="script" value="Bless_System.lua"/>
Creaturescripts/Scripts/Bless.lua
function onDeath(cid, corpse, killer)
registerCreatureEvent(cid, "onPrepareDeath")
if isPlayer(cid) == true then
if getPlayerBlessing(cid, 5) then
doCreatureSetDropLoot(cid, false)
doPlayerSetLossSkill(cid, false)
end
end
return true
end
Creaturescripts/Creaturescripts.xml
<event type="preparedeath" name="onPrepareDeath" event="script" value="bless.lua"/>
++ Rep Pra Quem Me Ajudar =D