Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quest: Extinguishing the Idol - convert to broadcast text #1571

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions sql/migrations/20220820140339_world.sql
Original file line number Diff line number Diff line change
@@ -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;
19 changes: 10 additions & 9 deletions src/scripts/kalimdor/the_barrens/razorfen_downs/razorfen_downs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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();
}