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

First items cancel if has aol

Nightimarez

New Member
Joined
Jul 24, 2008
Messages
287
Reaction score
2
Ok so I have this war server that deletes your old items and gives you new items when you login. I'd like to change it around so if you have an AOL, it will cancel the script.

PHP:
local commonItems = {
	-- ITEMS ALL VOCS RECEIVE
	{itemid=2420, count=1}, -- machete
	{itemid=2175, count=1}, -- spellbook
	{itemid=5710, count=1}, -- shovel
	{itemid=2120, count=1}, -- rope
	{itemid=2789, count=100}, -- brown mushrooms
	{itemid=2305, count=1}, -- fire bomb rune
	{itemid=2261, count=1}, -- destroy field rune
}
 
local firstItems = {
{ -- SORC ITEMS
	{itemid=2171, count=1}, -- platinum amulet
	{itemid=6531, count=1}, -- santa hat
	{itemid=8867, count=1}, -- dragon robe
	{itemid=8921, count=1}, -- wand of draconia
	{itemid=8900, count=1}, -- spellbook of enlightenment
	{itemid=7891, count=1}, -- magma boots
	{itemid=2648, count=1}, -- chain legs 
	{itemid=2123, count=1}, -- ring of the sky
 
	{itemid=2000, count=1}, -- BP
	{itemid=2361, count=1}, -- frozen starlight
	{itemid=2268, count=1}, -- sd
	{itemid=2273, count=1}, -- uh
	{itemid=7590, count=1}, -- gmp
	{itemid=2293, count=1}, -- mw
},
{ -- DRUID ITEMS
	{itemid=2171, count=1}, -- platinum amulet
	{itemid=10569, count=1}, -- witch hat
	{itemid=8865, count=1}, -- dark lords cape
	{itemid=8911, count=1}, -- northwind rod
	{itemid=8900, count=1}, -- spellbook of enlightenment
	{itemid=2468, count=1}, -- studded legs
	{itemid=7457, count=1}, -- fur boots
	{itemid=2123, count=1}, -- ring of the sky
 
	{itemid=2002, count=1}, -- BP
	{itemid=2361, count=1}, -- frozen starlight
	{itemid=2268, count=1}, -- sd
	{itemid=2273, count=1}, -- uh
	{itemid=7590, count=1}, -- gmp
	{itemid=2293, count=1}, -- mw
	{itemid=2269, count=1}, -- wg
	{itemid=2278, count=1}, -- para
},
{ -- PALADIN ITEMS
	{itemid=2171, count=1}, -- platinum amulet
	{itemid=3972, count=1}, -- beholder helmet
	{itemid=8880, count=1}, -- swamplair armor
	{itemid=2518, count=1}, -- beholder shield
	{itemid=8857, count=1}, -- silkweaver bow
	{itemid=2504, count=1}, -- dwarven legs
	{itemid=3982, count=1}, -- crocodile boots
	{itemid=2123, count=1}, -- ring of the sky
 
	{itemid=3940, count=1}, -- BP
	{itemid=2361, count=1}, -- frozen starlight
	{itemid=2268, count=1}, -- sd
	{itemid=2273, count=1}, -- uh
	{itemid=8472, count=1}, -- gsp
	{itemid=2293, count=1}, -- mw
},
{ -- KNIGHT ITEMS
	{itemid=2171, count=1}, -- platinum amulet
	{itemid=5741, count=1}, -- skull helmet
	{itemid=2472, count=1}, -- magic plate armor
	{itemid=2514, count=1}, -- mastermind shield
	{itemid=7419, count=1}, -- dreaded cleaver
	{itemid=2647, count=1}, -- plate legs
	{itemid=2641, count=1}, -- traper boots
	{itemid=2123, count=1}, -- ring of the sky
 
	{itemid=2003, count=1}, -- BP
	{itemid=2361, count=1}, -- frozen starlight
	{itemid=7620, count=1}, -- mp
	{itemid=8473, count=1}, -- uhp
	{itemid=2273, count=1}, -- uh
	{itemid=2293, count=1}, -- mw
}
}
 
for _, items in ipairs(firstItems) do
	for _, item in ipairs(commonItems) do
		table.insert(items, item)
	end
