From 4355d55acd846df570a24c72f3f0b7c904d5f5a4 Mon Sep 17 00:00:00 2001 From: Aokromes Date: Sat, 2 Nov 2013 08:52:20 +0100 Subject: [PATCH] DB/Misc: Quest item "Drain Schematics" drop By trickerer, fixes #10394 --- ...3_11_02_02_world_creature_loot_template.sql | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 sql/updates/world/2013_11_02_02_world_creature_loot_template.sql diff --git a/sql/updates/world/2013_11_02_02_world_creature_loot_template.sql b/sql/updates/world/2013_11_02_02_world_creature_loot_template.sql new file mode 100644 index 0000000000..abbe650b45 --- /dev/null +++ b/sql/updates/world/2013_11_02_02_world_creature_loot_template.sql @@ -0,0 +1,18 @@ +-- Quest item "Drain Schematics" should be only obtainable if: +-- 1) player has completed quest 9720 "Balance Must Be Preserved" +-- 2) player has no quest 9731 "Drain Schematics" +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = '1' AND `SourceEntry` = '24330'; +INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`) VALUES +('1','18088','24330','0','0','8','0','9720','0','0','0'), +('1','18088','24330','0','0','9','0','9731','0','0','1'), +('1','18089','24330','0','0','8','0','9720','0','0','0'), +('1','18089','24330','0','0','9','0','9731','0','0','1'), +('1','18340','24330','0','0','8','0','9720','0','0','0'), +('1','18340','24330','0','0','9','0','9731','0','0','1'), +('1','20088','24330','0','0','8','0','9720','0','0','0'), +('1','20088','24330','0','0','9','0','9731','0','0','1'), +('1','20089','24330','0','0','8','0','9720','0','0','0'), +('1','20089','24330','0','0','9','0','9731','0','0','1'); + +-- Set drop chance to normal(non-quest) +UPDATE `creature_loot_template` SET `ChanceOrQuestChance` = abs(`ChanceOrQuestChance`) WHERE (`item` = '24330');