diff options
| -rw-r--r-- | sql/updates/world/2013_11_02_02_world_creature_loot_template.sql | 18 |
1 files changed, 18 insertions, 0 deletions
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 00000000000..abbe650b451 --- /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'); |
