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

Script help

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)
to
LUA:
if (getCreatureSkullType(cid)  >= 0)
it didn't work

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
 
Last edited:
Back
Top