Skip to content

Commit 958f102

Browse files
committed
Handle SSC, Hyjal and ZA tier completion markers
1 parent 41181d3 commit 958f102

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

src/ZoneDifficulty.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ enum ZoneDifficultySettings
147147
enum Misc
148148
{
149149
NPC_ILLIDAN_STORMRAGE = 22917,
150+
NPC_LADY_VASHJ = 21212,
151+
NPC_ARCHIMONDE = 17968,
152+
NPC_ZULJIN = 23863,
150153
NPC_REWARD_CHROMIE = 1128002,
151154
};
152155

src/mod_zone_difficulty_handler.cpp

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,31 @@ void ZoneDifficulty::ProcessCreatureDeath(Map* map, uint32 entry)
10591059
map->DoForAllPlayers([&](Player* player)
10601060
{
10611061
player->UpdatePlayerSetting(ModZoneDifficultyString + "ct", SETTING_BLACK_TEMPLE, 1);
1062-
ChatHandler(player->GetSession()).PSendSysMessage("Congratulations on completing the Black Temple!");
1062+
player->SendSystemMessage("Congratulations on completing the Black Temple!");
1063+
});
1064+
sZoneDifficulty->LogAndAnnounceKill(map, true);
1065+
break;
1066+
case NPC_ZULJIN:
1067+
map->DoForAllPlayers([&](Player* player)
1068+
{
1069+
player->UpdatePlayerSetting(ModZoneDifficultyString + "ct", SETTING_ZULAMAN, 1);
1070+
player->SendSystemMessage("Congratulations on completing Zul'Aman!");
1071+
});
1072+
sZoneDifficulty->LogAndAnnounceKill(map, true);
1073+
break;
1074+
case NPC_ARCHIMONDE:
1075+
map->DoForAllPlayers([&](Player* player)
1076+
{
1077+
player->UpdatePlayerSetting(ModZoneDifficultyString + "ct", SETTING_HYJAL, 1);
1078+
player->SendSystemMessage("Congratulations on completing Battle for Mount Hyjal!");
1079+
});
1080+
sZoneDifficulty->LogAndAnnounceKill(map, true);
1081+
break;
1082+
case NPC_LADY_VASHJ:
1083+
map->DoForAllPlayers([&](Player* player)
1084+
{
1085+
player->UpdatePlayerSetting(ModZoneDifficultyString + "ct", SETTING_SSC, 1);
1086+
player->SendSystemMessage("Congratulations on completing Serpentshrine Cavern!");
10631087
});
10641088
sZoneDifficulty->LogAndAnnounceKill(map, true);
10651089
break;

0 commit comments

Comments
 (0)