end
 
function onLogin(cid)
	if getPlayerGroupId(cid) < 2 then
		local hasReceivedFirstItems = getPlayerStorageValue(cid, 67708)
 
		if hasReceivedFirstItems ~= 1 then
		--[[local backpack = ]]doPlayerAddItem(cid, 1988, 1)
			for i = 1, 10 do
				local v = getPlayerSlotItem(cid, i).uid
				if v > 0 then
					doRemoveItem(v)
				end
			end
 
			local giveItems = firstItems[getPlayerVocation(cid)]
 
			if giveItems ~= nil then
				for _, v in ipairs(giveItems) do
				--doAddContainerItem(backpack, v.itemid, v.count or 1)
				doPlayerAddItem(cid, v.itemid, v.count or 1)
				end
 
				doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Welcome to Thais War!")
			end
		end
	end
	return true
end


Heres this formula, if it helps..
LUA:
if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2173) then

Theres also some useless parts in the script. Heres an example,
LUA:
-[[local backpack = ]]doPlayerAddItem(cid, 1988, 1)
 
Last edited:
Try this :)

LUA:
local commonItems = {
    -- ITEMS ALL VOCS RECEIVE
    {itemid=2420, count=1}, -- machete
    {itemid=2175, count=1}, -- spellbook
    {itemid=5710, count=1}, -- shovel
    {itemid=2120, count=1}, -- rope
    {itemid=2789, count=100}, -- brown mushrooms
    {itemid=2305, count=1}, -- fire bomb rune
    {itemid=2261, count=1}, -- destroy field rune
}
 
local firstItems = {
{ -- SORC ITEMS
    {itemid=2171, count=1}, -- platinum amulet
    {itemid=6531, count=1}, -- santa hat
    {itemid=8867, count=1}, -- dragon robe
    {itemid=8921, count=1}, -- wand of draconia
    {itemid=8900, count=1}, -- spellbook of enlightenment
    {itemid=7891, count=1}, -- magma boots
    {itemid=2648, count=1}, -- chain legs 
    {itemid=2123, count=1}, -- ring of the sky
 
    {itemid=2000, count=1}, -- BP
    {itemid=2361, count=1}, -- frozen starlight
    {itemid=2268, count=1}, -- sd
    {itemid=2273, count=1}, -- uh
    {itemid=7590, count=1}, -- gmp
    {itemid=2293, count=1}, -- mw
},
{ -- DRUID ITEMS
    {itemid=2171, count=1}, -- platinum amulet
    {itemid=10569, count=1}, -- witch hat
    {itemid=8865, count=1}, -- dark lords cape
    {itemid=8911, count=1}, -- northwind rod
    {itemid=8900, count=1}, -- spellbook of enlightenment
    {itemid=2468, count=1}, -- studded legs
    {itemid=7457, count=1}, -- fur boots
    {itemid=2123, count=1}, -- ring of the sky
 
    {itemid=2002, count=1}, -- BP
    {itemid=2361, count=1}, -- frozen starlight
    {itemid=2268, count=1}, -- sd
    {itemid=2273, count=1}, -- uh
    {itemid=7590, count=1}, -- gmp
    {itemid=2293, count=1}, -- mw
    {itemid=2269, count=1}, -- wg
    {itemid=2278, count=1}, -- para
},
{ -- PALADIN ITEMS
    {itemid=2171, count=1}, -- platinum amulet
    {itemid=3972, count=1}, -- beholder helmet
    {itemid=8880, count=1}, -- swamplair armor
    {itemid=2518, count=1}, -- beholder shield
    {itemid=8857, count=1}, -- silkweaver bow
    {itemid=2504, count=1}, -- dwarven legs
    {itemid=3982, count=1}, -- crocodile boots
    {itemid=2123, count=1}, -- ring of the sky
 
    {itemid=3940, count=1}, -- BP
    {itemid=2361, count=1}, -- frozen starlight
    {itemid=2268, count=1}, -- sd
    {itemid=2273, count=1}, -- uh
    {itemid=8472, count=1}, -- gsp
    {itemid=2293, count=1}, -- mw
},
{ -- KNIGHT ITEMS
    {itemid=2171, count=1}, -- platinum amulet
    {itemid=5741, count=1}, -- skull helmet
    {itemid=2472, count=1}, -- magic plate armor
    {itemid=2514, count=1}, -- mastermind shield
    {itemid=7419, count=1}, -- dreaded cleaver
    {itemid=2647, count=1}, -- plate legs
    {itemid=2641, count=1}, -- traper boots
    {itemid=2123, count=1}, -- ring of the sky
 
    {itemid=2003, count=1}, -- BP
    {itemid=2361, count=1}, -- frozen starlight
    {itemid=7620, count=1}, -- mp
    {itemid=8473, count=1}, -- uhp
    {itemid=2273, count=1}, -- uh
    {itemid=2293, count=1}, -- mw
}
}
 
