<?xml version="1.0" encoding="UTF-8"?>
<creaturescripts>
<event type="login" name="PlayerLogin" event="script" value="login.lua"/>
<event type="joinchannel" name="GuildMotd" event="script" value="guildmotd.lua"/>
<event type="receivemail" name="Mail" event="script" value="mail.lua"/>
<event type="reportbug" name="SaveReportBug" script="reportbug.lua"/>
<event type="advance" name="AdvanceSave" event="script" value="advancesave.lua"/>
<event type="kill" name="TopFrags" event="script" value="topfrags.lua"/>
<event type="think" name="Idle" event="script" value="idle.lua"/>
<event type="think" name="SkullCheck" event="script" value="skullcheck.lua"/>
<event type="kill" name="BountyHunter" script="kill.lua"/>
<event type="death" name="Aol" event="script" value="aol.lua"/>
</creaturescripts>
<item id="2173" article="an" name="amulet of loss">
<attribute key="weight" value="420" />
<attribute key="slotType" value="necklace" />
<attribute key="showcharges" value="1" />
<attribute key="charges" value="1" />
<attribute key="preventDrop" value="1" />
</item>
<item id="2173" article="an" name="amulet of loss">
<attribute key="weight" value="420"/>
<attribute key="slotType" value="necklace"/>
<attribute key="charges" value="1"/>
<attribute key="preventDrop" value="1"/>
</item>
function onDeath(cid, corpse, killer)
local aol = getPlayerSlotItem(cid, 2)
if (aol.itemid == 2173) then
doRemoveItem(aol.uid, 1)
end
end
function onDeath(cid, corpse, lastHitKiller, mostDamageKiller)
if(config.deathListEnabled ~= TRUE) then
return
end
if getPlayerSlotItem(cid, 2).itemid == 2173 then
doPlayerRemoveItem(cid, 2173, 1)
end
[05/01/2011 11:00:19] [Error - LuaScriptInterface::loadFile] data/creaturescripts/scripts/aol.lua:7: 'end' expected (to close 'function' at line 1) near '<eof>'
[05/01/2011 11:00:19] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/aol.lua)
[05/01/2011 11:00:19] data/creaturescripts/scripts/aol.lua:7: 'end' expected (to close 'function' at line 1) near '<eof>'
function onDeath(cid, corpse, lastHitKiller, mostDamageKiller)
if(config.deathListEnabled ~= TRUE) then
if getPlayerSlotItem(cid, 2).itemid == 2173 then
doPlayerRemoveItem(cid, 2173, 1)
end
return
end
end
[05/01/2011 11:17:23] data/creaturescripts/scripts/aol.lua:2: attempt to index global 'config' (a nil value)
[05/01/2011 11:17:23] stack traceback:
[05/01/2011 11:17:23] data/creaturescripts/scripts/aol.lua:2: in function <data/creaturescripts/scripts/aol.lua:1>