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

player die.

it works , but people only drop one thing now;/ like maybe helmet or something, u know how to fix so they can drop like 3 sometime 2 items some time like that?
 
function onLogin(cid)
local loss = getConfigValue('deathLostPercent')
if(loss ~= nil) then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
doPlayerSetLossPercent(cid, PLAYERLOSS_ITEMS, 100)
 
works fine for me. Make a test character and kill it a few times, you will see the same effects I do. My test character is level 390.
 
First of all, it's not a script; Furthermore, this problem is very easily sloved.

Code:
function onLogin(cid)
	local loss = getConfigValue('deathLostPercent')
	if(loss ~= nil) then
		doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
		doPlayerSetLossPercent(cid, PLAYERLOSS_ITEMS, 100)
	end

This is what it should look like. If you want it at a higher rate of item loss make "PLAYERLOSS_ITEMS, 100)" A higher number.
 
Back
Top