DB/Misc: Everfrost Chip

1) Remove required quest from loot tables for http://www.wowhead.com/item=44724/everfrost-chip , http://www.wowhead.com/item=44725/everfrost-chip and http://www.wowhead.com/item=44729/everfrost-powder so that everfrost chip is not always empty when looted since none of these items should require active quest to drop only that player is friendly with sons of hodir or has completed pre-quest in case of remember everfrost
2) Add missing quest data for http://www.wowhead.com/quest=13421/remember-everfrost start/end/prevquest and set as repeatable
(cherry picked from commit a481dd3707)
This commit is contained in:
Dr-J
2016-05-30 14:17:28 +01:00
committed by joschiwald
parent 58e7aff4dd
commit 5e0191e0b7

View File

@@ -0,0 +1,26 @@
DELETE FROM `gameobject_loot_template` WHERE `Entry`=26782;
INSERT INTO `gameobject_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES
(26782, 44724, 0, 100, 0, 1, 1, 1, 1, NULL), -- Everfrost Chip
(26782, 44725, 0, 19, 0, 1, 2, 1, 1, NULL), -- Everfrost Chip (Quest Starter)
(26782, 44729, 0, 81, 0, 1, 2, 1, 1, NULL); -- Everfrost Powder
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=4 AND `SourceGroup`=26782;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(4, 26782, 44724, 0, 1, 8, 0, 13420, 0, 0, 0, 0, 0, '', NULL), -- Everfrost Chip only drops if player is rewarded for ever frost,
(4, 26782, 44729, 0, 0, 9, 0, 13420, 0, 0, 1, 0, 0, '', NULL), -- Everfrost powder only drops if player has not taken or completed Everfrost,
(4, 26782, 44729, 0, 0, 8, 0, 13420, 0, 0, 1, 0, 0, '', NULL), -- Everfrost powder only drops if player has not taken or completed Everfrost,
(4, 26782, 44725, 0, 0, 9, 0, 13420, 0, 0, 1, 0, 0, '', NULL), -- Everfrost Chip (Quest Starter) only drops if player has not taken or completed Everfrost,
(4, 26782, 44725, 0, 0, 8, 0, 13420, 0, 0, 1, 0, 0, '', NULL), -- Everfrost Chip (Quest Starter) only drops if player has not taken or completed Everfrost,
(4, 26782, 44725, 0, 0, 5, 0, 1119, 8, 0, 0, 0, 0, '', NULL); -- Everfrost Chip (Quest Starter) only drops if player is friendly with Sons of Hodir,
DELETE FROM `creature_questender` WHERE `quest`=13421;
INSERT INTO `creature_questender` (`id`, `quest`) VALUES
(32594, 13421);
DELETE FROM `creature_queststarter` WHERE `quest`=13421;
INSERT INTO `creature_queststarter` (`id`, `quest`) VALUES
(32594, 13421);
DELETE FROM `quest_template_addon` WHERE `ID`=13421;
INSERT INTO `quest_template_addon` (`ID`, `PrevQuestID`, `SpecialFlags`) VALUES
(13421, 13420, 1);