@Config.lua:When players use have full bless they loose 0 experience how can I change that?
@Config.lua:
deathLosePercent = -1
If that is what you have you got some corrupted script.
where can I find that?If im not mistaken you have to change your source code in that case, since -1 is the lowest variable we use.
The function is: Player::getLostPercent()
So I should changeThe player.cpp file.
const int32_t deathLosePercent = g_config.getNumber(ConfigManager::DEATH_LOSE_PERCENT);
if (deathLosePercent != -1) {
int32_t lossPercent = deathLosePercent;
if (isPromoted()) {
lossPercent -= 3;
}
const int32_t deathLosePercent = g_config.getNumber(ConfigManager::DEATH_LOSE_PERCENT);
if (deathLosePercent != -1) {
int32_t lossPercent = deathLosePercent;
if (isPromoted()) {
lossPercent -= 1.5;
}
So I should change
PHP:const int32_t deathLosePercent = g_config.getNumber(ConfigManager::DEATH_LOSE_PERCENT); if (deathLosePercent != -1) { int32_t lossPercent = deathLosePercent; if (isPromoted()) { lossPercent -= 3; }
to
PHP:const int32_t deathLosePercent = g_config.getNumber(ConfigManager::DEATH_LOSE_PERCENT); if (deathLosePercent != -1) { int32_t lossPercent = deathLosePercent; if (isPromoted()) { lossPercent -= 1.5; }
Im not sure, someone who knows more about those values can probably help you out.
Im new here so I do not rlly know who to ask do you know someone that can help me further?
Thx btw you already helped me alot!
Just exp skills are finedo you want it to be explicit for exp or for all type of skill loss?
uint64_t expLoss = (uint64_t)(experience * deathLossPercent);
uint64_t expLoss = (uint64_t)(experience * deathLossPercent / 2);
uint64_t expLoss = 0;
let's test it another way, because I'm pretty sure it's the right place
change it to:
Code:uint64_t expLoss = 0;
if you still loose exp then there is something wrong on your end.
I do not understand why do I have to compile it? Because now everything is working fine except for the exp lossI hope you are aware of the fact that you need to compile the server sources from new, when you make changes in them, in order to get a new executable.
If not http://otland.net/threads/compiling...-32-bits-pics-and-lots-of-explanation.204532/ explains how to compile.