diff options
author | Nay <dnpd.dd@gmail.com> | 2013-01-13 18:18:26 +0000 |
---|---|---|
committer | Nay <dnpd.dd@gmail.com> | 2013-01-13 18:18:26 +0000 |
commit | bc0646e190bd7ce512f26a9270fb8d8577728df3 (patch) | |
tree | 1484223ae7073592226a0da46b3993d3acba8564 | |
parent | 71bfda55c33844cceb373f36dd21804ca26b4e61 (diff) |
DB/Conditions: Fix DB startup errors
Thanks @vlad852
Related to d77904e0af2b9a15013efc383
-rw-r--r-- | sql/updates/world/2013_01_13_04_world_conditions.sql | 9 |
1 files changed, 9 insertions, 0 deletions
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'); |