• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Help Amulet Various Functions

TaurenLess

New Member
Joined
Jan 2, 2010
Messages
76
Reaction score
1
Location
Brasília / Brasil
I tested the script Skull Amulet of SpiderOt, is working 100% for players red and black skull...
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 :p
 
Last edited:
Back
Top