for _, items in ipairs(firstItems) do
    for _, item in ipairs(commonItems) do
        table.insert(items, item)
    end
end
 
function onLogin(cid)
    if getPlayerGroupId(cid) < 2 then
        local hasReceivedFirstItems = getPlayerStorageValue(cid, 67708)
 
        if hasReceivedFirstItems ~= 1 then
        --[[local backpack = ]]doPlayerAddItem(cid, 1988, 1)
            for i = 1, 10 do
                local v = getPlayerSlotItem(cid, i).uid
                if v > 0 then
                    doRemoveItem(v)
                end
            end
 
            local giveItems = firstItems[getPlayerVocation(cid)]
 
            if giveItems ~= nil then
                for _, v in ipairs(giveItems) do
                --doAddContainerItem(backpack, v.itemid, v.count or 1)
                doPlayerAddItem(cid, v.itemid, v.count or 1)
                end
 
                doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Welcome to Thais War!")
          
              if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2173) then
                doPlayerSendCancel(cid)
                end
            end
        end
    end
    return true
end
 
LUA:
local commonItems = {
	-- ITEMS ALL VOCS RECEIVE
	{itemid=2420, count=1}, -- machete
	{itemid=2175, count=1}, -- spellbook
	{itemid=5710, count=1}, -- shovel
	{itemid=2120, count=1}, -- rope
	{itemid=2789, count=100}, -- brown mushrooms
	{itemid=2305, count=1}, -- fire bomb rune
	{itemid=2261, count=1}, -- destroy field rune
}

local firstItems = {
{ -- SORC ITEMS
	{itemid=2171, count=1}, -- platinum amulet
	{itemid=6531, count=1}, -- santa hat
	{itemid=8867, count=1}, -- dragon robe
	{itemid=8921, count=1}, -- wand of draconia
	{itemid=8900, count=1}, -- spellbook of enlightenment
	{itemid=7891, count=1}, -- magma boots
	{itemid=2648, count=1}, -- chain legs 
	{itemid=2123, count=1}, -- ring of the sky

	{itemid=2000, count=1}, -- BP
	{itemid=2361, count=1}, -- frozen starlight
	{itemid=2268, count=1}, -- sd
	{itemid=2273, count=1}, -- uh
	{itemid=7590, count=1}, -- gmp
	{itemid=2293, count=1}, -- mw
},
{ -- DRUID ITEMS
	{itemid=2171, count=1}, -- platinum amulet
	{itemid=10569, count=1}, -- witch hat
	{itemid=8865, count=1}, -- dark lords cape
	{itemid=8911, count=1}, -- northwind rod
	{itemid=8900, count=1}, -- spellbook of enlightenment
	{itemid=2468, count=1}, -- studded legs
	{itemid=7457, count=1}, -- fur boots
	{itemid=2123, count=1}, -- ring of the sky

	{itemid=2002, count=1}, -- BP
	{itemid=2361, count=1}, -- frozen starlight
	{itemid=2268, count=1}, -- sd
	{itemid=2273, count=1}, -- uh
	{itemid=7590, count=1}, -- gmp
	{itemid=2293, count=1}, -- mw
	{itemid=2269, count=1}, -- wg
	{itemid=2278, count=1}, -- para
},
{ -- PALADIN ITEMS
	{itemid=2171, count=1}, -- platinum amulet
	{itemid=3972, count=1}, -- beholder helmet
	{itemid=8880, count=1}, -- swamplair armor
	{itemid=2518, count=1}, -- beholder shield
	{itemid=8857, count=1}, -- silkweaver bow
	{itemid=2504, count=1}, -- dwarven legs
	{itemid=3982, count=1}, -- crocodile boots
	{itemid=2123, count=1}, -- ring of the sky

	{itemid=3940, count=1}, -- BP
	{itemid=2361, count=1}, -- frozen starlight
	{itemid=2268, count=1}, -- sd
	{itemid=2273, count=1}, -- uh
	{itemid=8472, count=1}, -- gsp
	{itemid=2293, count=1}, -- mw
},
{ -- KNIGHT ITEMS
	{itemid=2171, count=1}, -- platinum amulet
	{itemid=5741, count=1}, -- skull helmet
	{itemid=2472, count=1}, -- magic plate armor
	{itemid=2514, count=1}, -- mastermind shield
	{itemid=7419, count=1}, -- dreaded cleaver
	{itemid=2647, count=1}, -- plate legs
	{itemid=2641, count=1}, -- traper boots
	{itemid=2123, count=1}, -- ring of the sky

	{itemid=2003, count=1}, -- BP
	{itemid=2361, count=1}, -- frozen starlight
	{itemid=7620, count=1}, -- mp
	{itemid=8473, count=1}, -- uhp
	{itemid=2273, count=1}, -- uh
	{itemid=2293, count=1}, -- mw
}
}

