• 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!

Lua skull amulet

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 :)
 
Last edited:
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 :)


LOL? copy and paste ;) you don't create nothing please yes you post give credits ;)
 
Back
Top