potinho
Advanced OT User
Hello everyone, everything good?
I'm facing a problem on my server. I want to reduce the EXP loss penalty when a player dies, but whatever field I change, it goes back to level 1 when it dies. I only changed config.lua and died without bless, it lost little, but when I put bless it returned level 1. If I change config.lua and login.lua, it returns level 1 in both scenarios. How do I reduce the EXP loss penalty?
I'm facing a problem on my server. I want to reduce the EXP loss penalty when a player dies, but whatever field I change, it goes back to level 1 when it dies. I only changed config.lua and died without bless, it lost little, but when I put bless it returned level 1. If I change config.lua and login.lua, it returns level 1 in both scenarios. How do I reduce the EXP loss penalty?
Lua:
deathLostPercent = 10
Lua:
local loss = getConfigValue('deathLostPercent')
if(loss ~= nil) then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
end