• 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 = Aol mess after death

breadmaker

New Member
Joined
Jul 16, 2010
Messages
160
Reaction score
3
Hello.
Anyone can make for me something like that:
If we have Amulet of Loss on Amulet place and we death the AoL changed to mess (id: 8378) after death (on amulet place).

Rep++
 
items.xml, search and remove red part:
Code:
    <item id="2173" article="an" name="amulet of loss">
        <attribute key="weight" value="420" />
        <attribute key="slotType" value="necklace" />
[COLOR=red]        <attribute key="charges" value="1" />
        <attribute key="preventDrop" value="1" />
[/COLOR]    </item>
creaturescripts.xml
XML:
<event type="death" name="dust" event="script" value="dust.lua"/>
creaturescripts/scripts/login.lua
LUA:
registerCreatureEvent(cid "dust")
creaturescripts/scripts/dust.lua
LUA:
local aol = 2173 --aol itemid
local new = 2148 --itemid of dust

function onDeath(cid, corpse, deathList)
    if isPlayer(cid) and getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == aol then
        doCreatureSetDropLoot(cid, false)
        doTransformItem(getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).uid, new, 1)
    end
    return true
end
^set itemid of dust at:
Code:
local new = 2148 --itemid of dust
 
Back
Top