From b1fc1c34b71df9596fd0e43b4907d59deb422f56 Mon Sep 17 00:00:00 2001 From: Benjamin Jackson <38561765+heyitsbench@users.noreply.github.com> Date: Tue, 25 Jun 2024 16:33:18 -0400 Subject: [PATCH] fix(DB/Loot): Correct chances related to Captain Rumsey's Lager recipe. (#19166) Init. --- data/sql/updates/pending_db_world/lager-loot.sql | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 data/sql/updates/pending_db_world/lager-loot.sql diff --git a/data/sql/updates/pending_db_world/lager-loot.sql b/data/sql/updates/pending_db_world/lager-loot.sql new file mode 100644 index 000000000..01f66141b --- /dev/null +++ b/data/sql/updates/pending_db_world/lager-loot.sql @@ -0,0 +1,13 @@ +-- adjust chances in tbc reference +UPDATE `reference_loot_template` SET `Chance` = 2 WHERE `Reference` = 11114 AND `Item` = 34834; -- lager +UPDATE `reference_loot_template` SET `Chance` = 2 WHERE `Reference` = 11114 AND `Item` = 34836; -- line +-- create tbc template entries +DELETE FROM `item_loot_template` WHERE `Item` = 34834 AND `Entry` IN (33844, 33857); +INSERT INTO `item_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES +(33844, 34834, 0, 0.15, 0, 1, 3, 1, 1, 'Barrel of Fish - Recipe: Captain Rumsey''s Lager'), +(33857, 34834, 0, 0.1, 0, 1, 2, 1, 1, 'Crate of Meat - Recipe: Captain Rumsey''s Lager'); +-- adjust tbc template chances +UPDATE `item_loot_template` SET `Chance` = 100 WHERE `Reference` = 11114 AND `Entry` IN (34863, 35348); +-- adjust wotlk template chances +UPDATE `item_loot_template` SET `Chance` = 0.6 WHERE `Entry` = 46007 AND `Item` = 34834; +UPDATE `item_loot_template` SET `Chance` = 0.8 WHERE `Entry` = 44113 AND `Item` = 34834;