aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/KulTiras/Drustvar/drustvar_chapter_1_the_final_effigy.cpp52
-rw-r--r--src/server/scripts/KulTiras/kultiras_script_loader.cpp6
2 files changed, 58 insertions, 0 deletions
diff --git a/src/server/scripts/KulTiras/Drustvar/drustvar_chapter_1_the_final_effigy.cpp b/src/server/scripts/KulTiras/Drustvar/drustvar_chapter_1_the_final_effigy.cpp
new file mode 100644
index 00000000000..994112352ca
--- /dev/null
+++ b/src/server/scripts/KulTiras/Drustvar/drustvar_chapter_1_the_final_effigy.cpp
@@ -0,0 +1,52 @@
+/*
+ * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation; either version 2 of the License, or (at your
+ * option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include "CreatureAIImpl.h"
+#include "Player.h"
+#include "ScriptMgr.h"
+#include "ScriptedCreature.h"
+
+enum WitchHuntData
+{
+ NPC_HELENA_GENTLE_HUMAN = 124922,
+
+ SPELL_TAKE_A_SEAT_CURSED = 248423
+};
+
+// EventID: 59332
+class event_listen_to_helenas_story : public EventScript
+{
+public:
+ event_listen_to_helenas_story() : EventScript("event_listen_to_helenas_story") {}
+
+ void OnTrigger(WorldObject* /*object*/, WorldObject* invoker, uint32 /*eventId*/) override
+ {
+ if (Player* player = invoker->ToPlayer())
+ {
+ player->CastSpell(player, SPELL_TAKE_A_SEAT_CURSED);
+
+ if (Creature* helenaObject = player->FindNearestCreatureWithOptions(25.0f, { .CreatureId = NPC_HELENA_GENTLE_HUMAN, .IgnorePhases = true }))
+ helenaObject->SummonPersonalClone(helenaObject->GetPosition(), TEMPSUMMON_MANUAL_DESPAWN, 0s, 0, 0, player);
+ }
+ }
+};
+
+void AddSC_drustvar_chapter_1_the_final_effigy()
+{
+ // EventScripts
+ new event_listen_to_helenas_story();
+}
diff --git a/src/server/scripts/KulTiras/kultiras_script_loader.cpp b/src/server/scripts/KulTiras/kultiras_script_loader.cpp
index 4bcbc4d68c0..a59e05d6ccb 100644
--- a/src/server/scripts/KulTiras/kultiras_script_loader.cpp
+++ b/src/server/scripts/KulTiras/kultiras_script_loader.cpp
@@ -19,6 +19,9 @@
void AddSC_zone_boralus();
+// Drustvar
+void AddSC_drustvar_chapter_1_the_final_effigy();
+
// Shrine of the Storm
void AddSC_boss_aqusirr();
void AddSC_instance_shrine_of_the_storm();
@@ -36,6 +39,9 @@ void AddKulTirasScripts()
{
AddSC_zone_boralus();
+ // Drustvar
+ AddSC_drustvar_chapter_1_the_final_effigy();
+
// Shrine of the Storm
AddSC_boss_aqusirr();
AddSC_instance_shrine_of_the_storm();