Jump to content

Which code do I modify to have deathknights receive talent points like other class?


Recommended Posts

That thread gave me absolutely no answers to my question.

I'm not asking why DK's have no talent points, I'm asking how to change the Mangos code to have them receive talent points like every other class based on their level, ie. they would start with 46 talent points at lvl 55.

Link to comment
Share on other sites

player.cpp and CalculateTalentsPoints

found it through http://github.com/mangos/mangos/commit/b6098bbcc4f348634c25cd0e3c54b0fb8e696811

but i don't know if this function will cover all cases - maybe you search in the whole code for CLASS_DEATH_KNIGHT or RATE_TALENT

edit: http://getmangos.eu/community/viewtopic.php?id=8752

Wow thank you :)

So if I'm reading that right, all I need to do is comment out:

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

[b]    if(getClass() != CLASS_DEATH_KNIGHT)[/b]
       return uint32(base_talent * sWorld.getRate(RATE_TALENT));

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

   if(talentPointsForLevel > base_talent)
       talentPointsForLevel = base_talent;

   uint32(talentPointsForLevel * sWorld.getRate(RATE_TALENT));
}

for the Deathknight class to get talent points like every other?

Link to comment
Share on other sites

  • 39 years later...

With many of the deathknight quests broken, making a DK is basically impossible now, due to them only receiving talent points through those quests.

I was wondering where I could find the code (in player.cpp perhaps?) that I could comment out to have that class automatically receive all their talent points based on their level like all other classes?

Link to comment
Share on other sites

You might want to put this query on your db:

-- Prevent DK from getting Extra Talent Point
UPDATE quest_template SET BonusTalents=0 WHERE BonusTalents>0;
-- In Service of the lich king give all talent point
UPDATE quest_template SET BonusTalents=46  WHERE entry=12593;

This makes the DK have all its talent points when he completes the first quest (In Service of the lich king).

Link to comment
Share on other sites

You might want to put this query on your db:

-- Prevent DK from getting Extra Talent Point
UPDATE quest_template SET BonusTalents=0 WHERE BonusTalents>0;
-- In Service of the lich king give all talent point
UPDATE quest_template SET BonusTalents=46  WHERE entry=12593;

This makes the DK have all its talent points when he completes the first quest (In Service of the lich king).

Hmm I just tested that and I'm sorry to say it didn't work, it didn't give me any extra talent points.

Perhaps because of this?

[8101] Prevent use talents as quest rewards or spell_learn_spell learned

spells.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use