Jump to content

Recommended Posts

Posted
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?

  • 39 years later...
Posted

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?

Posted

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).

Posted
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.

Posted

After doing the update, you've completed the quest right? (btw, if it's because of the rev you've put there, you should have a message in the mangos window... check and see ;))

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