• 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!

minLevelThresholdForKilledPlayer

LucasFerraz

Systems Analyst
Joined
Jun 10, 2010
Messages
2,858
Reaction score
96
Location
Brazil
OMG How to disable this? I tried to set "0" and "999999" but it's still don't works!

Lua:
minLevelThresholdForKilledPlayer = 0.9	
maxLevelThresholdForKilledPlayer = 1.1
 
edit src, and enjoy feeders on server

player.cpp
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;
it should be disabled if you set it to 0, don't know why it isn't
 

Similar threads

Back
Top