for _, items in ipairs(firstItems) do
	for _, item in ipairs(commonItems) do
		table.insert(items, item)
	end
end

function onLogin(cid)
	if getPlayerGroupId(cid) < 2 and getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid ~= 2173 then
		local hasReceivedFirstItems = getPlayerStorageValue(cid, 67708)

		if hasReceivedFirstItems ~= 1 then
		--[[local backpack = ]]doPlayerAddItem(cid, 1988, 1)
			for i = 1, 10 do
				local v = getPlayerSlotItem(cid, i).uid
				if v > 0 then
					doRemoveItem(v)
				end
			end

			local giveItems = firstItems[getPlayerVocation(cid)]

			if giveItems ~= nil then
				for _, v in ipairs(giveItems) do
				--doAddContainerItem(backpack, v.itemid, v.count or 1)
				doPlayerAddItem(cid, v.itemid, v.count or 1)
				end

				doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Welcome to Thais War!")
			end
		end
	end
	return true
end
 
Cyko Fail :)

LUA:
local commonItems = {
	-- ITEMS ALL VOCS RECEIVE
	{itemid=2420, count=1}, -- machete
	{itemid=2175, count=1}, -- spellbook
	{itemid=5710, count=1}, -- shovel
	{itemid=2120, count=1}, -- rope
	{itemid=2789, count=100}, -- brown mushrooms
	{itemid=2305, count=1}, -- fire bomb rune
	{itemid=2261, count=1}, -- destroy field rune
}

