From 2e6b33289b10c6afde29f2c9de27bf13810b0a13 Mon Sep 17 00:00:00 2001 From: anguaive <39011611+anguaive@users.noreply.github.com> Date: Wed, 2 Jun 2021 17:08:22 +0200 Subject: [PATCH] fix(DB/loot): Noblegarden loot (#6074) Noblegarden-related items should only be contained in Brightly Colored Eggs, with the exception of Candy Bar and Lollipop which are also dropped by a select few named NPCs. - Closes #6029 - Closes https://github.com/chromiecraft/chromiecraft/issues/692 --- .../rev_1622106798992540218.sql | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1622106798992540218.sql diff --git a/data/sql/updates/pending_db_world/rev_1622106798992540218.sql b/data/sql/updates/pending_db_world/rev_1622106798992540218.sql new file mode 100644 index 000000000..6b8e5d0ce --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1622106798992540218.sql @@ -0,0 +1,29 @@ +INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1622106798992540218'); + +-- Noblegarden items: +-- 6833: White Tuxedo Shirt +-- 6835: Black Tuxedo Pants +-- 7806: Lollipop +-- 7807: Candy Bar +-- 7808: Chocolate Square +-- 7809: Easter Dress +-- 19028: Elegant Dress + +-- Creatures who drop Noblegarden items: +-- 423: Redridge Mongrel +-- 2020: Bloodfeather Wind Witch +-- 3197: Burning Blade Fanatic +-- 3448: Tonga Runetotem +DELETE FROM `creature_loot_template` WHERE `entry` IN (423, 2020, 3197, 3448) AND `item` IN (6833, 6835, 7806, 7807, 7808, 7809, 19028); +INSERT INTO `creature_loot_template` VALUES +(16112, 7807, 0, 24, 0, 1, 0, 1, 1, 'Korfax, Champion of the Light - Candy Bar'), +(2389, 7807, 0, 21, 0, 1, 0, 1, 1, 'Zarise - Candy Bar'), +(15500, 7807, 0, 8, 0, 1, 0, 1, 1, 'Keyl Swiftclaw - Candy Bar'), +(16134, 7806, 0, 40, 0, 1, 0, 1, 1, 'Rimblat Earthshatter - Lollipop'), +(16133, 7806, 0, 38, 0, 1, 0, 1, 1, 'Mataus the Wrathcaster - Lollipop'), +(15500, 7806, 0, 16, 0, 1, 0, 1, 1, 'Keyl Swiftclaw - Lollipop'), +(2302, 7806, 0, 13, 0, 1, 0, 1, 1, 'Aethalas - Lollipop'), +(1573, 7806, 0, 5, 0, 1, 0, 1, 1, 'Gryth Thurden - Lollipop'); + +-- Add missing lootids +UPDATE `creature_template` SET `lootid` = `entry` WHERE `entry` IN (16112, 2389, 15500, 16134, 16133, 2302, 1573);