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

Problem with lose items after dead

squidy

Member
Joined
May 18, 2009
Messages
508
Reaction score
23
Location
Gorzów Wielkopolski
Hello, i need to do one thing:

after dead player can't lose anything.
I set loss_items and loss_containers in samples in mysql db, loss_items is ok, but loss_containers nope. Still is "100".

If somebody can help me, please! It's very important.
I will give REP++

Ps. Sorry for bad english
 
Last edited:
Try this:
LUA:
function onPrepareDeath(cid, killer)
    if getPlayerItemCount(cid, 2196) >= 1 then
        doSetCreatureDropLoot(cid, 0)
    end
end
 
Back
Top