TaurenLess
New Member
I tested the script Skull Amulet of SpiderOt, is working 100% for players red and black skull...
I edited the script to make it work also for non-red and black skull ...
However, some works, but does not count frags, only the first run only to red and black skull frags count.
Help-me
Code:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
if (getCreatureSkullType(cid) >= 4) then
if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2131) then
doCreatureSetDropLoot(cid, false)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)
doCreatureSay(cid, "Skull Amulet!", TALKTYPE_ORANGE_1)
end
return true
end
return true
end
I edited the script to make it work also for non-red and black skull ...
Code:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2131 or getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2131 and getCreatureSkullType(cid) >= 4) then
doCreatureSetDropLoot(cid, false)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)
doCreatureSay(cid, "Skull Amulet!", TALKTYPE_ORANGE_1)
end
return true
end
return true
end
Code:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2131) then
doCreatureSetDropLoot(cid, false)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)
doCreatureSay(cid, "Skull Amulet!", TALKTYPE_ORANGE_1)
end
return true
end
Code:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
if (isPlayer(cid)) then
if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2131) then
doCreatureSetDropLoot(cid, false)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)
doCreatureSay(cid, "Skull Amulet!", TALKTYPE_ORANGE_1)
end
return true
end
return true
end
However, some works, but does not count frags, only the first run only to red and black skull frags count.
Help-me
Last edited: