aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDr-J <daniel.jarrott0@gmail.com>2016-05-30 14:17:28 +0100
committerjoschiwald <joschiwald.trinity@gmail.com>2017-01-11 20:16:28 +0100
commit5e0191e0b7fb08bd368a69504e1fd3e7b01a7597 (patch)
tree3d64e9edba8e22f48fa5f844f1d1fc5837e7d7e7
parent58e7aff4dd3240e080e86b798b825945807c645e (diff)
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 a481dd3707bece63de7a24baf70e9c16bd42345b)
-rw-r--r--sql/updates/world/master/2017_01_11_04_world_2016_05_30_10_world.sql26
1 files changed, 26 insertions, 0 deletions
diff --git a/sql/updates/world/master/2017_01_11_04_world_2016_05_30_10_world.sql b/sql/updates/world/master/2017_01_11_04_world_2016_05_30_10_world.sql
new file mode 100644
index 00000000000..9c362b16d7d
--- /dev/null
+++ b/sql/updates/world/master/2017_01_11_04_world_2016_05_30_10_world.sql
@@ -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);