From bc0646e190bd7ce512f26a9270fb8d8577728df3 Mon Sep 17 00:00:00 2001 From: Nay Date: Sun, 13 Jan 2013 18:18:26 +0000 Subject: DB/Conditions: Fix DB startup errors Thanks @vlad852 Related to d77904e0af2b9a15013efc383 --- sql/updates/world/2013_01_13_04_world_conditions.sql | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 sql/updates/world/2013_01_13_04_world_conditions.sql (limited to 'sql') diff --git a/sql/updates/world/2013_01_13_04_world_conditions.sql b/sql/updates/world/2013_01_13_04_world_conditions.sql new file mode 100644 index 00000000000..eaf45d5d696 --- /dev/null +++ b/sql/updates/world/2013_01_13_04_world_conditions.sql @@ -0,0 +1,9 @@ +SET @EYE := 193058; +SET @MIRROR_SPELL := 57528; +SET @MIRROR_NPC := 31005; + +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = @EYE; +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` IN (13,17) AND `SourceEntry`=@MIRROR_SPELL; +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(22,1,@EYE,1,0,9,0,13168,0,0,0,0,'','Execute SAI line only if player has quest active'), +(17,0,@MIRROR_SPELL,0,0,31,0,3,@MIRROR_NPC,0,0,0,'','Spell target Mirror npc'); -- cgit v1.2.3