Hi people,
I have a problem.
Sometimes the player died and drop loot with bless!
My creaturescripts:
I am using OTX 8.6.
Thanks.
I have a problem.
Sometimes the player died and drop loot with bless!
My creaturescripts:
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
I am using OTX 8.6.
Thanks.