Hello otlanders, i got this script, when a blessed person with red skull dies, he doens't lose any items, here's my script!
Creaturescript ( loss )
Creaturescript ( loss )
function onPrepareDeath(cid)
if getPlayerBlessing(cid, 1) or getPlayerBlessing(cid, 2) or getPlayerBlessing(cid, 3) or getPlayerBlessing(cid, 4) or getPlayerBlessing(cid, 5) then
doCreatureSetDropLoot(cid, false)
doPlayerSetLossPercent(cid, PLAYERLOSS_ITEMS, 0)
doPlayerSetLossPercent(cid, PLAYERLOSS_CONTAINERS, 0)
end
return 1
end