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

Windows When player dies.. there is no dead human on the ground.. why where is it?

ziomek14b

New Member
Joined
Dec 26, 2007
Messages
98
Reaction score
0
When player dies.. there is no dead human on the ground.. why where is it? help me
and i got most online/no lifers table and its not counting time.. why
 
Last edited:
Maybe the script of the Demon Oak bugged the corpse, check you login.lua (creaturescript) and delete the line (Demon Oak)

or maybe other script onKill or onDeath or onPreparetoDeath
 
yes
<?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>
 
dont work... it only works when i delete aol from creaturescripts.xml but when i delete aol.. aol dont remove after death... ;/
 
Go to items.xml and check if this correctly as it comes out here:

<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>
 
mine is like this
<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

replace with this

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
 
and after now its showing..
[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>'
 
likuid...
i changed and when i die now with aol its still not losing aol and error showing in my console..
[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>
 
Back
Top