function onLogin(cid)
local loss = getConfigValue('deathLostPercent')
if(loss ~= nil) then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
end
Goto creaturescripts folder then open your login.lua look for something like whats below and edit the percentage. Not 100% sure if this is correct but its worth a shot.
Code:function onLogin(cid) local loss = getConfigValue('deathLostPercent') if(loss ~= nil) then doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10) end
In the data folder it may be beacuse your using xml server... It's been awhile