diff options
22 files changed, 2652 insertions, 374 deletions
diff --git a/sql/base/auth_database.sql b/sql/base/auth_database.sql index 56c5e509987..ed83e43dbb2 100644 --- a/sql/base/auth_database.sql +++ b/sql/base/auth_database.sql @@ -1318,7 +1318,6 @@ INSERT INTO `rbac_linked_permissions` VALUES (196,702), (196,703), (196,704), -(196,706), (196,707), (196,708), (196,709), @@ -2156,7 +2155,6 @@ INSERT INTO `rbac_permissions` VALUES (702,'Command: reload spell_threats'), (703,'Command: reload spell_group_stack_rules'), (704,'Command: reload trinity_string'), -(706,'Command: reload waypoint_scripts'), (707,'Command: reload waypoint_data'), (708,'Command: reload vehicle_accessory'), (709,'Command: reload vehicle_template_accessory'), @@ -2762,7 +2760,8 @@ INSERT INTO `updates` VALUES ('2023_11_15_00_auth.sql','85CE6DCBE9391F0FB3819C7579067E2775D7C20E','ARCHIVED','2023-11-15 00:48:07',0), ('2023_11_15_01_auth.sql','622218EB74372055943D7B62AD30B52F959CC94B','ARCHIVED','2023-11-15 00:53:47',0), ('2023_11_16_00_auth.sql','2EF3FE83B74EFC10B8536E2EB6AFAE7074FC59BD','RELEASED','2023-11-16 23:19:09',0), -('2023_11_21_00_auth.sql','146E5E6EF94C5DB78343372A8FDB32B062B80040','RELEASED','2023-11-21 11:24:11',0); +('2023_11_21_00_auth.sql','146E5E6EF94C5DB78343372A8FDB32B062B80040','RELEASED','2023-11-21 11:24:11',0), +('2023_11_24_00_auth.sql','AC1B5136CC97264A21933BD1074D02E88D819488','RELEASED','2023-11-24 19:37:38',0); /*!40000 ALTER TABLE `updates` ENABLE KEYS */; UNLOCK TABLES; diff --git a/sql/updates/auth/master/2023_11_24_00_auth.sql b/sql/updates/auth/master/2023_11_24_00_auth.sql new file mode 100644 index 00000000000..24ceeb979c7 --- /dev/null +++ b/sql/updates/auth/master/2023_11_24_00_auth.sql @@ -0,0 +1,5 @@ +-- drop .reload waypoint_scripts +DELETE FROM `rbac_permissions` WHERE `id`=706; +DELETE FROM `rbac_linked_permissions` WHERE `id`=706 OR `linkedId`=706; +DELETE FROM `rbac_account_permissions` WHERE `permissionId`=706; +DELETE FROM `rbac_default_permissions` WHERE `permissionId`=706; diff --git a/sql/updates/world/master/2023_11_24_00_world.sql b/sql/updates/world/master/2023_11_24_00_world.sql new file mode 100644 index 00000000000..b35bbb08864 --- /dev/null +++ b/sql/updates/world/master/2023_11_24_00_world.sql @@ -0,0 +1,2363 @@ + +DELETE FROM `command` WHERE `name`='reload waypoint_scripts'; +DELETE FROM `command` WHERE `name`='wp event'; + +DROP PROCEDURE IF EXISTS drop_waypoint_scripts_related; + +DELIMITER ;; +CREATE PROCEDURE drop_waypoint_scripts_related() BEGIN + IF EXISTS (SELECT * FROM `information_schema`.`columns` WHERE `table_schema`=SCHEMA() AND `table_name`='waypoint_scripts') THEN + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 2 + -- AffectedPaths = 2 + DELETE FROM `smart_scripts` WHERE `entryorguid`=0 AND `source_type`=9; + 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 + (0, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 17, 468, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 0.0 seconds - Self: Set emote state to 468'), + (0, 9, 1, 0, 0, 0, 100, 0, 11000, 11000, 0, 0, 17, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 11.0 seconds - Self: Set emote state to 0'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 5 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=0 AND `source_type`=9; + 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 + (0, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 17, 10, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 0.0 seconds - Self: Set emote state to 10'), + (0, 9, 1, 0, 0, 0, 100, 0, 30000, 30000, 0, 0, 17, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 30.0 seconds - Self: Set emote state to 0'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 7 + -- AffectedPaths = 2 + + DELETE FROM `creature_text` WHERE `CreatureID`=18947 AND `GroupID` BETWEEN 0 AND 1; + INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `SoundPlayType`, `BroadcastTextId`, `TextRange`, `comment`) VALUES + (18947, 0, 0, 'Gah! Every time I load something into the wagon, it reappears here within moments!', 12, 0, 100, 0, 0, 0, 0, 16099, 0, ''), + (18947, 1, 0, 'I should have known better than to have given Silanna that tome of cantrips.', 12, 0, 100, 0, 0, 0, 0, 16100, 0, ''); + + DELETE FROM `smart_scripts` WHERE `entryorguid`=1894700 AND `source_type`=9; + 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 + (1894700, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 1.0 seconds - Self: Talk 0 (BroadcastText: 16099) to invoker'), + (1894700, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 5, 6, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 0.0 seconds - Self: Play emote 6'), + (1894700, 9, 2, 0, 0, 0, 100, 0, 7000, 7000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 7.0 seconds - Self: Talk 1 (BroadcastText: 16100) to invoker'), + (1894700, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 5, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 0.0 seconds - Self: Play emote 1'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 39 + -- waypoint_scripts.id = 40 + -- waypoint_scripts.id = 41 + DELETE FROM `creature_text` WHERE `CreatureID`=10432 AND `GroupID` BETWEEN 1 AND 3; + INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `SoundPlayType`, `BroadcastTextId`, `TextRange`, `comment`) VALUES + (10432, 1, 0, 'The Lich King''s forces are building. It is imperative that our timetable supports his plans.', 12, 0, 100, 0, 0, 0, 0, 7194, 0, ''), + (10432, 2, 0, 'Tomorrow we will begin training of our promising dragons, so don''t forget your chew toys.', 12, 0, 100, 0, 0, 0, 0, 7193, 0, ''), + (10432, 3, 0, 'Our oldest clutch of dragons are still far from maturity, but with patience and study, we are confident the dragonflight will soon be ready.', 12, 0, 100, 0, 0, 0, 0, 7191, 0, ''); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 49 + -- AffectedPaths = 2 + DELETE FROM `smart_scripts` WHERE `entryorguid`=1841900 AND `source_type`=9; + 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 + (1841900, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 17, 378, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 1.0 seconds - Self: Set emote state to 378'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 51 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=3580800 AND `source_type`=9; + 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 + (3580800, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 5, 402, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 1.0 seconds - Self: Play emote 402'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 52 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=3622300 AND `source_type`=9; + 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 + (3622300, 9, 0, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 17, 418, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 2.0 seconds - Self: Set emote state to 418'), + (3622300, 9, 1, 0, 0, 0, 100, 0, 8000, 8000, 0, 0, 17, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 8.0 seconds - Self: Set emote state to 0'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 470 + -- AffectedPaths = 2 + DELETE FROM `smart_scripts` WHERE `entryorguid`=3237300 AND `source_type`=9; + 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 + (3237300, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 3.3185, 'After 1.0 seconds - Self: Set orientation to 3.3185'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 471 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=3237301 AND `source_type`=9; + 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 + (3237301, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1.804, 'After 1.0 seconds - Self: Set orientation to 1.804'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 472 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=3237302 AND `source_type`=9; + 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 + (3237302, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 4.9747, 'After 1.0 seconds - Self: Set orientation to 4.9747'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 473 + -- AffectedPaths = 2 + DELETE FROM `smart_scripts` WHERE `entryorguid`=3237400 AND `source_type`=9; + 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 + (3237400, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 4.9635, 'After 1.0 seconds - Self: Set orientation to 4.9635'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 474 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=3237401 AND `source_type`=9; + 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 + (3237401, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 3.3859, 'After 1.0 seconds - Self: Set orientation to 3.3859'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 475 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2621700 AND `source_type`=9; + 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 + (2621700, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 5, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 1.0 seconds - Self: Play emote 1'), + (2621700, 9, 1, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 5, 25, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 2.0 seconds - Self: Play emote 25'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 476 + -- AffectedPaths = 13 + DELETE FROM `smart_scripts` WHERE `entryorguid`=1841901 AND `source_type`=9; + 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 + (1841901, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 17, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 1.0 seconds - Self: Set emote state to 69'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 477 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2621701 AND `source_type`=9; + 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 + (2621701, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 17, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 1.0 seconds - Self: Set emote state to 69'); + + UPDATE `waypoint_data` SET `orientation`=5.37, `action`=0 WHERE `action`=477; + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 478 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2707200 AND `source_type`=9; + 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 + (2707200, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 5.3516, 'After 1.0 seconds - Self: Set orientation to 5.3516'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 479 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2707201 AND `source_type`=9; + 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 + (2707201, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1.42, 'After 1.0 seconds - Self: Set orientation to 1.42'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 480 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2736100 AND `source_type`=9; + 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 + (2736100, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 4.2214, 'After 1.0 seconds - Self: Set orientation to 4.2214'), + (2736100, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 17, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 0.0 seconds - Self: Set emote state to 69'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 481 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2736101 AND `source_type`=9; + 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 + (2736101, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 5.3582, 'After 1.0 seconds - Self: Set orientation to 5.3582'), + (2736101, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 17, 173, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 0.0 seconds - Self: Set emote state to 173'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 491 + -- AffectedPaths = 8 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2051200 AND `source_type`=9; + 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 + (2051200, 9, 0, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 17, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 3.0 seconds - Self: Set emote state to 69'), + (2051200, 9, 1, 0, 0, 0, 100, 0, 54000, 54000, 0, 0, 5, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 54.0 seconds - Self: Play emote 0'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 492 + -- AffectedPaths = 5 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2051201 AND `source_type`=9; + 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 + (2051201, 9, 0, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 17, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 3.0 seconds - Self: Set emote state to 69'), + (2051201, 9, 1, 0, 0, 0, 100, 0, 14000, 14000, 0, 0, 5, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 14.0 seconds - Self: Play emote 0'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 493 + -- AffectedPaths = 2 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2106500 AND `source_type`=9; + 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 + (2106500, 9, 0, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 17, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 2.0 seconds - Self: Set emote state to 69'), + (2106500, 9, 1, 0, 0, 0, 100, 0, 26000, 26000, 0, 0, 5, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 26.0 seconds - Self: Play emote 0'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 494 + -- AffectedPaths = 4 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2106501 AND `source_type`=9; + 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 + (2106501, 9, 0, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 17, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 2.0 seconds - Self: Set emote state to 69'), + (2106501, 9, 1, 0, 0, 0, 100, 0, 11000, 11000, 0, 0, 5, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 11.0 seconds - Self: Play emote 0'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 495 + -- AffectedPaths = 20 + DELETE FROM `smart_scripts` WHERE `entryorguid`=1855900 AND `source_type`=9; + 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 + (1855900, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 32754, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 0.0 seconds - Self: Cast spell 32754 on Self'), + (1855900, 9, 1, 0, 0, 0, 100, 0, 30000, 30000, 0, 0, 28, 32754, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 30.0 seconds - Self: Remove aura due to spell 32754'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1114 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2756600 AND `source_type`=9; + 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 + (2756600, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 124, 226, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 0.0 seconds - Self: Force load EquipmentId 226'), + (2756600, 9, 1, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 17, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 1.0 seconds - Self: Set emote state to 69'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1115 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2756601 AND `source_type`=9; + 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 + (2756601, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 124, 2066, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 0.0 seconds - Self: Force load EquipmentId 2066'), + (2756601, 9, 1, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 17, 173, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 1.0 seconds - Self: Set emote state to 173'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1116 + -- AffectedPaths = 2 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2756602 AND `source_type`=9; + 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 + (2756602, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 17, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 1.0 seconds - Self: Set emote state to 69'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1120 + -- AffectedPaths = 1 + DELETE FROM `creature_text` WHERE `CreatureID`=25235 AND `GroupID`=0; + INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `SoundPlayType`, `BroadcastTextId`, `TextRange`, `comment`) VALUES + (25235, 0, 0, 'We''re running low on iron, lads! I don''t want to see a single bar go to waste, ye hear me now?', 12, 0, 100, 0, 0, 0, 0, 24439, 0, ''); + + DELETE FROM `smart_scripts` WHERE `entryorguid`=2523500 AND `source_type`=9; + 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 + (2523500, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 17, 16, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 0.0 seconds - Self: Set emote state to 16'), + (2523500, 9, 1, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 17, 26, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 5.0 seconds - Self: Set emote state to 26'), + (2523500, 9, 2, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 4.67122, 'After 1.0 seconds - Self: Set orientation to 4.67122'), + (2523500, 9, 3, 0, 0, 0, 100, 0, 9000, 9000, 0, 0, 5, 22, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 9.0 seconds - Self: Play emote 22'), + (2523500, 9, 4, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 1.0 seconds - Self: Talk 0 (BroadcastText: 24439) to invoker'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1121 + -- AffectedPaths = 2 + DELETE FROM `creature_text` WHERE `CreatureID`=25235 AND `GroupID`=1; + INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `SoundPlayType`, `BroadcastTextId`, `TextRange`, `comment`) VALUES + (25235, 1, 0, 'Not bad. Try that trick I told you about when you temper the steel.', 12, 0, 100, 0, 0, 0, 0, 24443, 0, ''); + + DELETE FROM `smart_scripts` WHERE `entryorguid`=2523501 AND `source_type`=9; + 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 + (2523501, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 1.0 seconds - Self: Talk 1 (BroadcastText: 24443) to invoker'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1122 + -- AffectedPaths = 2 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2523502 AND `source_type`=9; + 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 + (2523502, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 17, 233, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 1.0 seconds - Self: Set emote state to 233'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1123 + -- AffectedPaths = 2 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2739300 AND `source_type`=9; + 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 + (2739300, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 17, 379, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 1.0 seconds - Self: Set emote state to 379'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1124 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2739301 AND `source_type`=9; + 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 + (2739301, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 17, 26, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 0.0 seconds - Self: Set emote state to 26'), + (2739301, 9, 1, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 11, 56745, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 1.0 seconds - Self: Cast spell 56745 on Self'), + (2739301, 9, 2, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 11, 56745, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 3.0 seconds - Self: Cast spell 56745 on Self'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1125 + -- AffectedPaths = 4 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2355000 AND `source_type`=9; + 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 + (2355000, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 3, 0, 21612, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 1.0 seconds - Self: Morph to model 21612'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1126 + -- AffectedPaths = 4 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2355001 AND `source_type`=9; + 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 + (2355001, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 3, 0, 21614, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 1.0 seconds - Self: Morph to model 21614'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1127 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2404000 AND `source_type`=9; + 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 + (2404000, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 4.97788, 'After 1.0 seconds - Self: Set orientation to 4.97788'), + (2404000, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 17, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 0.0 seconds - Self: Set emote state to 69'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1128 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2404001 AND `source_type`=9; + 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 + (2404001, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 5.70399, 'After 1.0 seconds - Self: Set orientation to 5.70399'), + (2404001, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 17, 173, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 0.0 seconds - Self: Set emote state to 173'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1129 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2404002 AND `source_type`=9; + 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 + (2404002, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0.436332, 'After 1.0 seconds - Self: Set orientation to 0.436332'), + (2404002, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 17, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 0.0 seconds - Self: Set emote state to 69'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1134 + -- AffectedPaths = 1 + UPDATE `waypoint_data` SET `orientation`=0.104771, `action`=0 WHERE `action`=1134; + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1137 + -- AffectedPaths = 3 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2150000 AND `source_type`=9; + 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 + (2150000, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 5, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 1.0 seconds - Self: Play emote 1'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1138 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2150001 AND `source_type`=9; + 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 + (2150001, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 2.79253, 'After 1.0 seconds - Self: Set orientation to 2.79253'), + (2150001, 9, 1, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 5, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 1.0 seconds - Self: Play emote 1'), + (2150001, 9, 2, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 5, 15, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 6.0 seconds - Self: Play emote 15'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1139 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2641700 AND `source_type`=9; + 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 + (2641700, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 62, 571, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4370.97, -4934.86, 29.1214, 0.982114, 'After 1.0 seconds - Self: Teleport to (4370.97, -4934.86, 29.1214, 0.982114) on map 571'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1140 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2641701 AND `source_type`=9; + 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 + (2641701, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 62, 571, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4374.84, -4770.08, 52.848, 1.1487, 'After 1.0 seconds - Self: Teleport to (4374.84, -4770.08, 52.848, 1.1487) on map 571'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1141 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2641702 AND `source_type`=9; + 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 + (2641702, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 62, 571, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4306.51, -4766.24, 56.8766, 0.465818, 'After 1.0 seconds - Self: Teleport to (4306.51, -4766.24, 56.8766, 0.465818) on map 571'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1142 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2641703 AND `source_type`=9; + 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 + (2641703, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 62, 571, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4463.83, -4644.89, 84.6203, 2.40181, 'After 1.0 seconds - Self: Teleport to (4463.83, -4644.89, 84.6203, 2.40181) on map 571'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1143 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2641704 AND `source_type`=9; + 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 + (2641704, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 62, 571, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4353.19, -4571.79, 118.402, 1.35635, 'After 1.0 seconds - Self: Teleport to (4353.19, -4571.79, 118.402, 1.35635) on map 571'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1144 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2641705 AND `source_type`=9; + 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 + (2641705, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 62, 571, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4131.99, -4889.01, 60.1083, 0.369627, 'After 1.0 seconds - Self: Teleport to (4131.99, -4889.01, 60.1083, 0.369627) on map 571'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1145 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2641706 AND `source_type`=9; + 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 + (2641706, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 62, 571, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4051.38, -5111.15, 12.6903, 0.341522, 'After 1.0 seconds - Self: Teleport to (4051.38, -5111.15, 12.6903, 0.341522) on map 571'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1146 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2641707 AND `source_type`=9; + 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 + (2641707, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 62, 571, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4182.0, -4758.6, 71.2506, 6.20304, 'After 1.0 seconds - Self: Teleport to (4182.0, -4758.6, 71.2506, 6.20304) on map 571'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1147 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2641708 AND `source_type`=9; + 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 + (2641708, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 62, 571, 0, 0, 0, 0, 0, 1, 0, 0, 0, 3940.79, -4923.88, 81.667, 0.583063, 'After 1.0 seconds - Self: Teleport to (3940.79, -4923.88, 81.667, 0.583063) on map 571'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1148 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2641709 AND `source_type`=9; + 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 + (2641709, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 62, 571, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4137.97, -4969.12, 36.8373, 1.16219, 'After 1.0 seconds - Self: Teleport to (4137.97, -4969.12, 36.8373, 1.16219) on map 571'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1149 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2641710 AND `source_type`=9; + 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 + (2641710, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 62, 571, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4116.99, -5024.95, 30.5289, 0.607674, 'After 1.0 seconds - Self: Teleport to (4116.99, -5024.95, 30.5289, 0.607674) on map 571'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1150 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2641711 AND `source_type`=9; + 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 + (2641711, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 62, 571, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4388.64, -4820.43, 41.3801, 0.994674, 'After 1.0 seconds - Self: Teleport to (4388.64, -4820.43, 41.3801, 0.994674) on map 571'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1151 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2641712 AND `source_type`=9; + 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 + (2641712, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 62, 571, 0, 0, 0, 0, 0, 1, 0, 0, 0, 3859.19, -5204.08, 71.2207, 5.69976, 'After 1.0 seconds - Self: Teleport to (3859.19, -5204.08, 71.2207, 5.69976) on map 571'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1152 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2641713 AND `source_type`=9; + 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 + (2641713, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 62, 571, 0, 0, 0, 0, 0, 1, 0, 0, 0, 3879.8, -4989.44, 85.9219, 0.275225, 'After 1.0 seconds - Self: Teleport to (3879.8, -4989.44, 85.9219, 0.275225) on map 571'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1153 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2641714 AND `source_type`=9; + 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 + (2641714, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 62, 571, 0, 0, 0, 0, 0, 1, 0, 0, 0, 3922.52, -5267.12, 7.26294, 0.90739, 'After 1.0 seconds - Self: Teleport to (3922.52, -5267.12, 7.26294, 0.90739) on map 571'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1154 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2641715 AND `source_type`=9; + 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 + (2641715, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 62, 571, 0, 0, 0, 0, 0, 1, 0, 0, 0, 3863.01, -5340.63, 4.19676, 0.484555, 'After 1.0 seconds - Self: Teleport to (3863.01, -5340.63, 4.19676, 0.484555) on map 571'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1155 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2641716 AND `source_type`=9; + 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 + (2641716, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 62, 571, 0, 0, 0, 0, 0, 1, 0, 0, 0, 3707.78, -5226.12, 125.551, 6.2721, 'After 1.0 seconds - Self: Teleport to (3707.78, -5226.12, 125.551, 6.2721) on map 571'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1156 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2641717 AND `source_type`=9; + 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 + (2641717, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 62, 571, 0, 0, 0, 0, 0, 1, 0, 0, 0, 3658.67, -5436.73, 26.487, 0.949674, 'After 1.0 seconds - Self: Teleport to (3658.67, -5436.73, 26.487, 0.949674) on map 571'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1157 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2641718 AND `source_type`=9; + 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 + (2641718, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 62, 571, 0, 0, 0, 0, 0, 1, 0, 0, 0, 3521.14, -5462.94, 168.445, 0.93554, 'After 1.0 seconds - Self: Teleport to (3521.14, -5462.94, 168.445, 0.93554) on map 571'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1158 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2641719 AND `source_type`=9; + 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 + (2641719, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 62, 571, 0, 0, 0, 0, 0, 1, 0, 0, 0, 3632.08, -5536.6, 12.9124, 1.18737, 'After 1.0 seconds - Self: Teleport to (3632.08, -5536.6, 12.9124, 1.18737) on map 571'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1160 + -- AffectedPaths = 4 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2481200 AND `source_type`=9; + 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 + (2481200, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 28, 44385, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 0.0 seconds - Self: Remove aura due to spell 44385'), + (2481200, 9, 1, 0, 0, 0, 100, 0, 17000, 17000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 2.31755, 'After 17.0 seconds - Self: Set orientation to 2.31755'), + (2481200, 9, 2, 0, 0, 0, 100, 0, 18000, 18000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1.33832, 'After 18.0 seconds - Self: Set orientation to 1.33832'), + (2481200, 9, 3, 0, 0, 0, 100, 0, 48000, 48000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 2.41372, 'After 48.0 seconds - Self: Set orientation to 2.41372'), + (2481200, 9, 4, 0, 0, 0, 100, 0, 35000, 35000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 2.52903, 'After 35.0 seconds - Self: Set orientation to 2.52903'), + (2481200, 9, 5, 0, 0, 0, 100, 0, 61000, 61000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 4.18812, 'After 61.0 seconds - Self: Set orientation to 4.18812'), + (2481200, 9, 6, 0, 0, 0, 100, 0, 51000, 51000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 3.9892, 'After 51.0 seconds - Self: Set orientation to 3.9892'), + (2481200, 9, 7, 0, 0, 0, 100, 0, 75000, 75000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 2.95678, 'After 75.0 seconds - Self: Set orientation to 2.95678'), + (2481200, 9, 8, 0, 0, 0, 100, 0, 71000, 71000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0.742216, 'After 71.0 seconds - Self: Set orientation to 0.742216'); + + UPDATE `waypoint_data` SET `orientation`=1.26624, `action`=0 WHERE `action`=1160; + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1162 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2481201 AND `source_type`=9; + 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 + (2481201, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 28, 44385, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 0.0 seconds - Self: Remove aura due to spell 44385'), + (2481201, 9, 1, 0, 0, 0, 100, 0, 17000, 17000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1.21163, 'After 17.0 seconds - Self: Set orientation to 1.21163'), + (2481201, 9, 2, 0, 0, 0, 100, 0, 17000, 17000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1.55871, 'After 17.0 seconds - Self: Set orientation to 1.55871'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1163 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2481202 AND `source_type`=9; + 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 + (2481202, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 28, 44385, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 0.0 seconds - Self: Remove aura due to spell 44385'), + (2481202, 9, 1, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1.13962, 'After 6.0 seconds - Self: Set orientation to 1.13962'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1164 + -- AffectedPaths = 1 + UPDATE `waypoint_data` SET `orientation`=5.18363, `action`=0 WHERE `action`=1164; + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1165 + -- AffectedPaths = 1 + UPDATE `waypoint_data` SET `orientation`=4.10152, `action`=0 WHERE `action`=1165; + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1168 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2883200 AND `source_type`=9; + 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 + (2883200, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1.32645, 'After 1.0 seconds - Self: Set orientation to 1.32645'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1169 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2883201 AND `source_type`=9; + 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 + (2883201, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0.541052, 'After 1.0 seconds - Self: Set orientation to 0.541052'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1170 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2882800 AND `source_type`=9; + 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 + (2882800, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 4.15388, 'After 1.0 seconds - Self: Set orientation to 4.15388'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1171 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2882900 AND `source_type`=9; + 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 + (2882900, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 3.68265, 'After 1.0 seconds - Self: Set orientation to 3.68265'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1172 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2882901 AND `source_type`=9; + 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 + (2882901, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 3.7001, 'After 1.0 seconds - Self: Set orientation to 3.7001'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1175 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2883000 AND `source_type`=9; + 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 + (2883000, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 2.61799, 'After 1.0 seconds - Self: Set orientation to 2.61799'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1177 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=3263100 AND `source_type`=9; + 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 + (3263100, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 4.83456, 'After 1.0 seconds - Self: Set orientation to 4.83456'), + (3263100, 9, 1, 0, 0, 0, 100, 0, 13000, 13000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 4.39823, 'After 13.0 seconds - Self: Set orientation to 4.39823'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1178 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=3263101 AND `source_type`=9; + 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 + (3263101, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0.331613, 'After 1.0 seconds - Self: Set orientation to 0.331613'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1179 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=3263102 AND `source_type`=9; + 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 + (3263102, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 2.37365, 'After 1.0 seconds - Self: Set orientation to 2.37365'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1180 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=3273700 AND `source_type`=9; + 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 + (3273700, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 3.12414, 'After 1.0 seconds - Self: Set orientation to 3.12414'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1181 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=3273701 AND `source_type`=9; + 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 + (3273701, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 5.46288, 'After 1.0 seconds - Self: Set orientation to 5.46288'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1185 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=3778000 AND `source_type`=9; + 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 + (3778000, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 2.84489, 'After 1.0 seconds - Self: Set orientation to 2.84489'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1186 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=3778001 AND `source_type`=9; + 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 + (3778001, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 4.72984, 'After 1.0 seconds - Self: Set orientation to 4.72984'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1187 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=3778002 AND `source_type`=9; + 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 + (3778002, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 2.49582, 'After 1.0 seconds - Self: Set orientation to 2.49582'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1188 + -- AffectedPaths = 130 + DELETE FROM `smart_scripts` WHERE `entryorguid`=1868800 AND `source_type`=9; + 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 + (1868800, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 41, 1000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 1.0 seconds - Self: Despawn in 1.0 s'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1190 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=3777600 AND `source_type`=9; + 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 + (3777600, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 5.42797, 'After 1.0 seconds - Self: Set orientation to 5.42797'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1191 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=3777601 AND `source_type`=9; + 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 + (3777601, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1.48353, 'After 1.0 seconds - Self: Set orientation to 1.48353'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1192 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=3777602 AND `source_type`=9; + 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 + (3777602, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 5.77704, 'After 1.0 seconds - Self: Set orientation to 5.77704'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1193 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2860000 AND `source_type`=9; + 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 + (2860000, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 5, 38, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 0.0 seconds - Self: Play emote 38'), + (2860000, 9, 1, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 4, 6675, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 1.0 seconds - Self: Play direct sound 6675 to every player in visibility range of Self'), + (2860000, 9, 2, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 17, 375, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 1.0 seconds - Self: Set emote state to 375'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1196 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2546500 AND `source_type`=9; + 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 + (2546500, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 5.84679, 'After 1.0 seconds - Self: Set orientation to 5.84679'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1197 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2546501 AND `source_type`=9; + 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 + (2546501, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1.48722, 'After 1.0 seconds - Self: Set orientation to 1.48722'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1198 + -- AffectedPaths = 69 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2534900 AND `source_type`=9; + 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 + (2534900, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 45612, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 0.0 seconds - Self: Cast spell 45612 on Self'), + (2534900, 9, 1, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 11, 45609, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 2.0 seconds - Self: Cast spell 45609 on Self'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1201 + -- AffectedPaths = 7 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2850000 AND `source_type`=9; + 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 + (2850000, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 17, 233, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 1.0 seconds - Self: Set emote state to 233'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1202 + -- AffectedPaths = 2 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2850500 AND `source_type`=9; + 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 + (2850500, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 5, 18, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 1.0 seconds - Self: Play emote 18'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1203 + -- AffectedPaths = 4 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2850600 AND `source_type`=9; + 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 + (2850600, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 17, 438, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 1.0 seconds - Self: Set emote state to 438'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 682901 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=1899900 AND `source_type`=9; + 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 + (1899900, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 2.80998, 'After 1.0 seconds - Self: Set orientation to 2.80998'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 682902 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=1899901 AND `source_type`=9; + 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 + (1899901, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 6.02139, 'After 1.0 seconds - Self: Set orientation to 6.02139'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 682903 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=1899902 AND `source_type`=9; + 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 + (1899902, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 6.16101, 'After 1.0 seconds - Self: Set orientation to 6.16101'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 682904 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=1899903 AND `source_type`=9; + 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 + (1899903, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 6.00393, 'After 1.0 seconds - Self: Set orientation to 6.00393'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 682921 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=1899904 AND `source_type`=9; + 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 + (1899904, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 4.72984, 'After 1.0 seconds - Self: Set orientation to 4.72984'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 682922 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=1899905 AND `source_type`=9; + 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 + (1899905, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 6.0912, 'After 1.0 seconds - Self: Set orientation to 6.0912'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 682923 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=1899906 AND `source_type`=9; + 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 + (1899906, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1.81514, 'After 1.0 seconds - Self: Set orientation to 1.81514'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 682924 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=1899907 AND `source_type`=9; + 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 + (1899907, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 3.56047, 'After 1.0 seconds - Self: Set orientation to 3.56047'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 682961 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=1899908 AND `source_type`=9; + 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 + (1899908, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 2.37365, 'After 1.0 seconds - Self: Set orientation to 2.37365'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 682962 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=1899909 AND `source_type`=9; + 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 + (1899909, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 2.16421, 'After 1.0 seconds - Self: Set orientation to 2.16421'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 682963 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=1899910 AND `source_type`=9; + 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 + (1899910, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0.349066, 'After 1.0 seconds - Self: Set orientation to 0.349066'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 682964 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=1899911 AND `source_type`=9; + 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 + (1899911, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 2.16421, 'After 1.0 seconds - Self: Set orientation to 2.16421'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 683081 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=1900300 AND `source_type`=9; + 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 + (1900300, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0.191986, 'After 1.0 seconds - Self: Set orientation to 0.191986'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 683091 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=1900301 AND `source_type`=9; + 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 + (1900301, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 2.32129, 'After 1.0 seconds - Self: Set orientation to 2.32129'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 684681 + -- AffectedPaths = 1 + UPDATE `waypoint_data` SET `orientation`=3.83972, `action`=0 WHERE `action`=684681; + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 684691 + -- AffectedPaths = 1 + UPDATE `waypoint_data` SET `orientation`=1.5708, `action`=0 WHERE `action`=684691; + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 684701 + -- AffectedPaths = 1 + UPDATE `waypoint_data` SET `orientation`=1.41372, `action`=0 WHERE `action`=684701; + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 686261 + -- AffectedPaths = 1 + UPDATE `waypoint_data` SET `orientation`=1.27409, `action`=0 WHERE `action`=686261; + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1128651 + -- AffectedPaths = 1 + UPDATE `waypoint_data` SET `orientation`=2.9147, `action`=0 WHERE `action`=1128651; + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1128652 + -- AffectedPaths = 1 + UPDATE `waypoint_data` SET `orientation`=5.20108, `action`=0 WHERE `action`=1128652; + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1128661 + -- AffectedPaths = 1 + UPDATE `waypoint_data` SET `orientation`=0.855211, `action`=0 WHERE `action`=1128661; + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1128662 + -- AffectedPaths = 1 + UPDATE `waypoint_data` SET `orientation`=0.890118, `action`=0 WHERE `action`=1128662; + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1128663 + -- AffectedPaths = 1 + UPDATE `waypoint_data` SET `orientation`=0.0698132, `action`=0 WHERE `action`=1128663; + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1336191 + -- AffectedPaths = 1 + UPDATE `waypoint_data` SET `orientation`=1.46608, `action`=0 WHERE `action`=1336191; + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1336192 + -- AffectedPaths = 2 + UPDATE `waypoint_data` SET `orientation`=4.63913, `action`=0 WHERE `action`=1336192; + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1378561 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=1089900 AND `source_type`=9; + 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 + (1089900, 9, 0, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 17, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 3.0 seconds - Self: Set emote state to 69'); + + UPDATE `waypoint_data` SET `orientation`=5.75959, `action`=0 WHERE `action`=1378561; + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1378562 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=1089901 AND `source_type`=9; + 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 + (1089901, 9, 0, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 17, 133, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 4.0 seconds - Self: Set emote state to 133'), + (1089901, 9, 1, 0, 0, 0, 100, 0, 35000, 35000, 0, 0, 17, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 35.0 seconds - Self: Set emote state to 0'); + + UPDATE `waypoint_data` SET `orientation`=0.715585, `action`=0 WHERE `action`=1378562; + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1378563 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=1089902 AND `source_type`=9; + 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 + (1089902, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 17, 28, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 1.0 seconds - Self: Set emote state to 28'), + (1089902, 9, 1, 0, 0, 0, 100, 0, 21000, 21000, 0, 0, 17, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 21.0 seconds - Self: Set emote state to 0'); + + UPDATE `waypoint_data` SET `orientation`=1.80131, `action`=0 WHERE `action`=1378563; + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1380451 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=909700 AND `source_type`=9; + 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 + (909700, 9, 0, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 5, 7, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 2.0 seconds - Self: Play emote 7'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 1380452 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=909701 AND `source_type`=9; + 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 + (909701, 9, 0, 0, 0, 0, 100, 0, 7000, 7000, 0, 0, 17, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 7.0 seconds - Self: Set emote state to 69'), + (909701, 9, 1, 0, 0, 0, 100, 0, 9000, 9000, 0, 0, 17, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 9.0 seconds - Self: Set emote state to 0'); + + UPDATE `waypoint_data` SET `orientation`=3.89208, `action`=0 WHERE `action`=1380452; + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 2026160 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=1725900 AND `source_type`=9; + 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 + (1725900, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 17, 234, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 1.0 seconds - Self: Set emote state to 234'); + + UPDATE `waypoint_data` SET `orientation`=0.907571, `action`=0 WHERE `action`=2026160; + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 2026161 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=1725901 AND `source_type`=9; + 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 + (1725901, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 17, 234, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 1.0 seconds - Self: Set emote state to 234'); + + UPDATE `waypoint_data` SET `orientation`=3.29867, `action`=0 WHERE `action`=2026161; + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 2026250 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=1726400 AND `source_type`=9; + 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 + (1726400, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 17, 234, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 1.0 seconds - Self: Set emote state to 234'); + + UPDATE `waypoint_data` SET `orientation`=2.33874, `action`=0 WHERE `action`=2026250; + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 2026251 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=1726401 AND `source_type`=9; + 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 + (1726401, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 17, 234, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 1.0 seconds - Self: Set emote state to 234'); + + UPDATE `waypoint_data` SET `orientation`=0.191986, `action`=0 WHERE `action`=2026251; + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 2026270 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=1726402 AND `source_type`=9; + 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 + (1726402, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 17, 234, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 1.0 seconds - Self: Set emote state to 234'); + + UPDATE `waypoint_data` SET `orientation`=5.11381, `action`=0 WHERE `action`=2026270; + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 2026271 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=1726403 AND `source_type`=9; + 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 + (1726403, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 17, 234, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 1.0 seconds - Self: Set emote state to 234'); + + UPDATE `waypoint_data` SET `orientation`=4.79965, `action`=0 WHERE `action`=2026271; + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 3848250 + -- AffectedPaths = 2 + DELETE FROM `smart_scripts` WHERE `entryorguid`=3964200 AND `source_type`=9; + 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 + (3964200, 9, 0, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 5, 54, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 5.0 seconds - Self: Play emote 54'), + (3964200, 9, 1, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 5, 54, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 2.0 seconds - Self: Play emote 54'), + (3964200, 9, 2, 0, 0, 0, 100, 0, 7000, 7000, 0, 0, 5, 54, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 7.0 seconds - Self: Play emote 54'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 3853710 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=3964201 AND `source_type`=9; + 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 + (3964201, 9, 0, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 5, 381, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 4.0 seconds - Self: Play emote 381'), + (3964201, 9, 1, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 5, 381, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 4.0 seconds - Self: Play emote 381'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 3853711 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=3964202 AND `source_type`=9; + 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 + (3964202, 9, 0, 0, 0, 0, 100, 0, 7000, 7000, 0, 0, 17, 233, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 7.0 seconds - Self: Set emote state to 233'), + (3964202, 9, 1, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 17, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 6.0 seconds - Self: Set emote state to 0'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 3860971 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=3984300 AND `source_type`=9; + 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 + (3984300, 9, 0, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 5, 432, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 3.0 seconds - Self: Play emote 432'), + (3984300, 9, 1, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 5, 60, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 3.0 seconds - Self: Play emote 60'), + (3984300, 9, 2, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 5, 5, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 6.0 seconds - Self: Play emote 5'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 5753900 + -- AffectedPaths = 4 + DELETE FROM `smart_scripts` WHERE `entryorguid`=1658000 AND `source_type`=9; + 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 + (1658000, 9, 0, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 5, 7, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 2.0 seconds - Self: Play emote 7'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 5862800 + -- AffectedPaths = 10 + DELETE FROM `smart_scripts` WHERE `entryorguid`=1690700 AND `source_type`=9; + 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 + (1690700, 9, 0, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 17, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 2.0 seconds - Self: Set emote state to 69'), + (1690700, 9, 1, 0, 0, 0, 100, 0, 40000, 40000, 0, 0, 17, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 40.0 seconds - Self: Set emote state to 0'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 6556600 + -- AffectedPaths = 1 + + DELETE FROM `creature_text` WHERE `CreatureID`=18274 AND `GroupID`=0; + INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `SoundPlayType`, `BroadcastTextId`, `TextRange`, `comment`) VALUES + (18274, 0, 0, 'Try to keep appraisal errors to a minimum. I''d hate to tell Gezhe we''ve overpaid on another gem shipment this month.', 12, 0, 100, 0, 0, 0, 0, 16960, 0, ''); + + DELETE FROM `smart_scripts` WHERE `entryorguid`=1827400 AND `source_type`=9; + 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 + (1827400, 9, 0, 0, 0, 0, 100, 0, 15000, 15000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 15.0 seconds - Self: Talk 0 (BroadcastText: 16960) to invoker'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 11026002 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2850400 AND `source_type`=9; + 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 + (2850400, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 11, 51733, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 1.0 seconds - Self: Cast spell 51733 on Self'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 11026401 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2850401 AND `source_type`=9; + 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 + (2850401, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 11, 51733, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 1.0 seconds - Self: Cast spell 51733 on Self'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 11026402 + -- AffectedPaths = 1 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2850402 AND `source_type`=9; + 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 + (2850402, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 11, 51733, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 1.0 seconds - Self: Cast spell 51733 on Self'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 11130700 + -- AffectedPaths = 2 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2730000 AND `source_type`=9; + 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 + (2730000, 9, 0, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 17, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 2.0 seconds - Self: Set emote state to 69'), + (2730000, 9, 1, 0, 0, 0, 100, 0, 15000, 15000, 0, 0, 17, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 15.0 seconds - Self: Set emote state to 0'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 11393600 + -- AffectedPaths = 4 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2937500 AND `source_type`=9; + 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 + (2937500, 9, 0, 0, 0, 0, 100, 0, 13000, 13000, 0, 0, 5, 53, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 13.0 seconds - Self: Play emote 53'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 11730800 + -- AffectedPaths = 4 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2940700 AND `source_type`=9; + 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 + (2940700, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 5, 36, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 1.0 seconds - Self: Play emote 36'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 12556600 + -- AffectedPaths = 2 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2604400 AND `source_type`=9; + 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 + (2604400, 9, 0, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 11, 68442, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 2.0 seconds - Self: Cast spell 68442 on Self'), + (2604400, 9, 1, 0, 0, 0, 100, 0, 8000, 8000, 0, 0, 5, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 8.0 seconds - Self: Play emote 1'), + (2604400, 9, 2, 0, 0, 0, 100, 0, 10000, 10000, 0, 0, 28, 68442, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 10.0 seconds - Self: Remove aura due to spell 68442'); + + -- --------------------------------------------------------------------------------------------------------------------- + -- waypoint_scripts.id = 13036300 + -- AffectedPaths = 3 + DELETE FROM `smart_scripts` WHERE `entryorguid`=2918500 AND `source_type`=9; + 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 + (2918500, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 11, 26047, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 1.0 seconds - Self: Cast spell 26047 on Self'), + (2918500, 9, 1, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 17, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 3.0 seconds - Self: Set emote state to 0'); + + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10884320 AND `point` IN(3,9,13); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5440720 AND `point` IN(6,1,2); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=28902160 AND `point` IN(9,5,2,8); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=4816480 AND `point` IN(11,4,8,10,3,7); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=3493680 AND `point` IN(3); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=3493840 AND `point` IN(7); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=3494320 AND `point` IN(3); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=3638080 AND `point` IN(5); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=3904400 AND `point` IN(2,3,4); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=3955680 AND `point` IN(3); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=4507840 AND `point` IN(2,6); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=16144000 AND `point` IN(2,3,4,5,9,10); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=6639440 AND `point` IN(1,2); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=6639520 AND `point` IN(1,2); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=6809200 AND `point` IN(3); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=6641760 AND `point` IN(1); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=4696160 AND `point` IN(7); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5089120 AND `point` IN(16,18); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5251040 AND `point` IN(1); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5598960 AND `point` IN(4); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5599040 AND `point` IN(2); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5599120 AND `point` IN(3); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5599280 AND `point` IN(3); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5599440 AND `point` IN(3); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5599520 AND `point` IN(4); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5599840 AND `point` IN(3); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5599920 AND `point` IN(7); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5598240 AND `point` IN(6); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5598400 AND `point` IN(3); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5598560 AND `point` IN(5); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5354960 AND `point` IN(2,3); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5602000 AND `point` IN(12); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5602560 AND `point` IN(5); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5602960 AND `point` IN(2,3); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5682240 AND `point` IN(1,3,5,8); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5937200 AND `point` IN(5); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=6668000 AND `point` IN(13); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=6766560 AND `point` IN(1,3,5); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=6777440 AND `point` IN(5); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=7544720 AND `point` IN(1); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=7546000 AND `point` IN(1); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=7558720 AND `point` IN(1,2,3); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=7727360 AND `point` IN(8); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=7727520 AND `point` IN(4,5,6,7); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=7746000 AND `point` IN(2); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5676080 AND `point` IN(1,3,2,4); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5777120 AND `point` IN(2,3,4); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8430720 AND `point` IN(6,9,2); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=7013520 AND `point` IN(2,6); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=7013600 AND `point` IN(2,6); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=7013680 AND `point` IN(3,6,9); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=24565840 AND `point` IN(5); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=9116720 AND `point` IN(1,4); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10701040 AND `point` IN(1,2); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10924320 AND `point` IN(4,10,18); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5809760 AND `point` IN(3,7); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5810720 AND `point` IN(8,15,19); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5810800 AND `point` IN(4,13,28); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=20031440 AND `point` IN(1); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=20031600 AND `point` IN(4,6); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5809200 AND `point` IN(7,13); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5923360 AND `point` IN(4,18,24); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5923760 AND `point` IN(8,14,21); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8360080 AND `point` IN(2); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8360240 AND `point` IN(5); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8362080 AND `point` IN(3); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8362720 AND `point` IN(12); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8362800 AND `point` IN(4); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8371040 AND `point` IN(7); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8376400 AND `point` IN(6); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8376480 AND `point` IN(4); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8380960 AND `point` IN(7); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8381040 AND `point` IN(8); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8381120 AND `point` IN(6); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8381680 AND `point` IN(2); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8381920 AND `point` IN(8); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8382000 AND `point` IN(8); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8382320 AND `point` IN(6); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8382400 AND `point` IN(3); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8382560 AND `point` IN(8); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8382640 AND `point` IN(6); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8382720 AND `point` IN(8); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8382800 AND `point` IN(5); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5511840 AND `point` IN(2,4); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=28779840 AND `point` IN(2,5,7,8); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5712400 AND `point` IN(14); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=6298480 AND `point` IN(5); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=7069600 AND `point` IN(3,9); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=28752720 AND `point` IN(1,2); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=28755440 AND `point` IN(1,2); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=28758160 AND `point` IN(1,2); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=28762640 AND `point` IN(5,3,6); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=28762720 AND `point` IN(5,3,6); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=28762800 AND `point` IN(5,3,6); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=28762880 AND `point` IN(5,3,6); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=28762960 AND `point` IN(5,3,6); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=28763040 AND `point` IN(5,3,6); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=7070000 AND `point` IN(3,9); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=7070080 AND `point` IN(3,8,13); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=7070160 AND `point` IN(3,7); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=7070240 AND `point` IN(3,10); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=7922320 AND `point` IN(3,7); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8165680 AND `point` IN(2,3,4,5,6,7); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8778800 AND `point` IN(14); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=9059680 AND `point` IN(3,7,13); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=9060080 AND `point` IN(11,22); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=9060160 AND `point` IN(13,26); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=9182480 AND `point` IN(3,4,8); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8252880 AND `point` IN(4); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8253600 AND `point` IN(36); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8905200 AND `point` IN(4,11); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8905520 AND `point` IN(3,4,14); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8990320 AND `point` IN(1,2); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8990720 AND `point` IN(8,16); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8779120 AND `point` IN(2,4,7,10); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=7662480 AND `point` IN(2,5,6); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=7052160 AND `point` IN(8,3); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=7052240 AND `point` IN(8,13); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=9633440 AND `point` IN(4,10); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=16185120 AND `point` IN(2,5); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=16185360 AND `point` IN(2,5); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=7051760 AND `point` IN(2,4,5); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=1630632 AND `point` IN(3); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=6759280 AND `point` IN(3,6,10,13,14,16,19,22,28,31); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5990240 AND `point` IN(1); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5990320 AND `point` IN(1); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5990400 AND `point` IN(1); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5990480 AND `point` IN(1); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=6032560 AND `point` IN(3,6,9,10); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8040800 AND `point` IN(1); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8040880 AND `point` IN(3); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8040960 AND `point` IN(6); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8041040 AND `point` IN(8); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8041120 AND `point` IN(13); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8041520 AND `point` IN(8); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8041840 AND `point` IN(4); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8042160 AND `point` IN(8); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8041200 AND `point` IN(8); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8042080 AND `point` IN(2); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8041600 AND `point` IN(6); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8042240 AND `point` IN(6); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8041760 AND `point` IN(3); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8041360 AND `point` IN(7); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8041920 AND `point` IN(8); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8041280 AND `point` IN(7); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8041440 AND `point` IN(7); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8039440 AND `point` IN(6); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8042400 AND `point` IN(4); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8039040 AND `point` IN(5); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=7936640 AND `point` IN(12); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=9454160 AND `point` IN(65,1,66,141,140,155); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=9455280 AND `point` IN(1,17,47,2,18,48); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=9959760 AND `point` IN(1,2); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=28902000 AND `point` IN(12); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=28902240 AND `point` IN(2,5); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=28917440 AND `point` IN(1); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=28917680 AND `point` IN(4); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=28919200 AND `point` IN(13); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8876160 AND `point` IN(2,3); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8843120 AND `point` IN(2); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8846720 AND `point` IN(1,2); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8852080 AND `point` IN(9); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5076000 AND `point` IN(17); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8556800 AND `point` IN(17,21,23); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=16282000 AND `point` IN(1,2); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10691920 AND `point` IN(5,15,18); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=231296 AND `point` IN(10); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=1147120 AND `point` IN(12); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=1147200 AND `point` IN(13); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=1147360 AND `point` IN(12); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=1198160 AND `point` IN(18); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=1198240 AND `point` IN(17); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=1848880 AND `point` IN(21); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=1973600 AND `point` IN(23); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=1980880 AND `point` IN(15); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=1983520 AND `point` IN(14); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=2008000 AND `point` IN(9); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=2124720 AND `point` IN(18); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=2125120 AND `point` IN(6); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=2544560 AND `point` IN(7); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=2546640 AND `point` IN(12); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=2565760 AND `point` IN(17); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=3238000 AND `point` IN(23); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=3238080 AND `point` IN(27); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=3616320 AND `point` IN(23); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5921440 AND `point` IN(16); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=6631920 AND `point` IN(13); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=6633200 AND `point` IN(12); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=6753440 AND `point` IN(11); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=6753840 AND `point` IN(11); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=6754560 AND `point` IN(9); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=6754880 AND `point` IN(9); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=6754960 AND `point` IN(8); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=6755120 AND `point` IN(8); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=7727440 AND `point` IN(7); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=7732480 AND `point` IN(8); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=7732560 AND `point` IN(10); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=7732640 AND `point` IN(10); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=9445120 AND `point` IN(31); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=9833200 AND `point` IN(11); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=9836640 AND `point` IN(13); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=9837920 AND `point` IN(12); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=9838960 AND `point` IN(13); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=9899040 AND `point` IN(14); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10310800 AND `point` IN(52); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10311120 AND `point` IN(41); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10311440 AND `point` IN(35); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10311520 AND `point` IN(13); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10311600 AND `point` IN(15); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10311840 AND `point` IN(13); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10311920 AND `point` IN(32); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10312080 AND `point` IN(48); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10312320 AND `point` IN(8); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10312400 AND `point` IN(21); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10312800 AND `point` IN(9); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10313520 AND `point` IN(8); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10313840 AND `point` IN(14); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10313920 AND `point` IN(6); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10314000 AND `point` IN(10); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10314160 AND `point` IN(8); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10314720 AND `point` IN(15); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10314800 AND `point` IN(13); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10314880 AND `point` IN(15); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10315120 AND `point` IN(6); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10315680 AND `point` IN(10); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10315840 AND `point` IN(13); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10315920 AND `point` IN(9); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10316560 AND `point` IN(20); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10317920 AND `point` IN(10); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10318800 AND `point` IN(13); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10318880 AND `point` IN(9); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10319040 AND `point` IN(17); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10319200 AND `point` IN(27); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10319280 AND `point` IN(13); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10319760 AND `point` IN(13); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10319840 AND `point` IN(7); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10319920 AND `point` IN(8); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10337360 AND `point` IN(15); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10361360 AND `point` IN(8); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10361440 AND `point` IN(6); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10362320 AND `point` IN(9); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10362400 AND `point` IN(7); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10362480 AND `point` IN(10); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10363520 AND `point` IN(9); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10363680 AND `point` IN(11); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10363760 AND `point` IN(18); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10428960 AND `point` IN(4,1); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10429040 AND `point` IN(10,1); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10429840 AND `point` IN(18,1); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10430080 AND `point` IN(18); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10430320 AND `point` IN(26); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10445360 AND `point` IN(5); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10445600 AND `point` IN(7); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10448640 AND `point` IN(5); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10449200 AND `point` IN(8); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10452240 AND `point` IN(8); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10452880 AND `point` IN(6); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10452960 AND `point` IN(5); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10453040 AND `point` IN(9); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10453520 AND `point` IN(12); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10453680 AND `point` IN(6); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10454000 AND `point` IN(8); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10454080 AND `point` IN(14); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10454160 AND `point` IN(7); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10454320 AND `point` IN(8); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10454560 AND `point` IN(6); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10459440 AND `point` IN(7); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10460320 AND `point` IN(4); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10463040 AND `point` IN(11); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10463120 AND `point` IN(5); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10463280 AND `point` IN(8); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10463360 AND `point` IN(7); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10463520 AND `point` IN(7); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10463680 AND `point` IN(6); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10463840 AND `point` IN(6); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10464080 AND `point` IN(5); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10464160 AND `point` IN(7); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10464240 AND `point` IN(9); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10464320 AND `point` IN(6); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10464400 AND `point` IN(7); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10464480 AND `point` IN(9); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10464720 AND `point` IN(6); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10464800 AND `point` IN(6); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10464880 AND `point` IN(6); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10464960 AND `point` IN(9); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10465040 AND `point` IN(6); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10465520 AND `point` IN(11); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10465600 AND `point` IN(8); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10466000 AND `point` IN(7); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10466160 AND `point` IN(7); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10466320 AND `point` IN(6); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10466400 AND `point` IN(9); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8098880 AND `point` IN(4,13,16); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=9068400 AND `point` IN(1); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=9069120 AND `point` IN(3); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8569680 AND `point` IN(1,2,3); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=7770320 AND `point` IN(1,2,3,4,5,6,7,8,9,10,11,12,13); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=7770400 AND `point` IN(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=7770960 AND `point` IN(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10286160 AND `point` IN(8,1,5,12,13); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10286320 AND `point` IN(1,4,5,2,3); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10286400 AND `point` IN(1,2,3,4); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=9270320 AND `point` IN(5,12,19,26); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5463200 AND `point` IN(2,5,7,9); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5463360 AND `point` IN(2,5,8,11); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5463680 AND `point` IN(5,11,15,19); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5464640 AND `point` IN(2); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5464720 AND `point` IN(10); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=11028480 AND `point` IN(2,8,11); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=11043600 AND `point` IN(2,4); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=16209280 AND `point` IN(4,10); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=16210000 AND `point` IN(6,12); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=16210160 AND `point` IN(4,10); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=30786000 AND `point` IN(1,3); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=30829680 AND `point` IN(2,5); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=30887760 AND `point` IN(6); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=4346960 AND `point` IN(2,4,6); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=4603120 AND `point` IN(2); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=4690240 AND `point` IN(6,12); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=4690560 AND `point` IN(3,12); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=4690800 AND `point` IN(2,6); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=4690880 AND `point` IN(5,12); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=4691040 AND `point` IN(3,11); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5245280 AND `point` IN(4); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8820800 AND `point` IN(2); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8821120 AND `point` IN(1,3); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=8904560 AND `point` IN(1,2); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=5921360 AND `point` IN(1); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=7064640 AND `point` IN(7); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=9114880 AND `point` IN(1); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=9114960 AND `point` IN(2); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=9384640 AND `point` IN(12); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=9384800 AND `point` IN(1,2,3); + UPDATE `waypoint_data` SET `action`=0 WHERE `id`=10045280 AND `point` IN(6,25); + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=18947; + DELETE FROM `smart_scripts` WHERE `entryorguid`=18947 AND `source_type`=0 AND `id` >= 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 + (18947, 0, 0, 0, 40, 0, 100, 0, 6, 5440720, 0, 0, 80, 1894700, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 6 of path 5440720 reached - Self: Start timed action list id 1894700'), -- waypoint_script.id = 7 + (18947, 0, 1, 0, 40, 0, 100, 0, 1, 5440720, 0, 0, 5, 16, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 5440720 reached - Self: Play emote 16'), -- waypoint_script.id = 1078 + (18947, 0, 2, 0, 40, 0, 100, 0, 2, 5440720, 0, 0, 5, 16, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 5440720 reached - Self: Play emote 16'); -- waypoint_script.id = 1078 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=48228 AND `source_type`=0 AND `id` >= 3; + 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 + (48228, 0, 3, 0, 40, 0, 100, 0, 9, 28902160, 0, 0, 80, 1894700, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 9 of path 28902160 reached - Self: Start timed action list id 1894700'), -- waypoint_script.id = 7 + (48228, 0, 4, 0, 40, 0, 100, 0, 5, 28902160, 0, 0, 80, 2523502, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 5 of path 28902160 reached - Self: Start timed action list id 2523502'), -- waypoint_script.id = 1122 + (48228, 0, 5, 0, 40, 0, 100, 0, 2, 28902160, 0, 0, 17, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 28902160 reached - Self: Set emote state to 69'), -- waypoint_script.id = 1166 + (48228, 0, 6, 0, 40, 0, 100, 0, 8, 28902160, 0, 0, 17, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 8 of path 28902160 reached - Self: Set emote state to 69'); -- waypoint_script.id = 1166 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=-201800 AND `source_type`=0 AND `id` >= 8; + 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 + (-201800, 0, 8, 0, 40, 0, 100, 0, 10, 16144000, 0, 0, 5, 38, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 10 of path 16144000 reached - Self: Play emote 38'); -- waypoint_script.id = 48 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=18419 AND `source_type`=0 AND `id` >= 5; + 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 + (18419, 0, 5, 0, 40, 0, 100, 0, 1, 6639440, 0, 0, 80, 1841900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 6639440 reached - Self: Start timed action list id 1841900'), -- waypoint_script.id = 49 + (18419, 0, 6, 0, 40, 0, 100, 0, 1, 6639520, 0, 0, 80, 1841900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 6639520 reached - Self: Start timed action list id 1841900'), -- waypoint_script.id = 49 + (18419, 0, 7, 0, 40, 0, 100, 0, 2, 6639440, 0, 0, 80, 1841901, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 6639440 reached - Self: Start timed action list id 1841901'), -- waypoint_script.id = 476 + (18419, 0, 8, 0, 40, 0, 100, 0, 2, 6639520, 0, 0, 80, 1841901, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 6639520 reached - Self: Start timed action list id 1841901'); -- waypoint_script.id = 476 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=35808; + DELETE FROM `smart_scripts` WHERE `entryorguid`=35808 AND `source_type`=0 AND `id` >= 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 + (35808, 0, 0, 0, 40, 0, 100, 0, 3, 6809200, 0, 0, 80, 3580800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 6809200 reached - Self: Start timed action list id 3580800'); -- waypoint_script.id = 51 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=36223; + DELETE FROM `smart_scripts` WHERE `entryorguid`=36223 AND `source_type`=0 AND `id` >= 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 + (36223, 0, 0, 0, 40, 0, 100, 0, 1, 6641760, 0, 0, 80, 3622300, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 6641760 reached - Self: Start timed action list id 3622300'); -- waypoint_script.id = 52 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=16924 AND `source_type`=0 AND `id` >= 1; + 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 + (16924, 0, 1, 0, 40, 0, 100, 0, 7, 4696160, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 7 of path 4696160 reached - Self: Talk 0 (BroadcastText: 12833) to invoker'); -- waypoint_script.id = 71 + + DELETE FROM `creature_text` WHERE `CreatureID`=17901 AND `GroupID` IN(0, 1); + INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `SoundPlayType`, `BroadcastTextId`, `TextRange`, `comment`) VALUES + (17901, 0, 0, 'The wind speaks of our enemies'' movements, Ashyen. The naga will attack again.', 12, 0, 100, 0, 0, 0, 0, 14565, 0, ''), + (17901, 1, 0, 'Very well. When that decision is made, I will be ready. Let us hope it won''t be too late.', 12, 0, 100, 0, 0, 0, 0, 14567, 0, ''); + + DELETE FROM `smart_scripts` WHERE `entryorguid`=17901 AND `source_type`=0 AND `id` >= 6; + 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 + (17901, 0, 6, 0, 40, 0, 100, 0, 16, 5089120, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 16 of path 5089120 reached - Self: Talk 0 (BroadcastText: 14565) to invoker'), -- waypoint_script.id = 72 + (17901, 0, 7, 0, 40, 0, 100, 0, 18, 5089120, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 18 of path 5089120 reached - Self: Talk 1 (BroadcastText: 14567) to invoker'); -- waypoint_script.id = 73 + + DELETE FROM `creature_text` WHERE `CreatureID`=18302 AND `GroupID`=0; + INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `SoundPlayType`, `BroadcastTextId`, `TextRange`, `comment`) VALUES + (18302, 0, 0, 'I will do my best to take care of the children, Greatmother.', 12, 0, 100, 0, 0, 0, 0, 15144, 0, ''); + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=18302; + DELETE FROM `smart_scripts` WHERE `entryorguid`=18302 AND `source_type`=0 AND `id` >= 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 + (18302, 0, 0, 0, 40, 0, 100, 0, 1, 5251040, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 5251040 reached - Self: Talk 0 (BroadcastText: 15144) to invoker'); -- waypoint_script.id = 74 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=19568; + DELETE FROM `smart_scripts` WHERE `entryorguid`=19568 AND `source_type`=0 AND `id` >= 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 + (19568, 0, 0, 0, 40, 0, 100, 0, 4, 5598960, 0, 0, 62, 530, 0, 0, 0, 0, 0, 1, 0, 0, 0, 3915.08, 2111.54, 274.422, 0.0, 'On waypoint 4 of path 5598960 reached - Self: Teleport to (3915.08, 2111.54, 274.422, 0.0) on map 530'), -- waypoint_script.id = 80 + (19568, 0, 1, 0, 40, 0, 100, 0, 2, 5599040, 0, 0, 62, 530, 0, 0, 0, 0, 0, 1, 0, 0, 0, 3887.31, 2258.43, 214.298, 0.0, 'On waypoint 2 of path 5599040 reached - Self: Teleport to (3887.31, 2258.43, 214.298, 0.0) on map 530'), -- waypoint_script.id = 81 + (19568, 0, 2, 0, 40, 0, 100, 0, 3, 5599120, 0, 0, 62, 530, 0, 0, 0, 0, 0, 1, 0, 0, 0, 3726.48, 1961.26, 249.912, 0.0, 'On waypoint 3 of path 5599120 reached - Self: Teleport to (3726.48, 1961.26, 249.912, 0.0) on map 530'), -- waypoint_script.id = 82 + (19568, 0, 3, 0, 40, 0, 100, 0, 3, 5599280, 0, 0, 62, 530, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4044.87, 2025.38, 267.544, 0.0, 'On waypoint 3 of path 5599280 reached - Self: Teleport to (4044.87, 2025.38, 267.544, 0.0) on map 530'), -- waypoint_script.id = 83 + (19568, 0, 4, 0, 40, 0, 100, 0, 3, 5599440, 0, 0, 62, 530, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4148.98, 2042.91, 164.712, 0.0, 'On waypoint 3 of path 5599440 reached - Self: Teleport to (4148.98, 2042.91, 164.712, 0.0) on map 530'), -- waypoint_script.id = 84 + (19568, 0, 5, 0, 40, 0, 100, 0, 4, 5599520, 0, 0, 62, 530, 0, 0, 0, 0, 0, 1, 0, 0, 0, 3827.96, 1979.83, 275.021, 0.0, 'On waypoint 4 of path 5599520 reached - Self: Teleport to (3827.96, 1979.83, 275.021, 0.0) on map 530'), -- waypoint_script.id = 85 + (19568, 0, 6, 0, 40, 0, 100, 0, 3, 5599840, 0, 0, 62, 530, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4151.25, 2042.39, 245.592, 0.0, 'On waypoint 3 of path 5599840 reached - Self: Teleport to (4151.25, 2042.39, 245.592, 0.0) on map 530'), -- waypoint_script.id = 86 + (19568, 0, 7, 0, 40, 0, 100, 0, 7, 5599920, 0, 0, 62, 530, 0, 0, 0, 0, 0, 1, 0, 0, 0, 3957.74, 1894.36, 269.926, 0.0, 'On waypoint 7 of path 5599920 reached - Self: Teleport to (3957.74, 1894.36, 269.926, 0.0) on map 530'), -- waypoint_script.id = 87 + (19568, 0, 8, 0, 40, 0, 100, 0, 6, 5598240, 0, 0, 62, 530, 0, 0, 0, 0, 0, 1, 0, 0, 0, 3990.15, 1735.37, 270.177, 0.0, 'On waypoint 6 of path 5598240 reached - Self: Teleport to (3990.15, 1735.37, 270.177, 0.0) on map 530'), -- waypoint_script.id = 88 + (19568, 0, 9, 0, 40, 0, 100, 0, 3, 5598400, 0, 0, 62, 530, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4001.01, 1683.55, 137.226, 0.0, 'On waypoint 3 of path 5598400 reached - Self: Teleport to (4001.01, 1683.55, 137.226, 0.0) on map 530'), -- waypoint_script.id = 89 + (19568, 0, 10, 0, 40, 0, 100, 0, 5, 5598560, 0, 0, 62, 530, 0, 0, 0, 0, 0, 1, 0, 0, 0, 3696.55, 1954.49, 134.377, 0.0, 'On waypoint 5 of path 5598560 reached - Self: Teleport to (3696.55, 1954.49, 134.377, 0.0) on map 530'); -- waypoint_script.id = 90 + + DELETE FROM `creature_text` WHERE `CreatureID`=19610 AND `GroupID`=9; + INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `SoundPlayType`, `BroadcastTextId`, `TextRange`, `comment`) VALUES + (19610, 9, 0, 'I have another reading from the nether.', 12, 0, 100, 0, 0, 0, 0, 17035, 0, ''); + + DELETE FROM `smart_scripts` WHERE `entryorguid`=19610 AND `source_type`=0 AND `id` >= 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 + (19610, 0, 0, 0, 40, 0, 100, 0, 5, 5602560, 0, 0, 1, 9, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 5 of path 5602560 reached - Self: Talk 9 (BroadcastText: 17035) to invoker'); -- waypoint_script.id = 216 + + DELETE FROM `creature_text` WHERE `CreatureID`=19612 AND `GroupID` IN(0, 1); + INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `SoundPlayType`, `BroadcastTextId`, `TextRange`, `comment`) VALUES + (19612, 0, 0, 'Well hand it over and let''s see what you''ve got!', 12, 0, 100, 0, 0, 0, 0, 17045, 0, ''), + (19612, 1, 0, 'Great Gazlowe!', 12, 0, 100, 0, 0, 0, 0, 17056, 0, ''); + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=19612; + DELETE FROM `smart_scripts` WHERE `entryorguid`=19612 AND `source_type`=0 AND `id` >= 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 + (19612, 0, 0, 0, 40, 0, 100, 0, 2, 5602960, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 5602960 reached - Self: Talk 0 (BroadcastText: 17045) to invoker'), -- waypoint_script.id = 218 + (19612, 0, 1, 0, 40, 0, 100, 0, 3, 5602960, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 5602960 reached - Self: Talk 1 (BroadcastText: 17056) to invoker'); -- waypoint_script.id = 219 + + DELETE FROM `creature_text` WHERE `CreatureID`=19882 AND `GroupID` BETWEEN 0 AND 1; + INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `SoundPlayType`, `BroadcastTextId`, `TextRange`, `comment`) VALUES + (19882, 0, 0, 'Hey, you there. Want some candy?', 12, 0, 100, 0, 0, 0, 0, 17486, 0, ''), + (19882, 1, 0, 'Bip!', 12, 0, 100, 0, 0, 0, 0, 17485, 0, ''); + + DELETE FROM `smart_scripts` WHERE `entryorguid`=19882 AND `source_type`=0 AND `id` >= 1; + 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 + (19882, 0, 1, 0, 40, 0, 100, 0, 1, 5682240, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 5682240 reached - Self: Talk 0 (BroadcastText: 17486) to invoker'), -- waypoint_script.id = 220 + (19882, 0, 2, 0, 40, 0, 100, 0, 3, 5682240, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 5682240 reached - Self: Talk 1 (BroadcastText: 17485) to invoker'), -- waypoint_script.id = 221 + (19882, 0, 3, 0, 40, 0, 100, 0, 5, 5682240, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 5 of path 5682240 reached - Self: Talk 1 (BroadcastText: 17485) to invoker'), -- waypoint_script.id = 222 + (19882, 0, 4, 0, 40, 0, 100, 0, 8, 5682240, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 8 of path 5682240 reached - Self: Talk 1 (BroadcastText: 17485) to invoker'); -- waypoint_script.id = 223 + + DELETE FROM `creature_text` WHERE `CreatureID`=21151 AND `GroupID`=0; + INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `SoundPlayType`, `BroadcastTextId`, `TextRange`, `comment`) VALUES + (21151, 0, 0, 'Right. We just busted our tails to haul all of this stuff up here, and you want to work more?', 12, 0, 100, 0, 0, 0, 0, 18816, 0, ''); + + DELETE FROM `smart_scripts` WHERE `entryorguid`=21151 AND `source_type`=0 AND `id` >= 1; + 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 + (21151, 0, 1, 0, 40, 0, 100, 0, 5, 5937200, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 5 of path 5937200 reached - Self: Talk 0 (BroadcastText: 18816) to invoker'); -- waypoint_script.id = 226 + + DELETE FROM `creature_text` WHERE `CreatureID`=17222 AND `GroupID` BETWEEN 0 AND 2; + INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `SoundPlayType`, `BroadcastTextId`, `TextRange`, `comment`) VALUES + (17222, 0, 0, 'This won''t do at all! We have to secure the foundation or the entire structure will crumble!', 12, 0, 100, 0, 0, 0, 0, 13572, 0, ''), + (17222, 1, 0, 'I have much to do! Why can they not leave me to my work?', 12, 0, 100, 0, 0, 0, 0, 13580, 0, ''), + (17222, 2, 0, 'By the foul teat of Kil''Jaeden''s rotted torso, the entire backside is blown out! How can someone be expected to live in here? I''ve seen enough!', 12, 0, 100, 0, 0, 0, 0, 13576, 0, ''); + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=17222; + DELETE FROM `smart_scripts` WHERE `entryorguid`=17222 AND `source_type`=0 AND `id` >= 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 + (17222, 0, 0, 0, 40, 0, 100, 0, 1, 6766560, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 6766560 reached - Self: Talk 0 (BroadcastText: 13572) to invoker'), -- waypoint_script.id = 329 + (17222, 0, 1, 0, 40, 0, 100, 0, 3, 6766560, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 6766560 reached - Self: Talk 1 (BroadcastText: 13580) to invoker'), -- waypoint_script.id = 330 + (17222, 0, 2, 0, 40, 0, 100, 0, 5, 6766560, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 5 of path 6766560 reached - Self: Talk 2 (BroadcastText: 13576) to invoker'); -- waypoint_script.id = 331 + + DELETE FROM `creature_text` WHERE `CreatureID`=18296 AND `GroupID`=0; + INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `SoundPlayType`, `BroadcastTextId`, `TextRange`, `comment`) VALUES + (18296, 0, 0, 'Don''t go close to the lake! It''s haunted!', 12, 0, 100, 0, 0, 0, 0, 15119, 0, ''); + + DELETE FROM `smart_scripts` WHERE `entryorguid`=18296 AND `source_type`=0 AND `id` >= 1; + 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 + (18296, 0, 1, 0, 40, 0, 100, 0, 5, 6777440, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 5 of path 6777440 reached - Self: Talk 0 (BroadcastText: 15119) to invoker'); -- waypoint_script.id = 333 + + DELETE FROM `creature_text` WHERE `CreatureID`=24976 AND `GroupID`=0; + INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `SoundPlayType`, `BroadcastTextId`, `TextRange`, `comment`) VALUES + (24976, 0, 0, 'Charge!', 12, 0, 100, 0, 0, 0, 0, 24425, 0, ''); + + DELETE FROM `smart_scripts` WHERE `entryorguid`=24976 AND `source_type`=0 AND `id` >= 4; + 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 + (24976, 0, 4, 0, 40, 0, 100, 0, 1, 7544720, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 7544720 reached - Self: Talk 0 (BroadcastText: 24425) to invoker'), -- waypoint_script.id = 447 + (24976, 0, 5, 0, 40, 0, 100, 0, 1, 7546000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 7546000 reached - Self: Talk 0 (BroadcastText: 24425) to invoker'); -- waypoint_script.id = 449 + + DELETE FROM `creature_text` WHERE `CreatureID`=23718 AND `GroupID` BETWEEN 0 AND 2; + INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `SoundPlayType`, `BroadcastTextId`, `TextRange`, `comment`) VALUES + (23718, 0, 0, 'Ahh, my precious Ameenah! How wonderful to see you again.', 12, 0, 100, 0, 0, 0, 0, 22216, 0, ''), + (23718, 1, 0, 'Yer wearin down, princess. I can sense it!', 12, 0, 100, 0, 0, 0, 0, 22211, 0, ''), + (23718, 2, 0, 'Hmm, don''t mind if I do!', 12, 0, 100, 0, 0, 0, 0, 22206, 0, ''); + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=23718; + DELETE FROM `smart_scripts` WHERE `entryorguid`=23718 AND `source_type`=0 AND `id` >= 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 + (23718, 0, 0, 0, 40, 0, 100, 0, 1, 7558720, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 7558720 reached - Self: Talk 0 (BroadcastText: 22216) to invoker'), -- waypoint_script.id = 451 + (23718, 0, 1, 0, 40, 0, 100, 0, 2, 7558720, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 7558720 reached - Self: Talk 1 (BroadcastText: 22211) to invoker'), -- waypoint_script.id = 452 + (23718, 0, 2, 0, 40, 0, 100, 0, 3, 7558720, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 7558720 reached - Self: Talk 2 (BroadcastText: 22206) to invoker'); -- waypoint_script.id = 453 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=19475 AND `source_type`=0 AND `id` >= 2; + 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 + (19475, 0, 2, 0, 40, 0, 100, 0, 8, 7727360, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 8 of path 7727360 reached - Self: Talk 0 (BroadcastText: 25086) to invoker'); -- waypoint_script.id = 455 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=25885 AND `source_type`=0 AND `id` >= 6; + 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 + (25885, 0, 6, 0, 40, 0, 100, 0, 4, 7727520, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 4 of path 7727520 reached - Self: Talk 1 (BroadcastText: 25073) to invoker'), -- waypoint_script.id = 456 + (25885, 0, 7, 0, 40, 0, 100, 0, 5, 7727520, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 5 of path 7727520 reached - Self: Talk 2 (BroadcastText: 25074) to invoker'), -- waypoint_script.id = 457 + (25885, 0, 8, 0, 40, 0, 100, 0, 6, 7727520, 0, 0, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 6 of path 7727520 reached - Self: Talk 3 (BroadcastText: 25075) to invoker'), -- waypoint_script.id = 458 + (25885, 0, 9, 0, 40, 0, 100, 0, 7, 7727520, 0, 0, 1, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 7 of path 7727520 reached - Self: Talk 4 (BroadcastText: 25076) to invoker'); -- waypoint_script.id = 459 + + DELETE FROM `creature_text` WHERE `CreatureID`=24688 AND `GroupID`=0; + INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `SoundPlayType`, `BroadcastTextId`, `TextRange`, `comment`) VALUES + (24688, 0, 0, 'I''ll never stop. Never...', 12, 0, 100, 0, 0, 0, 0, 23842, 0, ''); + + DELETE FROM `smart_scripts` WHERE `entryorguid`=24688 AND `source_type`=0 AND `id` >= 2; + 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 + (24688, 0, 2, 0, 40, 0, 100, 0, 2, 7746000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 7746000 reached - Self: Talk 0 (BroadcastText: 23842) to invoker'); -- waypoint_script.id = 463 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=32373 AND `source_type`=0 AND `id` >= 3; + 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 + (32373, 0, 3, 0, 40, 0, 100, 0, 1, 5676080, 0, 0, 80, 3237300, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 5676080 reached - Self: Start timed action list id 3237300'), -- waypoint_script.id = 470 + (32373, 0, 4, 0, 40, 0, 100, 0, 3, 5676080, 0, 0, 80, 3237300, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 5676080 reached - Self: Start timed action list id 3237300'), -- waypoint_script.id = 470 + (32373, 0, 5, 0, 40, 0, 100, 0, 2, 5676080, 0, 0, 80, 3237301, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 5676080 reached - Self: Start timed action list id 3237301'), -- waypoint_script.id = 471 + (32373, 0, 6, 0, 40, 0, 100, 0, 4, 5676080, 0, 0, 80, 3237302, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 4 of path 5676080 reached - Self: Start timed action list id 3237302'); -- waypoint_script.id = 472 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=32374; + DELETE FROM `smart_scripts` WHERE `entryorguid`=32374 AND `source_type`=0 AND `id` >= 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 + (32374, 0, 0, 0, 40, 0, 100, 0, 2, 5777120, 0, 0, 80, 3237400, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 5777120 reached - Self: Start timed action list id 3237400'), -- waypoint_script.id = 473 + (32374, 0, 1, 0, 40, 0, 100, 0, 3, 5777120, 0, 0, 80, 3237400, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 5777120 reached - Self: Start timed action list id 3237400'), -- waypoint_script.id = 473 + (32374, 0, 2, 0, 40, 0, 100, 0, 4, 5777120, 0, 0, 80, 3237401, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 4 of path 5777120 reached - Self: Start timed action list id 3237401'); -- waypoint_script.id = 474 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=26217; + DELETE FROM `smart_scripts` WHERE `entryorguid`=26217 AND `source_type`=0 AND `id` >= 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 + (26217, 0, 0, 0, 40, 0, 100, 0, 6, 8430720, 0, 0, 80, 2621700, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 6 of path 8430720 reached - Self: Start timed action list id 2621700'), -- waypoint_script.id = 475 + (26217, 0, 1, 0, 40, 0, 100, 0, 9, 8430720, 0, 0, 80, 1841901, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 9 of path 8430720 reached - Self: Start timed action list id 1841901'), -- waypoint_script.id = 476 + (26217, 0, 2, 0, 40, 0, 100, 0, 2, 8430720, 0, 0, 80, 2621701, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 8430720 reached - Self: Start timed action list id 2621701'); -- waypoint_script.id = 477 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=24250 AND `source_type`=0 AND `id` >= 12; + 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 + (24250, 0, 12, 0, 40, 0, 100, 0, 2, 7013520, 0, 0, 80, 1841901, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 7013520 reached - Self: Start timed action list id 1841901'), -- waypoint_script.id = 476 + (24250, 0, 13, 0, 40, 0, 100, 0, 6, 7013520, 0, 0, 80, 1841901, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 6 of path 7013520 reached - Self: Start timed action list id 1841901'), -- waypoint_script.id = 476 + (24250, 0, 14, 0, 40, 0, 100, 0, 2, 7013600, 0, 0, 80, 1841901, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 7013600 reached - Self: Start timed action list id 1841901'), -- waypoint_script.id = 476 + (24250, 0, 15, 0, 40, 0, 100, 0, 6, 7013600, 0, 0, 80, 1841901, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 6 of path 7013600 reached - Self: Start timed action list id 1841901'), -- waypoint_script.id = 476 + (24250, 0, 16, 0, 40, 0, 100, 0, 3, 7013680, 0, 0, 80, 1841901, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 7013680 reached - Self: Start timed action list id 1841901'), -- waypoint_script.id = 476 + (24250, 0, 17, 0, 40, 0, 100, 0, 6, 7013680, 0, 0, 80, 1841901, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 6 of path 7013680 reached - Self: Start timed action list id 1841901'), -- waypoint_script.id = 476 + (24250, 0, 18, 0, 40, 0, 100, 0, 9, 7013680, 0, 0, 80, 1841901, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 9 of path 7013680 reached - Self: Start timed action list id 1841901'); -- waypoint_script.id = 476 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=43384 AND `source_type`=0 AND `id` >= 1; + 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 + (43384, 0, 1, 0, 40, 0, 100, 0, 5, 24565840, 0, 0, 80, 1841901, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 5 of path 24565840 reached - Self: Start timed action list id 1841901'); -- waypoint_script.id = 476 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=27072; + DELETE FROM `smart_scripts` WHERE `entryorguid`=27072 AND `source_type`=0 AND `id` >= 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 + (27072, 0, 0, 0, 40, 0, 100, 0, 1, 9116720, 0, 0, 80, 2707200, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 9116720 reached - Self: Start timed action list id 2707200'), -- waypoint_script.id = 478 + (27072, 0, 1, 0, 40, 0, 100, 0, 4, 9116720, 0, 0, 80, 2707201, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 4 of path 9116720 reached - Self: Start timed action list id 2707201'); -- waypoint_script.id = 479 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=27361; + DELETE FROM `smart_scripts` WHERE `entryorguid`=27361 AND `source_type`=0 AND `id` >= 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 + (27361, 0, 0, 0, 40, 0, 100, 0, 1, 10701040, 0, 0, 80, 2736100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 10701040 reached - Self: Start timed action list id 2736100'), -- waypoint_script.id = 480 + (27361, 0, 1, 0, 40, 0, 100, 0, 2, 10701040, 0, 0, 80, 2736101, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 10701040 reached - Self: Start timed action list id 2736101'); -- waypoint_script.id = 481 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=20512 AND `source_type`=0 AND `id` >= 3; + 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 + (20512, 0, 3, 0, 40, 0, 100, 0, 3, 5809760, 0, 0, 80, 2051200, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 5809760 reached - Self: Start timed action list id 2051200'), -- waypoint_script.id = 491 + (20512, 0, 4, 0, 40, 0, 100, 0, 7, 5809760, 0, 0, 80, 2051200, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 7 of path 5809760 reached - Self: Start timed action list id 2051200'), -- waypoint_script.id = 491 + (20512, 0, 5, 0, 40, 0, 100, 0, 8, 5810720, 0, 0, 80, 2051200, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 8 of path 5810720 reached - Self: Start timed action list id 2051200'), -- waypoint_script.id = 491 + (20512, 0, 6, 0, 40, 0, 100, 0, 4, 5810800, 0, 0, 80, 2051200, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 4 of path 5810800 reached - Self: Start timed action list id 2051200'), -- waypoint_script.id = 491 + (20512, 0, 7, 0, 40, 0, 100, 0, 13, 5810800, 0, 0, 80, 2051200, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 13 of path 5810800 reached - Self: Start timed action list id 2051200'), -- waypoint_script.id = 491 + (20512, 0, 8, 0, 40, 0, 100, 0, 28, 5810800, 0, 0, 80, 2051200, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 28 of path 5810800 reached - Self: Start timed action list id 2051200'), -- waypoint_script.id = 491 + (20512, 0, 9, 0, 40, 0, 100, 0, 7, 5809200, 0, 0, 80, 2051201, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 7 of path 5809200 reached - Self: Start timed action list id 2051201'), -- waypoint_script.id = 492 + (20512, 0, 10, 0, 40, 0, 100, 0, 13, 5809200, 0, 0, 80, 2051201, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 13 of path 5809200 reached - Self: Start timed action list id 2051201'), -- waypoint_script.id = 492 + (20512, 0, 11, 0, 40, 0, 100, 0, 15, 5810720, 0, 0, 80, 2051201, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 15 of path 5810720 reached - Self: Start timed action list id 2051201'), -- waypoint_script.id = 492 + (20512, 0, 12, 0, 40, 0, 100, 0, 19, 5810720, 0, 0, 80, 2051201, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 19 of path 5810720 reached - Self: Start timed action list id 2051201'); -- waypoint_script.id = 492 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=45210; + DELETE FROM `smart_scripts` WHERE `entryorguid`=45210 AND `source_type`=0 AND `id` >= 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 + (45210, 0, 0, 0, 40, 0, 100, 0, 1, 20031440, 0, 0, 80, 2051200, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 20031440 reached - Self: Start timed action list id 2051200'), -- waypoint_script.id = 491 + (45210, 0, 1, 0, 40, 0, 100, 0, 4, 20031600, 0, 0, 80, 2051200, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 4 of path 20031600 reached - Self: Start timed action list id 2051200'), -- waypoint_script.id = 491 + (45210, 0, 2, 0, 40, 0, 100, 0, 6, 20031600, 0, 0, 80, 2051201, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 6 of path 20031600 reached - Self: Start timed action list id 2051201'); -- waypoint_script.id = 492 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=21065 AND `source_type`=0 AND `id` >= 5; + 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 + (21065, 0, 5, 0, 40, 0, 100, 0, 4, 5923360, 0, 0, 80, 2106500, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 4 of path 5923360 reached - Self: Start timed action list id 2106500'), -- waypoint_script.id = 493 + (21065, 0, 6, 0, 40, 0, 100, 0, 18, 5923360, 0, 0, 80, 2106500, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 18 of path 5923360 reached - Self: Start timed action list id 2106500'), -- waypoint_script.id = 493 + (21065, 0, 7, 0, 40, 0, 100, 0, 24, 5923360, 0, 0, 80, 2106501, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 24 of path 5923360 reached - Self: Start timed action list id 2106501'), -- waypoint_script.id = 494 + (21065, 0, 8, 0, 40, 0, 100, 0, 8, 5923760, 0, 0, 80, 2106501, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 8 of path 5923760 reached - Self: Start timed action list id 2106501'), -- waypoint_script.id = 494 + (21065, 0, 9, 0, 40, 0, 100, 0, 14, 5923760, 0, 0, 80, 2106501, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 14 of path 5923760 reached - Self: Start timed action list id 2106501'), -- waypoint_script.id = 494 + (21065, 0, 10, 0, 40, 0, 100, 0, 21, 5923760, 0, 0, 80, 2106501, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 21 of path 5923760 reached - Self: Start timed action list id 2106501'); -- waypoint_script.id = 494 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=18559 AND `source_type`=0 AND `id` >= 6; + 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 + (18559, 0, 6, 0, 40, 0, 100, 0, 2, 8360080, 0, 0, 80, 1855900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 8360080 reached - Self: Start timed action list id 1855900'), -- waypoint_script.id = 495 + (18559, 0, 7, 0, 40, 0, 100, 0, 5, 8360240, 0, 0, 80, 1855900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 5 of path 8360240 reached - Self: Start timed action list id 1855900'), -- waypoint_script.id = 495 + (18559, 0, 8, 0, 40, 0, 100, 0, 3, 8362080, 0, 0, 80, 1855900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 8362080 reached - Self: Start timed action list id 1855900'), -- waypoint_script.id = 495 + (18559, 0, 9, 0, 40, 0, 100, 0, 12, 8362720, 0, 0, 80, 1855900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 12 of path 8362720 reached - Self: Start timed action list id 1855900'), -- waypoint_script.id = 495 + (18559, 0, 10, 0, 40, 0, 100, 0, 4, 8362800, 0, 0, 80, 1855900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 4 of path 8362800 reached - Self: Start timed action list id 1855900'); -- waypoint_script.id = 495 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=18556 AND `source_type`=0 AND `id` >= 1; + 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 + (18556, 0, 1, 0, 40, 0, 100, 0, 7, 8371040, 0, 0, 80, 1855900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 7 of path 8371040 reached - Self: Start timed action list id 1855900'), -- waypoint_script.id = 495 + (18556, 0, 2, 0, 40, 0, 100, 0, 6, 8376400, 0, 0, 80, 1855900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 6 of path 8376400 reached - Self: Start timed action list id 1855900'), -- waypoint_script.id = 495 + (18556, 0, 3, 0, 40, 0, 100, 0, 4, 8376480, 0, 0, 80, 1855900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 4 of path 8376480 reached - Self: Start timed action list id 1855900'), -- waypoint_script.id = 495 + (18556, 0, 4, 0, 40, 0, 100, 0, 7, 8380960, 0, 0, 80, 1855900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 7 of path 8380960 reached - Self: Start timed action list id 1855900'); -- waypoint_script.id = 495 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=18557 AND `source_type`=0 AND `id` >= 4; + 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 + (18557, 0, 4, 0, 40, 0, 100, 0, 8, 8381040, 0, 0, 80, 1855900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 8 of path 8381040 reached - Self: Start timed action list id 1855900'), -- waypoint_script.id = 495 + (18557, 0, 5, 0, 40, 0, 100, 0, 6, 8381120, 0, 0, 80, 1855900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 6 of path 8381120 reached - Self: Start timed action list id 1855900'), -- waypoint_script.id = 495 + (18557, 0, 6, 0, 40, 0, 100, 0, 2, 8381680, 0, 0, 80, 1855900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 8381680 reached - Self: Start timed action list id 1855900'), -- waypoint_script.id = 495 + (18557, 0, 7, 0, 40, 0, 100, 0, 8, 8381920, 0, 0, 80, 1855900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 8 of path 8381920 reached - Self: Start timed action list id 1855900'); -- waypoint_script.id = 495 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=18558 AND `source_type`=0 AND `id` >= 6; + 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 + (18558, 0, 6, 0, 40, 0, 100, 0, 8, 8382000, 0, 0, 80, 1855900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 8 of path 8382000 reached - Self: Start timed action list id 1855900'), -- waypoint_script.id = 495 + (18558, 0, 7, 0, 40, 0, 100, 0, 6, 8382320, 0, 0, 80, 1855900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 6 of path 8382320 reached - Self: Start timed action list id 1855900'), -- waypoint_script.id = 495 + (18558, 0, 8, 0, 40, 0, 100, 0, 3, 8382400, 0, 0, 80, 1855900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 8382400 reached - Self: Start timed action list id 1855900'), -- waypoint_script.id = 495 + (18558, 0, 9, 0, 40, 0, 100, 0, 8, 8382560, 0, 0, 80, 1855900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 8 of path 8382560 reached - Self: Start timed action list id 1855900'), -- waypoint_script.id = 495 + (18558, 0, 10, 0, 40, 0, 100, 0, 6, 8382640, 0, 0, 80, 1855900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 6 of path 8382640 reached - Self: Start timed action list id 1855900'), -- waypoint_script.id = 495 + (18558, 0, 11, 0, 40, 0, 100, 0, 8, 8382720, 0, 0, 80, 1855900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 8 of path 8382720 reached - Self: Start timed action list id 1855900'), -- waypoint_script.id = 495 + (18558, 0, 12, 0, 40, 0, 100, 0, 5, 8382800, 0, 0, 80, 1855900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 5 of path 8382800 reached - Self: Start timed action list id 1855900'); -- waypoint_script.id = 495 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=19312 AND `source_type`=0 AND `id` >= 2; + 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 + (19312, 0, 2, 0, 40, 0, 100, 0, 2, 5511840, 0, 0, 5, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 5511840 reached - Self: Play emote 1'), -- waypoint_script.id = 1023 + (19312, 0, 3, 0, 40, 0, 100, 0, 4, 5511840, 0, 0, 5, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 4 of path 5511840 reached - Self: Play emote 1'); -- waypoint_script.id = 1024 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=47310 AND `source_type`=0 AND `id` >= 3; + 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 + (47310, 0, 3, 0, 40, 0, 100, 0, 2, 28779840, 0, 0, 5, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 28779840 reached - Self: Play emote 1'), -- waypoint_script.id = 1023 + (47310, 0, 4, 0, 40, 0, 100, 0, 5, 28779840, 0, 0, 5, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 5 of path 28779840 reached - Self: Play emote 1'), -- waypoint_script.id = 1023 + (47310, 0, 5, 0, 40, 0, 100, 0, 7, 28779840, 0, 0, 5, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 7 of path 28779840 reached - Self: Play emote 1'), -- waypoint_script.id = 1023 + (47310, 0, 6, 0, 40, 0, 100, 0, 8, 28779840, 0, 0, 5, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 8 of path 28779840 reached - Self: Play emote 1'); -- waypoint_script.id = 1023 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=19995 AND `source_type`=0 AND `id` >= 7; + 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 + (19995, 0, 7, 0, 40, 0, 100, 0, 14, 5712400, 0, 0, 5, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 14 of path 5712400 reached - Self: Play emote 1'); -- waypoint_script.id = 1025 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=22396; + DELETE FROM `smart_scripts` WHERE `entryorguid`=22396 AND `source_type`=0 AND `id` >= 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 + (22396, 0, 0, 0, 40, 0, 100, 0, 5, 6298480, 0, 0, 5, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 5 of path 6298480 reached - Self: Play emote 1'); -- waypoint_script.id = 1026 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=5860 AND `source_type`=0 AND `id` >= 4; + 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 + (5860, 0, 4, 0, 40, 0, 100, 0, 1, 28752720, 0, 0, 5, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 28752720 reached - Self: Play emote 69'), -- waypoint_script.id = 1027 + (5860, 0, 5, 0, 40, 0, 100, 0, 2, 28752720, 0, 0, 5, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 28752720 reached - Self: Play emote 0'); -- waypoint_script.id = 1167 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=5861 AND `source_type`=0 AND `id` >= 3; + 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 + (5861, 0, 3, 0, 40, 0, 100, 0, 1, 28755440, 0, 0, 5, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 28755440 reached - Self: Play emote 69'), -- waypoint_script.id = 1027 + (5861, 0, 4, 0, 40, 0, 100, 0, 2, 28755440, 0, 0, 5, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 28755440 reached - Self: Play emote 0'); -- waypoint_script.id = 1167 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=5862 AND `source_type`=0 AND `id` >= 5; + 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 + (5862, 0, 5, 0, 40, 0, 100, 0, 1, 28758160, 0, 0, 5, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 28758160 reached - Self: Play emote 69'), -- waypoint_script.id = 1027 + (5862, 0, 6, 0, 40, 0, 100, 0, 2, 28758160, 0, 0, 5, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 28758160 reached - Self: Play emote 0'); -- waypoint_script.id = 1167 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=8402 AND `source_type`=0 AND `id` >= 6; + 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 + (8402, 0, 6, 0, 40, 0, 100, 0, 5, 28762640, 0, 0, 5, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 5 of path 28762640 reached - Self: Play emote 69'), -- waypoint_script.id = 1027 + (8402, 0, 7, 0, 40, 0, 100, 0, 5, 28762720, 0, 0, 5, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 5 of path 28762720 reached - Self: Play emote 69'), -- waypoint_script.id = 1027 + (8402, 0, 8, 0, 40, 0, 100, 0, 5, 28762800, 0, 0, 5, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 5 of path 28762800 reached - Self: Play emote 69'), -- waypoint_script.id = 1027 + (8402, 0, 9, 0, 40, 0, 100, 0, 5, 28762880, 0, 0, 5, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 5 of path 28762880 reached - Self: Play emote 69'), -- waypoint_script.id = 1027 + (8402, 0, 10, 0, 40, 0, 100, 0, 5, 28762960, 0, 0, 5, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 5 of path 28762960 reached - Self: Play emote 69'), -- waypoint_script.id = 1027 + (8402, 0, 11, 0, 40, 0, 100, 0, 5, 28763040, 0, 0, 5, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 5 of path 28763040 reached - Self: Play emote 69'), -- waypoint_script.id = 1027 + (8402, 0, 12, 0, 40, 0, 100, 0, 3, 28762640, 0, 0, 5, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 28762640 reached - Self: Play emote 0'), -- waypoint_script.id = 1167 + (8402, 0, 13, 0, 40, 0, 100, 0, 6, 28762640, 0, 0, 5, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 6 of path 28762640 reached - Self: Play emote 0'), -- waypoint_script.id = 1167 + (8402, 0, 14, 0, 40, 0, 100, 0, 3, 28762720, 0, 0, 5, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 28762720 reached - Self: Play emote 0'), -- waypoint_script.id = 1167 + (8402, 0, 15, 0, 40, 0, 100, 0, 6, 28762720, 0, 0, 5, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 6 of path 28762720 reached - Self: Play emote 0'), -- waypoint_script.id = 1167 + (8402, 0, 16, 0, 40, 0, 100, 0, 3, 28762800, 0, 0, 5, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 28762800 reached - Self: Play emote 0'), -- waypoint_script.id = 1167 + (8402, 0, 17, 0, 40, 0, 100, 0, 6, 28762800, 0, 0, 5, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 6 of path 28762800 reached - Self: Play emote 0'), -- waypoint_script.id = 1167 + (8402, 0, 18, 0, 40, 0, 100, 0, 3, 28762880, 0, 0, 5, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 28762880 reached - Self: Play emote 0'), -- waypoint_script.id = 1167 + (8402, 0, 19, 0, 40, 0, 100, 0, 6, 28762880, 0, 0, 5, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 6 of path 28762880 reached - Self: Play emote 0'), -- waypoint_script.id = 1167 + (8402, 0, 20, 0, 40, 0, 100, 0, 3, 28762960, 0, 0, 5, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 28762960 reached - Self: Play emote 0'), -- waypoint_script.id = 1167 + (8402, 0, 21, 0, 40, 0, 100, 0, 6, 28762960, 0, 0, 5, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 6 of path 28762960 reached - Self: Play emote 0'), -- waypoint_script.id = 1167 + (8402, 0, 22, 0, 40, 0, 100, 0, 3, 28763040, 0, 0, 5, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 28763040 reached - Self: Play emote 0'), -- waypoint_script.id = 1167 + (8402, 0, 23, 0, 40, 0, 100, 0, 6, 28763040, 0, 0, 5, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 6 of path 28763040 reached - Self: Play emote 0'); -- waypoint_script.id = 1167 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=28706; + DELETE FROM `smart_scripts` WHERE `entryorguid`=28706 AND `source_type`=0 AND `id` >= 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 + (28706, 0, 0, 0, 40, 0, 100, 0, 3, 7922320, 0, 0, 11, 746, 0, 0, 0, 0, 0, 19, 32652, 1.0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 7922320 reached - Self: Cast spell 746 on Closest alive creature 32652 in 1.0 yards'), -- waypoint_script.id = 1038 + (28706, 0, 1, 0, 40, 0, 100, 0, 7, 7922320, 0, 0, 5, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 7 of path 7922320 reached - Self: Play emote 1'); -- waypoint_script.id = 1039 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=29506; + DELETE FROM `smart_scripts` WHERE `entryorguid`=29506 AND `source_type`=0 AND `id` >= 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 + (29506, 0, 0, 0, 40, 0, 100, 0, 2, 8165680, 0, 0, 5, 233, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 8165680 reached - Self: Play emote 233'), -- waypoint_script.id = 1040 + (29506, 0, 1, 0, 40, 0, 100, 0, 3, 8165680, 0, 0, 5, 233, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 8165680 reached - Self: Play emote 233'), -- waypoint_script.id = 1041 + (29506, 0, 2, 0, 40, 0, 100, 0, 4, 8165680, 0, 0, 5, 233, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 4 of path 8165680 reached - Self: Play emote 233'), -- waypoint_script.id = 1042 + (29506, 0, 3, 0, 40, 0, 100, 0, 5, 8165680, 0, 0, 5, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 5 of path 8165680 reached - Self: Play emote 69'), -- waypoint_script.id = 1043 + (29506, 0, 4, 0, 40, 0, 100, 0, 6, 8165680, 0, 0, 5, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 6 of path 8165680 reached - Self: Play emote 69'), -- waypoint_script.id = 1044 + (29506, 0, 5, 0, 40, 0, 100, 0, 7, 8165680, 0, 0, 5, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 7 of path 8165680 reached - Self: Play emote 69'); -- waypoint_script.id = 1045 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=32403; + DELETE FROM `smart_scripts` WHERE `entryorguid`=32403 AND `source_type`=0 AND `id` >= 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 + (32403, 0, 0, 0, 40, 0, 100, 0, 14, 8778800, 0, 0, 5, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 14 of path 8778800 reached - Self: Play emote 69'); -- waypoint_script.id = 1065 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=25271; + DELETE FROM `smart_scripts` WHERE `entryorguid`=25271 AND `source_type`=0 AND `id` >= 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 + (25271, 0, 0, 0, 40, 0, 100, 0, 3, 9059680, 0, 0, 5, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 9059680 reached - Self: Play emote 69'), -- waypoint_script.id = 1070 + (25271, 0, 1, 0, 40, 0, 100, 0, 7, 9059680, 0, 0, 5, 381, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 7 of path 9059680 reached - Self: Play emote 381'), -- waypoint_script.id = 1071 + (25271, 0, 2, 0, 40, 0, 100, 0, 13, 9059680, 0, 0, 5, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 13 of path 9059680 reached - Self: Play emote 69'), -- waypoint_script.id = 1072 + (25271, 0, 3, 0, 40, 0, 100, 0, 11, 9060080, 0, 0, 5, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 11 of path 9060080 reached - Self: Play emote 69'), -- waypoint_script.id = 1073 + (25271, 0, 4, 0, 40, 0, 100, 0, 22, 9060080, 0, 0, 5, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 22 of path 9060080 reached - Self: Play emote 69'), -- waypoint_script.id = 1074 + (25271, 0, 5, 0, 40, 0, 100, 0, 13, 9060160, 0, 0, 5, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 13 of path 9060160 reached - Self: Play emote 69'), -- waypoint_script.id = 1075 + (25271, 0, 6, 0, 40, 0, 100, 0, 26, 9060160, 0, 0, 5, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 26 of path 9060160 reached - Self: Play emote 69'); -- waypoint_script.id = 1076 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=29640; + DELETE FROM `smart_scripts` WHERE `entryorguid`=29640 AND `source_type`=0 AND `id` >= 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 + (29640, 0, 0, 0, 40, 0, 100, 0, 3, 9182480, 0, 0, 11, 746, 0, 0, 0, 0, 0, 19, 32651, 1.0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 9182480 reached - Self: Cast spell 746 on Closest alive creature 32651 in 1.0 yards'), -- waypoint_script.id = 1077 + (29640, 0, 1, 0, 40, 0, 100, 0, 4, 9182480, 0, 0, 5, 16, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 4 of path 9182480 reached - Self: Play emote 16'), -- waypoint_script.id = 1078 + (29640, 0, 2, 0, 40, 0, 100, 0, 8, 9182480, 0, 0, 11, 746, 0, 0, 0, 0, 0, 19, 32650, 1.0, 0, 0, 0, 0, 0, 'On waypoint 8 of path 9182480 reached - Self: Cast spell 746 on Closest alive creature 32650 in 1.0 yards'); -- waypoint_script.id = 1079 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=24400 AND `source_type`=0 AND `id` >= 1; + 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 + (24400, 0, 1, 0, 40, 0, 100, 0, 4, 8252880, 0, 0, 5, 16, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 4 of path 8252880 reached - Self: Play emote 16'), -- waypoint_script.id = 1078 + (24400, 0, 2, 0, 40, 0, 100, 0, 36, 8253600, 0, 0, 5, 16, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 36 of path 8253600 reached - Self: Play emote 16'), -- waypoint_script.id = 1078 + (24400, 0, 3, 0, 40, 0, 100, 0, 4, 8905200, 0, 0, 5, 16, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 4 of path 8905200 reached - Self: Play emote 16'), -- waypoint_script.id = 1078 + (24400, 0, 4, 0, 40, 0, 100, 0, 11, 8905200, 0, 0, 5, 16, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 11 of path 8905200 reached - Self: Play emote 16'), -- waypoint_script.id = 1078 + (24400, 0, 5, 0, 40, 0, 100, 0, 3, 8905520, 0, 0, 5, 16, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 8905520 reached - Self: Play emote 16'), -- waypoint_script.id = 1078 + (24400, 0, 6, 0, 40, 0, 100, 0, 4, 8905520, 0, 0, 5, 16, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 4 of path 8905520 reached - Self: Play emote 16'), -- waypoint_script.id = 1078 + (24400, 0, 7, 0, 40, 0, 100, 0, 14, 8905520, 0, 0, 5, 16, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 14 of path 8905520 reached - Self: Play emote 16'); -- waypoint_script.id = 1078 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=27566; + DELETE FROM `smart_scripts` WHERE `entryorguid`=27566 AND `source_type`=0 AND `id` >= 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 + (27566, 0, 0, 0, 40, 0, 100, 0, 1, 8990320, 0, 0, 80, 2756600, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 8990320 reached - Self: Start timed action list id 2756600'), -- waypoint_script.id = 1114 + (27566, 0, 1, 0, 40, 0, 100, 0, 2, 8990320, 0, 0, 80, 2756601, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 8990320 reached - Self: Start timed action list id 2756601'), -- waypoint_script.id = 1115 + (27566, 0, 2, 0, 40, 0, 100, 0, 8, 8990720, 0, 0, 80, 2756602, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 8 of path 8990720 reached - Self: Start timed action list id 2756602'), -- waypoint_script.id = 1116 + (27566, 0, 3, 0, 40, 0, 100, 0, 16, 8990720, 0, 0, 80, 2756602, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 16 of path 8990720 reached - Self: Start timed action list id 2756602'); -- waypoint_script.id = 1116 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=25235; + DELETE FROM `smart_scripts` WHERE `entryorguid`=25235 AND `source_type`=0 AND `id` >= 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 + (25235, 0, 0, 0, 40, 0, 100, 0, 2, 8779120, 0, 0, 80, 2523500, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 8779120 reached - Self: Start timed action list id 2523500'), -- waypoint_script.id = 1120 + (25235, 0, 1, 0, 40, 0, 100, 0, 4, 8779120, 0, 0, 80, 2523501, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 4 of path 8779120 reached - Self: Start timed action list id 2523501'), -- waypoint_script.id = 1121 + (25235, 0, 2, 0, 40, 0, 100, 0, 7, 8779120, 0, 0, 80, 2523501, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 7 of path 8779120 reached - Self: Start timed action list id 2523501'), -- waypoint_script.id = 1121 + (25235, 0, 3, 0, 40, 0, 100, 0, 10, 8779120, 0, 0, 80, 2523502, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 10 of path 8779120 reached - Self: Start timed action list id 2523502'); -- waypoint_script.id = 1122 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=27393; + DELETE FROM `smart_scripts` WHERE `entryorguid`=27393 AND `source_type`=0 AND `id` >= 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 + (27393, 0, 0, 0, 40, 0, 100, 0, 2, 7662480, 0, 0, 80, 2739300, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 7662480 reached - Self: Start timed action list id 2739300'), -- waypoint_script.id = 1123 + (27393, 0, 1, 0, 40, 0, 100, 0, 5, 7662480, 0, 0, 80, 2739300, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 5 of path 7662480 reached - Self: Start timed action list id 2739300'), -- waypoint_script.id = 1123 + (27393, 0, 2, 0, 40, 0, 100, 0, 6, 7662480, 0, 0, 80, 2739301, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 6 of path 7662480 reached - Self: Start timed action list id 2739301'); -- waypoint_script.id = 1124 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=23550; + DELETE FROM `smart_scripts` WHERE `entryorguid`=23550 AND `source_type`=0 AND `id` >= 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 + (23550, 0, 0, 0, 40, 0, 100, 0, 8, 7052160, 0, 0, 80, 2355000, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 8 of path 7052160 reached - Self: Start timed action list id 2355000'), -- waypoint_script.id = 1125 + (23550, 0, 1, 0, 40, 0, 100, 0, 8, 7052240, 0, 0, 80, 2355000, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 8 of path 7052240 reached - Self: Start timed action list id 2355000'), -- waypoint_script.id = 1125 + (23550, 0, 2, 0, 40, 0, 100, 0, 2, 16185360, 0, 0, 80, 2355000, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 16185360 reached - Self: Start timed action list id 2355000'), -- waypoint_script.id = 1125 + (23550, 0, 3, 0, 40, 0, 100, 0, 3, 7052160, 0, 0, 80, 2355001, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 7052160 reached - Self: Start timed action list id 2355001'), -- waypoint_script.id = 1126 + (23550, 0, 4, 0, 40, 0, 100, 0, 13, 7052240, 0, 0, 80, 2355001, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 13 of path 7052240 reached - Self: Start timed action list id 2355001'), -- waypoint_script.id = 1126 + (23550, 0, 5, 0, 40, 0, 100, 0, 5, 16185360, 0, 0, 80, 2355001, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 5 of path 16185360 reached - Self: Start timed action list id 2355001'); -- waypoint_script.id = 1126 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=23552; + DELETE FROM `smart_scripts` WHERE `entryorguid`=23552 AND `source_type`=0 AND `id` >= 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 + (23552, 0, 0, 0, 40, 0, 100, 0, 4, 9633440, 0, 0, 80, 2355000, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 4 of path 9633440 reached - Self: Start timed action list id 2355000'), -- waypoint_script.id = 1125 + (23552, 0, 1, 0, 40, 0, 100, 0, 10, 9633440, 0, 0, 80, 2355001, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 10 of path 9633440 reached - Self: Start timed action list id 2355001'); -- waypoint_script.id = 1126 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=24040 AND `source_type`=0 AND `id` >= 5; + 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 + (24040, 0, 5, 0, 40, 0, 100, 0, 2, 7051760, 0, 0, 80, 2404000, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 7051760 reached - Self: Start timed action list id 2404000'), -- waypoint_script.id = 1127 + (24040, 0, 6, 0, 40, 0, 100, 0, 4, 7051760, 0, 0, 80, 2404001, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 4 of path 7051760 reached - Self: Start timed action list id 2404001'), -- waypoint_script.id = 1128 + (24040, 0, 7, 0, 40, 0, 100, 0, 5, 7051760, 0, 0, 80, 2404002, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 5 of path 7051760 reached - Self: Start timed action list id 2404002'); -- waypoint_script.id = 1129 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=29432; + DELETE FROM `smart_scripts` WHERE `entryorguid`=29432 AND `source_type`=0 AND `id` >= 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 + (29432, 0, 0, 0, 40, 0, 100, 0, 3, 1630632, 0, 0, 5, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 1630632 reached - Self: Play emote 1'); -- waypoint_script.id = 1135 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=21501 AND `source_type`=0 AND `id` >= 3; + 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 + (21501, 0, 3, 0, 40, 0, 100, 0, 3, 6759280, 0, 0, 5, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 6759280 reached - Self: Play emote 1'), -- waypoint_script.id = 1135 + (21501, 0, 4, 0, 40, 0, 100, 0, 6, 6759280, 0, 0, 5, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 6 of path 6759280 reached - Self: Play emote 1'), -- waypoint_script.id = 1135 + (21501, 0, 5, 0, 40, 0, 100, 0, 10, 6759280, 0, 0, 5, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 10 of path 6759280 reached - Self: Play emote 1'), -- waypoint_script.id = 1135 + (21501, 0, 6, 0, 40, 0, 100, 0, 13, 6759280, 0, 0, 5, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 13 of path 6759280 reached - Self: Play emote 1'), -- waypoint_script.id = 1135 + (21501, 0, 7, 0, 40, 0, 100, 0, 14, 6759280, 0, 0, 5, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 14 of path 6759280 reached - Self: Play emote 1'), -- waypoint_script.id = 1135 + (21501, 0, 8, 0, 40, 0, 100, 0, 16, 6759280, 0, 0, 5, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 16 of path 6759280 reached - Self: Play emote 1'), -- waypoint_script.id = 1135 + (21501, 0, 9, 0, 40, 0, 100, 0, 19, 6759280, 0, 0, 5, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 19 of path 6759280 reached - Self: Play emote 1'), -- waypoint_script.id = 1135 + (21501, 0, 10, 0, 40, 0, 100, 0, 22, 6759280, 0, 0, 5, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 22 of path 6759280 reached - Self: Play emote 1'), -- waypoint_script.id = 1135 + (21501, 0, 11, 0, 40, 0, 100, 0, 28, 6759280, 0, 0, 5, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 28 of path 6759280 reached - Self: Play emote 1'), -- waypoint_script.id = 1135 + (21501, 0, 12, 0, 40, 0, 100, 0, 31, 6759280, 0, 0, 5, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 31 of path 6759280 reached - Self: Play emote 1'); -- waypoint_script.id = 1135 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=21403; + DELETE FROM `smart_scripts` WHERE `entryorguid`=21403 AND `source_type`=0 AND `id` >= 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 + (21403, 0, 0, 0, 40, 0, 100, 0, 1, 5990240, 0, 0, 11, 36804, 0, 0, 0, 0, 0, 19, 21404, 30.0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 5990240 reached - Self: Cast spell 36804 on Closest alive creature 21404 in 30.0 yards'), -- waypoint_script.id = 1136 + (21403, 0, 1, 0, 40, 0, 100, 0, 1, 5990320, 0, 0, 11, 36804, 0, 0, 0, 0, 0, 19, 21404, 30.0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 5990320 reached - Self: Cast spell 36804 on Closest alive creature 21404 in 30.0 yards'), -- waypoint_script.id = 1136 + (21403, 0, 2, 0, 40, 0, 100, 0, 1, 5990400, 0, 0, 11, 36804, 0, 0, 0, 0, 0, 19, 21404, 30.0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 5990400 reached - Self: Cast spell 36804 on Closest alive creature 21404 in 30.0 yards'), -- waypoint_script.id = 1136 + (21403, 0, 3, 0, 40, 0, 100, 0, 1, 5990480, 0, 0, 11, 36804, 0, 0, 0, 0, 0, 19, 21404, 30.0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 5990480 reached - Self: Cast spell 36804 on Closest alive creature 21404 in 30.0 yards'); -- waypoint_script.id = 1136 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=21500 AND `source_type`=0 AND `id` >= 3; + 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 + (21500, 0, 3, 0, 40, 0, 100, 0, 3, 6032560, 0, 0, 80, 2150000, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 6032560 reached - Self: Start timed action list id 2150000'), -- waypoint_script.id = 1137 + (21500, 0, 4, 0, 40, 0, 100, 0, 6, 6032560, 0, 0, 80, 2150000, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 6 of path 6032560 reached - Self: Start timed action list id 2150000'), -- waypoint_script.id = 1137 + (21500, 0, 5, 0, 40, 0, 100, 0, 9, 6032560, 0, 0, 80, 2150000, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 9 of path 6032560 reached - Self: Start timed action list id 2150000'), -- waypoint_script.id = 1137 + (21500, 0, 6, 0, 40, 0, 100, 0, 10, 6032560, 0, 0, 80, 2150001, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 10 of path 6032560 reached - Self: Start timed action list id 2150001'); -- waypoint_script.id = 1138 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=26417 AND `source_type`=0 AND `id` >= 5; + 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 + (26417, 0, 5, 0, 40, 0, 100, 0, 1, 8040800, 0, 0, 80, 2641700, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 8040800 reached - Self: Start timed action list id 2641700'), -- waypoint_script.id = 1139 + (26417, 0, 6, 0, 40, 0, 100, 0, 3, 8040880, 0, 0, 80, 2641701, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 8040880 reached - Self: Start timed action list id 2641701'), -- waypoint_script.id = 1140 + (26417, 0, 7, 0, 40, 0, 100, 0, 6, 8040960, 0, 0, 80, 2641702, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 6 of path 8040960 reached - Self: Start timed action list id 2641702'), -- waypoint_script.id = 1141 + (26417, 0, 8, 0, 40, 0, 100, 0, 8, 8041040, 0, 0, 80, 2641703, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 8 of path 8041040 reached - Self: Start timed action list id 2641703'), -- waypoint_script.id = 1142 + (26417, 0, 9, 0, 40, 0, 100, 0, 13, 8041120, 0, 0, 80, 2641704, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 13 of path 8041120 reached - Self: Start timed action list id 2641704'), -- waypoint_script.id = 1143 + (26417, 0, 10, 0, 40, 0, 100, 0, 8, 8041520, 0, 0, 80, 2641705, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 8 of path 8041520 reached - Self: Start timed action list id 2641705'), -- waypoint_script.id = 1144 + (26417, 0, 11, 0, 40, 0, 100, 0, 4, 8041840, 0, 0, 80, 2641706, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 4 of path 8041840 reached - Self: Start timed action list id 2641706'), -- waypoint_script.id = 1145 + (26417, 0, 12, 0, 40, 0, 100, 0, 8, 8042160, 0, 0, 80, 2641707, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 8 of path 8042160 reached - Self: Start timed action list id 2641707'), -- waypoint_script.id = 1146 + (26417, 0, 13, 0, 40, 0, 100, 0, 8, 8041200, 0, 0, 80, 2641708, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 8 of path 8041200 reached - Self: Start timed action list id 2641708'), -- waypoint_script.id = 1147 + (26417, 0, 14, 0, 40, 0, 100, 0, 2, 8042080, 0, 0, 80, 2641709, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 8042080 reached - Self: Start timed action list id 2641709'), -- waypoint_script.id = 1148 + (26417, 0, 15, 0, 40, 0, 100, 0, 6, 8041600, 0, 0, 80, 2641710, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 6 of path 8041600 reached - Self: Start timed action list id 2641710'), -- waypoint_script.id = 1149 + (26417, 0, 16, 0, 40, 0, 100, 0, 6, 8042240, 0, 0, 80, 2641711, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 6 of path 8042240 reached - Self: Start timed action list id 2641711'), -- waypoint_script.id = 1150 + (26417, 0, 17, 0, 40, 0, 100, 0, 3, 8041760, 0, 0, 80, 2641712, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 8041760 reached - Self: Start timed action list id 2641712'), -- waypoint_script.id = 1151 + (26417, 0, 18, 0, 40, 0, 100, 0, 7, 8041360, 0, 0, 80, 2641713, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 7 of path 8041360 reached - Self: Start timed action list id 2641713'), -- waypoint_script.id = 1152 + (26417, 0, 19, 0, 40, 0, 100, 0, 8, 8041920, 0, 0, 80, 2641714, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 8 of path 8041920 reached - Self: Start timed action list id 2641714'), -- waypoint_script.id = 1153 + (26417, 0, 20, 0, 40, 0, 100, 0, 7, 8041280, 0, 0, 80, 2641715, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 7 of path 8041280 reached - Self: Start timed action list id 2641715'), -- waypoint_script.id = 1154 + (26417, 0, 21, 0, 40, 0, 100, 0, 7, 8041440, 0, 0, 80, 2641716, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 7 of path 8041440 reached - Self: Start timed action list id 2641716'), -- waypoint_script.id = 1155 + (26417, 0, 22, 0, 40, 0, 100, 0, 6, 8039440, 0, 0, 80, 2641717, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 6 of path 8039440 reached - Self: Start timed action list id 2641717'), -- waypoint_script.id = 1156 + (26417, 0, 23, 0, 40, 0, 100, 0, 4, 8042400, 0, 0, 80, 2641718, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 4 of path 8042400 reached - Self: Start timed action list id 2641718'), -- waypoint_script.id = 1157 + (26417, 0, 24, 0, 40, 0, 100, 0, 5, 8039040, 0, 0, 80, 2641719, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 5 of path 8039040 reached - Self: Start timed action list id 2641719'); -- waypoint_script.id = 1158 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=23844 AND `source_type`=0 AND `id` >= 6; + 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 + (23844, 0, 6, 0, 40, 0, 100, 0, 12, 7936640, 0, 0, 5, 66, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 12 of path 7936640 reached - Self: Play emote 66'); -- waypoint_script.id = 1159 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=24812 AND `source_type`=0 AND `id` >= 3; + 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 + (24812, 0, 3, 0, 40, 0, 100, 0, 65, 9454160, 0, 0, 80, 2481200, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 65 of path 9454160 reached - Self: Start timed action list id 2481200'), -- waypoint_script.id = 1160 + (24812, 0, 4, 0, 40, 0, 100, 0, 1, 9455280, 0, 0, 80, 2481200, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 9455280 reached - Self: Start timed action list id 2481200'), -- waypoint_script.id = 1160 + (24812, 0, 5, 0, 40, 0, 100, 0, 17, 9455280, 0, 0, 80, 2481200, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 17 of path 9455280 reached - Self: Start timed action list id 2481200'), -- waypoint_script.id = 1160 + (24812, 0, 6, 0, 40, 0, 100, 0, 47, 9455280, 0, 0, 80, 2481200, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 47 of path 9455280 reached - Self: Start timed action list id 2481200'), -- waypoint_script.id = 1160 + (24812, 0, 7, 0, 40, 0, 100, 0, 1, 9454160, 0, 0, 11, 44385, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 9454160 reached - Self: Cast spell 44385 on Self'), -- waypoint_script.id = 1161 + (24812, 0, 8, 0, 40, 0, 100, 0, 66, 9454160, 0, 0, 11, 44385, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 66 of path 9454160 reached - Self: Cast spell 44385 on Self'), -- waypoint_script.id = 1161 + (24812, 0, 9, 0, 40, 0, 100, 0, 141, 9454160, 0, 0, 11, 44385, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 141 of path 9454160 reached - Self: Cast spell 44385 on Self'), -- waypoint_script.id = 1161 + (24812, 0, 10, 0, 40, 0, 100, 0, 2, 9455280, 0, 0, 11, 44385, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 9455280 reached - Self: Cast spell 44385 on Self'), -- waypoint_script.id = 1161 + (24812, 0, 11, 0, 40, 0, 100, 0, 18, 9455280, 0, 0, 11, 44385, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 18 of path 9455280 reached - Self: Cast spell 44385 on Self'), -- waypoint_script.id = 1161 + (24812, 0, 12, 0, 40, 0, 100, 0, 48, 9455280, 0, 0, 11, 44385, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 48 of path 9455280 reached - Self: Cast spell 44385 on Self'), -- waypoint_script.id = 1161 + (24812, 0, 13, 0, 40, 0, 100, 0, 140, 9454160, 0, 0, 80, 2481201, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 140 of path 9454160 reached - Self: Start timed action list id 2481201'), -- waypoint_script.id = 1162 + (24812, 0, 14, 0, 40, 0, 100, 0, 155, 9454160, 0, 0, 80, 2481202, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 155 of path 9454160 reached - Self: Start timed action list id 2481202'); -- waypoint_script.id = 1163 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=30436; + DELETE FROM `smart_scripts` WHERE `entryorguid`=30436 AND `source_type`=0 AND `id` >= 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 + (30436, 0, 0, 0, 40, 0, 100, 0, 1, 9959760, 0, 0, 17, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 9959760 reached - Self: Set emote state to 69'), -- waypoint_script.id = 1166 + (30436, 0, 1, 0, 40, 0, 100, 0, 2, 9959760, 0, 0, 5, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 9959760 reached - Self: Play emote 0'); -- waypoint_script.id = 1167 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=48215 AND `source_type`=0 AND `id` >= 1; + 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 + (48215, 0, 1, 0, 40, 0, 100, 0, 12, 28902000, 0, 0, 17, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 12 of path 28902000 reached - Self: Set emote state to 69'); -- waypoint_script.id = 1166 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=48235 AND `source_type`=0 AND `id` >= 2; + 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 + (48235, 0, 2, 0, 40, 0, 100, 0, 2, 28902240, 0, 0, 17, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 28902240 reached - Self: Set emote state to 69'), -- waypoint_script.id = 1166 + (48235, 0, 3, 0, 40, 0, 100, 0, 5, 28902240, 0, 0, 17, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 5 of path 28902240 reached - Self: Set emote state to 69'); -- waypoint_script.id = 1166 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=48551 AND `source_type`=0 AND `id` >= 1; + 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 + (48551, 0, 1, 0, 40, 0, 100, 0, 1, 28917440, 0, 0, 17, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 28917440 reached - Self: Set emote state to 69'); -- waypoint_script.id = 1166 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=48555 AND `source_type`=0 AND `id` >= 1; + 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 + (48555, 0, 1, 0, 40, 0, 100, 0, 4, 28917680, 0, 0, 17, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 4 of path 28917680 reached - Self: Set emote state to 69'); -- waypoint_script.id = 1166 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=48581 AND `source_type`=0 AND `id` >= 1; + 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 + (48581, 0, 1, 0, 40, 0, 100, 0, 13, 28919200, 0, 0, 17, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 13 of path 28919200 reached - Self: Set emote state to 69'); -- waypoint_script.id = 1166 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=28832; + DELETE FROM `smart_scripts` WHERE `entryorguid`=28832 AND `source_type`=0 AND `id` >= 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 + (28832, 0, 0, 0, 40, 0, 100, 0, 2, 8876160, 0, 0, 80, 2883200, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 8876160 reached - Self: Start timed action list id 2883200'), -- waypoint_script.id = 1168 + (28832, 0, 1, 0, 40, 0, 100, 0, 3, 8876160, 0, 0, 80, 2883201, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 8876160 reached - Self: Start timed action list id 2883201'); -- waypoint_script.id = 1169 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=28828; + DELETE FROM `smart_scripts` WHERE `entryorguid`=28828 AND `source_type`=0 AND `id` >= 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 + (28828, 0, 0, 0, 40, 0, 100, 0, 2, 8843120, 0, 0, 80, 2882800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 8843120 reached - Self: Start timed action list id 2882800'); -- waypoint_script.id = 1170 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=28829; + DELETE FROM `smart_scripts` WHERE `entryorguid`=28829 AND `source_type`=0 AND `id` >= 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 + (28829, 0, 0, 0, 40, 0, 100, 0, 1, 8846720, 0, 0, 80, 2882900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 8846720 reached - Self: Start timed action list id 2882900'), -- waypoint_script.id = 1171 + (28829, 0, 1, 0, 40, 0, 100, 0, 2, 8846720, 0, 0, 80, 2882901, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 8846720 reached - Self: Start timed action list id 2882901'); -- waypoint_script.id = 1172 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=28830; + DELETE FROM `smart_scripts` WHERE `entryorguid`=28830 AND `source_type`=0 AND `id` >= 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 + (28830, 0, 0, 0, 40, 0, 100, 0, 9, 8852080, 0, 0, 80, 2883000, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 9 of path 8852080 reached - Self: Start timed action list id 2883000'); -- waypoint_script.id = 1175 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=17703 AND `source_type`=0 AND `id` >= 1; + 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 + (17703, 0, 1, 0, 40, 0, 100, 0, 17, 5076000, 0, 0, 5, 133, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 17 of path 5076000 reached - Self: Play emote 133'); -- waypoint_script.id = 1176 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=32631; + DELETE FROM `smart_scripts` WHERE `entryorguid`=32631 AND `source_type`=0 AND `id` >= 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 + (32631, 0, 0, 0, 40, 0, 100, 0, 17, 8556800, 0, 0, 80, 3263100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 17 of path 8556800 reached - Self: Start timed action list id 3263100'), -- waypoint_script.id = 1177 + (32631, 0, 1, 0, 40, 0, 100, 0, 21, 8556800, 0, 0, 80, 3263101, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 21 of path 8556800 reached - Self: Start timed action list id 3263101'), -- waypoint_script.id = 1178 + (32631, 0, 2, 0, 40, 0, 100, 0, 23, 8556800, 0, 0, 80, 3263102, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 23 of path 8556800 reached - Self: Start timed action list id 3263102'); -- waypoint_script.id = 1179 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=32737; + DELETE FROM `smart_scripts` WHERE `entryorguid`=32737 AND `source_type`=0 AND `id` >= 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 + (32737, 0, 0, 0, 40, 0, 100, 0, 1, 16282000, 0, 0, 80, 3273700, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 16282000 reached - Self: Start timed action list id 3273700'), -- waypoint_script.id = 1180 + (32737, 0, 1, 0, 40, 0, 100, 0, 2, 16282000, 0, 0, 80, 3273701, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 16282000 reached - Self: Start timed action list id 3273701'); -- waypoint_script.id = 1181 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=37780; + DELETE FROM `smart_scripts` WHERE `entryorguid`=37780 AND `source_type`=0 AND `id` >= 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 + (37780, 0, 0, 0, 40, 0, 100, 0, 5, 10691920, 0, 0, 80, 3778000, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 5 of path 10691920 reached - Self: Start timed action list id 3778000'), -- waypoint_script.id = 1185 + (37780, 0, 1, 0, 40, 0, 100, 0, 15, 10691920, 0, 0, 80, 3778001, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 15 of path 10691920 reached - Self: Start timed action list id 3778001'), -- waypoint_script.id = 1186 + (37780, 0, 2, 0, 40, 0, 100, 0, 18, 10691920, 0, 0, 80, 3778002, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 18 of path 10691920 reached - Self: Start timed action list id 3778002'); -- waypoint_script.id = 1187 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=18688 AND `source_type`=0 AND `id` >= 1; + 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 + (18688, 0, 1, 0, 40, 0, 100, 0, 12, 1147120, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 12 of path 1147120 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (18688, 0, 2, 0, 40, 0, 100, 0, 13, 1147200, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 13 of path 1147200 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (18688, 0, 3, 0, 40, 0, 100, 0, 12, 1147360, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 12 of path 1147360 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (18688, 0, 4, 0, 40, 0, 100, 0, 18, 1198160, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 18 of path 1198160 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (18688, 0, 5, 0, 40, 0, 100, 0, 17, 1198240, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 17 of path 1198240 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (18688, 0, 6, 0, 40, 0, 100, 0, 21, 1848880, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 21 of path 1848880 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (18688, 0, 7, 0, 40, 0, 100, 0, 23, 1973600, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 23 of path 1973600 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (18688, 0, 8, 0, 40, 0, 100, 0, 15, 1980880, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 15 of path 1980880 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (18688, 0, 9, 0, 40, 0, 100, 0, 14, 1983520, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 14 of path 1983520 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (18688, 0, 10, 0, 40, 0, 100, 0, 9, 2008000, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 9 of path 2008000 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (18688, 0, 11, 0, 40, 0, 100, 0, 18, 2124720, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 18 of path 2124720 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (18688, 0, 12, 0, 40, 0, 100, 0, 6, 2125120, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 6 of path 2125120 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (18688, 0, 13, 0, 40, 0, 100, 0, 7, 2544560, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 7 of path 2544560 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (18688, 0, 14, 0, 40, 0, 100, 0, 12, 2546640, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 12 of path 2546640 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (18688, 0, 15, 0, 40, 0, 100, 0, 17, 2565760, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 17 of path 2565760 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (18688, 0, 16, 0, 40, 0, 100, 0, 23, 3238000, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 23 of path 3238000 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (18688, 0, 17, 0, 40, 0, 100, 0, 27, 3238080, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 27 of path 3238080 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (18688, 0, 18, 0, 40, 0, 100, 0, 23, 3616320, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 23 of path 3616320 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (18688, 0, 19, 0, 40, 0, 100, 0, 23, 3616320, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 23 of path 3616320 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (18688, 0, 20, 0, 40, 0, 100, 0, 23, 3616320, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 23 of path 3616320 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (18688, 0, 21, 0, 40, 0, 100, 0, 23, 3616320, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 23 of path 3616320 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (18688, 0, 22, 0, 40, 0, 100, 0, 23, 3616320, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 23 of path 3616320 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (18688, 0, 23, 0, 40, 0, 100, 0, 23, 3616320, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 23 of path 3616320 reached - Self: Start timed action list id 1868800'); -- waypoint_script.id = 1188 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=29375 AND `source_type`=0 AND `id` >= 2; + 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 + (29375, 0, 2, 0, 40, 0, 100, 0, 16, 5921440, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 16 of path 5921440 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (29375, 0, 3, 0, 40, 0, 100, 0, 1, 5921360, 0, 0, 80, 2937500, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 5921360 reached - Self: Start timed action list id 2937500'), -- waypoint_script.id = 11393600 + (29375, 0, 4, 0, 40, 0, 100, 0, 1, 9114880, 0, 0, 80, 2937500, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 9114880 reached - Self: Start timed action list id 2937500'), -- waypoint_script.id = 11393600 + (29375, 0, 5, 0, 40, 0, 100, 0, 2, 9114960, 0, 0, 80, 2937500, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 9114960 reached - Self: Start timed action list id 2937500'); -- waypoint_script.id = 11393600 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=28897 AND `source_type`=0 AND `id` >= 6; + 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 + (28897, 0, 6, 0, 40, 0, 100, 0, 13, 6631920, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 13 of path 6631920 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (28897, 0, 7, 0, 40, 0, 100, 0, 12, 6633200, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 12 of path 6633200 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (28897, 0, 8, 0, 40, 0, 100, 0, 11, 6753440, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 11 of path 6753440 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (28897, 0, 9, 0, 40, 0, 100, 0, 11, 6753840, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 11 of path 6753840 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (28897, 0, 10, 0, 40, 0, 100, 0, 9, 6754560, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 9 of path 6754560 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (28897, 0, 11, 0, 40, 0, 100, 0, 9, 6754880, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 9 of path 6754880 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (28897, 0, 12, 0, 40, 0, 100, 0, 8, 6754960, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 8 of path 6754960 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (28897, 0, 13, 0, 40, 0, 100, 0, 8, 6755120, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 8 of path 6755120 reached - Self: Start timed action list id 1868800'); -- waypoint_script.id = 1188 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=25115; + DELETE FROM `smart_scripts` WHERE `entryorguid`=25115 AND `source_type`=0 AND `id` >= 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 + (25115, 0, 0, 0, 40, 0, 100, 0, 7, 7727440, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 7 of path 7727440 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (25115, 0, 1, 0, 40, 0, 100, 0, 10, 7732560, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 10 of path 7732560 reached - Self: Start timed action list id 1868800'); -- waypoint_script.id = 1188 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=24938 AND `source_type`=0 AND `id` >= 2; + 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 + (24938, 0, 2, 0, 40, 0, 100, 0, 8, 7732480, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 8 of path 7732480 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (24938, 0, 3, 0, 40, 0, 100, 0, 10, 7732640, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 10 of path 7732640 reached - Self: Start timed action list id 1868800'); -- waypoint_script.id = 1188 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=32746; + DELETE FROM `smart_scripts` WHERE `entryorguid`=32746 AND `source_type`=0 AND `id` >= 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 + (32746, 0, 0, 0, 40, 0, 100, 0, 31, 9445120, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 31 of path 9445120 reached - Self: Start timed action list id 1868800'); -- waypoint_script.id = 1188 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=38048 AND `source_type`=0 AND `id` >= 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 + (38048, 0, 0, 0, 40, 0, 100, 0, 11, 9833200, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 11 of path 9833200 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (38048, 0, 1, 0, 40, 0, 100, 0, 14, 9899040, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 14 of path 9899040 reached - Self: Start timed action list id 1868800'); -- waypoint_script.id = 1188 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=38047 AND `source_type`=0 AND `id` >= 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 + (38047, 0, 0, 0, 40, 0, 100, 0, 13, 9836640, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 13 of path 9836640 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (38047, 0, 1, 0, 40, 0, 100, 0, 12, 9837920, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 12 of path 9837920 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (38047, 0, 2, 0, 40, 0, 100, 0, 13, 9838960, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 13 of path 9838960 reached - Self: Start timed action list id 1868800'); -- waypoint_script.id = 1188 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=28822; + DELETE FROM `smart_scripts` WHERE `entryorguid`=28822 AND `source_type`=0 AND `id` >= 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 + (28822, 0, 0, 0, 40, 0, 100, 0, 52, 10310800, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 52 of path 10310800 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (28822, 0, 1, 0, 40, 0, 100, 0, 41, 10311120, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 41 of path 10311120 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (28822, 0, 2, 0, 40, 0, 100, 0, 35, 10311440, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 35 of path 10311440 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (28822, 0, 3, 0, 40, 0, 100, 0, 13, 10311520, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 13 of path 10311520 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (28822, 0, 4, 0, 40, 0, 100, 0, 15, 10311600, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 15 of path 10311600 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (28822, 0, 5, 0, 40, 0, 100, 0, 13, 10311840, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 13 of path 10311840 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (28822, 0, 6, 0, 40, 0, 100, 0, 32, 10311920, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 32 of path 10311920 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (28822, 0, 7, 0, 40, 0, 100, 0, 48, 10312080, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 48 of path 10312080 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (28822, 0, 8, 0, 40, 0, 100, 0, 8, 10312320, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 8 of path 10312320 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (28822, 0, 9, 0, 40, 0, 100, 0, 21, 10312400, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 21 of path 10312400 reached - Self: Start timed action list id 1868800'); -- waypoint_script.id = 1188 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=28576; + DELETE FROM `smart_scripts` WHERE `entryorguid`=28576 AND `source_type`=0 AND `id` >= 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 + (28576, 0, 0, 0, 40, 0, 100, 0, 9, 10312800, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 9 of path 10312800 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (28576, 0, 1, 0, 40, 0, 100, 0, 8, 10313520, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 8 of path 10313520 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (28576, 0, 2, 0, 40, 0, 100, 0, 14, 10313840, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 14 of path 10313840 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (28576, 0, 3, 0, 40, 0, 100, 0, 6, 10313920, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 6 of path 10313920 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (28576, 0, 4, 0, 40, 0, 100, 0, 10, 10314000, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 10 of path 10314000 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (28576, 0, 5, 0, 40, 0, 100, 0, 8, 10314160, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 8 of path 10314160 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (28576, 0, 6, 0, 40, 0, 100, 0, 15, 10314720, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 15 of path 10314720 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (28576, 0, 7, 0, 40, 0, 100, 0, 13, 10314800, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 13 of path 10314800 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (28576, 0, 8, 0, 40, 0, 100, 0, 15, 10314880, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 15 of path 10314880 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (28576, 0, 9, 0, 40, 0, 100, 0, 6, 10315120, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 6 of path 10315120 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (28576, 0, 10, 0, 40, 0, 100, 0, 10, 10315680, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 10 of path 10315680 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (28576, 0, 11, 0, 40, 0, 100, 0, 13, 10315840, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 13 of path 10315840 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (28576, 0, 12, 0, 40, 0, 100, 0, 9, 10315920, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 9 of path 10315920 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (28576, 0, 13, 0, 40, 0, 100, 0, 20, 10316560, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 20 of path 10316560 reached - Self: Start timed action list id 1868800'); -- waypoint_script.id = 1188 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=28577; + DELETE FROM `smart_scripts` WHERE `entryorguid`=28577 AND `source_type`=0 AND `id` >= 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 + (28577, 0, 0, 0, 40, 0, 100, 0, 10, 10317920, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 10 of path 10317920 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (28577, 0, 1, 0, 40, 0, 100, 0, 13, 10318800, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 13 of path 10318800 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (28577, 0, 2, 0, 40, 0, 100, 0, 9, 10318880, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 9 of path 10318880 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (28577, 0, 3, 0, 40, 0, 100, 0, 17, 10319040, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 17 of path 10319040 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (28577, 0, 4, 0, 40, 0, 100, 0, 27, 10319200, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 27 of path 10319200 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (28577, 0, 5, 0, 40, 0, 100, 0, 13, 10319280, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 13 of path 10319280 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (28577, 0, 6, 0, 40, 0, 100, 0, 13, 10319760, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 13 of path 10319760 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (28577, 0, 7, 0, 40, 0, 100, 0, 7, 10319840, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 7 of path 10319840 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (28577, 0, 8, 0, 40, 0, 100, 0, 8, 10319920, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 8 of path 10319920 reached - Self: Start timed action list id 1868800'); -- waypoint_script.id = 1188 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=-129217 AND `source_type`=0 AND `id` >= 5; + 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 + (-129217, 0, 5, 0, 40, 0, 100, 0, 15, 10337360, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 15 of path 10337360 reached - Self: Start timed action list id 1868800'); -- waypoint_script.id = 1188 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=29185; + DELETE FROM `smart_scripts` WHERE `entryorguid`=29185 AND `source_type`=0 AND `id` >= 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 + (29185, 0, 0, 0, 40, 0, 100, 0, 4, 10428960, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 4 of path 10428960 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (29185, 0, 1, 0, 40, 0, 100, 0, 10, 10429040, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 10 of path 10429040 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (29185, 0, 2, 0, 40, 0, 100, 0, 18, 10429840, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 18 of path 10429840 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (29185, 0, 3, 0, 40, 0, 100, 0, 1, 10428960, 0, 0, 80, 2918500, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 10428960 reached - Self: Start timed action list id 2918500'), -- waypoint_script.id = 13036300 + (29185, 0, 4, 0, 40, 0, 100, 0, 1, 10429040, 0, 0, 80, 2918500, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 10429040 reached - Self: Start timed action list id 2918500'), -- waypoint_script.id = 13036300 + (29185, 0, 5, 0, 40, 0, 100, 0, 1, 10429840, 0, 0, 80, 2918500, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 10429840 reached - Self: Start timed action list id 2918500'); -- waypoint_script.id = 13036300 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=29186 AND `source_type`=0 AND `id` >= 2; + 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 + (29186, 0, 2, 0, 40, 0, 100, 0, 18, 10430080, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 18 of path 10430080 reached - Self: Start timed action list id 1868800'), -- waypoint_script.id = 1188 + (29186, 0, 3, 0, 40, 0, 100, 0, 26, 10430320, 0, 0, 80, 1868800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 26 of path 10430320 reached - Self: Start timed action list id 1868800'); -- waypoint_script.id = 1188 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=37776; + DELETE FROM `smart_scripts` WHERE `entryorguid`=37776 AND `source_type`=0 AND `id` >= 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 + (37776, 0, 0, 0, 40, 0, 100, 0, 4, 8098880, 0, 0, 80, 3777600, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 4 of path 8098880 reached - Self: Start timed action list id 3777600'), -- waypoint_script.id = 1190 + (37776, 0, 1, 0, 40, 0, 100, 0, 13, 8098880, 0, 0, 80, 3777601, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 13 of path 8098880 reached - Self: Start timed action list id 3777601'), -- waypoint_script.id = 1191 + (37776, 0, 2, 0, 40, 0, 100, 0, 16, 8098880, 0, 0, 80, 3777602, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 16 of path 8098880 reached - Self: Start timed action list id 3777602'); -- waypoint_script.id = 1192 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=28600; + DELETE FROM `smart_scripts` WHERE `entryorguid`=28600 AND `source_type`=0 AND `id` >= 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 + (28600, 0, 0, 0, 40, 0, 100, 0, 1, 9068400, 0, 0, 80, 2860000, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 9068400 reached - Self: Start timed action list id 2860000'), -- waypoint_script.id = 1193 + (28600, 0, 1, 0, 40, 0, 100, 0, 3, 9069120, 0, 0, 11, 52059, 0, 0, 0, 0, 0, 19, 28387, 30.0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 9069120 reached - Self: Cast spell 52059 on Closest alive creature 28387 in 30.0 yards'); -- waypoint_script.id = 1194 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=25465 AND `source_type`=0 AND `id` >= 2; + 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 + (25465, 0, 2, 0, 40, 0, 100, 0, 1, 8569680, 0, 0, 5, 30, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 8569680 reached - Self: Play emote 30'), -- waypoint_script.id = 1195 + (25465, 0, 3, 0, 40, 0, 100, 0, 2, 8569680, 0, 0, 80, 2546500, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 8569680 reached - Self: Start timed action list id 2546500'), -- waypoint_script.id = 1196 + (25465, 0, 4, 0, 40, 0, 100, 0, 3, 8569680, 0, 0, 80, 2546501, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 8569680 reached - Self: Start timed action list id 2546501'); -- waypoint_script.id = 1197 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=25349; + DELETE FROM `smart_scripts` WHERE `entryorguid`=25349 AND `source_type`=0 AND `id` >= 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 + (25349, 0, 0, 0, 40, 0, 100, 0, 1, 7770320, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 7770320 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 1, 0, 40, 0, 100, 0, 2, 7770320, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 7770320 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 2, 0, 40, 0, 100, 0, 3, 7770320, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 7770320 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 3, 0, 40, 0, 100, 0, 4, 7770320, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 4 of path 7770320 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 4, 0, 40, 0, 100, 0, 5, 7770320, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 5 of path 7770320 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 5, 0, 40, 0, 100, 0, 6, 7770320, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 6 of path 7770320 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 6, 0, 40, 0, 100, 0, 7, 7770320, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 7 of path 7770320 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 7, 0, 40, 0, 100, 0, 8, 7770320, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 8 of path 7770320 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 8, 0, 40, 0, 100, 0, 9, 7770320, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 9 of path 7770320 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 9, 0, 40, 0, 100, 0, 10, 7770320, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 10 of path 7770320 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 10, 0, 40, 0, 100, 0, 11, 7770320, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 11 of path 7770320 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 11, 0, 40, 0, 100, 0, 12, 7770320, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 12 of path 7770320 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 12, 0, 40, 0, 100, 0, 13, 7770320, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 13 of path 7770320 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 13, 0, 40, 0, 100, 0, 1, 7770400, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 7770400 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 14, 0, 40, 0, 100, 0, 2, 7770400, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 7770400 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 15, 0, 40, 0, 100, 0, 3, 7770400, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 7770400 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 16, 0, 40, 0, 100, 0, 4, 7770400, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 4 of path 7770400 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 17, 0, 40, 0, 100, 0, 5, 7770400, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 5 of path 7770400 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 18, 0, 40, 0, 100, 0, 6, 7770400, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 6 of path 7770400 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 19, 0, 40, 0, 100, 0, 7, 7770400, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 7 of path 7770400 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 20, 0, 40, 0, 100, 0, 8, 7770400, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 8 of path 7770400 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 21, 0, 40, 0, 100, 0, 9, 7770400, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 9 of path 7770400 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 22, 0, 40, 0, 100, 0, 10, 7770400, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 10 of path 7770400 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 23, 0, 40, 0, 100, 0, 11, 7770400, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 11 of path 7770400 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 24, 0, 40, 0, 100, 0, 12, 7770400, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 12 of path 7770400 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 25, 0, 40, 0, 100, 0, 13, 7770400, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 13 of path 7770400 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 26, 0, 40, 0, 100, 0, 14, 7770400, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 14 of path 7770400 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 27, 0, 40, 0, 100, 0, 15, 7770400, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 15 of path 7770400 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 28, 0, 40, 0, 100, 0, 16, 7770400, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 16 of path 7770400 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 29, 0, 40, 0, 100, 0, 17, 7770400, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 17 of path 7770400 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 30, 0, 40, 0, 100, 0, 18, 7770400, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 18 of path 7770400 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 31, 0, 40, 0, 100, 0, 19, 7770400, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 19 of path 7770400 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 32, 0, 40, 0, 100, 0, 20, 7770400, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 20 of path 7770400 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 33, 0, 40, 0, 100, 0, 21, 7770400, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 21 of path 7770400 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 34, 0, 40, 0, 100, 0, 22, 7770400, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 22 of path 7770400 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 35, 0, 40, 0, 100, 0, 23, 7770400, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 23 of path 7770400 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 36, 0, 40, 0, 100, 0, 24, 7770400, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 24 of path 7770400 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 37, 0, 40, 0, 100, 0, 25, 7770400, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 25 of path 7770400 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 38, 0, 40, 0, 100, 0, 26, 7770400, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 26 of path 7770400 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 39, 0, 40, 0, 100, 0, 27, 7770400, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 27 of path 7770400 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 40, 0, 40, 0, 100, 0, 28, 7770400, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 28 of path 7770400 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 41, 0, 40, 0, 100, 0, 29, 7770400, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 29 of path 7770400 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 42, 0, 40, 0, 100, 0, 1, 7770960, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 7770960 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 43, 0, 40, 0, 100, 0, 2, 7770960, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 7770960 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 44, 0, 40, 0, 100, 0, 3, 7770960, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 7770960 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 45, 0, 40, 0, 100, 0, 4, 7770960, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 4 of path 7770960 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 46, 0, 40, 0, 100, 0, 5, 7770960, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 5 of path 7770960 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 47, 0, 40, 0, 100, 0, 6, 7770960, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 6 of path 7770960 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 48, 0, 40, 0, 100, 0, 7, 7770960, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 7 of path 7770960 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 49, 0, 40, 0, 100, 0, 8, 7770960, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 8 of path 7770960 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 50, 0, 40, 0, 100, 0, 9, 7770960, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 9 of path 7770960 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 51, 0, 40, 0, 100, 0, 10, 7770960, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 10 of path 7770960 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 52, 0, 40, 0, 100, 0, 11, 7770960, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 11 of path 7770960 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 53, 0, 40, 0, 100, 0, 12, 7770960, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 12 of path 7770960 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 54, 0, 40, 0, 100, 0, 13, 7770960, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 13 of path 7770960 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 55, 0, 40, 0, 100, 0, 14, 7770960, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 14 of path 7770960 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 56, 0, 40, 0, 100, 0, 15, 7770960, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 15 of path 7770960 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 57, 0, 40, 0, 100, 0, 16, 7770960, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 16 of path 7770960 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 58, 0, 40, 0, 100, 0, 17, 7770960, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 17 of path 7770960 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 59, 0, 40, 0, 100, 0, 18, 7770960, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 18 of path 7770960 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 60, 0, 40, 0, 100, 0, 19, 7770960, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 19 of path 7770960 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 61, 0, 40, 0, 100, 0, 20, 7770960, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 20 of path 7770960 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 62, 0, 40, 0, 100, 0, 21, 7770960, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 21 of path 7770960 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 63, 0, 40, 0, 100, 0, 22, 7770960, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 22 of path 7770960 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 64, 0, 40, 0, 100, 0, 23, 7770960, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 23 of path 7770960 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 65, 0, 40, 0, 100, 0, 24, 7770960, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 24 of path 7770960 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 66, 0, 40, 0, 100, 0, 25, 7770960, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 25 of path 7770960 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 67, 0, 40, 0, 100, 0, 26, 7770960, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 26 of path 7770960 reached - Self: Start timed action list id 2534900'), -- waypoint_script.id = 1198 + (25349, 0, 68, 0, 40, 0, 100, 0, 27, 7770960, 0, 0, 80, 2534900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 27 of path 7770960 reached - Self: Start timed action list id 2534900'); -- waypoint_script.id = 1198 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=28500; + DELETE FROM `smart_scripts` WHERE `entryorguid`=28500 AND `source_type`=0 AND `id` >= 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 + (28500, 0, 0, 0, 40, 0, 100, 0, 8, 10286160, 0, 0, 17, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 8 of path 10286160 reached - Self: Set emote state to 1'), -- waypoint_script.id = 1200 + (28500, 0, 1, 0, 40, 0, 100, 0, 1, 10286160, 0, 0, 80, 2850000, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 10286160 reached - Self: Start timed action list id 2850000'), -- waypoint_script.id = 1201 + (28500, 0, 2, 0, 40, 0, 100, 0, 5, 10286160, 0, 0, 80, 2850000, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 5 of path 10286160 reached - Self: Start timed action list id 2850000'), -- waypoint_script.id = 1201 + (28500, 0, 3, 0, 40, 0, 100, 0, 12, 10286160, 0, 0, 80, 2850000, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 12 of path 10286160 reached - Self: Start timed action list id 2850000'), -- waypoint_script.id = 1201 + (28500, 0, 4, 0, 40, 0, 100, 0, 13, 10286160, 0, 0, 80, 2850000, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 13 of path 10286160 reached - Self: Start timed action list id 2850000'); -- waypoint_script.id = 1201 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=28505; + DELETE FROM `smart_scripts` WHERE `entryorguid`=28505 AND `source_type`=0 AND `id` >= 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 + (28505, 0, 0, 0, 40, 0, 100, 0, 1, 10286320, 0, 0, 80, 2850000, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 10286320 reached - Self: Start timed action list id 2850000'), -- waypoint_script.id = 1201 + (28505, 0, 1, 0, 40, 0, 100, 0, 4, 10286320, 0, 0, 80, 2850000, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 4 of path 10286320 reached - Self: Start timed action list id 2850000'), -- waypoint_script.id = 1201 + (28505, 0, 2, 0, 40, 0, 100, 0, 5, 10286320, 0, 0, 80, 2850000, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 5 of path 10286320 reached - Self: Start timed action list id 2850000'), -- waypoint_script.id = 1201 + (28505, 0, 3, 0, 40, 0, 100, 0, 2, 10286320, 0, 0, 80, 2850500, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 10286320 reached - Self: Start timed action list id 2850500'), -- waypoint_script.id = 1202 + (28505, 0, 4, 0, 40, 0, 100, 0, 3, 10286320, 0, 0, 80, 2850500, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 10286320 reached - Self: Start timed action list id 2850500'); -- waypoint_script.id = 1202 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=28506; + DELETE FROM `smart_scripts` WHERE `entryorguid`=28506 AND `source_type`=0 AND `id` >= 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 + (28506, 0, 0, 0, 40, 0, 100, 0, 1, 10286400, 0, 0, 80, 2850600, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 10286400 reached - Self: Start timed action list id 2850600'), -- waypoint_script.id = 1203 + (28506, 0, 1, 0, 40, 0, 100, 0, 2, 10286400, 0, 0, 80, 2850600, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 10286400 reached - Self: Start timed action list id 2850600'), -- waypoint_script.id = 1203 + (28506, 0, 2, 0, 40, 0, 100, 0, 3, 10286400, 0, 0, 80, 2850600, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 10286400 reached - Self: Start timed action list id 2850600'), -- waypoint_script.id = 1203 + (28506, 0, 3, 0, 40, 0, 100, 0, 4, 10286400, 0, 0, 80, 2850600, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 4 of path 10286400 reached - Self: Start timed action list id 2850600'); -- waypoint_script.id = 1203 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=24019 AND `source_type`=0 AND `id` >= 2; + 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 + (24019, 0, 2, 0, 40, 0, 100, 0, 5, 9270320, 0, 0, 4, 7274, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 5 of path 9270320 reached - Self: Play direct sound 7274 to every player in visibility range of Self'), -- waypoint_script.id = 115879 + (24019, 0, 3, 0, 40, 0, 100, 0, 12, 9270320, 0, 0, 4, 7274, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 12 of path 9270320 reached - Self: Play direct sound 7274 to every player in visibility range of Self'), -- waypoint_script.id = 115879 + (24019, 0, 4, 0, 40, 0, 100, 0, 19, 9270320, 0, 0, 4, 7274, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 19 of path 9270320 reached - Self: Play direct sound 7274 to every player in visibility range of Self'), -- waypoint_script.id = 115879 + (24019, 0, 5, 0, 40, 0, 100, 0, 26, 9270320, 0, 0, 4, 7274, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 26 of path 9270320 reached - Self: Play direct sound 7274 to every player in visibility range of Self'); -- waypoint_script.id = 115879 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=18999 AND `source_type`=0 AND `id` >= 1; + 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 + (18999, 0, 1, 0, 40, 0, 100, 0, 2, 5463200, 0, 0, 80, 1899900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 5463200 reached - Self: Start timed action list id 1899900'), -- waypoint_script.id = 682901 + (18999, 0, 2, 0, 40, 0, 100, 0, 5, 5463200, 0, 0, 80, 1899901, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 5 of path 5463200 reached - Self: Start timed action list id 1899901'), -- waypoint_script.id = 682902 + (18999, 0, 3, 0, 40, 0, 100, 0, 7, 5463200, 0, 0, 80, 1899902, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 7 of path 5463200 reached - Self: Start timed action list id 1899902'), -- waypoint_script.id = 682903 + (18999, 0, 4, 0, 40, 0, 100, 0, 9, 5463200, 0, 0, 80, 1899903, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 9 of path 5463200 reached - Self: Start timed action list id 1899903'), -- waypoint_script.id = 682904 + (18999, 0, 5, 0, 40, 0, 100, 0, 2, 5463360, 0, 0, 80, 1899904, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 5463360 reached - Self: Start timed action list id 1899904'), -- waypoint_script.id = 682921 + (18999, 0, 6, 0, 40, 0, 100, 0, 5, 5463360, 0, 0, 80, 1899905, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 5 of path 5463360 reached - Self: Start timed action list id 1899905'), -- waypoint_script.id = 682922 + (18999, 0, 7, 0, 40, 0, 100, 0, 8, 5463360, 0, 0, 80, 1899906, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 8 of path 5463360 reached - Self: Start timed action list id 1899906'), -- waypoint_script.id = 682923 + (18999, 0, 8, 0, 40, 0, 100, 0, 11, 5463360, 0, 0, 80, 1899907, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 11 of path 5463360 reached - Self: Start timed action list id 1899907'), -- waypoint_script.id = 682924 + (18999, 0, 9, 0, 40, 0, 100, 0, 5, 5463680, 0, 0, 80, 1899908, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 5 of path 5463680 reached - Self: Start timed action list id 1899908'), -- waypoint_script.id = 682961 + (18999, 0, 10, 0, 40, 0, 100, 0, 11, 5463680, 0, 0, 80, 1899909, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 11 of path 5463680 reached - Self: Start timed action list id 1899909'), -- waypoint_script.id = 682962 + (18999, 0, 11, 0, 40, 0, 100, 0, 15, 5463680, 0, 0, 80, 1899910, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 15 of path 5463680 reached - Self: Start timed action list id 1899910'), -- waypoint_script.id = 682963 + (18999, 0, 12, 0, 40, 0, 100, 0, 19, 5463680, 0, 0, 80, 1899911, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 19 of path 5463680 reached - Self: Start timed action list id 1899911'); -- waypoint_script.id = 682964 + + UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=19003; + DELETE FROM `smart_scripts` WHERE `entryorguid`=19003 AND `source_type`=0 AND `id` >= 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 + (19003, 0, 0, 0, 40, 0, 100, 0, 2, 5464640, 0, 0, 80, 1900300, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 5464640 reached - Self: Start timed action list id 1900300'), -- waypoint_script.id = 683081 + (19003, 0, 1, 0, 40, 0, 100, 0, 10, 5464720, 0, 0, 80, 1900301, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 10 of path 5464720 reached - Self: Start timed action list id 1900301'); -- waypoint_script.id = 683091 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=10899 AND `source_type`=0 AND `id` >= 3; + 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 + (10899, 0, 3, 0, 40, 0, 100, 0, 2, 11028480, 0, 0, 80, 1089900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 11028480 reached - Self: Start timed action list id 1089900'), -- waypoint_script.id = 1378561 + (10899, 0, 4, 0, 40, 0, 100, 0, 8, 11028480, 0, 0, 80, 1089901, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 8 of path 11028480 reached - Self: Start timed action list id 1089901'), -- waypoint_script.id = 1378562 + (10899, 0, 5, 0, 40, 0, 100, 0, 11, 11028480, 0, 0, 80, 1089902, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 11 of path 11028480 reached - Self: Start timed action list id 1089902'); -- waypoint_script.id = 1378563 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=9097 AND `source_type`=0 AND `id` >= 3; + 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 + (9097, 0, 3, 0, 40, 0, 100, 0, 2, 11043600, 0, 0, 80, 909700, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 11043600 reached - Self: Start timed action list id 909700'), -- waypoint_script.id = 1380451 + (9097, 0, 4, 0, 40, 0, 100, 0, 4, 11043600, 0, 0, 80, 909701, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 4 of path 11043600 reached - Self: Start timed action list id 909701'); -- waypoint_script.id = 1380452 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=17259 AND `source_type`=0 AND `id` >= 5; + 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 + (17259, 0, 5, 0, 40, 0, 100, 0, 4, 16209280, 0, 0, 80, 1725900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 4 of path 16209280 reached - Self: Start timed action list id 1725900'), -- waypoint_script.id = 2026160 + (17259, 0, 6, 0, 40, 0, 100, 0, 10, 16209280, 0, 0, 80, 1725901, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 10 of path 16209280 reached - Self: Start timed action list id 1725901'); -- waypoint_script.id = 2026161 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=17264 AND `source_type`=0 AND `id` >= 1; + 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 + (17264, 0, 1, 0, 40, 0, 100, 0, 6, 16210000, 0, 0, 80, 1726400, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 6 of path 16210000 reached - Self: Start timed action list id 1726400'), -- waypoint_script.id = 2026250 + (17264, 0, 2, 0, 40, 0, 100, 0, 12, 16210000, 0, 0, 80, 1726401, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 12 of path 16210000 reached - Self: Start timed action list id 1726401'), -- waypoint_script.id = 2026251 + (17264, 0, 3, 0, 40, 0, 100, 0, 4, 16210160, 0, 0, 80, 1726402, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 4 of path 16210160 reached - Self: Start timed action list id 1726402'), -- waypoint_script.id = 2026270 + (17264, 0, 4, 0, 40, 0, 100, 0, 10, 16210160, 0, 0, 80, 1726403, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 10 of path 16210160 reached - Self: Start timed action list id 1726403'); -- waypoint_script.id = 2026271 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=39642 AND `source_type`=0 AND `id` >= 2; + 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 + (39642, 0, 2, 0, 40, 0, 100, 0, 1, 30786000, 0, 0, 80, 3964200, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 30786000 reached - Self: Start timed action list id 3964200'), -- waypoint_script.id = 3848250 + (39642, 0, 3, 0, 40, 0, 100, 0, 3, 30786000, 0, 0, 80, 3964200, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 30786000 reached - Self: Start timed action list id 3964200'), -- waypoint_script.id = 3848250 + (39642, 0, 4, 0, 40, 0, 100, 0, 2, 30829680, 0, 0, 80, 3964201, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 30829680 reached - Self: Start timed action list id 3964201'), -- waypoint_script.id = 3853710 + (39642, 0, 5, 0, 40, 0, 100, 0, 5, 30829680, 0, 0, 80, 3964202, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 5 of path 30829680 reached - Self: Start timed action list id 3964202'); -- waypoint_script.id = 3853711 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=39843 AND `source_type`=0 AND `id` >= 3; + 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 + (39843, 0, 3, 0, 40, 0, 100, 0, 6, 30887760, 0, 0, 80, 3984300, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 6 of path 30887760 reached - Self: Start timed action list id 3984300'); -- waypoint_script.id = 3860971 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=16580 AND `source_type`=0 AND `id` >= 1; + 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 + (16580, 0, 1, 0, 40, 0, 100, 0, 2, 4603120, 0, 0, 80, 1658000, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 4603120 reached - Self: Start timed action list id 1658000'); -- waypoint_script.id = 5753900 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=16907 AND `source_type`=0 AND `id` >= 3; + 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 + (16907, 0, 3, 0, 40, 0, 100, 0, 6, 4690240, 0, 0, 80, 1690700, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 6 of path 4690240 reached - Self: Start timed action list id 1690700'), -- waypoint_script.id = 5862800 + (16907, 0, 4, 0, 40, 0, 100, 0, 12, 4690240, 0, 0, 80, 1690700, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 12 of path 4690240 reached - Self: Start timed action list id 1690700'), -- waypoint_script.id = 5862800 + (16907, 0, 5, 0, 40, 0, 100, 0, 3, 4690560, 0, 0, 80, 1690700, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 4690560 reached - Self: Start timed action list id 1690700'), -- waypoint_script.id = 5862800 + (16907, 0, 6, 0, 40, 0, 100, 0, 12, 4690560, 0, 0, 80, 1690700, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 12 of path 4690560 reached - Self: Start timed action list id 1690700'), -- waypoint_script.id = 5862800 + (16907, 0, 7, 0, 40, 0, 100, 0, 2, 4690800, 0, 0, 80, 1690700, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 4690800 reached - Self: Start timed action list id 1690700'), -- waypoint_script.id = 5862800 + (16907, 0, 8, 0, 40, 0, 100, 0, 6, 4690800, 0, 0, 80, 1690700, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 6 of path 4690800 reached - Self: Start timed action list id 1690700'), -- waypoint_script.id = 5862800 + (16907, 0, 9, 0, 40, 0, 100, 0, 5, 4690880, 0, 0, 80, 1690700, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 5 of path 4690880 reached - Self: Start timed action list id 1690700'), -- waypoint_script.id = 5862800 + (16907, 0, 10, 0, 40, 0, 100, 0, 12, 4690880, 0, 0, 80, 1690700, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 12 of path 4690880 reached - Self: Start timed action list id 1690700'), -- waypoint_script.id = 5862800 + (16907, 0, 11, 0, 40, 0, 100, 0, 3, 4691040, 0, 0, 80, 1690700, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 4691040 reached - Self: Start timed action list id 1690700'), -- waypoint_script.id = 5862800 + (16907, 0, 12, 0, 40, 0, 100, 0, 11, 4691040, 0, 0, 80, 1690700, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 11 of path 4691040 reached - Self: Start timed action list id 1690700'); -- waypoint_script.id = 5862800 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=18274 AND `source_type`=0 AND `id` >= 1; + 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 + (18274, 0, 1, 0, 40, 0, 100, 0, 4, 5245280, 0, 0, 80, 1827400, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 4 of path 5245280 reached - Self: Start timed action list id 1827400'); -- waypoint_script.id = 6556600 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=28504 AND `source_type`=0 AND `id` >= 11; + 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 + (28504, 0, 11, 0, 40, 0, 100, 0, 2, 8820800, 0, 0, 80, 2850400, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 8820800 reached - Self: Start timed action list id 2850400'), -- waypoint_script.id = 11026002 + (28504, 0, 12, 0, 40, 0, 100, 0, 1, 8821120, 0, 0, 80, 2850401, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 8821120 reached - Self: Start timed action list id 2850401'), -- waypoint_script.id = 11026401 + (28504, 0, 13, 0, 40, 0, 100, 0, 3, 8821120, 0, 0, 80, 2850402, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 8821120 reached - Self: Start timed action list id 2850402'); -- waypoint_script.id = 11026402 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=27300 AND `source_type`=0 AND `id` >= 7; + 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 + (27300, 0, 7, 0, 40, 0, 100, 0, 1, 8904560, 0, 0, 80, 2730000, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 8904560 reached - Self: Start timed action list id 2730000'), -- waypoint_script.id = 11130700 + (27300, 0, 8, 0, 40, 0, 100, 0, 2, 8904560, 0, 0, 80, 2730000, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 8904560 reached - Self: Start timed action list id 2730000'); -- waypoint_script.id = 11130700 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=29503 AND `source_type`=0 AND `id` >= 3; + 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 + (29503, 0, 3, 0, 40, 0, 100, 0, 7, 7064640, 0, 0, 80, 2937500, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 7 of path 7064640 reached - Self: Start timed action list id 2937500'); -- waypoint_script.id = 11393600 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=29407 AND `source_type`=0 AND `id` >= 5; + 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 + (29407, 0, 5, 0, 40, 0, 100, 0, 12, 9384640, 0, 0, 80, 2940700, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 12 of path 9384640 reached - Self: Start timed action list id 2940700'), -- waypoint_script.id = 11730800 + (29407, 0, 6, 0, 40, 0, 100, 0, 1, 9384800, 0, 0, 80, 2940700, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 1 of path 9384800 reached - Self: Start timed action list id 2940700'), -- waypoint_script.id = 11730800 + (29407, 0, 7, 0, 40, 0, 100, 0, 2, 9384800, 0, 0, 80, 2940700, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 2 of path 9384800 reached - Self: Start timed action list id 2940700'), -- waypoint_script.id = 11730800 + (29407, 0, 8, 0, 40, 0, 100, 0, 3, 9384800, 0, 0, 80, 2940700, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 3 of path 9384800 reached - Self: Start timed action list id 2940700'); -- waypoint_script.id = 11730800 + + DELETE FROM `smart_scripts` WHERE `entryorguid`=26044 AND `source_type`=0 AND `id` >= 3; + 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 + (26044, 0, 3, 0, 40, 0, 100, 0, 6, 10045280, 0, 0, 80, 2604400, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 6 of path 10045280 reached - Self: Start timed action list id 2604400'), -- waypoint_script.id = 12556600 + (26044, 0, 4, 0, 40, 0, 100, 0, 25, 10045280, 0, 0, 80, 2604400, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On waypoint 25 of path 10045280 reached - Self: Start timed action list id 2604400'); -- waypoint_script.id = 12556600 + + DROP TABLE IF EXISTS `waypoint_scripts`; + + ALTER TABLE `waypoint_data` + DROP COLUMN `action`, + DROP COLUMN `action_chance`; + END IF; +END;; + +DELIMITER ; +CALL drop_waypoint_scripts_related(); + +DROP PROCEDURE IF EXISTS drop_waypoint_scripts_related; + diff --git a/src/server/database/Database/Implementation/WorldDatabase.cpp b/src/server/database/Database/Implementation/WorldDatabase.cpp index 1a5275f0a13..7899ddd1ae9 100644 --- a/src/server/database/Database/Implementation/WorldDatabase.cpp +++ b/src/server/database/Database/Implementation/WorldDatabase.cpp @@ -48,36 +48,20 @@ void WorldDatabaseConnection::DoPrepareStatements() PrepareStatement(WORLD_DEL_WAYPOINT_DATA, "DELETE FROM waypoint_data WHERE id = ? AND point = ?", CONNECTION_ASYNC); PrepareStatement(WORLD_UPD_WAYPOINT_DATA_POINT, "UPDATE waypoint_data SET point = point - 1 WHERE id = ? AND point > ?", CONNECTION_ASYNC); PrepareStatement(WORLD_UPD_WAYPOINT_DATA_POSITION, "UPDATE waypoint_data SET position_x = ?, position_y = ?, position_z = ?, orientation = ? where id = ? AND point = ?", CONNECTION_ASYNC); - PrepareStatement(WORLD_UPD_WAYPOINT_DATA_WPGUID, "UPDATE waypoint_data SET wpguid = ? WHERE id = ? and point = ?", CONNECTION_ASYNC); PrepareStatement(WORLD_SEL_WAYPOINT_DATA_MAX_ID, "SELECT MAX(id) FROM waypoint_data", CONNECTION_SYNCH); PrepareStatement(WORLD_SEL_WAYPOINT_DATA_MAX_POINT, "SELECT MAX(point) FROM waypoint_data WHERE id = ?", CONNECTION_SYNCH); - PrepareStatement(WORLD_SEL_WAYPOINT_DATA_BY_ID, "SELECT point, position_x, position_y, position_z, orientation, move_type, delay, action, action_chance FROM waypoint_data WHERE id = ? ORDER BY point", CONNECTION_SYNCH); + PrepareStatement(WORLD_SEL_WAYPOINT_DATA_BY_ID, "SELECT point, position_x, position_y, position_z, orientation, move_type, delay FROM waypoint_data WHERE id = ? ORDER BY point", CONNECTION_SYNCH); PrepareStatement(WORLD_SEL_WAYPOINT_DATA_POS_BY_ID, "SELECT point, position_x, position_y, position_z, orientation FROM waypoint_data WHERE id = ?", CONNECTION_SYNCH); PrepareStatement(WORLD_SEL_WAYPOINT_DATA_POS_FIRST_BY_ID, "SELECT position_x, position_y, position_z, orientation FROM waypoint_data WHERE point = 1 AND id = ?", CONNECTION_SYNCH); PrepareStatement(WORLD_SEL_WAYPOINT_DATA_POS_LAST_BY_ID, "SELECT position_x, position_y, position_z, orientation FROM waypoint_data WHERE id = ? ORDER BY point DESC LIMIT 1", CONNECTION_SYNCH); - PrepareStatement(WORLD_SEL_WAYPOINT_DATA_BY_WPGUID, "SELECT id, point FROM waypoint_data WHERE wpguid = ?", CONNECTION_SYNCH); - PrepareStatement(WORLD_SEL_WAYPOINT_DATA_ALL_BY_WPGUID, "SELECT id, point, delay, move_type, action, action_chance FROM waypoint_data WHERE wpguid = ?", CONNECTION_SYNCH); - PrepareStatement(WORLD_UPD_WAYPOINT_DATA_ALL_WPGUID, "UPDATE waypoint_data SET wpguid = 0", CONNECTION_ASYNC); PrepareStatement(WORLD_SEL_WAYPOINT_DATA_BY_POS, "SELECT id, point FROM waypoint_data WHERE (abs(position_x - ?) <= ?) and (abs(position_y - ?) <= ?) and (abs(position_z - ?) <= ?)", CONNECTION_SYNCH); - PrepareStatement(WORLD_SEL_WAYPOINT_DATA_WPGUID_BY_ID, "SELECT wpguid FROM waypoint_data WHERE id = ? and wpguid <> 0", CONNECTION_SYNCH); - PrepareStatement(WORLD_SEL_WAYPOINT_DATA_ACTION, "SELECT DISTINCT action FROM waypoint_data", CONNECTION_SYNCH); - PrepareStatement(WORLD_SEL_WAYPOINT_SCRIPTS_MAX_ID, "SELECT MAX(guid) FROM waypoint_scripts", CONNECTION_SYNCH); PrepareStatement(WORLD_INS_CREATURE_ADDON, "INSERT INTO creature_addon(guid, path_id) VALUES (?, ?)", CONNECTION_ASYNC); PrepareStatement(WORLD_UPD_CREATURE_ADDON_PATH, "UPDATE creature_addon SET path_id = ? WHERE guid = ?", CONNECTION_ASYNC); PrepareStatement(WORLD_DEL_CREATURE_ADDON, "DELETE FROM creature_addon WHERE guid = ?", CONNECTION_ASYNC); PrepareStatement(WORLD_SEL_CREATURE_ADDON_BY_GUID, "SELECT guid FROM creature_addon WHERE guid = ?", CONNECTION_SYNCH); - PrepareStatement(WORLD_INS_WAYPOINT_SCRIPT, "INSERT INTO waypoint_scripts (guid) VALUES (?)", CONNECTION_ASYNC); - PrepareStatement(WORLD_DEL_WAYPOINT_SCRIPT, "DELETE FROM waypoint_scripts WHERE guid = ?", CONNECTION_ASYNC); - PrepareStatement(WORLD_UPD_WAYPOINT_SCRIPT_ID, "UPDATE waypoint_scripts SET id = ? WHERE guid = ?", CONNECTION_ASYNC); - PrepareStatement(WORLD_UPD_WAYPOINT_SCRIPT_X, "UPDATE waypoint_scripts SET x = ? WHERE guid = ?", CONNECTION_ASYNC); - PrepareStatement(WORLD_UPD_WAYPOINT_SCRIPT_Y, "UPDATE waypoint_scripts SET y = ? WHERE guid = ?", CONNECTION_ASYNC); - PrepareStatement(WORLD_UPD_WAYPOINT_SCRIPT_Z, "UPDATE waypoint_scripts SET z = ? WHERE guid = ?", CONNECTION_ASYNC); - PrepareStatement(WORLD_UPD_WAYPOINT_SCRIPT_O, "UPDATE waypoint_scripts SET o = ? WHERE guid = ?", CONNECTION_ASYNC); - PrepareStatement(WORLD_SEL_WAYPOINT_SCRIPT_ID_BY_GUID, "SELECT id FROM waypoint_scripts WHERE guid = ?", CONNECTION_SYNCH); PrepareStatement(WORLD_DEL_CREATURE, "DELETE FROM creature WHERE guid = ?", CONNECTION_ASYNC); PrepareStatement(WORLD_SEL_COMMANDS, "SELECT name, help FROM command", CONNECTION_SYNCH); PrepareStatement(WORLD_SEL_CREATURE_TEMPLATE, "SELECT entry, KillCredit1, KillCredit2, name, femaleName, subname, TitleAlt, IconName, RequiredExpansion, VignetteID, faction, npcflag, speed_walk, speed_run, scale, `rank`, dmgschool, BaseAttackTime, RangeAttackTime, BaseVariance, RangeVariance, unit_class, unit_flags, unit_flags2, unit_flags3, family, trainer_class, type, VehicleId, AIName, MovementType, ctm.Ground, ctm.Swim, ctm.Flight, ctm.Rooted, ctm.Chase, ctm.Random, ctm.InteractionPauseTimer, ExperienceModifier, RacialLeader, movementId, WidgetSetID, WidgetSetUnitConditionID, RegenHealth, mechanic_immune_mask, spell_school_immune_mask, flags_extra, ScriptName, StringId FROM creature_template ct LEFT JOIN creature_template_movement ctm ON ct.entry = ctm.CreatureId WHERE entry = ? OR 1 = ?", CONNECTION_SYNCH); - PrepareStatement(WORLD_SEL_WAYPOINT_SCRIPT_BY_ID, "SELECT guid, delay, command, datalong, datalong2, dataint, x, y, z, o FROM waypoint_scripts WHERE id = ?", CONNECTION_SYNCH); PrepareStatement(WORLD_SEL_CREATURE_BY_ID, "SELECT guid FROM creature WHERE id = ?", CONNECTION_SYNCH); PrepareStatement(WORLD_SEL_GAMEOBJECT_NEAREST, "SELECT guid, id, position_x, position_y, position_z, map, (POW(position_x - ?, 2) + POW(position_y - ?, 2) + POW(position_z - ?, 2)) AS order_ FROM gameobject WHERE map = ? AND (POW(position_x - ?, 2) + POW(position_y - ?, 2) + POW(position_z - ?, 2)) <= ? ORDER BY order_", CONNECTION_SYNCH); PrepareStatement(WORLD_SEL_CREATURE_NEAREST, "SELECT guid, id, position_x, position_y, position_z, map, (POW(position_x - ?, 2) + POW(position_y - ?, 2) + POW(position_z - ?, 2)) AS order_ FROM creature WHERE map = ? AND (POW(position_x - ?, 2) + POW(position_y - ?, 2) + POW(position_z - ?, 2)) <= ? ORDER BY order_", CONNECTION_SYNCH); diff --git a/src/server/database/Database/Implementation/WorldDatabase.h b/src/server/database/Database/Implementation/WorldDatabase.h index 64ecb3a609c..32417efe722 100644 --- a/src/server/database/Database/Implementation/WorldDatabase.h +++ b/src/server/database/Database/Implementation/WorldDatabase.h @@ -65,24 +65,13 @@ enum WorldDatabaseStatements : uint32 WORLD_SEL_WAYPOINT_DATA_MAX_POINT, WORLD_SEL_WAYPOINT_DATA_BY_POS, WORLD_SEL_WAYPOINT_DATA_WPGUID_BY_ID, - WORLD_SEL_WAYPOINT_DATA_ACTION, - WORLD_SEL_WAYPOINT_SCRIPTS_MAX_ID, WORLD_UPD_CREATURE_ADDON_PATH, WORLD_INS_CREATURE_ADDON, WORLD_DEL_CREATURE_ADDON, WORLD_SEL_CREATURE_ADDON_BY_GUID, - WORLD_INS_WAYPOINT_SCRIPT, - WORLD_DEL_WAYPOINT_SCRIPT, - WORLD_UPD_WAYPOINT_SCRIPT_ID, - WORLD_UPD_WAYPOINT_SCRIPT_X, - WORLD_UPD_WAYPOINT_SCRIPT_Y, - WORLD_UPD_WAYPOINT_SCRIPT_Z, - WORLD_UPD_WAYPOINT_SCRIPT_O, - WORLD_SEL_WAYPOINT_SCRIPT_ID_BY_GUID, WORLD_DEL_CREATURE, WORLD_SEL_COMMANDS, WORLD_SEL_CREATURE_TEMPLATE, - WORLD_SEL_WAYPOINT_SCRIPT_BY_ID, WORLD_SEL_CREATURE_BY_ID, WORLD_SEL_GAMEOBJECT_NEAREST, WORLD_SEL_CREATURE_NEAREST, diff --git a/src/server/game/AI/ScriptedAI/ScriptedEscortAI.cpp b/src/server/game/AI/ScriptedAI/ScriptedEscortAI.cpp index c12c1b8c1f2..ecc44114f85 100644 --- a/src/server/game/AI/ScriptedAI/ScriptedEscortAI.cpp +++ b/src/server/game/AI/ScriptedAI/ScriptedEscortAI.cpp @@ -272,8 +272,6 @@ void EscortAI::AddWaypoint(uint32 id, float x, float y, float z, float orientati waypoint.orientation = orientation; waypoint.moveType = run ? WAYPOINT_MOVE_TYPE_RUN : WAYPOINT_MOVE_TYPE_WALK; waypoint.delay = waitTime.count(); - waypoint.eventId = 0; - waypoint.eventChance = 100; _path.nodes.push_back(std::move(waypoint)); } diff --git a/src/server/game/Accounts/RBAC.h b/src/server/game/Accounts/RBAC.h index e175025d9bb..c5f46ae0053 100644 --- a/src/server/game/Accounts/RBAC.h +++ b/src/server/game/Accounts/RBAC.h @@ -575,7 +575,7 @@ enum RBACPermissions RBAC_PERM_COMMAND_RELOAD_SPELL_GROUP_STACK_RULES = 703, RBAC_PERM_COMMAND_RELOAD_TRINITY_STRING = 704, // 705 previously used, do not reuse - RBAC_PERM_COMMAND_RELOAD_WAYPOINT_SCRIPTS = 706, + // 706 previously used, do not reuse RBAC_PERM_COMMAND_RELOAD_WAYPOINT_DATA = 707, RBAC_PERM_COMMAND_RELOAD_VEHICLE_ACCESORY = 708, RBAC_PERM_COMMAND_RELOAD_VEHICLE_TEMPLATE_ACCESSORY = 709, diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp index 2f4573c7ee0..4aa8e3b7304 100644 --- a/src/server/game/Globals/ObjectMgr.cpp +++ b/src/server/game/Globals/ObjectMgr.cpp @@ -77,7 +77,6 @@ ScriptMapMap sSpellScripts; ScriptMapMap sEventScripts; -ScriptMapMap sWaypointScripts; std::string GetScriptsTableNameByType(ScriptsType type) { @@ -86,7 +85,6 @@ std::string GetScriptsTableNameByType(ScriptsType type) { case SCRIPTS_SPELL: res = "spell_scripts"; break; case SCRIPTS_EVENT: res = "event_scripts"; break; - case SCRIPTS_WAYPOINT: res = "waypoint_scripts"; break; default: break; } return res; @@ -99,7 +97,6 @@ ScriptMapMap* GetScriptsMapByType(ScriptsType type) { case SCRIPTS_SPELL: res = &sSpellScripts; break; case SCRIPTS_EVENT: res = &sEventScripts; break; - case SCRIPTS_WAYPOINT: res = &sWaypointScripts; break; default: break; } return res; @@ -5962,35 +5959,6 @@ void ObjectMgr::LoadEventScripts() TC_LOG_INFO("server.loading", ">> Loaded {} event scripts in {} ms", _eventScriptStore.size(), GetMSTimeDiffToNow(oldMSTime)); } -//Load WP Scripts -void ObjectMgr::LoadWaypointScripts() -{ - LoadScripts(SCRIPTS_WAYPOINT); - - std::set<uint32> actionSet; - - for (ScriptMapMap::const_iterator itr = sWaypointScripts.begin(); itr != sWaypointScripts.end(); ++itr) - actionSet.insert(itr->first); - - WorldDatabasePreparedStatement* stmt = WorldDatabase.GetPreparedStatement(WORLD_SEL_WAYPOINT_DATA_ACTION); - PreparedQueryResult result = WorldDatabase.Query(stmt); - - if (result) - { - do - { - Field* fields = result->Fetch(); - uint32 action = fields[0].GetUInt32(); - - actionSet.erase(action); - } - while (result->NextRow()); - } - - for (std::set<uint32>::iterator itr = actionSet.begin(); itr != actionSet.end(); ++itr) - TC_LOG_ERROR("sql.sql", "There is no waypoint which links to the waypoint script {}", *itr); -} - void ObjectMgr::LoadSpellScriptNames() { uint32 oldMSTime = getMSTime(); diff --git a/src/server/game/Globals/ObjectMgr.h b/src/server/game/Globals/ObjectMgr.h index a3af1016609..5a86448d870 100644 --- a/src/server/game/Globals/ObjectMgr.h +++ b/src/server/game/Globals/ObjectMgr.h @@ -420,7 +420,6 @@ typedef std::multimap<uint32 /*spell id*/, std::pair<uint32 /*script id*/, bool typedef std::pair<SpellScriptsContainer::iterator, SpellScriptsContainer::iterator> SpellScriptsBounds; TC_GAME_API extern ScriptMapMap sSpellScripts; TC_GAME_API extern ScriptMapMap sEventScripts; -TC_GAME_API extern ScriptMapMap sWaypointScripts; std::string GetScriptsTableNameByType(ScriptsType type); ScriptMapMap* GetScriptsMapByType(ScriptsType type); @@ -1295,7 +1294,6 @@ class TC_GAME_API ObjectMgr void LoadEventScripts(); void LoadSpellScripts(); - void LoadWaypointScripts(); void LoadSpellScriptNames(); void ValidateSpellScripts(); diff --git a/src/server/game/Movement/MovementGenerators/WaypointMovementGenerator.cpp b/src/server/game/Movement/MovementGenerators/WaypointMovementGenerator.cpp index 5b67247eff0..fc8ab81069c 100644 --- a/src/server/game/Movement/MovementGenerators/WaypointMovementGenerator.cpp +++ b/src/server/game/Movement/MovementGenerators/WaypointMovementGenerator.cpp @@ -292,13 +292,6 @@ void WaypointMovementGenerator<Creature>::OnArrived(Creature* owner) _nextMoveTime.Reset(waitTime); } - if (waypoint.eventId && urand(0, 99) < waypoint.eventChance) - { - TC_LOG_DEBUG("maps.script", "Creature movement start script {} at point {} for {}.", waypoint.eventId, _currentNode, owner->GetGUID().ToString()); - owner->ClearUnitState(UNIT_STATE_ROAMING_MOVE); - owner->GetMap()->ScriptsStart(sWaypointScripts, waypoint.eventId, owner, nullptr); - } - // inform AI if (CreatureAI* AI = owner->AI()) { diff --git a/src/server/game/Movement/Waypoints/WaypointDefines.h b/src/server/game/Movement/Waypoints/WaypointDefines.h index 70ab08f2958..119219dd3d4 100644 --- a/src/server/game/Movement/Waypoints/WaypointDefines.h +++ b/src/server/game/Movement/Waypoints/WaypointDefines.h @@ -34,7 +34,7 @@ enum WaypointMoveType struct WaypointNode { - WaypointNode() : id(0), x(0.f), y(0.f), z(0.f), delay(0), eventId(0), moveType(WAYPOINT_MOVE_TYPE_RUN), eventChance(0) { } + WaypointNode() : id(0), x(0.f), y(0.f), z(0.f), delay(0), moveType(WAYPOINT_MOVE_TYPE_RUN) { } WaypointNode(uint32 _id, float _x, float _y, float _z, Optional<float> _orientation = { }, uint32 _delay = 0) { id = _id; @@ -43,18 +43,14 @@ struct WaypointNode z = _z; orientation = _orientation; delay = _delay; - eventId = 0; moveType = WAYPOINT_MOVE_TYPE_WALK; - eventChance = 100; } uint32 id; float x, y, z; Optional<float> orientation; uint32 delay; - uint32 eventId; uint32 moveType; - uint8 eventChance; }; struct WaypointPath diff --git a/src/server/game/Movement/Waypoints/WaypointManager.cpp b/src/server/game/Movement/Waypoints/WaypointManager.cpp index 07ccd574ffc..ab018e66233 100644 --- a/src/server/game/Movement/Waypoints/WaypointManager.cpp +++ b/src/server/game/Movement/Waypoints/WaypointManager.cpp @@ -24,8 +24,8 @@ void WaypointMgr::Load() { uint32 oldMSTime = getMSTime(); - // 0 1 2 3 4 5 6 7 8 9 - QueryResult result = WorldDatabase.Query("SELECT id, point, position_x, position_y, position_z, orientation, move_type, delay, action, action_chance FROM waypoint_data ORDER BY id, point"); + // 0 1 2 3 4 5 6 7 + QueryResult result = WorldDatabase.Query("SELECT id, point, position_x, position_y, position_z, orientation, move_type, delay FROM waypoint_data ORDER BY id, point"); if (!result) { @@ -64,8 +64,6 @@ void WaypointMgr::Load() } waypoint.delay = fields[7].GetUInt32(); - waypoint.eventId = fields[8].GetUInt32(); - waypoint.eventChance = fields[9].GetInt16(); WaypointPath& path = _waypointStore[pathId]; path.id = pathId; @@ -123,8 +121,6 @@ void WaypointMgr::ReloadPath(uint32 id) } waypoint.delay = fields[6].GetUInt32(); - waypoint.eventId = fields[7].GetUInt32(); - waypoint.eventChance = fields[8].GetUInt8(); values.push_back(std::move(waypoint)); } diff --git a/src/server/game/World/World.cpp b/src/server/game/World/World.cpp index 2a750efef92..ddb921ef3d1 100644 --- a/src/server/game/World/World.cpp +++ b/src/server/game/World/World.cpp @@ -2339,7 +2339,6 @@ void World::SetInitialWorldSettings() ///- Load and initialize scripts sObjectMgr->LoadSpellScripts(); // must be after load Creature/Gameobject(Template/Data) sObjectMgr->LoadEventScripts(); // must be after load Creature/Gameobject(Template/Data) - sObjectMgr->LoadWaypointScripts(); TC_LOG_INFO("server.loading", "Loading spell script names..."); sObjectMgr->LoadSpellScriptNames(); diff --git a/src/server/scripts/Commands/cs_reload.cpp b/src/server/scripts/Commands/cs_reload.cpp index 1812fabbdb7..5e4df483bd7 100644 --- a/src/server/scripts/Commands/cs_reload.cpp +++ b/src/server/scripts/Commands/cs_reload.cpp @@ -163,7 +163,6 @@ public: { "support", rbac::RBAC_PERM_COMMAND_RELOAD_SUPPORT_SYSTEM, true, &HandleReloadSupportSystemCommand, "" }, { "trainer", rbac::RBAC_PERM_COMMAND_RELOAD_TRAINER, true, &HandleReloadTrainerCommand, "" }, { "trinity_string", rbac::RBAC_PERM_COMMAND_RELOAD_TRINITY_STRING, true, &HandleReloadTrinityStringCommand, "" }, - { "waypoint_scripts", rbac::RBAC_PERM_COMMAND_RELOAD_WAYPOINT_SCRIPTS, true, &HandleReloadWpScriptsCommand, "" }, { "waypoint_data", rbac::RBAC_PERM_COMMAND_RELOAD_WAYPOINT_DATA, true, &HandleReloadWpCommand, "" }, { "vehicle_template", rbac::RBAC_PERM_COMMAND_RELOAD_VEHICLE_TEMPLATE, true, &HandleReloadVehicleTemplateCommand, "" }, { "vehicle_accessory", rbac::RBAC_PERM_COMMAND_RELOAD_VEHICLE_ACCESORY, true, &HandleReloadVehicleAccessoryCommand, "" }, @@ -281,7 +280,6 @@ public: HandleReloadSpellScriptsCommand(handler, "a"); HandleReloadSpellScriptNamesCommand(handler, "a"); handler->SendGlobalGMSysMessage("DB tables `*_scripts` reloaded."); - HandleReloadWpScriptsCommand(handler, "a"); HandleReloadWpCommand(handler, "a"); return true; } @@ -907,26 +905,6 @@ public: return true; } - static bool HandleReloadWpScriptsCommand(ChatHandler* handler, char const* args) - { - if (sMapMgr->IsScriptScheduled()) - { - handler->SendSysMessage("DB scripts used currently, please attempt reload later."); - handler->SetSentErrorMessage(true); - return false; - } - - if (*args != 'a') - TC_LOG_INFO("misc", "Re-Loading Scripts from `waypoint_scripts`..."); - - sObjectMgr->LoadWaypointScripts(); - - if (*args != 'a') - handler->SendGlobalGMSysMessage("DB table `waypoint_scripts` reloaded."); - - return true; - } - static bool HandleReloadWpCommand(ChatHandler* handler, char const* args) { if (*args != 'a') diff --git a/src/server/scripts/Commands/cs_wp.cpp b/src/server/scripts/Commands/cs_wp.cpp index 851bb6cb43a..124c7a9a1a0 100644 --- a/src/server/scripts/Commands/cs_wp.cpp +++ b/src/server/scripts/Commands/cs_wp.cpp @@ -51,7 +51,6 @@ public: static std::vector<ChatCommand> wpCommandTable = { { "add", rbac::RBAC_PERM_COMMAND_WP_ADD, false, &HandleWpAddCommand, "" }, - { "event", rbac::RBAC_PERM_COMMAND_WP_EVENT, false, &HandleWpEventCommand, "" }, { "load", rbac::RBAC_PERM_COMMAND_WP_LOAD, false, &HandleWpLoadCommand, "" }, { "modify", rbac::RBAC_PERM_COMMAND_WP_MODIFY, false, &HandleWpModifyCommand, "" }, { "unload", rbac::RBAC_PERM_COMMAND_WP_UNLOAD, false, &HandleWpUnLoadCommand, "" }, @@ -290,259 +289,6 @@ public: return true; } - static bool HandleWpEventCommand(ChatHandler* handler, char const* args) - { - if (!*args) - return false; - - char* show_str = strtok((char*)args, " "); - std::string show = show_str; - WorldDatabasePreparedStatement* stmt = nullptr; - - // Check - if ((show != "add") && (show != "mod") && (show != "del") && (show != "listid")) - return false; - - char* arg_id = strtok(nullptr, " "); - - if (show == "add") - { - if (Optional<uint32> id = Trinity::StringTo<uint32>(arg_id)) - { - stmt = WorldDatabase.GetPreparedStatement(WORLD_SEL_WAYPOINT_SCRIPT_ID_BY_GUID); - stmt->setUInt32(0, *id); - PreparedQueryResult result = WorldDatabase.Query(stmt); - - if (!result) - { - stmt = WorldDatabase.GetPreparedStatement(WORLD_INS_WAYPOINT_SCRIPT); - stmt->setUInt32(0, *id); - WorldDatabase.Execute(stmt); - - handler->PSendSysMessage("%s%s%u|r", "|cff00ff00", "Wp Event: New waypoint event added: ", *id); - } - else - handler->PSendSysMessage("|cff00ff00Wp Event: You have choosed an existing waypoint script guid: %u|r", *id); - } - else - { - stmt = WorldDatabase.GetPreparedStatement(WORLD_SEL_WAYPOINT_SCRIPTS_MAX_ID); - PreparedQueryResult result = WorldDatabase.Query(stmt); - id = result->Fetch()->GetUInt32(); - stmt = WorldDatabase.GetPreparedStatement(WORLD_INS_WAYPOINT_SCRIPT); - stmt->setUInt32(0, *id + 1); - WorldDatabase.Execute(stmt); - - handler->PSendSysMessage("%s%s%u|r", "|cff00ff00", "Wp Event: New waypoint event added: |r|cff00ffff", *id+1); - } - - return true; - } - - if (show == "listid") - { - if (!arg_id) - { - handler->PSendSysMessage("%s%s|r", "|cff33ffff", "Wp Event: You must provide waypoint script id."); - return true; - } - - uint32 id = Trinity::StringTo<uint32>(arg_id).value_or(0); - - uint32 a2, a3, a4, a5, a6; - float a8, a9, a10, a11; - char const* a7; - - stmt = WorldDatabase.GetPreparedStatement(WORLD_SEL_WAYPOINT_SCRIPT_BY_ID); - stmt->setUInt32(0, id); - PreparedQueryResult result = WorldDatabase.Query(stmt); - - if (!result) - { - handler->PSendSysMessage("%s%s%u|r", "|cff33ffff", "Wp Event: No waypoint scripts found on id: ", id); - return true; - } - - Field* fields; - - do - { - fields = result->Fetch(); - a2 = fields[0].GetUInt32(); - a3 = fields[1].GetUInt32(); - a4 = fields[2].GetUInt32(); - a5 = fields[3].GetUInt32(); - a6 = fields[4].GetUInt32(); - a7 = fields[5].GetCString(); - a8 = fields[6].GetFloat(); - a9 = fields[7].GetFloat(); - a10 = fields[8].GetFloat(); - a11 = fields[9].GetFloat(); - - handler->PSendSysMessage("|cffff33ffid:|r|cff00ffff %u|r|cff00ff00, guid: |r|cff00ffff%u|r|cff00ff00, delay: |r|cff00ffff%u|r|cff00ff00, command: |r|cff00ffff%u|r|cff00ff00, datalong: |r|cff00ffff%u|r|cff00ff00, datalong2: |r|cff00ffff%u|r|cff00ff00, datatext: |r|cff00ffff%s|r|cff00ff00, posx: |r|cff00ffff%f|r|cff00ff00, posy: |r|cff00ffff%f|r|cff00ff00, posz: |r|cff00ffff%f|r|cff00ff00, orientation: |r|cff00ffff%f|r", id, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11); - } - while (result->NextRow()); - } - - if (show == "del") - { - if (!arg_id) - { - handler->SendSysMessage("|cffff33ffERROR: Waypoint script guid not present.|r"); - return true; - } - - uint32 id = Trinity::StringTo<uint32>(arg_id).value_or(0); - - stmt = WorldDatabase.GetPreparedStatement(WORLD_SEL_WAYPOINT_SCRIPT_ID_BY_GUID); - stmt->setUInt32(0, id); - PreparedQueryResult result = WorldDatabase.Query(stmt); - - if (result) - { - stmt = WorldDatabase.GetPreparedStatement(WORLD_DEL_WAYPOINT_SCRIPT); - stmt->setUInt32(0, id); - WorldDatabase.Execute(stmt); - - handler->PSendSysMessage("%s%s%u|r", "|cff00ff00", "Wp Event: Waypoint script removed: ", id); - } - else - handler->PSendSysMessage("|cffff33ffWp Event: ERROR: you have selected a non existing script: %u|r", id); - - return true; - } - - if (show == "mod") - { - if (!arg_id) - { - handler->SendSysMessage("|cffff33ffERROR: Waypoint script guid not present.|r"); - return true; - } - - uint32 id = Trinity::StringTo<uint32>(arg_id).value_or(0); - - if (!id) - { - handler->SendSysMessage("|cffff33ffERROR: No valid waypoint script id not present.|r"); - return true; - } - - char* arg_2 = strtok(nullptr, " "); - - if (!arg_2) - { - handler->SendSysMessage("|cffff33ffERROR: No argument present.|r"); - return true; - } - - std::string arg_string = arg_2; - - if ((arg_string != "setid") && (arg_string != "delay") && (arg_string != "command") - && (arg_string != "datalong") && (arg_string != "datalong2") && (arg_string != "dataint") && (arg_string != "posx") - && (arg_string != "posy") && (arg_string != "posz") && (arg_string != "orientation")) - { - handler->SendSysMessage("|cffff33ffERROR: No valid argument present.|r"); - return true; - } - - char* arg_3; - std::string arg_str_2 = arg_2; - arg_3 = strtok(nullptr, " "); - - if (!arg_3) - { - handler->SendSysMessage("|cffff33ffERROR: No additional argument present.|r"); - return true; - } - - if (arg_str_2 == "setid") - { - uint32 newid = Trinity::StringTo<uint32>(arg_3).value_or(0); - handler->PSendSysMessage("%s%s|r|cff00ffff%u|r|cff00ff00%s|r|cff00ffff%u|r", "|cff00ff00", "Wp Event: Waypoint script guid: ", newid, " id changed: ", id); - - stmt = WorldDatabase.GetPreparedStatement(WORLD_UPD_WAYPOINT_SCRIPT_ID); - stmt->setUInt32(0, newid); - stmt->setUInt32(1, id); - WorldDatabase.Execute(stmt); - - return true; - } - else - { - stmt = WorldDatabase.GetPreparedStatement(WORLD_SEL_WAYPOINT_SCRIPT_ID_BY_GUID); - stmt->setUInt32(0, id); - PreparedQueryResult result = WorldDatabase.Query(stmt); - - if (!result) - { - handler->SendSysMessage("|cffff33ffERROR: You have selected an non existing waypoint script guid.|r"); - return true; - } - - if (arg_str_2 == "posx") - { - stmt = WorldDatabase.GetPreparedStatement(WORLD_UPD_WAYPOINT_SCRIPT_X); - stmt->setFloat(0, float(atof(arg_3))); - stmt->setUInt32(1, id); - - WorldDatabase.Execute(stmt); - - handler->PSendSysMessage("|cff00ff00Waypoint script:|r|cff00ffff %u|r|cff00ff00 position_x updated.|r", id); - return true; - } - else if (arg_str_2 == "posy") - { - stmt = WorldDatabase.GetPreparedStatement(WORLD_UPD_WAYPOINT_SCRIPT_Y); - stmt->setFloat(0, float(atof(arg_3))); - stmt->setUInt32(1, id); - - WorldDatabase.Execute(stmt); - - handler->PSendSysMessage("|cff00ff00Waypoint script: %u position_y updated.|r", id); - return true; - } - else if (arg_str_2 == "posz") - { - stmt = WorldDatabase.GetPreparedStatement(WORLD_UPD_WAYPOINT_SCRIPT_Z); - stmt->setFloat(0, float(atof(arg_3))); - stmt->setUInt32(1, id); - - WorldDatabase.Execute(stmt); - - handler->PSendSysMessage("|cff00ff00Waypoint script: |r|cff00ffff%u|r|cff00ff00 position_z updated.|r", id); - return true; - } - else if (arg_str_2 == "orientation") - { - stmt = WorldDatabase.GetPreparedStatement(WORLD_UPD_WAYPOINT_SCRIPT_O); - stmt->setFloat(0, float(atof(arg_3))); - stmt->setUInt32(1, id); - - WorldDatabase.Execute(stmt); - - handler->PSendSysMessage("|cff00ff00Waypoint script: |r|cff00ffff%u|r|cff00ff00 orientation updated.|r", id); - return true; - } - else if (arg_str_2 == "dataint") - { - WorldDatabase.PExecute("UPDATE waypoint_scripts SET {}='{}' WHERE guid='{}'", arg_2, arg_3, id); // Query can't be a prepared statement - - handler->PSendSysMessage("|cff00ff00Waypoint script: |r|cff00ffff%u|r|cff00ff00 dataint updated.|r", id); - return true; - } - else - { - std::string arg_str_3 = arg_3; - WorldDatabase.EscapeString(arg_str_3); - WorldDatabase.PExecute("UPDATE waypoint_scripts SET {}='{}' WHERE guid='{}'", arg_2, arg_str_3, id); // Query can't be a prepared statement - } - } - handler->PSendSysMessage("%s%s|r|cff00ffff%u:|r|cff00ff00 %s %s|r", "|cff00ff00", "Waypoint script:", id, arg_2, "updated."); - } - return true; - } - static bool HandleWpModifyCommand(ChatHandler* handler, char const* args) { if (!*args) @@ -811,14 +557,10 @@ public: uint32 point = fields[1].GetUInt32(); uint32 delay = fields[2].GetUInt32(); uint32 flag = fields[3].GetUInt32(); - uint32 ev_id = fields[4].GetUInt32(); - uint32 ev_chance = fields[5].GetUInt16(); handler->PSendSysMessage("|cff00ff00Show info: for current point: |r|cff00ffff%u|r|cff00ff00, Path ID: |r|cff00ffff%u|r", point, pathid); handler->PSendSysMessage("|cff00ff00Show info: delay: |r|cff00ffff%u|r", delay); handler->PSendSysMessage("|cff00ff00Show info: Move flag: |r|cff00ffff%u|r", flag); - handler->PSendSysMessage("|cff00ff00Show info: Waypoint event: |r|cff00ffff%u|r", ev_id); - handler->PSendSysMessage("|cff00ff00Show info: Event chance: |r|cff00ffff%u|r", ev_chance); } while (result->NextRow()); diff --git a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp index c3414c6fabb..f93716612a9 100644 --- a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp +++ b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp @@ -545,6 +545,18 @@ enum Misc_VBN QUEST_DEATH_CHALLENGE = 12733 }; +enum Paths_VBN +{ + PATH_DEATH_KNIGHT_INITIATE = 10361360, + PATH_DEATH_KNIGHT_INITIATE2 = 10361440, + PATH_DEATH_KNIGHT_INITIATE3 = 10362320, + PATH_DEATH_KNIGHT_INITIATE4 = 10362400, + PATH_DEATH_KNIGHT_INITIATE5 = 10362480, + PATH_DEATH_KNIGHT_INITIATE6 = 10363520, + PATH_DEATH_KNIGHT_INITIATE7 = 10363680, + PATH_DEATH_KNIGHT_INITIATE8 = 10363760, +}; + class npc_death_knight_initiate : public CreatureScript { public: @@ -693,6 +705,25 @@ public: } return true; } + + void WaypointPathEnded(uint32 /*nodeId*/, uint32 pathId) override + { + switch (pathId) + { + case PATH_DEATH_KNIGHT_INITIATE: + case PATH_DEATH_KNIGHT_INITIATE2: + case PATH_DEATH_KNIGHT_INITIATE3: + case PATH_DEATH_KNIGHT_INITIATE4: + case PATH_DEATH_KNIGHT_INITIATE5: + case PATH_DEATH_KNIGHT_INITIATE6: + case PATH_DEATH_KNIGHT_INITIATE7: + case PATH_DEATH_KNIGHT_INITIATE8: + me->DespawnOrUnsummon(1s); + break; + default: + break; + } + } }; CreatureAI* GetAI(Creature* creature) const override @@ -1138,6 +1169,51 @@ class spell_chapter1_runeforging_credit : public SpellScript } }; +enum HearthglenCrusaderPaths : uint32 +{ + PATH_HEARTHGLEN_CRUSADER_DESPAWN = 10445360, + PATH_HEARTHGLEN_CRUSADER_DESPAWN2 = 10445600, + PATH_HEARTHGLEN_CRUSADER_DESPAWN3 = 10448640, + PATH_HEARTHGLEN_CRUSADER_DESPAWN4 = 10449200, + PATH_HEARTHGLEN_CRUSADER_DESPAWN5 = 10452240, + PATH_HEARTHGLEN_CRUSADER_DESPAWN6 = 10452880, + PATH_HEARTHGLEN_CRUSADER_DESPAWN7 = 10452960, + PATH_HEARTHGLEN_CRUSADER_DESPAWN8 = 10453040, + PATH_HEARTHGLEN_CRUSADER_DESPAWN9 = 10453520, + PATH_HEARTHGLEN_CRUSADER_DESPAWN10 = 10453680, + PATH_HEARTHGLEN_CRUSADER_DESPAWN11 = 10454000, + PATH_HEARTHGLEN_CRUSADER_DESPAWN12 = 10454080, + PATH_HEARTHGLEN_CRUSADER_DESPAWN13 = 10454160, + PATH_HEARTHGLEN_CRUSADER_DESPAWN14 = 10454320, + PATH_HEARTHGLEN_CRUSADER_DESPAWN15 = 10454560, + PATH_HEARTHGLEN_CRUSADER_DESPAWN16 = 10459440, + PATH_HEARTHGLEN_CRUSADER_DESPAWN17 = 10460320, + PATH_HEARTHGLEN_CRUSADER_DESPAWN18 = 10463040, + PATH_HEARTHGLEN_CRUSADER_DESPAWN19 = 10463120, + PATH_HEARTHGLEN_CRUSADER_DESPAWN20 = 10463280, + PATH_HEARTHGLEN_CRUSADER_DESPAWN21 = 10463360, + PATH_HEARTHGLEN_CRUSADER_DESPAWN22 = 10463520, + PATH_HEARTHGLEN_CRUSADER_DESPAWN23 = 10463680, + PATH_HEARTHGLEN_CRUSADER_DESPAWN24 = 10463840, + PATH_HEARTHGLEN_CRUSADER_DESPAWN25 = 10464080, + PATH_HEARTHGLEN_CRUSADER_DESPAWN26 = 10464160, + PATH_HEARTHGLEN_CRUSADER_DESPAWN27 = 10464240, + PATH_HEARTHGLEN_CRUSADER_DESPAWN28 = 10464320, + PATH_HEARTHGLEN_CRUSADER_DESPAWN29 = 10464400, + PATH_HEARTHGLEN_CRUSADER_DESPAWN30 = 10464480, + PATH_HEARTHGLEN_CRUSADER_DESPAWN31 = 10464720, + PATH_HEARTHGLEN_CRUSADER_DESPAWN32 = 10464800, + PATH_HEARTHGLEN_CRUSADER_DESPAWN33 = 10464880, + PATH_HEARTHGLEN_CRUSADER_DESPAWN34 = 10464960, + PATH_HEARTHGLEN_CRUSADER_DESPAWN35 = 10465040, + PATH_HEARTHGLEN_CRUSADER_DESPAWN36 = 10465520, + PATH_HEARTHGLEN_CRUSADER_DESPAWN37 = 10465600, + PATH_HEARTHGLEN_CRUSADER_DESPAWN38 = 10466000, + PATH_HEARTHGLEN_CRUSADER_DESPAWN39 = 10466160, + PATH_HEARTHGLEN_CRUSADER_DESPAWN40 = 10466320, + PATH_HEARTHGLEN_CRUSADER_DESPAWN41 = 10466400, +}; + // 29102 - Hearthglen Crusader // 29103 - Tirisfal Crusader struct npc_hearthglen_crusader : public ScriptedAI @@ -1187,6 +1263,58 @@ struct npc_hearthglen_crusader : public ScriptedAI DoMeleeAttackIfReady(); } + void WaypointPathEnded(uint32 /*nodeId*/, uint32 pathId) override + { + switch (pathId) + { + case PATH_HEARTHGLEN_CRUSADER_DESPAWN: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN2: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN3: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN4: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN5: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN6: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN7: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN8: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN9: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN10: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN11: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN12: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN13: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN14: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN15: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN16: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN17: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN18: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN19: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN20: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN21: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN22: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN23: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN24: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN25: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN26: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN27: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN28: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN29: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN30: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN31: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN32: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN33: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN34: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN35: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN36: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN37: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN38: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN39: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN40: + case PATH_HEARTHGLEN_CRUSADER_DESPAWN41: + me->DespawnOrUnsummon(1s); + break; + default: + break; + } + } + private: float _minimumRange; }; diff --git a/src/server/scripts/EasternKingdoms/Scholomance/boss_vectus.cpp b/src/server/scripts/EasternKingdoms/Scholomance/boss_vectus.cpp index e01f0b9c9eb..9d652f8f5de 100644 --- a/src/server/scripts/EasternKingdoms/Scholomance/boss_vectus.cpp +++ b/src/server/scripts/EasternKingdoms/Scholomance/boss_vectus.cpp @@ -19,12 +19,12 @@ #include "ScriptMgr.h" #include "ScriptedCreature.h" -enum Emotes +enum VectusEmotes { EMOTE_FRENZY = 0 }; -enum Spells +enum VectusSpells { SPELL_FLAMESTRIKE = 18399, SPELL_BLAST_WAVE = 16046, @@ -32,13 +32,25 @@ enum Spells SPELL_FRENZY = 8269 // 28371 }; -enum Events +enum VectusEvents { EVENT_FIRE_SHIELD = 1, EVENT_BLAST_WAVE, EVENT_FRENZY }; +enum VectusTalks +{ + TALK_IDLE = 1, + TALK_IDLE2 = 2, + TALK_IDLE3 = 3 +}; + +enum VectusPaths +{ + PATH_VECTUS_IDLE = 3904400 +}; + class boss_vectus : public CreatureScript { public: @@ -102,6 +114,19 @@ public: DoMeleeAttackIfReady(); } + + void WaypointReached(uint32 waypointId, uint32 pathId) override + { + if (pathId != PATH_VECTUS_IDLE) + return; + + if (waypointId == 2) + Talk(TALK_IDLE); + else if (waypointId == 3) + Talk(TALK_IDLE2); + else if (waypointId == 4) + Talk(TALK_IDLE3); + } }; CreatureAI* GetAI(Creature* creature) const override diff --git a/src/server/scripts/Northrend/Ulduar/Ulduar/boss_freya.cpp b/src/server/scripts/Northrend/Ulduar/Ulduar/boss_freya.cpp index 53b23697add..eb09f2085fc 100644 --- a/src/server/scripts/Northrend/Ulduar/Ulduar/boss_freya.cpp +++ b/src/server/scripts/Northrend/Ulduar/Ulduar/boss_freya.cpp @@ -51,6 +51,9 @@ enum FreyaYells enum FreyaSpells { // Freya + SPELL_FREYA_DUMMY_GREEN = 63295, + SPELL_FREYA_DUMMY_YELLOW = 63292, + SPELL_FREYA_DUMMY_BLUE = 63294, SPELL_ATTUNED_TO_NATURE = 62519, SPELL_TOUCH_OF_EONAR = 62528, SPELL_SUNBEAM = 62623, @@ -155,6 +158,7 @@ enum FreyaSpells enum FreyaNpcs { + NPC_CHANNEL_STALKER_FREYA = 33575, NPC_SUN_BEAM = 33170, NPC_DETONATING_LASHER = 32918, NPC_ANCIENT_CONSERVATOR = 33203, @@ -204,13 +208,18 @@ enum FreyaEvents EVENT_FLUX = 17 }; -enum Misc +enum FreyaMisc { TIME_DIFFERENCE = 10000, // If difference between waveTime and WAVE_TIME is bigger then TIME_DIFFERENCE, schedule EVENT_WAVE in 10 seconds DATA_GETTING_BACK_TO_NATURE = 1, DATA_KNOCK_ON_WOOD = 2 }; +enum FreyaPaths +{ + PATH_FREYA_IDLE = 10924320, +}; + constexpr Seconds FREYA_WAVE_TIME = 60s; // Normal wave is one minute class npc_iron_roots : public CreatureScript @@ -687,6 +696,28 @@ class boss_freya : public CreatureScript break; } } + + void WaypointReached(uint32 waypointId, uint32 pathId) override + { + if (pathId != PATH_FREYA_IDLE) + return; + + if (waypointId == 4) + { + if (Creature* creature = me->FindNearestCreature(NPC_CHANNEL_STALKER_FREYA, 30.0f)) + DoCast(creature, SPELL_FREYA_DUMMY_GREEN); + } + else if (waypointId == 10) + { + if (Creature* creature = me->FindNearestCreature(NPC_CHANNEL_STALKER_FREYA, 30.0f)) + DoCast(creature, SPELL_FREYA_DUMMY_YELLOW); + } + else if (waypointId == 18) + { + if (Creature* creature = me->FindNearestCreature(NPC_CHANNEL_STALKER_FREYA, 30.0f)) + DoCast(creature, SPELL_FREYA_DUMMY_BLUE); + } + } }; CreatureAI* GetAI(Creature* creature) const override diff --git a/src/server/scripts/Northrend/Ulduar/Ulduar/boss_xt002.cpp b/src/server/scripts/Northrend/Ulduar/Ulduar/boss_xt002.cpp index 422e4283693..6fc929c95c4 100644 --- a/src/server/scripts/Northrend/Ulduar/Ulduar/boss_xt002.cpp +++ b/src/server/scripts/Northrend/Ulduar/Ulduar/boss_xt002.cpp @@ -135,6 +135,11 @@ enum Misc GROUP_SEARING_GRAVITY = 1 }; +enum XT002Paths +{ + PATH_XT002_IDLE = 10884320 +}; + struct boss_xt002 : public BossAI { boss_xt002(Creature* creature) : BossAI(creature, DATA_XT002) @@ -182,6 +187,8 @@ struct boss_xt002 : public BossAI void JustEngagedWith(Unit* who) override { + scheduler.CancelAll(); + Talk(SAY_AGGRO); BossAI::JustEngagedWith(who); events.ScheduleEvent(EVENT_SEARING_LIGHT, Is25ManRaid() ? 9s : 11s, GROUP_SEARING_GRAVITY, PHASE_1); @@ -383,6 +390,31 @@ struct boss_xt002 : public BossAI DoMeleeAttackIfReady(); } + void WaypointReached(uint32 waypointId, uint32 pathId) override + { + if (pathId != PATH_XT002_IDLE) + return; + + if (waypointId == 3 || waypointId == 9) + { + me->SetEmoteState(EMOTE_STATE_SPELL_CHANNEL_OMNI); + + scheduler.Schedule(11s, [this](TaskContext /*task*/) + { + me->SetEmoteState(EMOTE_ONESHOT_NONE); + }); + } + else if (waypointId == 13) + { + me->SetEmoteState(EMOTE_STATE_DANCE); + + scheduler.Schedule(30s, [this](TaskContext /*task*/) + { + me->SetEmoteState(EMOTE_ONESHOT_NONE); + }); + } + } + private: bool _healthRecovered; // Did a scrapbot recover XT-002's health during the encounter? bool _hardMode; // Are we in hard mode? Or: was the heart killed during phase 2? diff --git a/src/server/scripts/Outland/Auchindoun/ShadowLabyrinth/boss_blackheart_the_inciter.cpp b/src/server/scripts/Outland/Auchindoun/ShadowLabyrinth/boss_blackheart_the_inciter.cpp index 38a7fd78d66..d7d3c6245c7 100644 --- a/src/server/scripts/Outland/Auchindoun/ShadowLabyrinth/boss_blackheart_the_inciter.cpp +++ b/src/server/scripts/Outland/Auchindoun/ShadowLabyrinth/boss_blackheart_the_inciter.cpp @@ -57,6 +57,11 @@ enum BlackheartEvents EVENT_WAR_STOMP }; +enum BlackheartPaths +{ + PATH_BLACKHEART_IDLE = 5354960, +}; + class BlackheartCharmedPlayerAI : public SimpleCharmedPlayerAI { using SimpleCharmedPlayerAI::SimpleCharmedPlayerAI; @@ -161,6 +166,17 @@ struct boss_blackheart_the_inciter : public BossAI DoMeleeAttackIfReady(); } + + void WaypointReached(uint32 waypointId, uint32 pathId) override + { + if (pathId != PATH_BLACKHEART_IDLE) + return; + + if (waypointId == 2) + Talk(SAY_DEATH); // ? + else if (waypointId == 3) + Talk(SAY_AGGRO); // ? + } }; struct boss_blackheart_the_inciter_mc_dummy : public NullCreatureAI diff --git a/src/server/scripts/Outland/CoilfangReservoir/TheUnderbog/boss_the_black_stalker.cpp b/src/server/scripts/Outland/CoilfangReservoir/TheUnderbog/boss_the_black_stalker.cpp index 2330a2f75ba..3aa3f7c4541 100644 --- a/src/server/scripts/Outland/CoilfangReservoir/TheUnderbog/boss_the_black_stalker.cpp +++ b/src/server/scripts/Outland/CoilfangReservoir/TheUnderbog/boss_the_black_stalker.cpp @@ -35,7 +35,7 @@ like lack of delays between packets makes it work differently too. Of course as was said above player can be pulled towards 2 times in a row but that looks like a rare case. */ -enum Spells +enum BlackStalkerSpells { SPELL_LEVITATE = 31704, SPELL_CHAIN_LIGHTNING = 31717, @@ -52,7 +52,7 @@ enum Spells SPELL_SUMMON_SPORE_STRIDER = 38755 }; -enum Events +enum BlackStalkerEvents { EVENT_LEASH_CHECK = 1, EVENT_LEVITATE, @@ -61,6 +61,11 @@ enum Events EVENT_SUMMON_SPORE_STRIDER }; +enum BlackStalkerPaths +{ + PATH_BLACK_STALKER_IDLE = 4346960, +}; + struct boss_the_black_stalker : public BossAI { boss_the_black_stalker(Creature* creature) : BossAI(creature, DATA_THE_BLACK_STALKER), _summons(creature) { } @@ -68,6 +73,8 @@ struct boss_the_black_stalker : public BossAI void JustEngagedWith(Unit* who) override { BossAI::JustEngagedWith(who); + scheduler.CancelAll(); + _events.ScheduleEvent(EVENT_LEASH_CHECK, 5s); _events.ScheduleEvent(EVENT_LEVITATE, 8s, 18s); _events.ScheduleEvent(EVENT_CHAIN_LIGHTNING, 0s, 3s); @@ -130,6 +137,20 @@ struct boss_the_black_stalker : public BossAI DoMeleeAttackIfReady(); } + void WaypointReached(uint32 waypointId, uint32 pathId) override + { + if (pathId != PATH_BLACK_STALKER_IDLE) + return; + + if (waypointId == 2 || waypointId == 4 || waypointId == 6) + { + scheduler.Schedule(2s, [this](TaskContext /*task*/) + { + me->HandleEmoteCommand(EMOTE_ONESHOT_EAT); + }); + } + } + private: EventMap _events; SummonList _summons; diff --git a/src/server/scripts/Outland/zone_nagrand.cpp b/src/server/scripts/Outland/zone_nagrand.cpp index 1bbf80b84e9..c13395e9adc 100644 --- a/src/server/scripts/Outland/zone_nagrand.cpp +++ b/src/server/scripts/Outland/zone_nagrand.cpp @@ -429,7 +429,9 @@ enum PlantBannerQuests NPC_KIL_SORROW_DEATHSWORN = 17148, NPC_GISELDA_THE_CRONE = 18391, NPC_WARMAUL_REAVER = 17138, - NPC_WARMAUL_SHAMAN = 18064 + NPC_WARMAUL_SHAMAN = 18064, + + PATH_NAGRAND_BANNER = 4816480, }; class npc_nagrand_banner : public CreatureScript @@ -474,6 +476,21 @@ public: return bannered; } + void WaypointReached(uint32 waypointId, uint32 pathId) override + { + if (pathId != PATH_NAGRAND_BANNER) + return; + + if (waypointId == 11) + me->HandleEmoteCommand(EMOTE_ONESHOT_APPLAUD); + else if (waypointId == 4 || waypointId == 8) + me->HandleEmoteCommand(EMOTE_ONESHOT_TALK); + else if (waypointId == 10) + me->HandleEmoteCommand(EMOTE_ONESHOT_POINT); + else if (waypointId == 3 || waypointId == 7) + me->HandleEmoteCommand(EMOTE_STATE_USE_STANDING); + } + protected: TaskScheduler scheduler; |