aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSnapperRy <snapperryen@gmail.com>2016-09-13 01:22:44 +0200
committerjoschiwald <joschiwald.trinity@gmail.com>2017-02-26 19:25:11 +0100
commit9dae7a6c5ef319f00d28dbe64e50cad505d337bf (patch)
treea5c2cf609a5c59a33926fab480e5788f44fb375c
parentfecf3b61434e7945214b2b2651f0d8f069b078a5 (diff)
DB/Quest: Let's Go Surfing Now
By @Rushor and @Killyana, finishing touches by yours truly. Closes #6845 (cherry picked from commit 3713b4e423949f2314a68b531ba7c091d4b64c3a)
-rw-r--r--sql/updates/world/master/2017_02_26_15_world_2016_09_13_00_world.sql27
1 files changed, 27 insertions, 0 deletions
diff --git a/sql/updates/world/master/2017_02_26_15_world_2016_09_13_00_world.sql b/sql/updates/world/master/2017_02_26_15_world_2016_09_13_00_world.sql
new file mode 100644
index 00000000000..82a1eee79c6
--- /dev/null
+++ b/sql/updates/world/master/2017_02_26_15_world_2016_09_13_00_world.sql
@@ -0,0 +1,27 @@
+--
+SET @ENTRY := 27924;
+UPDATE `creature_template` SET `AIName`="SmartAI", `InhabitType`=4, `speed_run`=5 WHERE `entry`=@ENTRY;
+DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
+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
+(@ENTRY, 0, 0, 1, 54, 0, 100, 512, 0, 0, 0, 0, 53, 1, 27924, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Dragonflayer Harpoon - On Summoned - Start Waypoint"),
+(@ENTRY, 0, 1, 2, 61, 0, 100, 512, 0, 0, 0, 0, 54, 2000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Dragonflayer Harpoon - On Summoned - Pause Waypoint for 2 seconds"),
+(@ENTRY, 0, 2, 0, 61, 0, 100, 512, 0, 0, 0, 0, 11, 50011, 0, 0, 0, 0, 0, 1,0,0,0,0,0,0,0,"Dragonflayer Harpoon - On Summoned - Cast 'Dragonflayer Harpoon Sounds' on self"),
+(@ENTRY, 0, 3, 4, 40, 0, 100, 512, 5, 27924, 0, 0, 15, 11436, 0, 0, 0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, "Dragonflayer Harpoon - On Waypoint 5 Reached - Quest Credit 'Let's Go Surfing Now'"),
+(@ENTRY, 0, 4, 0, 61, 0, 100, 512, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Dragonflayer Harpoon - On Waypoint 5 Reached - Despawn");
+
+DELETE FROM `waypoints` WHERE `entry`=27924;
+INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`, `point_comment`) VALUES
+(@ENTRY, 1, 803.085, -5333.39, 191.903, "Dragonflayer Harpoon"),
+(@ENTRY, 2, 761.183, -5268.77, 152.492, "Dragonflayer Harpoon"),
+(@ENTRY, 3, 695.561, -5155.04, 81.2906, "Dragonflayer Harpoon"),
+(@ENTRY, 4, 647.533, -5073.72, 29.9669, "Dragonflayer Harpoon"),
+(@ENTRY, 5, 621.608, -5027.49, 2.03123, "Dragonflayer Harpoon");
+
+DELETE FROM `creature_template_addon` WHERE `entry`=27924;
+INSERT INTO `creature_template_addon` (`entry`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES
+(@ENTRY, 0, 0, 0x1000000|0x2000000, 0x1, 0, "");
+UPDATE `creature` SET `MovementType`=0, `spawndist`=0 WHERE `guid`=107391;
+
+-- DELETE FROM `spell_target_position` WHERE `ID`=50007;
+-- INSERT INTO `spell_target_position` (`ID`, `EffectIndex`, `MapID`, `PositionX`, `PositionY`, `PositionZ`, `Orientation`, `VerifiedBuild`) VALUES
+-- (50007, 0, 571, 803.878, -5338.85, 193.281, 2.0246, 12340);