in creaturescripts/scripts/preparedeath.lua
Lua:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
if(getPlayerSlotItem(cid, 2).itemid == 2196) and getPlayerSkullType(cid) >= 0 then
doCreatureSetDropLoot(cid, false)
end
return true
end
and in creaturescripts/scripts/login.lua add
Lua:
registerCreatureEvent(cid, "onPrepareDeath")
and add in creaturescripts.xml
Lua:
<event type="preparedeath" name="onPrepareDeath" event="script" value="preparedeath.lua"/>
i just created but didnt test it so tell me if something goes wrong