• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

red skull and and no loss with bless

Dramix

New Member
Joined
Jun 26, 2009
Messages
289
Reaction score
1
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 )

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
 
Back
Top