From 176007253d6c16bcdd9afd1d4866e193324709f5 Mon Sep 17 00:00:00 2001 From: Gabriele Sani Date: Thu, 6 Feb 2025 13:04:15 +0100 Subject: [PATCH] fix(DB/creature_template-skinning_loot_template): Removed some wrong skinloot template (#18626) --- .../updates/pending_db_world/fix-issue-15534.sql | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 data/sql/updates/pending_db_world/fix-issue-15534.sql 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;