• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Aol Forever! problem!

Polat Alemdar

Mapper, Basic Scripter
Joined
Feb 20, 2011
Messages
940
Reaction score
29
Location
Stockholm, Sweden
Can anyone help me make this amulet id: 2131 to Aol Forever but i want it so i dont loose items in black skull and red skull

Very much Thank You from me to the Person who help me!

!!!!Rep++
 
Ty J.dre it worked but i dont loose items with white skull and rs but im loosin items with black skull!

i changed the item id to 2131 it worked but im loosin items in black skull! can you help me fix this?
 
the first one which i gave you protect you from losing items what ever your skull but if you need this it's oki but it's the same :p
Code:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
	if [COLOR="#FF0000"](getCreatureSkullType(cid)  >= 4)[/COLOR] then
        if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == [COLOR="#FF0000"]2198[/COLOR]) then
                doCreatureSetDropLoot(cid, false)      
                doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)
                doCreatureSay(cid, "Forever Aol!! NO LOOT FOR YOU!", TALKTYPE_ORANGE_1)
				end
			return true
		end
	return true
end
 
LUA:
local AMULET = 2196
function onPrepareDeath(cid, deathList)
	if getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == AMULET then
		if isInArray({SKULL_WHITE, SKULL_RED, SKULL_BLACK}, getCreatureSkullType(cid)) then
			doSetCreatureDropLoot(cid, false)
		end
	end
 
	return true
end
 
Last edited:
J.dre your amulet not working good bcs in white skull i loosing items but in black and red im not loosing!
and ahmed i dont have tested the script u gave now i will test it

LUA:
local AMULET = 2196
function onPrepareDeath(cid, deathList)
	if getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == AMULET then
		if isInArray({SKULL_RED, SKULL_BLACK, SKULL_WHITE, SKULL_NONE}, getCreatureSkullType(cid)) then
			doSetCreatureDropLoot(cid, false)
		end
	end
 
	return true
end
J. Dre's script, I only added ws and none to array.

It could also be done this way to ensure you don't lose with any skull including yellow and green.

LUA:
local AMULET = 2196 --Change to amulet ID.
function onPrepareDeath(cid, deathList)
	if getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == AMULET then
		if getCreatureSkullType(cid) <= 6 then
			doSetCreatureDropLoot(cid, false)
		end
	end
 
	return true
end
I am aware that 5 is the highest skulltype, that's why I chose 6 ^^. If it returns an error then just change the 6 to 5.
 
Last edited by a moderator:
BTW, I updated my posts...they work fine. He just needs to refresh the page and apply the changes.

Code:
Last edited by J.Dre; Today at 11:10.
 
Ty korrex that u edited

Lua Code:
local AMULET = 2196
function onPrepareDeath(cid, deathList)
if getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == AMULET then
if isInArray({SKULL_RED, SKULL_BLACK, SKULL_WHITE, SKULL_NONE}, getCreatureSkullType(cid)) then
doSetCreatureDropLoot(cid, false)
end
end

return true
end
J. Dre's script, I only added ws and none to array.
 
htSLp.png

Press that button ^^.
 
Back
Top