function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
if isPlayer(cid) == true then
if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2196) then
doCreatureSetDropLoot(cid, false)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)
return true
end
end
return true
end
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
if isPlayer(cid) == true then
if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2196) then
elseif (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 10520) then
doCreatureSetDropLoot(cid, false)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)
return true
end
end
return true
end
or*if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2196) ||
(getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 10520) then
if(isInArray({2196, 10520}, getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid) [B][COLOR="Red"]== TRUE[/COLOR][/B]) then
It doesnt work for me, using 0.4 :S