aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorTeppic1 <Teppic1@users.noreply.github.com>2018-02-08 17:28:33 +0100
committerShauren <shauren.trinity@gmail.com>2021-06-19 23:33:24 +0200
commit2bc1f0593b474f7db3ccf8db499c9cc85c87780b (patch)
tree09d72b3eb0c62831e7ea32732209a73bf5a5bee4 /sql
parent014a77938d31189f4d21e6cbcced8362ab79ed10 (diff)
DB/Loot: Set up correct rare drops for Shadowfang Keep exclusive items
Closes #21382 (cherry picked from commit 65237ecea73d46203ca31dd2bf41133e5b00533c)
Diffstat (limited to 'sql')
-rw-r--r--sql/updates/world/master/2021_06_19_08_world_2018_02_08_03_world_335.sql42
1 files changed, 42 insertions, 0 deletions
diff --git a/sql/updates/world/master/2021_06_19_08_world_2018_02_08_03_world_335.sql b/sql/updates/world/master/2021_06_19_08_world_2018_02_08_03_world_335.sql
new file mode 100644
index 00000000000..e1fecf17a4d
--- /dev/null
+++ b/sql/updates/world/master/2021_06_19_08_world_2018_02_08_03_world_335.sql
@@ -0,0 +1,42 @@
+-- Create new reference loot template for Shadowfang Keep
+SET @ENTRY := 1055; -- need a new id
+
+DELETE FROM `reference_loot_template` WHERE `Entry`=@ENTRY;
+INSERT INTO `reference_loot_template` (`Entry`, `Item`, `Chance`, `GroupId`, `Comment`) VALUES
+(@ENTRY, 1318, 0, 1, "Night Reaver"),
+(@ENTRY, 1482, 0, 1, "Shadowfang"),
+(@ENTRY, 1483, 0, 1, "Face Smasher"),
+(@ENTRY, 1484, 0, 1, "Witching Stave"),
+(@ENTRY, 1489, 0, 1, "Gloomshroud Armor"),
+(@ENTRY, 1935, 0, 1, "Assassin's Blade"),
+(@ENTRY, 1974, 0, 1, "Mindthrust Bracers"),
+(@ENTRY, 2205, 0, 1, "Duskbringer"),
+(@ENTRY, 2292, 0, 1, "Necrology Robes"),
+(@ENTRY, 2807, 0, 1, "Guillotine Axe"),
+(@ENTRY, 3194, 0, 1, "Black Malice");
+
+-- Remove all SFK exclusive items from direct drops from NPCs
+DELETE FROM `creature_loot_template` WHERE `Item` IN
+(1318, 1482, 1483, 1484, 1489, 1935, 1974, 2205, 2292, 2807, 3194);
+
+-- Add SFK reference template for non-boss NPCs
+DELETE FROM `creature_loot_template` WHERE `Reference` = @ENTRY;
+INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `Comment`) VALUES
+(3870, @ENTRY, @ENTRY, 0.1, "Stone Sleeper - SFK Rares"),
+(3873, @ENTRY, @ENTRY, 0.1, "Tormented Officer - SFK Rares"),
+(3875, @ENTRY, @ENTRY, 0.1, "Haunted Servitor - SFK Rares"),
+(3877, @ENTRY, @ENTRY, 0.1, "Wailing Guardsman - SFK Rares"),
+(47131, @ENTRY, @ENTRY, 0.1, "Frantic Geist - SFK Rares"),
+(47132, @ENTRY, @ENTRY, 0.1, "Dark Creeper - SFK Rares"),
+(47134, @ENTRY, @ENTRY, 0.1, "Corpse Eater - SFK Rares"),
+(47135, @ENTRY, @ENTRY, 0.1, "Fetid Ghoul - SFK Rares"),
+(47136, @ENTRY, @ENTRY, 0.1, "Unstable Ravager - SFK Rares"),
+(47137, @ENTRY, @ENTRY, 0.1, "Mindless Horror - SFK Rares"),
+(47138, @ENTRY, @ENTRY, 0.1, "Pustulant Monstrosity - SFK Rares"),
+(47140, @ENTRY, @ENTRY, 0.1, "Sorcerous Skeleton - SFK Rares"),
+(47141, @ENTRY, @ENTRY, 0.1, "Dread Scryer - SFK Rares"),
+(47143, @ENTRY, @ENTRY, 0.1, "Spitebone Skeleton - SFK Rares"),
+(47145, @ENTRY, @ENTRY, 0.1, "Spitebone Guardian - SFK Rares"),
+(47146, @ENTRY, @ENTRY, 0.1, "Spitebone Flayer - SFK Rares"),
+(47231, @ENTRY, @ENTRY, 0.1, "Shadowy Attendant - SFK Rares"),
+(47232, @ENTRY, @ENTRY, 0.1, "Ghostly Cook - SFK Rares");