From bc6137d08c08ef2fb29e871cf5659c4d1c5c41ab Mon Sep 17 00:00:00 2001 From: offl Date: Tue, 4 Aug 2020 02:03:51 +0300 Subject: DB/Texts: Remove mismatches between texts in creature_text and texts in broadcast_text --- sql/updates/world/3.3.5/2020_08_04_01_world_335.sql | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 sql/updates/world/3.3.5/2020_08_04_01_world_335.sql (limited to 'sql') diff --git a/sql/updates/world/3.3.5/2020_08_04_01_world_335.sql b/sql/updates/world/3.3.5/2020_08_04_01_world_335.sql new file mode 100644 index 00000000000..f118da6b3f5 --- /dev/null +++ b/sql/updates/world/3.3.5/2020_08_04_01_world_335.sql @@ -0,0 +1,19 @@ +-- Texts with wrong broadcast texts (typos, both texts are completely different) +-- Disobedient Dragonmaw Peon, these texts are related to another quest +DELETE FROM `creature_text` WHERE `CreatureID` = 23311 AND `GroupID` = 0 AND `ID` IN (6,7); +-- Moodle +UPDATE `creature_text` SET `BroadcastTextId` = 28395 WHERE `CreatureID` = 28122 AND `GroupID` = 3 AND `ID` = 0; +UPDATE `creature_text` SET `BroadcastTextId` = 28394 WHERE `CreatureID` = 28122 AND `GroupID` = 3 AND `ID` = 1; +-- Text https://www.wowhead.com/npc=28122/moodle#comments:id=914017:reply=436172 will be just replaced by text +-- from broadcast_text, since there's no such text and never was +-- And another https://www.wowhead.com/npc=28122/moodle#comments:id=914017:reply=436172 +UPDATE `creature_text` SET `BroadcastTextId` = 28401 WHERE `CreatureID` = 28122 AND `GroupID` = 4 AND `ID` = 1; +UPDATE `creature_text` SET `BroadcastTextId` = 28402 WHERE `CreatureID` = 28122 AND `GroupID` = 4 AND `ID` = 2; +UPDATE `creature_text` SET `BroadcastTextId` = 28399 WHERE `CreatureID` = 28122 AND `GroupID` = 4 AND `ID` = 3; +UPDATE `creature_text` SET `BroadcastTextId` = 28397 WHERE `CreatureID` = 28122 AND `GroupID` = 4 AND `ID` = 4; +UPDATE `creature_text` SET `BroadcastTextId` = 28398 WHERE `CreatureID` = 28122 AND `GroupID` = 4 AND `ID` = 5; +-- Instructor Hroegar +UPDATE `creature_text` SET `BroadcastTextId` = 30576 WHERE `CreatureID` = 29915 AND `GroupID` = 0 AND `ID` = 7; + +UPDATE `creature_text` a LEFT JOIN `broadcast_text` b ON a.`BroadcastTextId` = b.`ID` SET a.`Text` = b.`Text` WHERE b.`Text1` = '' AND a.`Text` != b.`Text`; +UPDATE `creature_text` a LEFT JOIN `broadcast_text` b ON a.`BroadcastTextId` = b.`ID` SET a.`Text` = b.`Text1` WHERE b.`Text` = '' AND a.`Text` != b.`Text1`; -- cgit v1.2.3