aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorSnapperRy <snapperryen@gmail.com>2016-10-10 14:04:41 +0200
committerjoschiwald <joschiwald.trinity@gmail.com>2017-09-05 12:16:56 +0200
commitd1c52c1403db76e5053777567abd0a636086a821 (patch)
tree281223fb2476583c4d92d484e683f6a8099fd29a /sql
parent8cb536806206a12b0ebc0b6735845294fb161aba (diff)
DB/SAI: fix quest Gambling Debt (Part 1).
Closes #18063. (cherry picked from commit 173b33ab734700ecc717626c09aa1d3c95f0b636)
Diffstat (limited to 'sql')
-rw-r--r--sql/updates/world/master/2017_09_05_10_world_2016_10_10_00_world.sql17
1 files changed, 17 insertions, 0 deletions
diff --git a/sql/updates/world/master/2017_09_05_10_world_2016_10_10_00_world.sql b/sql/updates/world/master/2017_09_05_10_world_2016_10_10_00_world.sql
new file mode 100644
index 00000000000..30fb4c42246
--- /dev/null
+++ b/sql/updates/world/master/2017_09_05_10_world_2016_10_10_00_world.sql
@@ -0,0 +1,17 @@
+--
+DELETE FROM `conditions` WHERE `SourceEntry`=24539;
+DELETE FROM `conditions` WHERE `SourceGroup`=9010;
+
+DELETE FROM `smart_scripts` WHERE `entryorguid` IN (2453900, 2453901);
+INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
+(2453900, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "'Silvermoon' Harry - On Script - Say Line 1"),
+(2453900, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 2, 1080, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "'Silvermoon' Harry - On Script - Set Faction 1080"),
+(2453900, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "'Silvermoon' Harry - On Script - Set Phase 1"),
+(2453900, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 24, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "'Silvermoon' Harry - On Script - Evade"),
+(2453900, 9, 4, 0, 0, 0, 100, 0, 30000, 30000, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "'Silvermoon' Harry - On Script - Set Phase 0"),
+(2453901, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "'Silvermoon' Harry - On Script - Close Gossip"),
+(2453901, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 56, 34115, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "'Silvermoon' Harry - On Script - Add Item 'Silvermoon Harry's Debt'"),
+(2453901, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "'Silvermoon' Harry - On Script - Set Phase 0");
+
+UPDATE `smart_scripts` SET `event_phase_mask`=1 WHERE `entryorguid`=24539 AND `id`=5;
+UPDATE `smart_scripts` SET `action_type`=49, `action_param1`=0, `target_type`=7, `comment`="'Silvermoon' Harry - On Gossip Option 0 Selected - Attack Invoker" WHERE `entryorguid`=24539 AND `id`=3;