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

No dead bodies when death!

Imfreezing

Krossa Kapitalismen
Joined
Jun 7, 2012
Messages
1,009
Solutions
1
Reaction score
88
Location
Edron
Hello otland im running 8.60 0.4 r.3884, however
when someone dies on my server the body doesn't spawn or whatever he just disapears!
i have no errors in my console
Thanks alot

Imfreezing
 
Look for scripts with type death (function onDeath) in creaturescripts or mods and look if 1 of them doesn't have return true above the last end and add it.
 
Look for scripts with type death (function onDeath) in creaturescripts or mods and look if 1 of them doesn't have return true above the last end and add it.
I mean i have alot of them , with like monster die remove stone etc so i cant really determin whats for humans
Code:
function onDeath(cid, corpse, deathList)

local remove = {x=818, y=967, z=7}
local id = 1455
local remove1 = getTileItemById(remove, id)

if    doRemoveItem(remove1.uid, 1) then
    addEvent(doCreateItem, 10 * 1000, id, 1, {x=818,y=967,z=7})
    end
    end
 
Should also tab those scripts properly so you can see what's wrong later. :oops:
Code:
function onDeath(cid, corpse, deathList)
   local remove = {x=818, y=967, z=7}
   local id = 1455
   local remove1 = getTileItemById(remove, id)
   if doRemoveItem(remove1.uid, 1) then
     addEvent(doCreateItem, 10 * 1000, id, 1, {x=818,y=967,z=7})
   end
   return true
end
 
Back
Top