- Joined
- Jun 19, 2009
- Messages
- 1,852
- Reaction score
- 5
Lua:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
if (getCreatureSkullType(cid) >= 4) then
if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 11387) then
doCreatureSetDropLoot(cid, false)
end
return true
end
return true
end
This script works perfectly, even if you have a red skull you won't lose anything wearing ID 11387.
I tried to modify it, so it works with all skulls (even if u don't have skull, u wont lose anything)
I changed
Lua:
if (getCreatureSkullType(cid) >= 4)
Lua:
if (getCreatureSkullType(cid) >= 0)
then I removed the entire line;
Lua:
if (getCreatureSkullType(cid) >= 4)
and it still didn't work... how do I fix it so even if u have no skull, red skull or black skull u won't lose anything