Core/Misc: Fixed player corpse looting, added player corpse loot and some more (#19122)

* Fixed corpse looting in wintergrasp
Added corpse loot for wintergrasp quests and To the Looter Go the Spoils (1166) achievement
Don't generate money for loot if no loot mode is available
Simplified few things

(cherrypicked from 2412886ef6)
This commit is contained in:
xinef1
2017-02-13 20:42:06 +01:00
committed by Shauren
parent c860522ecf
commit 89f728cd5b
15 changed files with 149 additions and 39 deletions

View File

@@ -0,0 +1,24 @@
-- To the Looter Go the Spoils (1166)
DELETE FROM `creature_loot_template` WHERE `entry`=1 AND `item`=18228;
INSERT INTO `creature_loot_template` VALUES (1, 18228, 0, 1, 0, 1, 0, 1, 1, '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=1 AND `SourceGroup`=1 AND `SourceEntry` IN(18228);
INSERT INTO `conditions` VALUES (1, 1, 18228, 0, 0, 22, 0, 30, 0, 0, 0, 0, 0, '', 'Requires map Alterac Valley');
-- Add Player Loot for WG quests
DELETE FROM `creature_loot_template` WHERE `entry`=1 AND `item` IN(43314, 43322, 43323, 43324, 44808, 44809);
INSERT INTO `creature_loot_template` VALUES(1, 43314, 0, 100, 1, 1, 0, 5, 5, ''),
(1, 43322, 0, 100, 1, 1, 0, 5, 5, ''),
(1, 43323, 0, 100, 1, 1, 0, 5, 5, ''),
(1, 43324, 0, 100, 1, 1, 0, 5, 5, ''),
(1, 44808, 0, 100, 1, 1, 0, 5, 5, ''),
(1, 44809, 0, 100, 1, 1, 0, 5, 5, '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=1 AND `SourceGroup`=1 AND `SourceEntry` IN(43314, 43322, 43323, 43324, 44808, 44809);
INSERT INTO `conditions` VALUES (1, 1, 44808, 0, 0, 23, 0, 4585, 0, 0, 0, 0, 0, '', 'Requires Glacial Falls area'),
(1, 1, 43322, 0, 0, 23, 0, 4585, 0, 0, 0, 0, 0, '', 'Requires Glacial Falls area'),
(1, 1, 43314, 0, 0, 23, 0, 4584, 0, 0, 0, 0, 0, '', 'Requires Cauldron of Flames area'),
(1, 1, 43323, 0, 0, 23, 0, 4587, 0, 0, 0, 0, 0, '', 'Requires Forest of Shadows area'),
(1, 1, 43324, 0, 0, 23, 0, 4590, 0, 0, 0, 0, 0, '', 'Requires Steppe of Life area'),
(1, 1, 44809, 0, 0, 23, 0, 4590, 0, 0, 0, 0, 0, '', 'Requires Steppe of Life area');