aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAokromes <Aokromes@users.noreply.github.com>2014-05-19 18:28:57 +0200
committerAokromes <Aokromes@users.noreply.github.com>2014-05-19 18:28:57 +0200
commitced47da81258851e9cc7425dd0f1d322e1f7fe69 (patch)
treeb92846e902c766d04683217dec8f6c45bb8966dc
parentb83cff2a8552772bae863f1e640b6f1f35ed0d99 (diff)
DB/Quest: Fix Gambling Debt
By dr-j, closes #12092
-rw-r--r--sql/updates/world/2014_05_19_00_world_misc.sql10
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/updates/world/2014_05_19_00_world_misc.sql b/sql/updates/world/2014_05_19_00_world_misc.sql
new file mode 100644
index 00000000000..7879aca132d
--- /dev/null
+++ b/sql/updates/world/2014_05_19_00_world_misc.sql
@@ -0,0 +1,10 @@
+--
+UPDATE `smart_scripts` SET `event_phase_mask`=0 WHERE `entryorguid`=24539 AND `source_type`=0 AND `id` IN(5,6) AND `link`=0;
+DELETE FROM `smart_scripts` WHERE `entryorguid`=2453900 AND `source_type`=9 AND `id`=5 AND `link`=0;
+DELETE FROM `smart_scripts` WHERE `entryorguid`=2453901 AND `source_type`=9 AND `id`=4 AND `link`=0;
+UPDATE `smart_scripts` SET `event_param3`=0, `event_param4`=0 WHERE `entryorguid`=24539 AND `source_type`=0 AND `id`=4 AND `link`=0;
+
+DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=22 AND `SourceEntry`=24539;
+INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
+(22, 6, 24539, 0, 0, 38, 1, 50, 4, 0, 0, 0, 0, '', 'Silvermoon Harry - Only run SAI if silvermoon harry hp at 50% or lower'),
+(22, 6, 24539, 0, 0, 9, 0, 11464, 0, 0, 0, 0, 0, '', 'Silvermoon Harry - Only run SAI if player has gambling debt taken');