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

Compiling Exp

Onizuka

Member
Joined
Jul 5, 2008
Messages
2,291
Reaction score
14
Lua:
	Player* attackerPlayer = attacker->getPlayer();
	if(!attackerPlayer || attackerPlayer == this)
		return 0;

	/*
		Formula
		c = victims experience

		result = 0.01 * c
		Not affected by special multipliers(!)
	*/
	uint64_t c = getExperience();
	return (double)std::max((uint64_t)0, (uint64_t)std::floor(getDamageRatio(attacker)
		* std::max((double)0, (double)0.01 * c))) * rate;
}

right now when a player kills a player he gets like 30-40% of the players level, when few people kill 1 guy, its shared even more.


But when i had 0.02, double player killed player and got 2-3 lvls

How can i make this so its not double but like you get 80% of exp not like 30%

So how can i higher this 0.01 to make it work better but not to high like few lvls.


Thanks, ;x


And if someone can come up with a good way to get this, ill pay him 15euro paypal ;x
 
tried it, but no luck with it. It seems like the higher number after 0.01, like 0.012 it just highers the exp for pvp
 
I you can it helps but not to understand well your problem:/

For this money I you can aser one formed from config.lua but not understand.
 
Back
Top