• 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 Please read THIS!! IMPORTANT!

Lua:
local AMULET = 2196
function onPrepareDeath(cid, deathList)
	if getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == AMULET then
		if isInArray({SKULL_WHITE, SKULL_YELLOW, SKULL_GREEN, SKULL_NONE}, getCreatureSkullType(cid)) then
			doSetCreatureDropLoot(cid, false)
		end
	end
 
	return true
end
Yes, I know this was along time ago that you requested but, I thought you might still need help

EDIT : and I forgot to mention if you want the aol to work with red skull and black skull change this line
Lua:
if isInArray({SKULL_WHITE, SKULL_YELLOW, SKULL_GREEN, SKULL_NONE}, getCreatureSkullType(cid)) then
to this
Lua:
if isInArray({SKULL_WHITE, SKULL_YELLOW, SKULL_GREEN, SKULL_NONE, SKULL_RED, SKULL_BLACK}, getCreatureSkullType(cid)) then
 
Last edited:
Back
Top