Req: Stop gaining tp after level 80 with level cap of 100

Hello together,

i am trying to make a new kind of fun server and first of all i want to set the level cap to 100. (No client crashes).

But some classes become much more overpowerd then the others, when the tp increases after level 80. So how can i stop it in the easiest way?

Easy way to stop gaining tp after level 80 is to modify this line https://github.com/TrinityCore/TrinityCore/blob/8fcfabe784797fea46e25428492d9070adda1dc9/src/server/game/Entities/Player/Player.cpp#L3139 like this :


if (level < 10 || level > 80)

if i think correctly. This need to be tested and is only a suggestion. Need more research for this

I believe that code change will cause level 81+ to have no talent points at all. I think https://github.com/TrinityCore/TrinityCore/blob/8fcfabe784797fea46e25428492d9070adda1dc9/src/server/game/Entities/Player/Player.cpp#L24623 might be a better place to limit the points allowed.

Ok, i have changed the code to this.

uint32 Player::CalculateTalentsPoints() const
{
uint32 base_talent = getLevel() < 10 ? 0 : (getLevel() < 80 ? getLevel() - 9 : 71); //71 = 80 - 9

if (getClass() != CLASS_DEATH_KNIGHT || GetMapId() != 609)
    return uint32(base_talent * sWorld->getRate(RATE_TALENT));

uint32 talentPointsForLevel = getLevel() < 56 ? 0 : (getLevel() < 80 ? getLevel() - 55 : 25); //25 = 80 - 55
talentPointsForLevel += m_questRewardTalentCount;

Code is compiling, test is coming soon /emoticons/default_wink.png

Tested: Its working. Ty /emoticons/default_wink.png