local firstItems = {
{ -- SORC ITEMS
	{itemid=2171, count=1}, -- platinum amulet
	{itemid=6531, count=1}, -- santa hat
	{itemid=8867, count=1}, -- dragon robe
	{itemid=8921, count=1}, -- wand of draconia
	{itemid=8900, count=1}, -- spellbook of enlightenment
	{itemid=7891, count=1}, -- magma boots
	{itemid=2648, count=1}, -- chain legs 
	{itemid=2123, count=1}, -- ring of the sky

	{itemid=2000, count=1}, -- BP
	{itemid=2361, count=1}, -- frozen starlight
	{itemid=2268, count=1}, -- sd
	{itemid=2273, count=1}, -- uh
	{itemid=7590, count=1}, -- gmp
	{itemid=2293, count=1}, -- mw
},
{ -- DRUID ITEMS
	{itemid=2171, count=1}, -- platinum amulet
	{itemid=10569, count=1}, -- witch hat
	{itemid=8865, count=1}, -- dark lords cape
	{itemid=8911, count=1}, -- northwind rod
	{itemid=8900, count=1}, -- spellbook of enlightenment
	{itemid=2468, count=1}, -- studded legs
	{itemid=7457, count=1}, -- fur boots
	{itemid=2123, count=1}, -- ring of the sky

	{itemid=2002, count=1}, -- BP
	{itemid=2361, count=1}, -- frozen starlight
	{itemid=2268, count=1}, -- sd
	{itemid=2273, count=1}, -- uh
	{itemid=7590, count=1}, -- gmp
	{itemid=2293, count=1}, -- mw
	{itemid=2269, count=1}, -- wg
	{itemid=2278, count=1}, -- para
},
{ -- PALADIN ITEMS
	{itemid=2171, count=1}, -- platinum amulet
	{itemid=3972, count=1}, -- beholder helmet
	{itemid=8880, count=1}, -- swamplair armor
	{itemid=2518, count=1}, -- beholder shield
	{itemid=8857, count=1}, -- silkweaver bow
	{itemid=2504, count=1}, -- dwarven legs
	{itemid=3982, count=1}, -- crocodile boots
	{itemid=2123, count=1}, -- ring of the sky

	{itemid=3940, count=1}, -- BP
	{itemid=2361, count=1}, -- frozen starlight
	{itemid=2268, count=1}, -- sd
	{itemid=2273, count=1}, -- uh
	{itemid=8472, count=1}, -- gsp
	{itemid=2293, count=1}, -- mw
},
{ -- KNIGHT ITEMS
	{itemid=2171, count=1}, -- platinum amulet
	{itemid=5741, count=1}, -- skull helmet
	{itemid=2472, count=1}, -- magic plate armor
	{itemid=2514, count=1}, -- mastermind shield
	{itemid=7419, count=1}, -- dreaded cleaver
	{itemid=2647, count=1}, -- plate legs
	{itemid=2641, count=1}, -- traper boots
	{itemid=2123, count=1}, -- ring of the sky

	{itemid=2003, count=1}, -- BP
	{itemid=2361, count=1}, -- frozen starlight
	{itemid=7620, count=1}, -- mp
	{itemid=8473, count=1}, -- uhp
	{itemid=2273, count=1}, -- uh
	{itemid=2293, count=1}, -- mw
}
}

for _, items in ipairs(firstItems) do
	for _, item in ipairs(commonItems) do
		table.insert(items, item)
	end
end

function onLogin(cid)
	if getPlayerGroupId(cid) < 2 and getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid ~= 2173 then
		local hasReceivedFirstItems = getPlayerStorageValue(cid, 67708)

		if hasReceivedFirstItems ~= 1 then
		--[[local backpack = ]]doPlayerAddItem(cid, 1988, 1)
			for i = 1, 10 do
				local v = getPlayerSlotItem(cid, i).uid
				if v > 0 then
					doRemoveItem(v)
				end
			end

			local giveItems = firstItems[getPlayerVocation(cid)]

			if giveItems ~= nil then
				for _, v in ipairs(giveItems) do
				--doAddContainerItem(backpack, v.itemid, v.count or 1)
				doPlayerAddItem(cid, v.itemid, v.count or 1)
				end

				doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Welcome to Thais War!")
			end
		end
	end
	return true
end


You said, if he has a bronze amulet :)
Fixed:

LUA:
local commonItems = {
	-- ITEMS ALL VOCS RECEIVE
	{itemid=2420, count=1}, -- machete
	{itemid=2175, count=1}, -- spellbook
	{itemid=5710, count=1}, -- shovel
	{itemid=2120, count=1}, -- rope
	{itemid=2789, count=100}, -- brown mushrooms
	{itemid=2305, count=1}, -- fire bomb rune
	{itemid=2261, count=1}, -- destroy field rune
}
 
