If you don't want edit sources...
in
data/creaturescripts/scripts/login.lua under:
add:
PHP:
registerCreatureEvent(cid, "PlayerDeathPrepare")
in
data/creaturescripts/scripts/ make file
playerpreparedeath.lua and in this file:
PHP:
function onPrepareDeath(cid, killer)
if getPlayerItemCount(cid, 8889) >= 1 then
doSetCreatureDropLoot(cid, 0)
end
end
getPlayerItemCount(cid, 8889) - with item
8889 (skullcracker armor) players dont lose eq - tested (player can wear this item in backpack, not only armor slot!)
in file
data/creaturescripts/creaturescripts.xml under:
add:
PHP:
<event type="preparedeath" name="PlayerDeathPrepare" script="playerpreparedeath.lua"/>