aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNaddley <64811442+Naddley@users.noreply.github.com>2023-07-05 01:16:30 +0200
committerGitHub <noreply@github.com>2023-07-05 01:16:30 +0200
commitd70d1d24a52816d6fb8f657afc609c15aeff4fea (patch)
tree3113f0d9e061fb87cd7fa14b2f7ab7fc65f88be5 /src
parentbd94ccd92e0b4630f7539eba840ad77864ae1a29 (diff)
Scripts/ElwynnForest: Implemented conversation for "Rotten Old Memories" (#29122)
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/EasternKingdoms/zone_elwynn_forest.cpp13
1 files changed, 13 insertions, 0 deletions
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);