diff --git a/data/sql/updates/pending_db_world/fix-issue-15534.sql b/data/sql/updates/pending_db_world/fix-issue-15534.sql new file mode 100644 index 000000000..be4c1994c --- /dev/null +++ b/data/sql/updates/pending_db_world/fix-issue-15534.sql @@ -0,0 +1,14 @@ + +SET @LOOTTHISTLEBOAR := 1985; -- Skinning loot template for Thistle Boar +SET @LOOTSCORPIDWORKER := 3124; -- Skinning loot template for Scorpid Worker +SET @LIGHTLEATHER := 2318; -- Light Leather +SET @RUINEDSCRAPS := 2934; -- Ruined Leather Scraps + +-- Setting skinloot as 0 for creature that should not be skinnable +UPDATE `creature_template` SET `skinloot` = 0 WHERE `entry` IN (1984, 1985, 2032, 3124); + +-- Removing now unused skinning loot template to keep the DB cleaned up +DELETE FROM `skinning_loot_template` WHERE `entry` = @LOOTTHISTLEBOAR AND `item` = @LIGHTLEATHER; +DELETE FROM `skinning_loot_template` WHERE `entry` = @LOOTTHISTLEBOAR AND `item` = @RUINEDSCRAPS; +DELETE FROM `skinning_loot_template` WHERE `entry` = @LOOTSCORPIDWORKER AND `item` = @LIGHTLEATHER; +DELETE FROM `skinning_loot_template` WHERE `entry` = @LOOTSCORPIDWORKER AND `item` = @RUINEDSCRAPS;