• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

how to change death loss exp for players

Sigoles

Discord: @sigoles
Joined
Nov 20, 2015
Messages
1,209
Solutions
2
Reaction score
154
Just change deathLosePercent to something between 1 and 100.
For example:
deathLosePercent = 30
player after death will lost 30% of experience, if he is promoted 27%, if he also got 5 bless he will lost 22%.
 
Just change deathLosePercent to something between 1 and 100.
For example:
deathLosePercent = 30
player after death will lost 30% of experience, if he is promoted 27%, if he also got 5 bless he will lost 22%.

But I would like to change the percentage only to death with players and not monsters, would it have any way?
 
forgottenserver/player.cpp at master · otland/forgottenserver · GitHub
under this add:
Code:
if (lastHitPlayer) {
    expLoss *= 0.5; // 50%
}
got one error

3XAh2J_jTUmiSi15J9J6MA.png
 
Back
Top