Skip to content

Commit

Permalink
Update to set ammount of gold after skip
Browse files Browse the repository at this point in the history
Update to change money ammount of new DK's to "StartHeroicPlayerMoney" in Worldserver.conf.
  • Loading branch information
Teflonbear committed Oct 25, 2023
1 parent dec841d commit ca81709
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/SkipDK.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ class AzerothCore_skip_deathknight : public PlayerScript
}
if (sConfigMgr->GetOption<bool>("DeleteGold.Deathknight.Optional.Enable", true))
{
player->SetMoney(1);
int DKM = sConfigMgr->GetOption<int32>("StartHeroicPlayerMoney", 2000);
player->SetMoney(DKM);
}
}
};
Expand Down Expand Up @@ -225,7 +226,8 @@ class Azerothcore_optional_deathknight_skip : public CreatureScript
CloseGossipMenuFor(player);
if (sConfigMgr->GetOption<bool>("DeleteGold.Deathknight.Optional.Enable", true))
{
player->SetMoney(1);
int DKM = sConfigMgr->GetOption<int32>("StartHeroicPlayerMoney", 2000);
player->SetMoney(DKM);
}
break;
}
Expand Down

0 comments on commit ca81709

Please sign in to comment.