From e82bef9b1f327bd02c7b7329ede89a82f5475a2f Mon Sep 17 00:00:00 2001 From: schell244 <> Date: Sat, 20 Aug 2022 16:16:10 +0200 Subject: [PATCH] Quest: Extinguishing the Idol - convert to broadcast text --- sql/migrations/20220820140339_world.sql | 30 +++++++++++++++++++ .../razorfen_downs/razorfen_downs.cpp | 19 ++++++------ 2 files changed, 40 insertions(+), 9 deletions(-) create mode 100644 sql/migrations/20220820140339_world.sql diff --git a/sql/migrations/20220820140339_world.sql b/sql/migrations/20220820140339_world.sql new file mode 100644 index 00000000000..86a5605d0b0 --- /dev/null +++ b/sql/migrations/20220820140339_world.sql @@ -0,0 +1,30 @@ +DROP PROCEDURE IF EXISTS add_migration; +delimiter ?? +CREATE PROCEDURE `add_migration`() +BEGIN +DECLARE v INT DEFAULT 1; +SET v = (SELECT COUNT(*) FROM `migrations` WHERE `id`='20220820140339'); +IF v=0 THEN +INSERT INTO `migrations` VALUES ('20220820140339'); +-- Add your query below. + +DELETE FROM `script_texts` WHERE `entry`= -1129005; +DELETE FROM `script_texts` WHERE `entry`= -1129006; +DELETE FROM `script_texts` WHERE `entry`= -1129007; +DELETE FROM `script_texts` WHERE `entry`= -1129008; +DELETE FROM `script_texts` WHERE `entry`= -1129009; +DELETE FROM `script_texts` WHERE `entry`= -1129010; +DELETE FROM `script_texts` WHERE `entry`= -1129011; +DELETE FROM `script_texts` WHERE `entry`= -1129012; + +UPDATE `broadcast_text` SET `chat_type`=1 WHERE `entry`=4504; +UPDATE `broadcast_text` SET `chat_type`=1 WHERE `entry`=4505; +UPDATE `broadcast_text` SET `chat_type`=1 WHERE `entry`=4506; +UPDATE `broadcast_text` SET `chat_type`=1 WHERE `entry`=4507; + +-- End of migration. +END IF; +END?? +delimiter ; +CALL add_migration(); +DROP PROCEDURE IF EXISTS add_migration; diff --git a/src/scripts/kalimdor/the_barrens/razorfen_downs/razorfen_downs.cpp b/src/scripts/kalimdor/the_barrens/razorfen_downs/razorfen_downs.cpp index 91a01c6da4b..62d0e29fdce 100644 --- a/src/scripts/kalimdor/the_barrens/razorfen_downs/razorfen_downs.cpp +++ b/src/scripts/kalimdor/the_barrens/razorfen_downs/razorfen_downs.cpp @@ -35,14 +35,15 @@ EndContentData */ enum { QUEST_EXTINGUISHING_THE_IDOL = 3525, - SAY_BELNISTRASZ_READY = -1129005, - SAY_BELNISTRASZ_START_RIT = -1129006, - SAY_BELNISTRASZ_AGGRO_1 = -1129007, - SAY_BELNISTRASZ_AGGRO_2 = -1129008, - SAY_BELNISTRASZ_3_MIN = -1129009, - SAY_BELNISTRASZ_2_MIN = -1129010, - SAY_BELNISTRASZ_1_MIN = -1129011, - SAY_BELNISTRASZ_FINISH = -1129012, + + SAY_BELNISTRASZ_READY = 4493, + SAY_BELNISTRASZ_START_RIT = 4501, + SAY_BELNISTRASZ_AGGRO_1 = 9008, + SAY_BELNISTRASZ_AGGRO_2 = 9007, + SAY_BELNISTRASZ_3_MIN = 4504, + SAY_BELNISTRASZ_2_MIN = 4505, + SAY_BELNISTRASZ_1_MIN = 4506, + SAY_BELNISTRASZ_FINISH = 4507, NPC_IDOL_ROOM_SPAWNER = 8611, NPC_WITHERED_BATTLE_BOAR = 7333, @@ -329,6 +330,6 @@ void AddSC_razorfen_downs() newscript = new Script; newscript->Name = "go_gong"; - newscript->pGOHello = &GOHello_go_gong; + newscript->pGOHello = &GOHello_go_gong; newscript->RegisterSelf(); }