From ef96ada2b19399db3e34a75a51e61ca278874e20 Mon Sep 17 00:00:00 2001 From: Gultask <100873791+Gultask@users.noreply.github.com> Date: Sat, 15 Aug 2026 00:15:48 -0300 Subject: [PATCH] fix(DB/Loot): Allow the repeatable Waterlogged Recipe to drop from Bag of Fishing Treasures. (#27135) --- .../pending_db_world/rev_1786651466918573300.sql | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1786651466918573300.sql diff --git a/data/sql/updates/pending_db_world/rev_1786651466918573300.sql b/data/sql/updates/pending_db_world/rev_1786651466918573300.sql new file mode 100644 index 0000000000..33d68965a6 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1786651466918573300.sql @@ -0,0 +1,15 @@ +-- +DELETE FROM `reference_loot_template` WHERE (`Entry` = 10016) AND (`Item` IN (48679, 48681, 49667)); + +DELETE FROM `conditions` WHERE (`SourceTypeOrReferenceId` = 10) AND (`SourceGroup` = 10016) AND (`SourceEntry` IN (48679, 48681, 49667)); + +DELETE FROM `item_loot_template` WHERE (`Entry` = 46007) AND (`Item` IN (48679, 48681, 49667)); +INSERT INTO `item_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES +(46007, 49667, 0, 2, 0, 1, 0, 1, 1, 'Bag of Fishing Treasures - Waterlogged Recipe, Starts Non-repeatable Quest 24431'), +(46007, 48679, 0, 2, 0, 1, 0, 1, 1, 'Bag of Fishing Treasures - Waterlogged Recipe, Starts Repeatable Quest 14203'); + +DELETE FROM `conditions` WHERE (`SourceTypeOrReferenceId` = 5) AND (`SourceGroup` = 46007) AND (`SourceEntry` IN (48679, 48681, 49667)); +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(5, 46007, 49667, 0, 0, 7, 0, 185, 300, 0, 0, 0, 0, '', 'Only drop "Waterlogged Recipe" (49667) from "Bag of Fishing Treasures" (46007) if the player has at least 300 cooking skill'), +(5, 46007, 48679, 0, 0, 7, 0, 185, 300, 0, 0, 0, 0, '', 'Only drop "Waterlogged Recipe" (48679) from "Bag of Fishing Treasures" (46007) if the player has at least 300 cooking skill'), +(5, 46007, 48679, 0, 0, 47, 0, 24431, 64, 0, 0, 0, 0, '', 'Only drop "Waterlogged Recipe" (48679) if the player has been rewarded the non-repeatable quest "Waterlogged Recipe" (24431)');