diff options
author | Naddley <64811442+Naddley@users.noreply.github.com> | 2023-07-05 01:16:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-05 01:16:30 +0200 |
commit | d70d1d24a52816d6fb8f657afc609c15aeff4fea (patch) | |
tree | 3113f0d9e061fb87cd7fa14b2f7ab7fc65f88be5 | |
parent | bd94ccd92e0b4630f7539eba840ad77864ae1a29 (diff) |
Scripts/ElwynnForest: Implemented conversation for "Rotten Old Memories" (#29122)
-rw-r--r-- | sql/updates/world/master/2023_07_05_03_world.sql | 3 | ||||
-rw-r--r-- | src/server/scripts/EasternKingdoms/zone_elwynn_forest.cpp | 13 |
2 files changed, 16 insertions, 0 deletions
diff --git a/sql/updates/world/master/2023_07_05_03_world.sql b/sql/updates/world/master/2023_07_05_03_world.sql new file mode 100644 index 00000000000..412a587582f --- /dev/null +++ b/sql/updates/world/master/2023_07_05_03_world.sql @@ -0,0 +1,3 @@ +UPDATE `conversation_line_template` SET `ChatType`=2, `VerifiedBuild`=50000 WHERE `Id`=53705; +UPDATE `conversation_line_template` SET `VerifiedBuild`=50000 WHERE `Id` IN (52475, 53706, 53704, 56092); +UPDATE `conversation_template` SET `VerifiedBuild`=50000 WHERE `Id`=20345; diff --git a/src/server/scripts/EasternKingdoms/zone_elwynn_forest.cpp b/src/server/scripts/EasternKingdoms/zone_elwynn_forest.cpp index 13532c8909c..1ca1ddea79f 100644 --- a/src/server/scripts/EasternKingdoms/zone_elwynn_forest.cpp +++ b/src/server/scripts/EasternKingdoms/zone_elwynn_forest.cpp @@ -328,6 +328,13 @@ enum WindowToThePastData SPELL_PLAY_ONYXIA_SCENE = 402962 }; +enum RottenOldMemoriesData +{ + QUEST_ROTTEN_OLD_MEMORIES = 72409, + + CONVO_ROTTEN_OLD_MEMORIES = 20345 +}; + Position const VanessaClonePosition = { -9462.44f, -11.7101f, 50.161f, 2.99500f }; Position const VanessaStaticPosition = { -9468.16f, -3.6128f, 49.876f, 4.47226f }; @@ -368,6 +375,12 @@ struct npc_vanessa_vancleef_human_heritage_lions_pride_inn_basement : public Scr _events.ScheduleEvent(EVENT_VANESSA_CLONE_LEAN, 1s); } + void OnQuestAccept(Player* player, Quest const* quest) override + { + if (quest->GetQuestId() == QUEST_ROTTEN_OLD_MEMORIES) + Conversation::CreateConversation(CONVO_ROTTEN_OLD_MEMORIES, player, *player, player->GetGUID(), nullptr); + } + void UpdateAI(uint32 diff) override { _events.Update(diff); |