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

Aol forever charges

Orginal script by SpiderOT
I just removed some lines and edited some ids to make it works as a normal AOL that lasts forever :D

in ur items.xml change the normal aol to this
Code:
<item id="2173" article="an" name="Forever AOL">
        <attribute key="weight" value="660"/>
        <attribute key="slotType" value="necklace"/>
        <attribute key="charges" value="2"/>
        <attribute key="preventDrop" value="1"/>
    </item>

go to login.lua
and add
Code:
registerCreatureEvent(cid, "forever aol")
    registerCreatureEvent(cid, "charge amulet")

then in data/creaturescripts/creaturescripts.xml
Code:
<event type="preparedeath" name="forever aol" event="script" value="foreveraol.lua"/> 
    <event type="preparedeath" name="charge amulet" event="script" value="chargeamulet.lua"/>

in data\creaturescripts\scripts create foreveraol.lua
Code:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
    if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2173) then
        doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)
        doCreatureSay(cid, "Forever Amulet!", TALKTYPE_ORANGE_1)

    end
    return true
    end

and last script to make the amulets infinite
chargeamulet.lua
Code:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
  local amulet = getPlayerSlotItem(cid, CONST_SLOT_NECKLACE)
        if getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2173 then
            doChangeTypeItem(amulet.uid, amulet.type+1) 
                doSendMagicEffect(getCreaturePosition(cid), 39)
     end
    return true
    end

Rep++ :D
 
Last edited:
try this go

XML:
 items.xml

then add this :

Lua:
 <item id="2196" article="a" name="Forever AoL">
		<attribute key="weight" value="420"/>
		<attribute key="slotType" value="necklace"/>
		<attribute key="preventDrop" value="1"/>
	</item>

works perfectly 100%
 
Back
Top