mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
Scripts/ElwynnForest: Implemented conversation for "Rotten Old Memories" (#29122)
This commit is contained in:
3
sql/updates/world/master/2023_07_05_03_world.sql
Normal file
3
sql/updates/world/master/2023_07_05_03_world.sql
Normal file
@@ -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;
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user