Nevalopo
Demigod
Ok so im wondering how do i change this? Currently this is what i want:
Player 1 (10) Kills players 2 (10) And gains exp
When player 1 reaches level (12) He gains 0 exp from killing player 2 (10)
I want player 1 (12) to keep gaining exp from player 2 (10)
Where do i change this?
I found this in players.cpp:
Can anyone tell me the formula or what to do to make him keep getting exp from the level 10 when he is level 12?
Player 1 (10) Kills players 2 (10) And gains exp
When player 1 reaches level (12) He gains 0 exp from killing player 2 (10)
I want player 1 (12) to keep gaining exp from player 2 (10)
Where do i change this?
I found this in players.cpp:
Code:
if(!g_config.getBool(ConfigManager::EXPERIENCE_FROM_PLAYERS))
return 0;
Player* attackerPlayer = attacker->getPlayer();
if(!attackerPlayer || attackerPlayer == this || !skillLoss)
return 0;
uint32_t a = (uint32_t)std::floor(attackerPlayer->getLevel() * 0.9);
if(getLevel() >= a)
{
/*
Formula
a = attackers level * 0.9
b = victims level
c = victims experience
result = (1 - (a / b)) * 0.05 * c
*/
Can anyone tell me the formula or what to do to make him keep getting exp from the level 10 when he is level 12?