Skip to content

Commit

Permalink
Handle SSC, Hyjal and ZA tier completion markers
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyeriah committed Dec 7, 2024
1 parent 41181d3 commit 958f102
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/ZoneDifficulty.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ enum ZoneDifficultySettings
enum Misc
{
NPC_ILLIDAN_STORMRAGE = 22917,
NPC_LADY_VASHJ = 21212,
NPC_ARCHIMONDE = 17968,
NPC_ZULJIN = 23863,
NPC_REWARD_CHROMIE = 1128002,
};

Expand Down
26 changes: 25 additions & 1 deletion src/mod_zone_difficulty_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1059,7 +1059,31 @@ void ZoneDifficulty::ProcessCreatureDeath(Map* map, uint32 entry)
map->DoForAllPlayers([&](Player* player)
{
player->UpdatePlayerSetting(ModZoneDifficultyString + "ct", SETTING_BLACK_TEMPLE, 1);
ChatHandler(player->GetSession()).PSendSysMessage("Congratulations on completing the Black Temple!");
player->SendSystemMessage("Congratulations on completing the Black Temple!");
});
sZoneDifficulty->LogAndAnnounceKill(map, true);
break;
case NPC_ZULJIN:
map->DoForAllPlayers([&](Player* player)
{
player->UpdatePlayerSetting(ModZoneDifficultyString + "ct", SETTING_ZULAMAN, 1);
player->SendSystemMessage("Congratulations on completing Zul'Aman!");
});
sZoneDifficulty->LogAndAnnounceKill(map, true);
break;
case NPC_ARCHIMONDE:
map->DoForAllPlayers([&](Player* player)
{
player->UpdatePlayerSetting(ModZoneDifficultyString + "ct", SETTING_HYJAL, 1);
player->SendSystemMessage("Congratulations on completing Battle for Mount Hyjal!");
});
sZoneDifficulty->LogAndAnnounceKill(map, true);
break;
case NPC_LADY_VASHJ:
map->DoForAllPlayers([&](Player* player)
{
player->UpdatePlayerSetting(ModZoneDifficultyString + "ct", SETTING_SSC, 1);
player->SendSystemMessage("Congratulations on completing Serpentshrine Cavern!");
});
sZoneDifficulty->LogAndAnnounceKill(map, true);
break;
Expand Down

0 comments on commit 958f102

Please sign in to comment.