local firstItems = {
{ -- SORC ITEMS
	{itemid=2171, count=1}, -- platinum amulet
	{itemid=6531, count=1}, -- santa hat
	{itemid=8867, count=1}, -- dragon robe
	{itemid=8921, count=1}, -- wand of draconia
	{itemid=8900, count=1}, -- spellbook of enlightenment
	{itemid=7891, count=1}, -- magma boots
	{itemid=2648, count=1}, -- chain legs 
	{itemid=2123, count=1}, -- ring of the sky
 
	{itemid=2000, count=1}, -- BP
	{itemid=2361, count=1}, -- frozen starlight
	{itemid=2268, count=1}, -- sd
	{itemid=2273, count=1}, -- uh
	{itemid=7590, count=1}, -- gmp
	{itemid=2293, count=1}, -- mw
},
{ -- DRUID ITEMS
	{itemid=2171, count=1}, -- platinum amulet
	{itemid=10569, count=1}, -- witch hat
	{itemid=8865, count=1}, -- dark lords cape
	{itemid=8911, count=1}, -- northwind rod
	{itemid=8900, count=1}, -- spellbook of enlightenment
	{itemid=2468, count=1}, -- studded legs
	{itemid=7457, count=1}, -- fur boots
	{itemid=2123, count=1}, -- ring of the sky
 
	{itemid=2002, count=1}, -- BP
	{itemid=2361, count=1}, -- frozen starlight
	{itemid=2268, count=1}, -- sd
	{itemid=2273, count=1}, -- uh
	{itemid=7590, count=1}, -- gmp
	{itemid=2293, count=1}, -- mw
	{itemid=2269, count=1}, -- wg
	{itemid=2278, count=1}, -- para
},
{ -- PALADIN ITEMS
	{itemid=2171, count=1}, -- platinum amulet
	{itemid=3972, count=1}, -- beholder helmet
	{itemid=8880, count=1}, -- swamplair armor
	{itemid=2518, count=1}, -- beholder shield
	{itemid=8857, count=1}, -- silkweaver bow
	{itemid=2504, count=1}, -- dwarven legs
	{itemid=3982, count=1}, -- crocodile boots
	{itemid=2123, count=1}, -- ring of the sky
 
	{itemid=3940, count=1}, -- BP
	{itemid=2361, count=1}, -- frozen starlight
	{itemid=2268, count=1}, -- sd
	{itemid=2273, count=1}, -- uh
	{itemid=8472, count=1}, -- gsp
	{itemid=2293, count=1}, -- mw
},
{ -- KNIGHT ITEMS
	{itemid=2171, count=1}, -- platinum amulet
	{itemid=5741, count=1}, -- skull helmet
	{itemid=2472, count=1}, -- magic plate armor
	{itemid=2514, count=1}, -- mastermind shield
	{itemid=7419, count=1}, -- dreaded cleaver
	{itemid=2647, count=1}, -- plate legs
	{itemid=2641, count=1}, -- traper boots
	{itemid=2123, count=1}, -- ring of the sky
 
	{itemid=2003, count=1}, -- BP
	{itemid=2361, count=1}, -- frozen starlight
	{itemid=7620, count=1}, -- mp
	{itemid=8473, count=1}, -- uhp
	{itemid=2273, count=1}, -- uh
	{itemid=2293, count=1}, -- mw
}
}
 
for _, items in ipairs(firstItems) do
	for _, item in ipairs(commonItems) do
		table.insert(items, item)
	end
end
 
function onLogin(cid)
	if getPlayerGroupId(cid) < 2 and getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid ~= 2173 then
		local hasReceivedFirstItems = getPlayerStorageValue(cid, 67708)
 
		if hasReceivedFirstItems ~= 1 then
		--[[local backpack = ]]doPlayerAddItem(cid, 1988, 1)
			for i = 1, 10 do
				local v = getPlayerSlotItem(cid, i).uid
				if v > 0 then
					doRemoveItem(v)
				end
			end
 
			local giveItems = firstItems[getPlayerVocation(cid)]
 
			if giveItems ~= nil then
				for _, v in ipairs(giveItems) do
				--doAddContainerItem(backpack, v.itemid, v.count or 1)
				doPlayerAddItem(cid, v.itemid, v.count or 1)
				end
 
				doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Welcome to Thais War!")
			end
		end
	end
	return true
end
 
Thank you, could you add this in it. Since the server is pvp enforced, the amulet doesn't prevent loss and doesn't delete itself. And I think the script is functioning on login so it should delete the aol after you login.
LUA:
doCreatureSetDropLoot(cid, false)
doPlayerRemoveItem(cid, 2173, 1)
 
Back
Top