Quest Name = 'Breaking the Line' | '突破防线'
Quest ID = 25035
-- Add AIName
UPDATE `world`.`creature_template` SET `AIName` = 'SmartAI' WHERE `entry` IN (38440,38989,38931,38991);
-- Repair creature data of 'Bloodtalon Thrasher'
UPDATE `world`.`creature_template` SET `speed_run` = 1.42857, `unit_flags` = 768, `VehicleId` = 664 WHERE `entry` = 38991;
INSERT INTO `world`.`conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ConditionStringValue1`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(15, 11131, 0, 0, 0, 8, 0, 25035, 0, 0, '', 1, 0, 0, '', 'Jornun - On Quest Rewarded - Gossip Menu Option Unavailable');
-- Add creature text data
INSERT INTO `world`.`creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `SoundPlayType`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(38931, 0, 0, '', 12, 0, 100, 5, 0, 21374, 0, 39064, 0, 'Zuni to Player'),
(38989, 0, 0, '', 12, 0, 100, 1, 0, 0, 0, 39243, 0, 'Jornun to Player');
-- Add SAI
INSERT INTO `world`.`smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `Difficulties`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `event_param_string`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(38440, 0, 0, 0, '', 19, 0, 100, 0, 25035, 0, 0, 0, 0, '', 45, 0, 1, 0, 0, 0, 0, 0, 11, 38989, 10, 0, 0, 0, 0, 0, 0, 'Tortunga - On Quest \'Breaking the Line\' Accepted - Set Data 0 1 to Jornun'),
(38931, 0, 0, 1, '', 38, 0, 100, 0, 0, 1, 0, 0, 0, '', 1, 0, 2000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Zuni - On Data Set 0 1 - Self Say Group 0'),
(38931, 0, 1, 0, '', 61, 0, 100, 0, 0, 0, 0, 0, 0, '', 66, 0, 0, 0, 0, 0, 0, 0, 18, 5, 0, 0, 0, 0, 0, 0, 0, 'Zuni - On Link - Set Orientation to Player'),
(38989, 0, 0, 0, '', 62, 0, 100, 0, 11131, 0, 0, 0, 0, '', 72, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Jornun - On Gossip Option 0 Selected - Close Gossip'),
(38989, 0, 1, 0, '', 62, 0, 100, 0, 11131, 0, 0, 0, 0, '', 11, 73209, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Jornun - On Gossip Option 0 Selected - Cast \'Forcecast Summon Bloodtalon Thrasher\''),
(38989, 0, 2, 0, '', 62, 0, 100, 0, 11131, 0, 0, 0, 0, '', 45, 0, 1, 0, 0, 0, 0, 0, 11, 38931, 10, 0, 0, 0, 0, 0, 0, 'Jornun - On Gossip Option 0 Selected - Set Data 0 1 to Zuni'),
(38989, 0, 3, 4, '', 38, 0, 100, 0, 0, 1, 0, 0, 0, '', 1, 0, 2000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Jornun - On Data Set 0 1 - Self Say Group 0'),
(38989, 0, 4, 0, '', 61, 0, 100, 0, 0, 0, 0, 0, 0, '', 66, 0, 0, 0, 0, 0, 0, 0, 18, 5, 0, 0, 0, 0, 0, 0, 0, 'Jornun - On Link - Set Orientation to Player'),
(38991, 0, 0, 0, '', 27, 0, 100, 512, 0, 0, 0, 0, 0, '', 53, 1, 38991, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Bloodtalon Thrasher - On Passenger Boarded - Start Waypoints 38991'),
(38991, 0, 1, 0, '', 40, 0, 100, 512, 4, 38991, 0, 0, 0, '', 97, 30, 15, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, -1217.77, -5601.54, 14.3756, 0, 'Bloodtalon Thrasher - On Point 4 Reached - Jump To Position'),
(38991, 0, 2, 0, '', 40, 0, 100, 512, 17, 38991, 0, 0, 0, '', 97, 30, 15, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, -935.614, -5556.77, -0.128593, 0, 'Bloodtalon Thrasher - On Point 13 Reached - Jump To Position'),
(38991, 0, 3, 4, '', 40, 0, 100, 512, 34, 38991, 0, 0, 0, '', 11, 50630, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Bloodtalon Thrasher - On Point 17 Reached - Cast \'Eject All Passengers\''),
(38991, 0, 4, 0, '', 61, 0, 100, 512, 0, 0, 0, 0, 0, '', 41, 500, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Bloodtalon Thrasher - On Link - Self Despawn');
-- Add WP
INSERT INTO `world`.`waypoint_path` (`PathId`, `MoveType`, `Flags`, `Comment`) VALUES (38991, 1, 0, NULL);
INSERT INTO `world`.`waypoint_path_node` (`PathId`, `NodeId`, `PositionX`, `PositionY`, `PositionZ`, `Orientation`) VALUES
(38991, 1, -1291.66, -5562.07, 21.4191, NULL),
(38991, 2, -1277.66, -5571.82, 21.1691, NULL),
(38991, 3, -1266.91, -5583.57, 20.9191, NULL),
(38991, 4, -1251.16, -5587.82, 20.9191, NULL),
(38991, 5, -1217.77, -5601.54, 14.3756, NULL),
(38991, 6, -1198.44, -5610.4, 13.8722, NULL),
(38991, 7, -1172.69, -5617.15, 14.6222, NULL),
(38991, 8, -1136.19, -5617.65, 14.8722, NULL),
(38991, 9, -1105.19, -5619.9, 14.6222, NULL),
(38991, 10, -1081.19, -5627.65, 14.6222, NULL),
(38991, 11, -1058.44, -5646.4, 15.3722, NULL),
(38991, 12, -1040.44, -5645.15, 14.3722, NULL),
(38991, 13, -1024.19, -5631.4, 14.8722, NULL),
(38991, 14, -1017.44, -5605.15, 15.1222, NULL),
(38991, 15, -1004.94, -5587.4, 14.6222, NULL),
(38991, 16, -988.69, -5578.4, 15.1222, NULL),
(38991, 17, -967.44, -5571.4, 14.3722, NULL),
(38991, 18, -935.614, -5556.77, -0.128593, NULL),
(38991, 19, -934.442, -5554.75, -0.380345, NULL),
(38991, 20, -932.942, -5552.25, -0.880345, NULL),
(38991, 21, -930.942, -5548.75, -0.130344, NULL),
(38991, 22, -927.442, -5542.75, -1.13034, NULL),
(38991, 23, -917.069, -5524.74, -1.04888, NULL),
(38991, 24, -842.255, -5532.69, -0.776648, NULL),
(38991, 25, -833.255, -5539.69, -0.776648, NULL),
(38991, 26, -831.255, -5541.44, -0.276648, NULL),
(38991, 27, -828.005, -5543.69, 0.223352, NULL),
(38991, 28, -825.005, -5545.69, 0.723352, NULL),
(38991, 29, -821.005, -5548.69, 1.47335, NULL),
(38991, 30, -816.755, -5550.19, 1.47335, NULL),
(38991, 31, -815.505, -5550.94, 1.97335, NULL),
(38991, 32, -813.755, -5551.19, 3.22335, NULL),
(38991, 33, -812.755, -5551.69, 3.72335, NULL),
(38991, 34, -811.755, -5552.44, 3.97335, NULL);