From 2a297dfe29db3ae75cc3b535218f6ddf013f14ea Mon Sep 17 00:00:00 2001 From: Skjalf <47818697+Nyeriah@users.noreply.github.com> Date: Tue, 16 Aug 2022 15:53:37 -0300 Subject: [PATCH] fix(DB/Loot): Correct Tactical/Logistical assignment loots (#12760) --- .../rev_1660675431410515100.sql | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1660675431410515100.sql diff --git a/data/sql/updates/pending_db_world/rev_1660675431410515100.sql b/data/sql/updates/pending_db_world/rev_1660675431410515100.sql new file mode 100644 index 000000000..d1c1ffd70 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1660675431410515100.sql @@ -0,0 +1,59 @@ +-- +UPDATE `quest_template_addon` SET `SpecialFlags` = `SpecialFlags` | 1 WHERE `id` IN (8805, 8807); + +SET @ENTRY := 21132; +DELETE FROM `item_loot_template` WHERE `Entry` = @ENTRY; +INSERT INTO `item_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES +(@ENTRY, 20939, 0, 0, 0, 1, 1, 1, 1, "Logistics Assigment II - Alliance"), +(@ENTRY, 21257, 0, 0, 0, 1, 1, 1, 1, "Logistics Assigment IV"), +(@ENTRY, 21259, 0, 0, 0, 1, 1, 1, 1, "Logistics Assigment V"), +(@ENTRY, 21260, 0, 0, 0, 1, 1, 1, 1, "Logistics Assigment VI"), +(@ENTRY, 21263, 0, 0, 0, 1, 1, 1, 1, "Logistics Assigment VII"), +(@ENTRY, 20806, 0, 0, 0, 1, 1, 1, 1, "Logistics Assigment X"); + +SET @ENTRY := 21266; +DELETE FROM `item_loot_template` WHERE `Entry` = @ENTRY; +INSERT INTO `item_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES +(@ENTRY, 21379, 0, 0, 0, 1, 1, 1, 1, "Logistics Assigment II - Horde"), +(@ENTRY, 21258, 0, 0, 0, 1, 1, 1, 1, "Logistics Assigment IV - Horde"), +(@ENTRY, 21382, 0, 0, 0, 1, 1, 1, 1, "Logistics Assigment V - Horde"), +(@ENTRY, 21261, 0, 0, 0, 1, 1, 1, 1, "Logistics Assigment VI - Horde"), +(@ENTRY, 21264, 0, 0, 0, 1, 1, 1, 1, "Logistics Assigment VII - Horde"), +(@ENTRY, 21385, 0, 0, 0, 1, 1, 1, 1, "Logistics Assigment X - Horde"); + + +SET @ENTRY := 20805; +DELETE FROM `item_loot_template` WHERE `Entry` = @ENTRY; +INSERT INTO `item_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES +(@ENTRY, 20807, 0, 0, 0, 1, 1, 1, 1, "Logistics Assignment I - Alliance"), +(@ENTRY, 20940, 0, 0, 0, 1, 1, 1, 1, "Logistics Assignment III - Alliance"), +(@ENTRY, 21262, 0, 0, 0, 1, 1, 1, 1, "Logistics Assignment VIII - Alliance"), +(@ENTRY, 21265, 0, 0, 0, 1, 1, 1, 1, "Logistics Assignment IX - Alliance"), +(@ENTRY, 21514, 0, 0, 0, 1, 1, 1, 1, "Logistics Assignment XI - Alliance"); + +SET @ENTRY := 21386; +DELETE FROM `item_loot_template` WHERE `Entry` = @ENTRY; +INSERT INTO `item_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES +(@ENTRY, 21378, 0, 0, 0, 1, 1, 1, 1, "Logistics Assignment I - Horde"), +(@ENTRY, 21380, 0, 0, 0, 1, 1, 1, 1, "Logistics Assignment III - Horde"), +(@ENTRY, 21384, 0, 0, 0, 1, 1, 1, 1, "Logistics Assignment VIII - Horde"), +(@ENTRY, 21381, 0, 0, 0, 1, 1, 1, 1, "Logistics Assignment IX - Horde"), +(@ENTRY, 21514, 0, 0, 0, 1, 1, 1, 1, "Logistics Assignment XI - Horde"); + +SET @ENTRY := 20809; +DELETE FROM `item_loot_template` WHERE `Entry` = @ENTRY; +INSERT INTO `item_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES +(@ENTRY, 21245, 0, 0, 0, 1, 1, 1, 1, "Tactical Assignment I - Horde"), +(@ENTRY, 21751, 0, 0, 0, 1, 1, 1, 1, "Tactical Assignment III - Horde"), +(@ENTRY, 21165, 0, 0, 0, 1, 1, 1, 1, "Tactical Assignment VI - Horde"), +(@ENTRY, 21166, 0, 0, 0, 1, 1, 1, 1, "Tactical Assignment VII - Horde"), +(@ENTRY, 20944, 0, 0, 0, 1, 1, 1, 1, "Tactical Assignment IX - Horde"); + +SET @ENTRY := 21133; +DELETE FROM `item_loot_template` WHERE `Entry` = @ENTRY; +INSERT INTO `item_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES +(@ENTRY, 20945, 0, 0, 0, 1, 1, 1, 1, "Tactical Assignment II - Horde"), +(@ENTRY, 20947, 0, 0, 0, 1, 1, 1, 1, "Tactical Assignment IV - Horde"), +(@ENTRY, 20948, 0, 0, 0, 1, 1, 1, 1, "Tactical Assignment V - Horde"), +(@ENTRY, 21167, 0, 0, 0, 1, 1, 1, 1, "Tactical Assignment VIII - Horde"), +(@ENTRY, 20943, 0, 0, 0, 1, 1, 1, 1, "Tactical Assignment X - Horde");