Jump to content

[Help] Making DeathKnights Start With 71Talentpoints


Guest hellrazor

Recommended Posts

Just try to make a quest for dk's only, with 46 talent points... It's more easy than other methods (in my opinion).

Here you have my quest from my server in case you need it:

REPLACE INTO `quest_template` (`entry`, `Method`, `ZoneOrSort`, `SkillOrClass`, `MinLevel`, `QuestLevel`, `Type`, `RequiredRaces`, `RequiredSkillValue`, `RepObjectiveFaction`, `RepObjectiveValue`, `RequiredMinRepFaction`, `RequiredMinRepValue`, `RequiredMaxRepFaction`, `RequiredMaxRepValue`, `SuggestedPlayers`, `LimitTime`, `QuestFlags`, `SpecialFlags`, `CharTitleId`, `PlayersSlain`, `BonusTalents`, `PrevQuestId`, `NextQuestId`, `ExclusiveGroup`, `NextQuestInChain`, `RewXPId`, `SrcItemId`, `SrcItemCount`, `SrcSpell`, `Title`, `Details`, `Objectives`, `OfferRewardText`, `RequestItemsText`, `EndText`, `CompletedText`, `ObjectiveText1`, `ObjectiveText2`, `ObjectiveText3`, `ObjectiveText4`, `ReqItemId1`, `ReqItemId2`, `ReqItemId3`, `ReqItemId4`, `ReqItemId5`, `ReqItemId6`, `ReqItemCount1`, `ReqItemCount2`, `ReqItemCount3`, `ReqItemCount4`, `ReqItemCount5`, `ReqItemCount6`, `ReqSourceId1`, `ReqSourceId2`, `ReqSourceId3`, `ReqSourceId4`, `ReqSourceCount1`, `ReqSourceCount2`, `ReqSourceCount3`, `ReqSourceCount4`, `ReqCreatureOrGOId1`, `ReqCreatureOrGOId2`, `ReqCreatureOrGOId3`, `ReqCreatureOrGOId4`, `ReqCreatureOrGOCount1`, `ReqCreatureOrGOCount2`, `ReqCreatureOrGOCount3`, `ReqCreatureOrGOCount4`, `ReqSpellCast1`, `ReqSpellCast2`, `ReqSpellCast3`, `ReqSpellCast4`, `RewChoiceItemId1`, `RewChoiceItemId2`, `RewChoiceItemId3`, `RewChoiceItemId4`, `RewChoiceItemId5`, `RewChoiceItemId6`, `RewChoiceItemCount1`, `RewChoiceItemCount2`, `RewChoiceItemCount3`, `RewChoiceItemCount4`, `RewChoiceItemCount5`, `RewChoiceItemCount6`, `RewItemId1`, `RewItemId2`, `RewItemId3`, `RewItemId4`, `RewItemCount1`, `RewItemCount2`, `RewItemCount3`, `RewItemCount4`, `RewRepFaction1`, `RewRepFaction2`, `RewRepFaction3`, `RewRepFaction4`, `RewRepFaction5`, `RewRepValueId1`, `RewRepValueId2`, `RewRepValueId3`, `RewRepValueId4`, `RewRepValueId5`, `RewRepValue1`, `RewRepValue2`, `RewRepValue3`, `RewRepValue4`, `RewRepValue5`, `RewHonorAddition`, `RewHonorMultiplier`, `RewOrReqMoney`, `RewMoneyMaxLevel`, `RewSpell`, `RewSpellCast`, `RewMailTemplateId`, `RewMailDelaySecs`, `PointMapId`, `PointX`, `PointY`, `PointOpt`, `DetailsEmote1`, `DetailsEmote2`, `DetailsEmote3`, `DetailsEmote4`, `DetailsEmoteDelay1`, `DetailsEmoteDelay2`, `DetailsEmoteDelay3`, `DetailsEmoteDelay4`, `IncompleteEmote`, `CompleteEmote`, `OfferRewardEmote1`, `OfferRewardEmote2`, `OfferRewardEmote3`, `OfferRewardEmote4`, `OfferRewardEmoteDelay1`, `OfferRewardEmoteDelay2`, `OfferRewardEmoteDelay3`, `OfferRewardEmoteDelay4`, `StartScript`, `CompleteScript`) VALUES
(70000, 2, 0, -6, 1, 80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46, 0, 0, 0, 0, 0, 0, 0, 0, 'Death Knight Talents', 'You have to complete this quest to receive the rest of the talent points you need.', 'Take the quest and give it back to me!', '', '', '', '', '', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);

Link to comment
Share on other sites

diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index e8a5b0c..f16fab1 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -20816,16 +20816,16 @@ uint32 Player::CalculateTalentsPoints() const
{
    uint32 base_talent = getLevel() < 10 ? 0 : getLevel()-9;

-    if(getClass() != CLASS_DEATH_KNIGHT)
+    /*if(getClass() != CLASS_DEATH_KNIGHT)
        return uint32(base_talent * sWorld.getConfig(CONFIG_FLOAT_RATE_TALENT));

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

    if(talentPointsForLevel > base_talent)
-        talentPointsForLevel = base_talent;
+        talentPointsForLevel = base_talent;*/

-    return uint32(talentPointsForLevel * sWorld.getConfig(CONFIG_FLOAT_RATE_TALENT));
+    return uint32(base_talent * sWorld.getConfig(CONFIG_FLOAT_RATE_TALENT));
}

