• 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 item loss on death

Dawg

Member
Joined
Mar 23, 2014
Messages
180
Reaction score
22
Hello.
Is there a way I can make it so you don't lose items on death, even without using an aol? I'm using Mystic Spirit 9.80-9.86 and not sure where I would put this in...
 
You can use doSetCreatureDropLoot.
Code:
function onPrepareDeath(cid, killer)
     return doSetCreatureDropLoot(cid, false)
end
Or add in it login.lua.
 
In config.lua? You mean login.lua?
Post how you added it.

You can also add this creaturescript with type preparedeath and register the name in login.lua.
Code:
function onPrepareDeath(cid, killer)
      return doSetCreatureDropLoot(cid, false)
end
 
Yes, that's exactly how I put it down. Copy and pasted. And yes, I meant I put in in login.lua. Still, I lose items.
 
You can add this under function onLogin.
Code:
doSetCreatureDropLoot(cid, false)

Or this as creaturescript with type preparedeath, so that will be a new script and you have to add a new line in creaturescripts.xml and register the name in login.lua.
Code:
function onPrepareDeath(cid, killer)
     return doSetCreatureDropLoot(cid, false)
end
 
Back
Top