diff options
author | offl <offl@users.noreply.github.com> | 2020-08-04 02:03:51 +0300 |
---|---|---|
committer | offl <offl@users.noreply.github.com> | 2020-08-04 02:03:51 +0300 |
commit | bc6137d08c08ef2fb29e871cf5659c4d1c5c41ab (patch) | |
tree | 3e413452e2e56e22d2f42860962e9b9692dc5191 | |
parent | 7595b5ed40a70d7a29f1dcf63b44a8f348eaf8f1 (diff) |
DB/Texts: Remove mismatches between texts in creature_text and texts in broadcast_text
-rw-r--r-- | sql/updates/world/3.3.5/2020_08_04_01_world_335.sql | 19 |
1 files changed, 19 insertions, 0 deletions
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`; |