diff options
author | joschiwald <joschiwald@online.de> | 2012-08-10 03:03:52 +0100 |
---|---|---|
committer | Nay <dnpd.dd@gmail.com> | 2012-08-10 03:03:52 +0100 |
commit | f57531376b9ae17f2f290604041ec4b2086621e5 (patch) | |
tree | 11c5048dd766c95a770dd8f35d52379cc110718f | |
parent | 8585df1c1946f5f4f61e80bf877821871a1fb364 (diff) |
DB/Conditions: Fix startup db errors
Closes #7334
-rw-r--r-- | sql/updates/world/2012_08_10_00_world_conditions.sql | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/updates/world/2012_08_10_00_world_conditions.sql b/sql/updates/world/2012_08_10_00_world_conditions.sql new file mode 100644 index 00000000000..14c5c570b6e --- /dev/null +++ b/sql/updates/world/2012_08_10_00_world_conditions.sql @@ -0,0 +1,7 @@ +SET @ENTRY := 27482; -- Wounded Westfall Infantry npc +SET @SPELL := 48845; -- Renew Infantry spell +SET @ITEM := 37576; -- Renewing Bandage item +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=18 AND `SourceEntry`=@ITEM; +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=17 AND `SourceEntry`=@SPELL; +INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES +(17,0,@SPELL,0,31,1,3,@ENTRY,0,0,0,'', "Item Renewing Bandage target Wounded Westfall Infantry"); |