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

I need this script so fast possible! Rep+++ Please somebody help me!!!!!!!!

Status
Not open for further replies.

Printer

if Printer then print("LUA") end
Senator
Premium User
Joined
Dec 27, 2009
Messages
5,780
Solutions
31
Reaction score
2,299
Location
Sweden?
i have a war server i are level 9 and kill a level 8 dont get exprience please help me!


Rep+++
 
Last edited:
its still wierd i did test kill a level 9 with a level 10 its dont get exp!
:/
 
We're through with nearly 99% of all possibilities.

I'd like to say "Send me your whole server, I'll try it myself" but
that would violate alot of rules ^_^

Guess that's a fail then, can't help you further, sorry. <_<
 
Sorry, its either a bug in the server or something else is interfering with it. If you're gaining experience but not from lower level even when it's set, you might need a source edit or a custom script. You could always try using a 100% freshly installed server and test min/max level for experience which should work, then slowly add scripts from your server until it breaks.
 
Sorry, its either a bug in the server or something else is interfering with it. If you're gaining experience but not from lower level even when it's set, you might need a source edit or a custom script. You could always try using a 100% freshly installed server and test min/max level for experience which should work, then slowly add scripts from your server until it breaks.

i will test it but if i need a script can somebody fix it to me?
 
i hope that :/ i try with a new server its didnt work :/
 
player.cpp, just remove the bold red part n_n :
Code:
double Player::getGainedExperience(Creature* attacker) const
{
	if(!skillLoss)
		return 0;

	double rate = g_config.getDouble(ConfigManager::RATE_PVP_EXPERIENCE);
	if(rate <= 0)
		return 0;

	Player* attackerPlayer = attacker->getPlayer();
	if(!attackerPlayer || attackerPlayer == this)
		return 0;
[B][COLOR="Red"]
	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;[/COLOR][/B]

	/*
		Formula
		a = attackers level * 0.9
		b = victims level
		c = victims experience

		result = (1 - (a / b)) * 0.05 * c
		Not affected by special multipliers(!)
	*/
	uint32_t a = (uint32_t)std::floor(attackerLevel * 0.9), b = level;
	uint64_t c = getExperience();
	return (double)std::max((uint64_t)0, (uint64_t)std::floor(getDamageRatio(attacker)
		* std::max((double)0, ((double)(1 - (((double)a / b))))) * 0.05 * c)) * rate;
}
 
sorry but i not good on this things :/ but please can you tell me
 
lol :/ cant somebody fix the cryingdemons tfs 0.3.6 to me and upload it :/
 
Status
Not open for further replies.
Back
Top