LucasFerraz
Systems Analyst
Do you know what is this?
It sets minimum and maximum level difference in PVP.
Example: If Killer (level 170) kill Victim (level 150). Killer will not receive experience.
Problem: This option in config.lua don't works.
Solution:
In player.cpp change:
to:
All credits to Cykotitan.
You can find it here:[Request]minLevelThresholdForKilledPlayer.
Lua:
minLevelThresholdForKilledPlayer = 0.9
maxLevelThresholdForKilledPlayer = 1.1
Example: If Killer (level 170) kill Victim (level 150). Killer will not receive experience.
Problem: This option in config.lua don't works.
Solution:
In player.cpp change:
Code:
double attackerLevel = (double)attackerPlayer->getLevel(), min = g_config.getDouble(
ConfigManager::EFP_MIN_THRESHOLD), max = g_config.getDouble(ConfigManager::EFP_MAX_THRESHOLD);
if((min > 0 && level < (uint32_t)std::floor(attackerLevel * min)) || (max > 0 &&
level > (uint32_t)std::floor(attackerLevel * max)))
return 0;
Code:
double attackerLevel = (double)attackerPlayer->getLevel(), max = g_config.getDouble(ConfigManager::EFP_MAX_THRESHOLD);
if(max > 0 && level > (uint32_t)std::floor(attackerLevel * max))
return 0;
All credits to Cykotitan.
You can find it here:[Request]minLevelThresholdForKilledPlayer.