bool Player::IsKnowHowFlyIn(uint32 mapid, uint32 zone) const

Link to comment
Share on other sites

diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index e8a5b0c..f16fab1 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -20816,16 +20816,16 @@ uint32 Player::CalculateTalentsPoints() const
{
    uint32 base_talent = getLevel() < 10 ? 0 : getLevel()-9;


-    if(getClass() != CLASS_DEATH_KNIGHT)
+    /*if(getClass() != CLASS_DEATH_KNIGHT)
        return uint32(base_talent * sWorld.getConfig(CONFIG_FLOAT_RATE_TALENT));

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

    if(talentPointsForLevel > base_talent)
-        talentPointsForLevel = base_talent;
+        talentPointsForLevel = base_talent;*/

-    return uint32(talentPointsForLevel * sWorld.getConfig(CONFIG_FLOAT_RATE_TALENT));
+    return uint32(base_talent * sWorld.getConfig(CONFIG_FLOAT_RATE_TALENT));
}

bool Player::IsKnowHowFlyIn(uint32 mapid, uint32 zone) const

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

i edit this line on the numbers or where i edit so they start 71?? or where i edit

Link to comment
Share on other sites

just add / * */ for don't check if player is DK

and fix typo edit

return uint32(talentPointsForLevel * sWorld.getConfig(CONFIG_FLOAT_RATE_TALENT));

to return uint32(base_talent * sWorld.getConfig(CONFIG_FLOAT_RATE_TALENT));

then All player start with 71 Talentpoints (player level - 9)

sorry for my english

Link to comment
Share on other sites

/* uint32 Player::CalculateTalentsPoints() const

{

uint32 base_talent = getLevel() < 10 ? 0 : getLevel()-9;

if(getClass() != CLASS_DEATH_KNIGHT)

return uint32(base_talent * sWorld.getConfig(CONFIG_FLOAT_RATE_TALENT));

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

talentPointsForLevel += m_questRewardTalentCount;

if(talentPointsForLevel > base_talent)

talentPointsForLevel = base_talent;

return uint32(talentPointsForLevel * sWorld.getConfig(CONFIG_FLOAT_RATE_TALENT));

} */ Like that or?

Link to comment
Share on other sites

/* uint32 Player::CalculateTalentsPoints() const

{

uint32 base_talent = getLevel() < 10 ? 0 : getLevel()-9;

if(getClass() != CLASS_DEATH_KNIGHT)

return uint32(base_talent * sWorld.getConfig(CONFIG_FLOAT_RATE_TALENT));

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

talentPointsForLevel += m_questRewardTalentCount;

if(talentPointsForLevel > base_talent)

talentPointsForLevel = base_talent;

return uint32(talentPointsForLevel * sWorld.getConfig(CONFIG_FLOAT_RATE_TALENT));

} */ Like that or?

Nope, do EXACTLY what Cristal posted

in a patch, a line with a - (minus) in front of it, gets removed...

a line with a + (plus) gets added

so

-          test
+          test2

replaces test with test2

hope you understand it now

Link to comment
Share on other sites

ok i did exactly what cristal did

and compiled

got this error 2>..\\..\\src\\game\\Player.cpp(12980) : warning C4146: unary minus operator applied to unsigned type, result still unsigned

2>..\\..\\src\\game\\Player.cpp(21155) : error C3861: 'getLevel': identifier not found

2>..\\..\\src\\game\\Player.cpp(21155) : error C3861: 'getLevel': identifier not found

2>..\\..\\src\\game\\Player.cpp(21158) : error C2059: syntax error : '-'

2>..\\..\\src\\game\\Player.cpp(21170) : error C2059: syntax error : '+'

2>..\\..\\src\\game\\Player.cpp(21171) : error C2059: syntax error : '}'

2>..\\..\\src\\game\\Player.cpp(21171) : error C2143: syntax error : missing ';' before '}'

2>..\\..\\src\\game\\Player.cpp(21171) : error C2059: syntax error : '}'

2>..\\..\\src\\game\\Player.cpp(21174) : error C2143: syntax error : missing ';' before '{'

2>..\\..\\src\\game\\Player.cpp(21174) : error C2447: '{' : missing function header (old-style formal list?)

Link to comment
Share on other sites

c\\game\\Player.cpp(12980) : warning C4146: unary minus operator applied to unsigned type, result still unsigned

2>..\\..\\src\\game\\Player.cpp(21159) : error C2059: syntax error : 'if'

2>..\\..\\src\\game\\Player.cpp(21170) : error C2059: syntax error : 'return'

getting 2syntax errors now :S i pulled from yours

Link to comment
Share on other sites

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