When the players relogs with bless, this disappears, and the player need to buy again.
Dropbless.lua:
creaturescript.xml:
creaturescript/script/login.lua
Help me please !
Dropbless.lua:
DropBless.lua
function onDeath(cid, corpse, deathList)
function HaveBless(cid)
for i = 1,5 do
if getPlayerBlessing(cid, i) then
return true
end
end
return false
end
if isPlayer(cid) and HaveBless(cid) and getPlayerSkullType(cid) < SKULL_RED then
doCreatureSetDropLoot(cid, false)
end
return true
end
creaturescript.xml:
<event type="death" name="BlessDrop" event="script" value="DropBless.lua"/>
creaturescript/script/login.lua
registerCreatureEvent(cid, "BlessDrop")
Help me please !