Scrappy Coco
Member
- Joined
- Dec 27, 2014
- Messages
- 95
- Reaction score
- 17
I was looking for a source code to where if a player is level 150 and 130 kills not gain exp and if a 130 kills 300 wins too exp look around here and found this but not served .
No level difference restriction on kills
In players.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;
to:
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;
No level difference restriction on kills
In players.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;
to:
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;