Core/DB: Misc fixes

This commit is contained in:
hondacrx
2018-03-18 12:51:03 -04:00
parent 0ccfde1f79
commit 7c37ef6f69
70 changed files with 5888 additions and 3 deletions
+6 -3
View File
@@ -1106,6 +1106,7 @@ INSERT INTO `rbac_linked_permissions` VALUES
(196,842), (196,842),
(196,843), (196,843),
(196,869), (196,869),
(196,872),
(197,232), (197,232),
(197,236), (197,236),
(197,237), (197,237),
@@ -2026,7 +2027,8 @@ INSERT INTO `rbac_permissions` VALUES
(853,'Command: .reload conversation_template'), (853,'Command: .reload conversation_template'),
(854,'Command: .debug conversation'), (854,'Command: .debug conversation'),
(868,'Command: modify power'), (868,'Command: modify power'),
(869,'Command: debug send playerchoice'); (869,'Command: debug send playerchoice'),
(872,'Command: server debug');
/*!40000 ALTER TABLE `rbac_permissions` ENABLE KEYS */; /*!40000 ALTER TABLE `rbac_permissions` ENABLE KEYS */;
UNLOCK TABLES; UNLOCK TABLES;
@@ -2232,8 +2234,9 @@ INSERT INTO `updates` VALUES
('2017_12_31_00_auth.sql','1721ACBD35EB95FAE33B9E95F8C4E4B1FB70A5E4','ARCHIVED','2017-12-31 20:15:23',0), ('2017_12_31_00_auth.sql','1721ACBD35EB95FAE33B9E95F8C4E4B1FB70A5E4','ARCHIVED','2017-12-31 20:15:23',0),
('2018_01_02_00_auth.sql','CD9B826B9D95697DC412DEF780E814FA3991D6CD','ARCHIVED','2018-01-02 20:40:37',0), ('2018_01_02_00_auth.sql','CD9B826B9D95697DC412DEF780E814FA3991D6CD','ARCHIVED','2018-01-02 20:40:37',0),
('2018_02_18_00_auth.sql','8489DD3EFFE14A7486B593435F0BA2BC69B6EABF','ARCHIVED','2018-02-18 16:35:55',0), ('2018_02_18_00_auth.sql','8489DD3EFFE14A7486B593435F0BA2BC69B6EABF','ARCHIVED','2018-02-18 16:35:55',0),
('2018_02_19_00_auth.sql','07CE658C5EF88693D3C047EF8E724F94ADA74C15','RELEASED','2018-02-19 22:33:32',233), ('2018_02_19_00_auth.sql','07CE658C5EF88693D3C047EF8E724F94ADA74C15','ARCHIVED','2018-02-19 22:33:32',233),
('2018_02_28_00_auth.sql','E92EF4ABF7FA0C66649E1633DD0459F44C09EB83','RELEASED','2018-02-28 23:07:59',0); ('2018_02_28_00_auth.sql','E92EF4ABF7FA0C66649E1633DD0459F44C09EB83','ARCHIVED','2018-02-28 23:07:59',0),
('2018_03_14_00_auth.sql','2D71E93DF7419A30D0D21D8A80CF05698302575A','ARCHIVED','2018-03-14 23:07:59',0);
/*!40000 ALTER TABLE `updates` ENABLE KEYS */; /*!40000 ALTER TABLE `updates` ENABLE KEYS */;
UNLOCK TABLES; UNLOCK TABLES;
@@ -0,0 +1,5 @@
DELETE FROM `rbac_permissions` WHERE `id`=872;
INSERT INTO `rbac_permissions` (`id`, `name`) VALUES
(872, 'Command: server debug');
INSERT INTO `rbac_linked_permissions` (`id`, `linkedId`) VALUES
(196, 872);
@@ -0,0 +1,3 @@
DELETE FROM `command` WHERE `name`='server debug';
INSERT INTO `command` (`name`, `permission`, `help`) VALUES
('server debug', 872, 'Syntax: .server debug\n\nShows detailed information about server setup, useful when reporting a bug');
@@ -0,0 +1 @@
UPDATE `vehicle_template_accessory` SET `minion`=0 WHERE `entry`=33293 AND `accessory_entry`=33329;
@@ -0,0 +1,2 @@
-- Fix emblem frost exploit in Ruby Sanctum
UPDATE `creature_template` SET `flags_extra`=`flags_extra` | 1 WHERE `entry`IN(39823,39920,39805);
@@ -0,0 +1,17 @@
--
-- [Q] Altered Beings - http://wotlk.openwow.com/quest=880
-- Tonga Runetotem SAI - delay textevent
SET @ENTRY := 3448;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,1,20,0,100,0,880,0,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,"Tonga Runetotem - On Quest 'Altered Beings' Finished - Run Script");
-- Actionlist SAI
SET @ENTRY := 344800;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,1,0,5000,0,0,0,0,1,0,0,0,0,0,0,0,"Tonga Runetotem - On Script - Say Line 0"),
(@ENTRY,9,1,0,0,0,100,0,5000,5000,0,0,1,1,4000,0,0,0,0,1,0,0,0,0,0,0,0,"Tonga Runetotem - On Script - Say Line 1"),
(@ENTRY,9,2,0,0,0,100,0,4000,4000,0,0,1,2,4000,0,0,0,0,1,0,0,0,0,0,0,0,"Tonga Runetotem - On Script - Say Line 2"),
(@ENTRY,9,3,0,0,0,100,0,4000,4000,0,0,1,3,4000,0,0,0,0,1,0,0,0,0,0,0,0,"Tonga Runetotem - On Script - Say Line 3");
@@ -0,0 +1,350 @@
--
-- Birds in Sethekk Halls - spawns and paths
-- Set InhabitType to flying
UPDATE `creature_template` SET `InhabitType`= 4 WHERE `entry` IN (21931);
SET @GUID := 99126; -- 15 unused GUIDs from TC
DELETE FROM `creature` WHERE `guid` BETWEEN @GUID AND @GUID+14;
INSERT INTO `creature` (guid, id, map, spawnMask, position_x, position_y, position_z, orientation, spawntimesecs, curhealth, curmana, spawndist, MovementType) VALUES
(@GUID+0, 21931, 556, 6, -69.078, 255.062, 27.6692, 2.23169, 1, 6326, 0, 0, 2),
(@GUID+1, 21931, 556, 6, 84.91618, 251.3969, 37.0668, 3.204143, 1, 6326, 0, 0, 2),
(@GUID+2, 21931, 556, 6, 82.7928, 251.0653, 37.0668, 3.192098, 1, 6326, 0, 0, 2),
(@GUID+3, 21931, 556, 6, -55.35431, 292.4135, 27.84376, 3.334406, 1, 6326, 0, 0, 2),
(@GUID+4, 21931, 556, 6, -56.81138, 293.4768, 27.82975, 1.066901, 1, 6326, 0, 0, 2),
(@GUID+5, 21931, 556, 6, -109.229, 288.209, 53.3584, 3.249347, 1, 6326, 0, 0, 2),
(@GUID+6, 21931, 556, 6, -77.7733, 299.15, 60.5558, 5.757163, 1, 6326, 0, 0, 2),
(@GUID+7, 21931, 556, 6, -52.39689, 293.2879, 27.82958, 1.420948, 1, 6326, 0, 0, 2),
(@GUID+8, 21931, 556, 6, -65.26201, 281.413, 47.28283, 0.8305511, 1, 6326, 0, 0, 2),
(@GUID+9, 21931, 556, 6, -59.42, 289.0999, 27.89292, 2.894336, 1, 6326, 0, 0, 2),
(@GUID+10, 21931, 556, 6, -102.279, 278.86, 56.0703, 5.414571, 1, 6326, 0, 0, 2),
(@GUID+11, 21931, 556, 6, -86.60637, 286.1224, 27.48317, 2.953945, 1, 6326, 0, 0, 2),
(@GUID+12, 21931, 556, 6, -68.3353, 281.741, 61.757, 3.844181, 1, 6326, 0, 0, 2),
(@GUID+13, 21931, 556, 6, -71.9701, 272.574, 59.1446, 6.184331, 1, 6326, 0, 0, 2),
(@GUID+14, 21931, 556, 6, -84.35631, 263.7281, 27.80793, 4.523829, 1, 6326, 0, 0, 2);
DELETE FROM `creature_addon` WHERE `guid` BETWEEN @GUID AND @GUID+14;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES
(@GUID+0, (@GUID+0) *10, 0, 0, 1, 0, ''),
(@GUID+1, (@GUID+1) *10, 0, 0, 1, 0, ''),
(@GUID+2, (@GUID+2) *10, 0, 0, 1, 0, ''),
(@GUID+3, (@GUID+3) *10, 0, 0, 1, 0, ''),
(@GUID+4, (@GUID+4) *10, 0, 0, 1, 0, ''),
(@GUID+5, (@GUID+5) *10, 0, 0, 1, 0, ''),
(@GUID+6, (@GUID+6) *10, 0, 0, 1, 0, ''),
(@GUID+7, (@GUID+7) *10, 0, 0, 1, 0, ''),
(@GUID+8, (@GUID+8) *10, 0, 0, 1, 0, ''),
(@GUID+9, (@GUID+9) *10, 0, 0, 1, 0, ''),
(@GUID+10, (@GUID+10)*10, 0, 0, 1, 0, ''),
(@GUID+11, (@GUID+11)*10, 0, 0, 1, 0, ''),
(@GUID+12, (@GUID+12)*10, 0, 0, 1, 0, ''),
(@GUID+13, (@GUID+13)*10, 0, 0, 1, 0, ''),
(@GUID+14, (@GUID+14)*10, 0, 0, 1, 0, '');
-- 1.
SET @PATH := (@GUID+0) * 10;
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`) VALUES
(@PATH, 1, -69.078, 255.062, 27.6692),
(@PATH, 2, -69.078, 255.062, 27.6692),
(@PATH, 3, -77.6467, 256.825, 27.8182),
(@PATH, 4, -85.5541, 263.248, 37.4314),
(@PATH, 5, -89.3701, 273.449, 46.1637),
(@PATH, 6, -87.3918, 283.626, 55.5433),
(@PATH, 7, -81.6323, 288.392, 67.374),
(@PATH, 8, -83.6451, 281.803, 77.323),
(@PATH, 9, -97.3242, 280.983, 74.488),
(@PATH, 10, -95.2966, 294.303, 27.4832),
(@PATH, 11, -91.9066, 298.554, 40.3148),
(@PATH, 12, -84.9968, 296.969, 52.3776),
(@PATH, 13, -81.5458, 289.807, 63.8514),
(@PATH, 14, -91.5585, 284.275, 71.9894),
(@PATH, 15, -95.834, 292.943, 27.4832),
(@PATH, 16, -94.3393, 295.352, 41.1404),
(@PATH, 17, -88.5665, 292.19, 53.5047),
(@PATH, 18, -88.0789, 284.173, 65.0211),
(@PATH, 19, -96.7033, 282.247, 75.63),
(@PATH, 20, -92.1857, 296.241, 27.4832);
-- 2.
SET @PATH := (@GUID+1) * 10;
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`) VALUES
(@PATH, 1, -84.3563, 263.728, 27.8079),
(@PATH, 2, -87.4666, 261.464, 58.4138),
(@PATH, 3, -94.4575, 270.352, 66.6585),
(@PATH, 4, -95.7386, 284.443, 27.4832),
(@PATH, 5, -91.3219, 290.488, 39.2894),
(@PATH, 6, -84.573, 290.53, 51.5467),
(@PATH, 7, -83.1581, 284.409, 64.0506),
(@PATH, 8, -92.9101, 280.978, 73.484),
(@PATH, 9, -96.079, 293.202, 74.566),
(@PATH, 10, -82.8515, 297.569, 74.9201),
(@PATH, 11, -77.4638, 284.989, 27.4832),
(@PATH, 12, -81.0183, 279.803, 39.9446),
(@PATH, 13, -89.1536, 280.506, 51.3678),
(@PATH, 14, -94.1382, 293.611, 27.4832),
(@PATH, 15, -88.9669, 297.982, 39.6762),
(@PATH, 16, -84.4414, 293.357, 52.098),
(@PATH, 17, -86.5034, 284.787, 63.0289),
(@PATH, 18, -97.8593, 278.945, 26.2094),
(@PATH, 19, -83.9472, 285.452, 63.0513),
(@PATH, 20, -93.4871, 275.608, 26.8408);
-- 3.
SET @PATH := (@GUID+2) * 10;
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`) VALUES
(@PATH, 1, 84.9162, 251.397, 37.0668),
(@PATH, 2, 83.9651, 251.088, 37.0668),
(@PATH, 3, 51.4796, 252.183, 37.0668),
(@PATH, 4, 33.2474, 282.432, 37.0668),
(@PATH, 5, -4.58595, 288.248, 37.0668),
(@PATH, 6, -33.1252, 287.388, 33.6501),
(@PATH, 7, -63.6614, 287.145, 37.0668),
(@PATH, 8, -86.5805, 281.312, 37.0668),
(@PATH, 9, -122.867, 287.583, 33.7057),
(@PATH, 10, -166.135, 286.002, 37.0668),
(@PATH, 11, -197.129, 319.599, 41.5668),
(@PATH, 12, -226.722, 321.688, 41.5391),
(@PATH, 13, -241.978, 284.026, 37.0668),
(@PATH, 14, -241.867, 239.697, 34.7891),
(@PATH, 15, -240.409, 205.258, 33.289),
(@PATH, 16, -247.921, 181.826, 37.0668),
(@PATH, 17, -258.541, 176.818, 28.8724),
(@PATH, 18, -254.589, 187.929, 17.5946),
(@PATH, 19, -233.282, 183.525, 9.45569),
(@PATH, 20, -207.969, 174.104, 9.45569),
(@PATH, 21, -174.273, 173.592, 7.17792),
(@PATH, 22, -153.428, 164.087, 10.4835),
(@PATH, 23, -141.719, 162.854, 10.9835),
(@PATH, 24, -125.931, 171.58, 9.15015),
(@PATH, 25, -97.7346, 173.65, 7.15014),
(@PATH, 26, -82.8989, 173.921, 10.3168),
(@PATH, 27, -73.9182, 173.077, 10.3168),
(@PATH, 28, -69.9846, 163.459, 10.3168),
(@PATH, 29, -70.2812, 156.773, 9.34458),
(@PATH, 30, -71.1548, 128.592, 6.7057),
(@PATH, 31, -80.0383, 115.576, 7.51125),
(@PATH, 32, -82.5443, 99.0856, 7.51125),
(@PATH, 33, -74.7056, 88.5289, 7.51125),
(@PATH, 34, -60.1037, 87.1475, 7.51125),
(@PATH, 35, -43.8567, 99.2091, 7.03903),
(@PATH, 36, -21.4774, 99.8071, 7.26125),
(@PATH, 37, 7.50968, 100.248, 7.51125),
(@PATH, 38, 27.4025, 97.8097, 19.3168),
(@PATH, 39, 37.0373, 95.8226, 30.8446);
-- 4.
SET @PATH := (@GUID+3) * 10;
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`) VALUES
(@PATH, 1, -119.16, 291.958, 26.7305),
(@PATH, 2, -119.16, 291.958, 26.7305),
(@PATH, 3, -118.246, 291.551, 26.7198),
(@PATH, 4, -116.125, 290.169, 41.5238),
(@PATH, 5, -114.528, 275.12, 40.1532),
(@PATH, 6, -90.689, 265.24, 41.0333),
(@PATH, 7, -62.0894, 286.098, 48.6939),
(@PATH, 8, -76.8407, 304.686, 51.9439),
(@PATH, 9, -98.7576, 303.572, 46.4161);
-- 5.
SET @PATH := (@GUID+4) * 10;
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`) VALUES
(@PATH, 1, -56.8114, 293.477, 27.8298),
(@PATH, 2, -58.7468, 295.764, 29.4033),
(@PATH, 3, -80.8255, 317.109, 28.9557),
(@PATH, 4, -84.6018, 313.357, 62.0829),
(@PATH, 5, -100.485, 310.06, 60.6726),
(@PATH, 6, -119.643, 290.201, 57.4676),
(@PATH, 7, -119.602, 271.028, 61.3137),
(@PATH, 8, -99.3827, 260.039, 59.8997),
(@PATH, 9, -62.9444, 265.206, 63.3061),
(@PATH, 10, -53.9817, 286.896, 63.0482),
(@PATH, 11, -66.9341, 300.934, 58.5854),
(@PATH, 12, -82.0958, 309.241, 61.3414),
(@PATH, 13, -100.199, 310.19, 60.9001),
(@PATH, 14, -109.249, 296.2, 58.5368),
(@PATH, 15, -112.956, 287.824, 28.945),
(@PATH, 16, -131.244, 263.41, 30.9794),
(@PATH, 17, -124.562, 262.687, 57.9071),
(@PATH, 18, -89.1208, 261.935, 60.3001),
(@PATH, 19, -66.6449, 264.328, 64.3038),
(@PATH, 20, -56.4546, 270.201, 65.3866),
(@PATH, 21, -53.7442, 287.453, 64.0839),
(@PATH, 22, -56.4072, 293.549, 29.5758);
-- 6.
SET @PATH := (@GUID+5) * 10;
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`) VALUES
(@PATH, 1, -59.42, 289.1, 27.8929),
(@PATH, 2, -58.7468, 295.764, 29.4033),
(@PATH, 3, -80.8255, 317.109, 28.9557),
(@PATH, 4, -84.6018, 313.357, 62.0829),
(@PATH, 5, -100.485, 310.06, 60.6726),
(@PATH, 6, -119.643, 290.201, 57.4676),
(@PATH, 7, -119.602, 271.028, 61.3137),
(@PATH, 8, -99.3827, 260.039, 59.8997),
(@PATH, 9, -62.9444, 265.206, 63.3061),
(@PATH, 10, -53.9817, 286.896, 63.0482),
(@PATH, 11, -66.9341, 300.934, 58.5854),
(@PATH, 12, -82.0958, 309.241, 61.3414),
(@PATH, 13, -100.199, 310.19, 60.9001),
(@PATH, 14, -109.249, 296.2, 58.5368),
(@PATH, 15, -112.956, 287.824, 28.945),
(@PATH, 16, -131.244, 263.41, 30.9794),
(@PATH, 17, -124.562, 262.687, 57.9071),
(@PATH, 18, -89.1208, 261.935, 60.3001),
(@PATH, 19, -66.6449, 264.328, 64.3038),
(@PATH, 20, -56.4546, 270.201, 65.3866),
(@PATH, 21, -53.7442, 287.453, 64.0839),
(@PATH, 22, -56.4072, 293.549, 29.5758);
-- 7.
SET @PATH := (@GUID+6) * 10;
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`) VALUES
(@PATH, 1, -52.3969, 293.288, 27.8296),
(@PATH, 2, -58.7468, 295.764, 29.4033),
(@PATH, 3, -80.8255, 317.109, 28.9557),
(@PATH, 4, -84.6018, 313.357, 62.0829),
(@PATH, 5, -100.485, 310.06, 60.6726),
(@PATH, 6, -119.643, 290.201, 57.4676),
(@PATH, 7, -119.602, 271.028, 61.3137),
(@PATH, 8, -99.3827, 260.039, 59.8997),
(@PATH, 9, -62.9444, 265.206, 63.3061),
(@PATH, 10, -53.9817, 286.896, 63.0482),
(@PATH, 11, -66.9341, 300.934, 58.5854),
(@PATH, 12, -82.0958, 309.241, 61.3414),
(@PATH, 13, -100.199, 310.19, 60.9001),
(@PATH, 14, -109.249, 296.2, 58.5368),
(@PATH, 15, -112.956, 287.824, 28.945),
(@PATH, 16, -131.244, 263.41, 30.9794),
(@PATH, 17, -124.562, 262.687, 57.9071),
(@PATH, 18, -89.1208, 261.935, 60.3001),
(@PATH, 19, -66.6449, 264.328, 64.3038),
(@PATH, 20, -56.4546, 270.201, 65.3866),
(@PATH, 21, -53.7442, 287.453, 64.0839),
(@PATH, 22, -56.4072, 293.549, 29.5758);
-- 8.
SET @PATH := (@GUID+7) * 10;
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`) VALUES
(@PATH, 1, -62.0894, 286.098, 48.6939),
(@PATH, 2, -76.8407, 304.686, 51.9439),
(@PATH, 3, -98.7576, 303.572, 46.4161),
(@PATH, 4, -119.16, 291.958, 26.7305),
(@PATH, 5, -119.16, 291.958, 26.7305),
(@PATH, 6, -118.246, 291.551, 26.7198),
(@PATH, 7, -116.125, 290.169, 41.5238),
(@PATH, 8, -114.528, 275.12, 40.1532),
(@PATH, 9, -90.689, 265.24, 41.0333);
-- 9.
SET @PATH := (@GUID+8) * 10;
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`) VALUES
(@PATH, 1, -109.229, 288.209, 53.3584),
(@PATH, 2, -102.279, 278.86, 56.0703),
(@PATH, 3, -88.1313, 272.423, 59.4688),
(@PATH, 4, -71.9701, 272.574, 59.1446),
(@PATH, 5, -68.3353, 281.741, 61.757),
(@PATH, 6, -77.7733, 299.15, 60.5558),
(@PATH, 7, -94.7425, 300.49, 56.1018);
-- 10.
SET @PATH := (@GUID+9) * 10;
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`) VALUES
(@PATH, 1, -71.9701, 272.574, 59.1446),
(@PATH, 2, -68.3353, 281.741, 61.757),
(@PATH, 3, -77.7733, 299.15, 60.5558),
(@PATH, 4, -94.7425, 300.49, 56.1018),
(@PATH, 5, -109.229, 288.209, 53.3584),
(@PATH, 6, -102.279, 278.86, 56.0703),
(@PATH, 7, -88.1313, 272.423, 59.4688);
-- 11.
SET @PATH := (@GUID+10) * 10;
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`) VALUES
(@PATH, 1, -68.3353, 281.741, 61.757),
(@PATH, 2, -77.7733, 299.15, 60.5558),
(@PATH, 3, -94.7425, 300.49, 56.1018),
(@PATH, 4, -109.229, 288.209, 53.3584),
(@PATH, 5, -102.279, 278.86, 56.0703),
(@PATH, 6, -88.1313, 272.423, 59.4688),
(@PATH, 7, -71.9701, 272.574, 59.1446);
-- 12.
SET @PATH := (@GUID+11) * 10;
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`) VALUES
(@PATH, 1, -102.279, 278.86, 56.0703),
(@PATH, 2, -88.1313, 272.423, 59.4688),
(@PATH, 3, -71.9701, 272.574, 59.1446),
(@PATH, 4, -68.3353, 281.741, 61.757),
(@PATH, 5, -77.7733, 299.15, 60.5558),
(@PATH, 6, -94.7425, 300.49, 56.1018),
(@PATH, 7, -109.229, 288.209, 53.3584);
-- 13.
SET @PATH := (@GUID+12) * 10;
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`) VALUES
(@PATH, 1, -77.7733, 299.15, 60.5558),
(@PATH, 2, -94.7425, 300.49, 56.1018),
(@PATH, 3, -109.229, 288.209, 53.3584),
(@PATH, 4, -102.279, 278.86, 56.0703),
(@PATH, 5, -88.1313, 272.423, 59.4688),
(@PATH, 6, -71.9701, 272.574, 59.1446),
(@PATH, 7, -68.3353, 281.741, 61.757);
-- 14.
SET @PATH := (@GUID+13) * 10;
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`) VALUES
(@PATH, 1, -86.6064, 286.122, 27.4832),
(@PATH, 2, -84.2669, 286.076, 57.4227),
(@PATH, 3, -71.9701, 272.574, 59.1446),
(@PATH, 4, -68.3353, 281.741, 61.757),
(@PATH, 5, -77.7733, 299.15, 60.5558),
(@PATH, 6, -94.7425, 300.49, 56.1018),
(@PATH, 7, -109.229, 288.209, 53.3584),
(@PATH, 8, -102.279, 278.86, 56.0703),
(@PATH, 9, -88.1313, 272.423, 59.4688);
-- 15.
SET @PATH := (@GUID+14) * 10;
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`) VALUES
(@PATH, 1, 84.9162, 251.397, 37.0668),
(@PATH, 2, 83.9651, 251.088, 37.0668),
(@PATH, 3, 51.4796, 252.183, 37.0668),
(@PATH, 4, 33.2474, 282.432, 37.0668),
(@PATH, 5, -4.58595, 288.248, 37.0668),
(@PATH, 6, -33.1252, 287.388, 33.6501),
(@PATH, 7, -63.6614, 287.145, 37.0668),
(@PATH, 8, -77.5616, 286.325, 98.1903);
UPDATE `waypoint_data` SET `move_type`=1 WHERE `id` IN ((@GUID+0) * 10,(@GUID+1) * 10,(@GUID+2) * 10,(@GUID+3) * 10,(@GUID+4) * 10,(@GUID+5) * 10,(@GUID+6) * 10,(@GUID+7) * 10,(@GUID+8) * 10,(@GUID+9) * 10, (@GUID+10) * 10, (@GUID+11) * 10, (@GUID+12) * 10, (@GUID+13) * 10, (@GUID+14) * 10);
@@ -0,0 +1,6 @@
--
DELETE FROM `creature_addon` WHERE `guid` IN (SELECT `guid` FROM `creature` WHERE `id` IN (22174,22182,22187,22201,22202,22217,22218,22221,22392,22283,22289,22287,22451,22187,22385,22327,22286));
DELETE FROM `creature` WHERE `id` IN (22174,22182,22187,22201,22202,22217,22218,22221,22392,22283,22289,22287,22451,22187,22385,22327,22286);
UPDATE `creature_template` SET `unit_flags`=33555202 WHERE `entry`=22196;
@@ -0,0 +1,2 @@
--
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 13 AND `SourceEntry` = 29866;
@@ -0,0 +1,2 @@
--
UPDATE `smart_scripts` SET `link`=0 WHERE `entryorguid` IN (3616, 3448) AND `source_type`=0 AND `id`=0;
@@ -0,0 +1,28 @@
--
-- [Q] Birds of a Feather -- http://wotlk.openwow.com/quest=9397
UPDATE `creature` SET `MovementType`=0 WHERE `guid`=57793;
DELETE FROM `creature_addon` WHERE `guid`=57793;
DELETE FROM `waypoint_data` WHERE `id`=577930;
-- Falconer Drenna Riverwind SAI
SET @ENTRY := 16790;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,1,20,0,100,0,9397,0,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,"Falconer Drenna Riverwind - On Quest 'Birds of a Feather' Finished - Run Script"),
(@ENTRY,0,1,0,61,0,100,0,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,"Falconer Drenna Riverwind - On Quest 'Birds of a Feather' Finished - Store Targetlist");
-- Actionlist SAI
SET @ENTRY := 1679000;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,59,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Set Run Off"),
(@ENTRY,9,1,0,0,0,100,0,1000,1000,0,0,69,0,0,0,0,0,0,8,0,0,0,-597.806,4110.68,90.848,2.02116,"On Script - Move To Position"),
(@ENTRY,9,2,0,0,0,100,0,2000,2000,0,0,5,16,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Play Emote 16"),
(@ENTRY,9,3,0,0,0,100,0,2000,2000,0,0,12,17262,1,20000,0,0,0,8,0,0,0,-597.244,4111.88,90.7789,0.805268,"On Script - Summon Creature 'Captive Female Kaliri'"),
(@ENTRY,9,4,0,0,0,100,0,1000,1000,0,0,1,0,0,0,0,0,0,12,1,0,0,0,0,0,0,"On Script - Say Line 0"),
(@ENTRY,9,5,0,0,0,100,0,4000,4000,0,0,69,0,0,0,0,0,0,8,0,0,0,-596.347,4108.47,91.0061,5.15176,"On Script - Move To Position"),
(@ENTRY,9,6,0,0,0,100,0,2000,2000,0,0,66,0,0,0,0,0,0,8,0,0,0,0,0,0,4.10152,"On Script - Set Orientation 4,10152");
DELETE FROM `creature_text` WHERE `CreatureID`=16790;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `Comment`) VALUES
(16790, 0, 0, 'Thank you, $N. It looks like they''re going to get along just fine.', 12, 0, 100, 0, 0, 0, 13666, 'Falconer Drenna Riverwind');
@@ -0,0 +1,26 @@
--
-- [Q] Deciphering the Book -- http://wotlk.openwow.com/quest=9557
-- Anchorite Paetheus SAI
SET @ENTRY := 17424;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,20,0,100,0,9557,0,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,"Anchorite Paetheus - On Quest 'Deciphering the Book' Finished - Run Script");
-- Actionlist SAI
SET @ENTRY := 1742400;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,83,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"Anchorite Paetheus - On Script - Remove Npc Flag Questgiver"),
(@ENTRY,9,1,0,0,0,100,0,1000,1000,0,0,1,0,4000,0,0,0,0,1,0,0,0,0,0,0,0,"Anchorite Paetheus - On Script - Say Line 0"),
(@ENTRY,9,2,0,0,0,100,0,4000,4000,0,0,1,1,6000,0,0,0,0,1,0,0,0,0,0,0,0,"Anchorite Paetheus - On Script - Say Line 1"),
(@ENTRY,9,3,0,0,0,100,0,6000,6000,0,0,1,2,6000,0,0,0,0,1,0,0,0,0,0,0,0,"Anchorite Paetheus - On Script - Say Line 2"),
(@ENTRY,9,4,0,0,0,100,0,6000,6000,0,0,1,3,0,0,0,0,0,1,0,0,0,0,0,0,0,"Anchorite Paetheus - On Script - Say Line 3"),
(@ENTRY,9,5,0,0,0,100,0,0,0,0,0,82,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"Anchorite Paetheus - On Script - Add Npc Flag Questgiver");
DELETE FROM `creature_text` WHERE `CreatureID`=17424;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `Comment`) VALUES
(17424, 0, 0, 'Now, let\'s see....', 12, 0, 100, 69, 0, 0, 14281, 'Anchorite Paetheus'),
(17424, 1, 0, 'In the process of translating this, I believe I\'ve learned more about the drunken exploits of a certain \'Andrew Clementine\' than about the journal\'s author.', 12, 0, 100, 1, 0, 0, 14282, 'Anchorite Paetheus'),
(17424, 2, 0, 'But, no matter. Mister Clementine\'s... err, \'contribution\' notwithstanding, this seems to be the journal of a man named Nolkai. The entries toward the end describe a brutal battle.', 12, 0, 100, 11, 0, 0, 14283, 'Anchorite Paetheus'),
(17424, 3, 0, 'Take a look at this passage...', 12, 0, 100, 0, 0, 0, 14285, 'Anchorite Paetheus');
@@ -0,0 +1,26 @@
--
-- [Q] Into the Churning Gulch -- http://wotlk.openwow.com/quest=10715
-- Baron Sablemane SAI
SET @ENTRY := 22103;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,20,0,100,0,10715,0,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,"Baron Sablemane - On Quest 'Into the Churning Gulch' Finished - Run Script");
-- Actionlist SAI
SET @ENTRY := 2210300;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,83,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"Baron Sablemane - On Script - Remove Npc Flag Questgiver"),
(@ENTRY,9,1,0,0,0,100,0,1000,1000,0,0,59,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Baron Sablemane - On Script - Set Run Off"),
(@ENTRY,9,2,0,0,0,100,0,0,0,0,0,69,0,0,0,0,0,0,8,0,0,0,2915.57,5957.42,3.27419,2.97874,"Baron Sablemane - On Script - Move To Position"),
(@ENTRY,9,3,0,0,0,100,0,4000,4000,0,0,17,69,0,0,0,0,0,1,0,0,0,0,0,0,0,"Baron Sablemane - On Script - Set Emote State 69"),
(@ENTRY,9,4,0,0,0,100,0,7000,7000,0,0,17,26,0,0,0,0,0,1,0,0,0,0,0,0,0,"Baron Sablemane - On Script - Set Emote State 26"),
(@ENTRY,9,5,0,0,0,100,0,2000,2000,0,0,69,0,0,0,0,0,0,8,0,0,0,2919.11,5956.93,3.16149,1.03933,"Baron Sablemane - On Script - Move To Position"),
(@ENTRY,9,6,0,0,0,100,0,2000,2000,0,0,69,0,0,0,0,0,0,8,0,0,0,2919.11,5956.93,3.16149,1.58825,"Baron Sablemane - On Script - Move To Position"),
(@ENTRY,9,7,0,0,0,100,0,1000,1000,0,0,82,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"Baron Sablemane - On Script - Add Npc Flag Questgiver"),
(@ENTRY,9,8,0,0,0,100,0,0,0,0,0,1,0,3000,0,0,0,0,1,0,0,0,0,0,0,0,"Baron Sablemane - On Script - Say Line 0");
DELETE FROM `creature_text` WHERE `CreatureID`=22103;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `Comment`) VALUES
(22103, 0, 0, 'There, it is completed.', 12, 0, 100, 0, 0, 0, 19808, 'Baron Sablemane');
@@ -0,0 +1,33 @@
--
-- [Q] All Clear! -- http://wotlk.openwow.com/quest=10436
-- Tashar SAI
SET @ENTRY := 20913;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,20,0,100,0,10436,0,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,"Tashar - On Quest 'All Clear!' Finished - Run Script");
-- Actionlist SAI
SET @ENTRY := 2091300;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,83,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Remove Npc Flag Questgiver"),
(@ENTRY,9,1,0,0,0,100,0,1000,1000,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Say Line 0"),
(@ENTRY,9,2,0,0,0,100,0,0,0,0,0,59,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Set Run Off"),
(@ENTRY,9,3,0,0,0,100,0,2000,2000,0,0,69,0,0,0,0,0,0,8,0,0,0,4922.18,2991.38,93.9847,5.88582,"On Script - Move To Position"),
(@ENTRY,9,4,0,0,0,100,0,5000,5000,0,0,17,173,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Set Emote State 173"),
(@ENTRY,9,5,0,0,0,100,0,4000,4000,0,0,17,26,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Set Emote State 26"),
(@ENTRY,9,6,0,0,0,100,0,0,0,0,0,11,28730,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Cast 'Arcane Torrent'"),
(@ENTRY,9,7,0,0,0,100,0,2000,2000,0,0,50,184614,15,0,0,0,0,8,0,0,0,4923.56,2990.45,93.9413,0.813699,"On Script - Summon Gameobject 'Ethereal Repair Kit'"),
(@ENTRY,9,8,0,0,0,100,0,0,0,0,0,50,184614,15,0,0,0,0,8,0,0,0,4923.45,2991.21,93.9248,5.49404,"On Script - Summon Gameobject 'Ethereal Repair Kit'"),
(@ENTRY,9,9,0,0,0,100,0,0,0,0,0,50,184614,15,0,0,0,0,8,0,0,0,4924.47,2990.35,93.8867,2.25067,"On Script - Summon Gameobject 'Ethereal Repair Kit'"),
(@ENTRY,9,10,0,0,0,100,0,0,0,0,0,50,184614,15,0,0,0,0,8,0,0,0,4924.32,2991.21,93.8808,3.88003,"On Script - Summon Gameobject 'Ethereal Repair Kit'"),
(@ENTRY,9,11,0,0,0,100,0,2000,2000,0,0,1,1,4000,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Say Line 1"),
(@ENTRY,9,12,0,0,0,100,0,4000,4000,0,0,69,0,0,0,0,0,0,8,0,0,0,4914.74,2991.92,94.1138,0,"On Script - Move To Position"),
(@ENTRY,9,13,0,0,0,100,0,3000,3000,0,0,66,0,0,0,0,0,0,8,0,0,0,0,0,0,0.15708,"On Script - Set Orientation 0,15708"),
(@ENTRY,9,14,0,0,0,100,0,0,0,0,0,82,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Add Npc Flag Questgiver");
DELETE FROM `creature_text` WHERE `CreatureID`=20913;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `Comment`) VALUES
(20913, 0, 0, 'Now to begin the repairs.', 12, 0, 100, 0, 0, 0, 18651, 'Tashar'),
(20913, 1, 0, 'It''s working! Ghabar will be pleased to hear the news.', 12, 0, 100, 0, 0, 0, 18652, 'Tashar');
@@ -0,0 +1,26 @@
-- [Q] Know Thine Enemy -- http://wotlk.openwow.com/quest=9567
-- Vindicator Aalesia SAI
SET @ENTRY := 17433;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,1,20,0,100,0,9567,0,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,"Vindicator Aalesia - On Quest 'Know Thine Enemy' Finished - Run Script"),
(@ENTRY,0,1,0,61,0,100,0,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,"Vindicator Aalesia - On Quest 'Know Thine Enemy' Finished - Store Targetlist");
-- Actionlist SAI
SET @ENTRY := 1743300;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,83,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"Vindicator Aalesia - On Script - Remove Npc Flag Questgiver"),
(@ENTRY,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,"Vindicator Aalesia - On Script - Set Emote State 69"),
(@ENTRY,9,2,0,0,0,100,0,4000,4000,0,0,17,26,0,0,0,0,0,1,0,0,0,0,0,0,0,"Vindicator Aalesia - On Script - Set Emote State 26"),
(@ENTRY,9,3,0,0,0,100,0,0,0,0,0,1,0,4000,0,0,0,0,1,0,0,0,0,0,0,0,"Vindicator Aalesia - On Script - Say Line 0"),
(@ENTRY,9,4,0,0,0,100,0,4000,4000,0,0,1,1,4000,0,0,0,0,1,0,0,0,0,0,0,0,"Vindicator Aalesia - On Script - Say Line 1"),
(@ENTRY,9,5,0,0,0,100,0,4000,4000,0,0,1,2,2000,0,0,0,0,12,1,0,0,0,0,0,0,"Vindicator Aalesia - On Script - Say Line 2"),
(@ENTRY,9,6,0,0,0,100,0,2000,2000,0,0,82,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"Vindicator Aalesia - On Script - Add Npc Flag Questgiver");
DELETE FROM `creature_text` WHERE `CreatureID`=17433;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `Comment`) VALUES
(17433, 0, 0, 'These pictographs tell a story. This figure at the beginning, almost looks like one of the creatures we encountered at Azure Watch...', 12, 0, 100, 0, 0, 0, 14030, 'Vindicator Aalesia'),
(17433, 1, 0, 'No, this can\'t be... It says this creature willingly became a servant of the Legion. He transforms into a satyr and receives the Legion\'s "blessing.', 12, 0, 100, 274, 0, 0, 14031, 'Vindicator Aalesia'),
(17433, 2, 0, 'We must defeat these satyr, $n. We will not suffer the Legion\'s presence in these lands.', 12, 0, 100, 53, 0, 0, 14032, 'Vindicator Aalesia');
@@ -0,0 +1,82 @@
-- http://wow.gamepedia.com/Matt
DELETE FROM `creature_text` WHERE `CreatureID`=794;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `Comment`, `BroadcastTextID`) VALUES
(794, 0, 0, 'Dang! Fish arent biting here either. I am gonna go back to my ol fishin hole!', 12, 7, 100, 0, 0, 0, 'Matt', 894),
(794, 1, 0, 'Gee, fish sure dont seem to be biting here. Maybe I should go over to Crystal Lake to try my luck there!', 12, 7, 100, 0, 0, 0, 'Matt', 893);
-- Matt SAI
SET @ENTRY := 794;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (@ENTRY*100+00,@ENTRY*100+01) 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
(@ENTRY,0,0,0,25,0,100,512,0,0,0,0,53,0,794,1,0,0,0,1,0,0,0,0,0,0,0,"Matt - On Reset - Start Waypoint"),
(@ENTRY,0,1,0,40,0,100,512,1,794,0,0,54,3597000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Matt - On Waypoint 1 Reached - Pause Waypoint"),
(@ENTRY,0,2,0,40,0,100,512,1,794,0,0,80,@ENTRY*100+00,0,0,0,0,0,1,0,0,0,0,0,0,0,"Matt - On Waypoint 1 Reached - Run Script"),
(@ENTRY,0,3,0,40,0,100,512,26,794,0,0,54,900000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Matt - On Waypoint 26 Reached - Pause Waypoint"),
(@ENTRY,0,4,0,40,0,100,512,26,794,0,0,80,@ENTRY*100+01,0,0,0,0,0,1,0,0,0,0,0,0,0,"Matt - On Waypoint 26 Reached - Run Script"),
(@ENTRY*100+00,9,0,0,0,0,100,0,0,0,0,0,71,1,0,1117,0,0,0,1,0,0,0,0,0,0,0,"Matt - On Script - Change Equipment"),
(@ENTRY*100+00,9,1,0,0,0,100,0,0,0,0,0,66,0,0,0,0,0,0,8,0,0,0,-9387.45,-117.388,58.8643,2.61799,"Matt - On Script - Set Orientation 2,61799"),
(@ENTRY*100+00,9,2,0,0,0,100,0,3597000,3597000,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Matt - On Script - Say Line 0"),
(@ENTRY*100+00,9,3,0,0,0,100,0,0,0,0,0,71,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Matt - On Script - Change Equipment"),
(@ENTRY*100+01,9,0,0,0,0,100,0,0,0,0,0,71,1,0,1117,0,0,0,1,0,0,0,0,0,0,0,"Matt - On Script - Change Equipment"),
(@ENTRY*100+01,9,1,0,0,0,100,0,500,500,0,0,66,0,0,0,0,0,0,8,0,0,0,-9429.23,148.94,56.5713,2.118,"Matt - On Script - Set Orientation 2,118"),
(@ENTRY*100+01,9,2,0,0,0,100,0,897000,897000,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Matt - On Script - Say Line 1"),
(@ENTRY*100+01,9,3,0,0,0,100,0,0,0,0,0,71,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Matt - On Script - Change Equipment");
-- Matt Waypoint
DELETE FROM `waypoints` WHERE `entry`=794;
INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`, `point_comment`) VALUES
(@ENTRY, 1 ,-9387.448,-117.388,58.86428, 'Matt'), -- 14:31:28 -- 3600000
(@ENTRY, 2 ,-9383.961,-114.8808,59.08251, 'Matt'), -- 15:15:41
(@ENTRY, 3 ,-9380.154,-108.276,59.25655, 'Matt'), -- 15:15:43
(@ENTRY, 4 ,-9380.848,-101.6898,61.68277, 'Matt'), -- 15:15:45
(@ENTRY, 5 ,-9387.704,-91.85216,63.20706, 'Matt'), -- 15:15:48
(@ENTRY, 6 ,-9390.816,-90.64014,64.34749, 'Matt'), -- 15:15:53
(@ENTRY, 7 ,-9407.41,-88.2923,61.98596, 'Matt'), -- 15:15:56
(@ENTRY, 8 ,-9413.96,-87.82951,61.04494, 'Matt'), -- 15:16:01
(@ENTRY, 9 ,-9417.158,-87.50026,60.49351, 'Matt'), -- 15:16:05
(@ENTRY, 10,-9421.599,-80.92403,60.69189, 'Matt'), -- 15:16:07
(@ENTRY, 11,-9423.156,-52.4566,63.79184, 'Matt'), -- 15:16:13
(@ENTRY, 12,-9420.547,-36.44093,63.29053, 'Matt'), -- 15:16:21
(@ENTRY, 13,-9421.891,-23.8332,62.43909, 'Matt'), -- 15:16:27
(@ENTRY, 14,-9429.023,0.1944809,60.95766, 'Matt'), -- 15:16:34
(@ENTRY, 15,-9430.42,6.69886,59.95515, 'Matt'), -- 15:16:41
(@ENTRY, 16,-9433.049,28.14976,58.22381, 'Matt'), -- 15:16:49
(@ENTRY, 17,-9432.948,36.57756,57.2988, 'Matt'), -- 15:16:54
(@ENTRY, 18,-9432.741,48.06789,56.85545, 'Matt'), -- 15:17:01
(@ENTRY, 19,-9436.523,61.44022,56.62671, 'Matt'), -- 15:17:07
(@ENTRY, 20,-9423.229,92.4316,57.68261, 'Matt'), -- 15:17:13
(@ENTRY, 21,-9417.555,104.966,59.53194, 'Matt'), -- 15:17:20
(@ENTRY, 22,-9413.809,111.0759,60.54739, 'Matt'), -- 15:17:26
(@ENTRY, 23,-9410.355,126.8208,59.89996, 'Matt'), -- 15:17:32
(@ENTRY, 24,-9416.291,137.0582,59.09748, 'Matt'), -- 15:17:37
(@ENTRY, 25,-9421.65,142.9827,58.27094, 'Matt'), -- 15:17:41
(@ENTRY, 26,-9429.229,148.94,56.57125, 'Matt'), -- 15:17:44 -- 900000
(@ENTRY, 27,-9424.639,136.6448,59.14201, 'Matt'), -- 14:29:13
(@ENTRY, 28,-9416.943,128.2254,59.84607, 'Matt'), -- 14:29:20
(@ENTRY, 29,-9408.01,117.3048,60.68095, 'Matt'), -- 14:29:26
(@ENTRY, 30,-9404.777,110.4311,60.1431, 'Matt'), -- 14:29:29
(@ENTRY, 31,-9404.203,99.88391,59.06318, 'Matt'), -- 14:29:34
(@ENTRY, 32,-9415.88,87.02467,57.41075, 'Matt'), -- 14:29:39
(@ENTRY, 33,-9420.471,83.63406,56.86155, 'Matt'), -- 14:29:46
(@ENTRY, 34,-9436.522,69.25112,56.50404, 'Matt'), -- 14:29:55
(@ENTRY, 35,-9440.947,60.83078,56.30841, 'Matt'), -- 14:29:59
(@ENTRY, 36,-9430.784,43.44138,57.09395, 'Matt'), -- 14:30:03
(@ENTRY, 37,-9419.325,27.65322,58.00757, 'Matt'), -- 14:30:11
(@ENTRY, 38,-9403.117,7.486176,60.30029, 'Matt'), -- 14:30:17
(@ENTRY, 39,-9393.432,-3.420914,61.21665, 'Matt'), -- 14:30:28
(@ENTRY, 40,-9380.711,-17.91664,62.45811, 'Matt'), -- 14:30:32
(@ENTRY, 41,-9379.764,-19.26388,62.62563, 'Matt'), -- 14:30:40
(@ENTRY, 42,-9366.547,-30.96574,63.63699, 'Matt'), -- 14:30:43
(@ENTRY, 43,-9358.822,-43.82347,65.27631, 'Matt'), -- 14:30:48
(@ENTRY, 44,-9356.564,-49.49134,66.07014, 'Matt'), -- 14:30:56
(@ENTRY, 45,-9358.139,-71.0817,64.59801, 'Matt'), -- 14:30:59
(@ENTRY, 46,-9358.818,-73.2935,65.17371, 'Matt'), -- 14:31:05
(@ENTRY, 47,-9364.586,-80.76942,64.87081, 'Matt'), -- 14:31:08
(@ENTRY, 48,-9367.941,-84.89754,64.55246, 'Matt'), -- 14:31:11
(@ENTRY, 49,-9374.869,-96.70338,63.28677, 'Matt'), -- 14:31:14
(@ENTRY, 50,-9377.46,-102.744,61.81012, 'Matt'), -- 14:31:16
(@ENTRY, 51,-9379.592,-109.5267,59.26672, 'Matt'), -- 14:31:20
(@ENTRY, 52,-9383.477,-114.4253,59.07925, 'Matt'), -- 14:31:24
(@ENTRY, 53,-9385.668,-116.1328,59.09434, 'Matt'); -- 14:31:26
@@ -0,0 +1,90 @@
--
-- Sabotage the Warp-Gate! (10310)
DELETE FROM `creature_text` WHERE `CreatureID`=20281;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `Comment`) VALUES
(20281, 0, 0, "Let's proceed at a brisk pace.", 12, 0, 100, 0, 0, 0, 17941, 'Drijya'),
(20281, 1, 0, "We'll start at that first energy pylon, straight ahead. Remember, try to keep them off of me.", 12, 0, 100, 25, 0, 0, 17942, 'Drijya'),
(20281, 2, 0, "I'm done with this pylon. On to the next.", 12, 0, 100, 0, 0, 0, 17943, 'Drijya'),
(20281, 3, 0, "Alright, pylon two down. Now for the heat manifold.", 12, 0, 100, 0, 0, 0, 17944, 'Drijya'),
(20281, 4, 0, "That should do it. The teleporter should blow any second now!", 12, 0, 100, 0, 0, 0, 17945, 'Drijya'),
(20281, 5, 0, "Ok, let's get out of here!", 12, 0, 100, 0, 0, 0, 17946, 'Drijya'),
(20281, 6, 0, "Thank you, $N! I couldn't have done it without you. You'll let Gahruj know?", 12, 0, 100, 0, 0, 0, 17949, 'Drijya'),
(20281, 7, 0, "Keep them off me!", 12, 0, 100, 0, 0, 0, 17950, 'Drijya'),
(20281, 8, 0, "Very well. Before we head down there, take a moment to prepare yourself.", 12, 0, 100, 0, 0, 0, 17940, 'Drijya');
UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry` IN(20281, 20296, 20399, 20402, 20403);
DELETE FROM `smart_scripts` WHERE `entryorguid` IN(20296, 20281, 20399, 20402, 20403) AND `source_type`=0;
DELETE FROM `smart_scripts` WHERE `entryorguid` IN(20281*100, 20281*100+1, 20281*100+2, 2028103) 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
(20281, 0, 0, 0, 19, 0, 100, 0, 10310, 0, 0, 0, 80, 2028100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Drijya - On Quest Accept - Action list'),
(2028100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 19, 256+512, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Drijya - Action list - Remove unit Flag'),
(2028100, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 83, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Drijya - Action list - remove npc flag'),
(2028100, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Drijya - Action list - Talk'),
(2028100, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Drijya - Action list - Store target'),
(2028100, 9, 4, 0, 0, 0, 100, 0, 10000, 10000, 0, 0, 53, 1, 20281, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Drijya - Action list - Start WP'),
(2028100, 9, 5, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Drijya - Action list - Talk'),
(20281, 0, 1, 2, 40, 0, 100, 0, 5, 0, 0, 0, 54, 7000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Drijya - On WP Reached - WP Pause'),
(20281, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Drijya - On WP Reached - Talk'),
(20281, 0, 3, 4, 40, 0, 100, 0, 6, 0, 0, 0, 54, 40000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Drijya - On WP Reached - WP Pause'),
(20281, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 80, 20281*100+1, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Drijya - On WP Reached - Script9'),
(20281, 0, 5, 15, 56, 0, 100, 0, 6, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Drijya - On WP Resume - Talk'),
(20281, 0, 6, 7, 40, 0, 100, 0, 9, 0, 0, 0, 54, 40000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Drijya - On WP Reached - WP Pause'),
(20281, 0, 7, 0, 61, 0, 100, 0, 0, 0, 0, 0, 80, 20281*100+2, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Drijya - On WP Reached - Script9'),
(20281, 0, 8, 15, 56, 0, 100, 0, 9, 0, 0, 0, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Drijya - On WP Resume - Talk'),
(20281, 0, 9, 10, 40, 0, 100, 0, 12, 0, 0, 0, 54, 40000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Drijya - On WP Reached - WP Pause'),
(20281, 0, 10, 11, 61, 0, 100, 0, 0, 0, 0, 0, 45, 1, 4, 0, 0, 0, 0, 19, 20296, 50, 0, 0, 0, 0, 0, 'Drijya - WP reached - Set data'),
(20281, 0, 11, 0, 61, 0, 100, 0, 0, 0, 0, 0, 17, 28, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Drijya - WP reached - Set Emote State'),
(20281, 0, 12, 15, 56, 0, 100, 0, 12, 0, 0, 0, 1, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Drijya - On WP Resume - Talk'),
(20281, 0, 13, 14, 40, 0, 100, 0, 13, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 19, 20296, 100, 0, 0, 0, 0, 0, 'Drijya - On WP Reached - Set Data'),
(20281, 0, 14, 0, 61, 0, 100, 0, 0, 0, 0, 0, 1, 5, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Drijya - On WP Resume - Talk'),
(20281, 0, 15, 0, 61, 0, 100, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Drijya - Linked - Remove Emote State'),
(20281, 0, 16, 0, 4, 0, 100, 0, 0, 0, 0, 0, 1, 7, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Drijya - On Aggro - Talk'),
(20281, 0, 17, 0, 40, 0, 100, 0, 16, 0, 0, 0, 80, 2028103, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Drijya - On WP Reached - Action list'),
(2028103, 9, 0, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 1, 6, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Drijya - Action list - Talk'),
(2028103, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 18, 256+512, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Drijya - Action list - Set Flag'),
(2028103, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 81, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Drijya - Action list - Set NPC Flag'),
(2028103, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0.174533, 'Drijya - Action list- Orientation'),
(2028103, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 15, 10310, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Drijya - Action list - Credit quest'),
(20281*100+1, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 17, 28, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Drijya - Script9 - Set Emote State'),
(20281*100+1, 9, 1, 0, 0, 0, 100, 1, 4000, 4000, 0, 0, 45, 1, 2, 0, 0, 0, 0, 19, 20296, 50, 0, 0, 0, 0, 0, 'Drijya - Script9 - Set data'),
(20281*100+1, 9, 2, 0, 0, 0, 100, 1, 4000, 4000, 0, 0, 45, 1, 2, 0, 0, 0, 0, 19, 20296, 50, 0, 0, 0, 0, 0, 'Drijya - Script9 - Set data'),
(20281*100+1, 9, 3, 0, 0, 0, 100, 1, 4000, 4000, 0, 0, 45, 1, 2, 0, 0, 0, 0, 19, 20296, 50, 0, 0, 0, 0, 0, 'Drijya - Script9 - Set data'),
(20281*100+1, 9, 4, 0, 0, 0, 100, 1, 4000, 4000, 0, 0, 45, 1, 2, 0, 0, 0, 0, 19, 20296, 50, 0, 0, 0, 0, 0, 'Drijya - Script9 - Set data'),
(20281*100+1, 9, 5, 0, 0, 0, 100, 1, 4000, 4000, 0, 0, 45, 1, 2, 0, 0, 0, 0, 19, 20296, 50, 0, 0, 0, 0, 0, 'Drijya - Script9 - Set data'),
(20281*100+1, 9, 6, 0, 0, 0, 100, 1, 4000, 4000, 0, 0, 45, 1, 2, 0, 0, 0, 0, 19, 20296, 50, 0, 0, 0, 0, 0, 'Drijya - Script9 - Set data'),
(20281*100+1, 9, 7, 0, 0, 0, 100, 1, 4000, 4000, 0, 0, 45, 1, 2, 0, 0, 0, 0, 19, 20296, 50, 0, 0, 0, 0, 0, 'Drijya - Script9 - Set data'),
(20281*100+1, 9, 8, 0, 0, 0, 100, 1, 4000, 4000, 0, 0, 45, 1, 2, 0, 0, 0, 0, 19, 20296, 50, 0, 0, 0, 0, 0, 'Drijya - Script9 - Set data'),
(20281*100+2, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 17, 28, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Drijya - Script9 - Set Emote State'),
(20281*100+2, 9, 1, 0, 0, 0, 100, 1, 7000, 7000, 0, 0, 45, 1, 3, 0, 0, 0, 0, 19, 20296, 50, 0, 0, 0, 0, 0, 'Drijya - Script9 - Set Data'),
(20281*100+2, 9, 2, 0, 0, 0, 100, 1, 10000, 10000, 0, 0, 45, 1, 3, 0, 0, 0, 0, 19, 20296, 50, 0, 0, 0, 0, 0, 'Drijya - Script9 - Set Data'),
(20281*100+2, 9, 3, 0, 0, 0, 100, 1, 10000, 10000, 0, 0, 45, 1, 3, 0, 0, 0, 0, 19, 20296, 50, 0, 0, 0, 0, 0, 'Drijya - Script9 - Set Data'),
(20296, 0, 0, 1, 38, 0, 100, 0, 1, 1, 0, 0, 11, 34602, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Teleporter Explosion Trigger - On Data Set - Cast Spell'),
(20296, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 11, 56274, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Teleporter Explosion Trigger - On Data Set - Cast Spell'),
(20296, 0, 2, 0, 38, 0, 100, 0, 1, 2, 0, 0, 11, 35142, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Teleporter Explosion Trigger - On Data Set - Cast Spell'),
(20296, 0, 3, 0, 38, 0, 100, 0, 1, 3, 0, 0, 11, 35145, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Teleporter Explosion Trigger - On Data Set - Cast Spell'),
(20296, 0, 4, 0, 38, 0, 100, 0, 1, 4, 0, 0, 11, 35146, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Teleporter Explosion Trigger - On Data Set - Cast Spell'),
(20399, 0, 0, 0, 54, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 19, 20281, 80, 0, 0, 0, 0, 0, 'Terror ImpJust summoned - Start attack'),
(20402, 0, 0, 0, 54, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 19, 20281, 80, 0, 0, 0, 0, 0, 'Legion Shocktrooper - Just summoned - Start attack'),
(20402, 0, 1, 0, 1, 0, 100, 0, 2000, 8000, 10000, 17000, 11, 35144, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Legion Shocktrooper - IC - Cast Vicious Rend'),
(20403, 0, 0, 0, 54, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 19, 20281, 80, 0, 0, 0, 0, 0, 'Just summoned - Start attack'),
(20403, 0, 1, 0, 0, 0, 100, 0, 2000, 8000, 7000, 10000, 11, 13737, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Legion Destroyer - IC - Cast Mortal Strike'),
(20403, 0, 2, 0, 0, 0, 100, 0, 2000, 5000, 9000, 13000, 11, 11428, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Legion Destroyer - IC - Cast Knockdown');
DELETE FROM `waypoints` WHERE `entry`=20281;
INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`, `point_comment`) VALUES
(20281, 1, 3101.25, 2800.1, 118.565, 'Drijya'),
(20281, 2, 3107.59, 2793.75, 117.902, 'Drijya'),
(20281, 3, 3095.54, 2771.74, 115.836, 'Drijya'),
(20281, 4, 3086.593, 2752.232,115.499, 'Drijya'),
(20281, 5, 3077.952, 2745.1616, 116.63, 'Drijya'),
(20281, 6, 3050.38, 2727.86, 114.118, 'Drijya'),
(20281, 7, 3056.46, 2723.47, 113.688, 'Drijya'),
(20281, 8, 3041.73, 2711.97, 114.028, 'Drijya'),
(20281, 9, 3021.78, 2700.04, 114.08, 'Drijya'),
(20281, 10, 3013.88, 2708.98, 113.785, 'Drijya'),
(20281, 11, 3002, 2718.44, 113.769, 'Drijya'),
(20281, 12, 3009.91, 2728.669, 114.377, 'Drijya'),
(20281, 13, 3017.120, 2729.377, 113.76, 'Drijya'),
(20281, 14, 3086.263, 2764.139, 115.84, 'Drijya'),
(20281, 15, 3100.599, 2794.43, 117.958, 'Drijya'),
(20281, 16, 3096.169, 2801.14, 118.221, 'Drijya');
@@ -0,0 +1,57 @@
--
-- "Swamp Eye" Jarl - Creepy Event -- https://ironyca.wordpress.com/2010/09/15/the-10-most-creepy-things-in-wow/
-- Mordant Grimsby SAI
SET @ENTRY := 23843;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,25,0,100,0,0,0,0,0,53,0,23843,1,0,0,0,1,0,0,0,0,0,0,0,"Mordant Grimsby - On Reset - Start Waypoint"),
(@ENTRY,0,1,0,40,0,100,0,1,23843,0,0,54,15000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Mordant Grimsby - On Waypoint 1 Reached - Pause Waypoint"),
(@ENTRY,0,2,0,40,0,100,0,2,23843,0,0,83,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"Mordant Grimsby - On Waypoint 2 Reached - Remove Npc Flag Questgiver"),
(@ENTRY,0,3,0,40,0,100,0,6,23843,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,"Mordant Grimsby - On Waypoint 6 Reached - Run Script"),
(@ENTRY,0,4,0,40,0,100,0,10,23843,0,0,82,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"Mordant Grimsby - On Waypoint 10 Reached - Add Npc Flag Questgiver"),
(@ENTRY,0,5,0,40,0,100,0,11,23843,0,0,54,300000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Mordant Grimsby - On Waypoint 11 Reached - Pause Waypoint");
-- Actionlist SAI
SET @ENTRY := 2384300;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,54,54000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Mordant Grimsby - On Script - Pause Waypoint"),
(@ENTRY,9,1,0,0,0,100,0,3000,3000,0,0,5,381,0,0,0,0,0,1,0,0,0,0,0,0,0,"Mordant Grimsby - On Script - Play Emote 381"),
(@ENTRY,9,2,0,0,0,100,0,1000,1000,0,0,50,186418,45,0,0,0,0,8,0,0,0,-2954.89,-3883.94,32.9969,2.60053,"Mordant Grimsby - On Script - Summon Gameobject 'Mordant's Gift'"),
(@ENTRY,9,3,0,0,0,100,0,2000,2000,0,0,5,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Mordant Grimsby - On Script - Play Emote 0"),
(@ENTRY,9,4,0,0,0,100,0,2000,2000,0,0,1,0,4000,0,0,0,0,1,0,0,0,0,0,0,0,"Mordant Grimsby - On Script - Say Line 0"),
(@ENTRY,9,5,0,0,0,100,0,4000,4000,0,0,1,1,5000,0,0,0,0,1,0,0,0,0,0,0,0,"Mordant Grimsby - On Script - Say Line 1"),
(@ENTRY,9,6,0,0,0,100,0,5000,5000,0,0,1,2,6000,0,0,0,0,1,0,0,0,0,0,0,0,"Mordant Grimsby - On Script - Say Line 2"),
(@ENTRY,9,7,0,0,0,100,0,6000,6000,0,0,1,0,5000,0,0,0,0,19,4792,20,0,0,0,0,0,"Mordant Grimsby - On Script - Say Line 0"),
(@ENTRY,9,8,0,0,0,100,0,5000,5000,0,0,1,3,6000,0,0,0,0,1,0,0,0,0,0,0,0,"Mordant Grimsby - On Script - Say Line 3"),
(@ENTRY,9,9,0,0,0,100,0,6000,6000,0,0,1,1,5000,0,0,0,0,19,4792,20,0,0,0,0,0,"Mordant Grimsby - On Script - Say Line 1"),
(@ENTRY,9,10,0,0,0,100,0,5000,5000,0,0,1,4,8000,0,0,0,0,1,0,0,0,0,0,0,0,"Mordant Grimsby - On Script - Say Line 4"),
(@ENTRY,9,11,0,0,0,100,0,8000,8000,0,0,5,381,0,0,0,0,0,1,0,0,0,0,0,0,0,"Mordant Grimsby - On Script - Play Emote 381");
DELETE FROM `waypoints` WHERE `entry`=23843;
INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`, `point_comment`) VALUES
(23843, 1, -2948.36, -3893.17, 35.0324, 'Mordant Grimsby'),
(23843, 2, -2954, -3888.35, 34.991, 'Mordant Grimsby'),
(23843, 3, -2955.8, -3887.22, 33.729, 'Mordant Grimsby'),
(23843, 4, -2957.36, -3885.06, 33.0995, 'Mordant Grimsby'),
(23843, 5, -2957.23, -3882.92, 32.7325, 'Mordant Grimsby'),
(23843, 6, -2955.98, -3882.95, 32.8433, 'Mordant Grimsby'),
(23843, 7, -2955.55, -3885.08, 33.1672, 'Mordant Grimsby'),
(23843, 8, -2953.84, -3885.88, 33.9242, 'Mordant Grimsby'),
(23843, 9, -2952.99, -3887.91, 35.0223, 'Mordant Grimsby'),
(23843, 10, -2947.74, -3893.74, 35.0308, 'Mordant Grimsby'),
(23843, 11, -2948.36, -3893.17, 35.0324, 'Mordant Grimsby');
-- Texts
DELETE FROM `creature_text` WHERE `CreatureID` IN(23843, 4792);
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `Comment`) VALUES
-- Mordant Grimsby
(23843, 0, 0, 'I brought you a housewarming gift, Jarl.', 12, 0, 100, 1, 0, 0, 22348, 'Mordant Grimsby'),
(23843, 1, 0, 'Go on, open it. I think you\'ll like it.', 12, 0, 100, 25, 0, 0, 22349, 'Mordant Grimsby'),
(23843, 2, 0, 'Jarl?', 12, 0, 100, 0, 0, 0, 22350, 'Mordant Grimsby'),
(23843, 3, 0, 'Jarl, you haven\'t been yourself ever since I arrived. What\'s going on?', 12, 0, 100, 1, 0, 0, 22352, 'Mordant Grimsby'),
(23843, 4, 0, 'I came out here to visit you, Jarl! And I find you living in an empty cabin in the middle of nowhere, babbling about frogs? You\'re hopeless!', 12, 0, 100, 5, 0, 0, 22354, 'Mordant Grimsby'),
-- "Swamp Eye" Jarl
(4792, 0, 0, 'Unless it\'s something I can eat, I don\'t want it.', 12, 0, 100, 6, 0, 0, 22351, '"Swamp Eye" Jarl'),
(4792, 1, 0, 'Nothing. Wanna help me whip up some frog leg stew?', 12, 0, 100, 1, 0, 0, 22353, '"Swamp Eye" Jarl');
@@ -0,0 +1,19 @@
--
-- [Q] Gamel the Cruel -- http://wotlk.openwow.com/quest=11619
-- Karuk SAI
SET @ENTRY := 25435;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,20,0,100,0,11619,0,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,"Karuk - On Quest 'Gamel the Cruel' Finished - Run Script");
-- Actionlist SAI
SET @ENTRY := 2543500;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,12,26450,1,15000,0,0,0,8,0,0,0,2003.83,5851.17,36.2061,2.75762,"Karuk - On Script - Summon Creature 'Ariut'"),
(@ENTRY,9,1,0,0,0,100,0,2000,2000,0,0,1,0,10000,0,0,0,0,19,26450,20,0,0,0,0,0,"Karuk - On Script - Say Line 0");
DELETE FROM `creature_text` WHERE `CreatureID`=26450;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `Comment`) VALUES
(26450, 0, 0, 'The fallen of Pal\'ea will not rest, son. Find the naga priestess!', 12, 0, 100, 1, 0, 0, 25684, 'Ariut');
@@ -0,0 +1,18 @@
--
-- Actionlist SAI
SET @ENTRY := 2384300;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,54,54000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Mordant Grimsby - On Script - Pause Waypoint"),
(@ENTRY,9,1,0,0,0,100,0,3000,3000,0,0,5,381,0,0,0,0,0,1,0,0,0,0,0,0,0,"Mordant Grimsby - On Script - Play Emote 381"),
(@ENTRY,9,2,0,0,0,100,0,1000,1000,0,0,50,186418,45,0,0,0,0,8,0,0,0,-2954.89,-3883.94,32.9969,2.60053,"Mordant Grimsby - On Script - Summon Gameobject Mordant's Gift"),
(@ENTRY,9,3,0,0,0,100,0,0,0,0,0,66,0,0,0,0,0,0,19,4792,20,0,0,0,0,0,"Mordant Grimsby - On Script - Set Orientation Closest Creature Swamp Eye Jarl"),
(@ENTRY,9,4,0,0,0,100,0,2000,2000,0,0,5,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Mordant Grimsby - On Script - Play Emote 0"),
(@ENTRY,9,5,0,0,0,100,0,2000,2000,0,0,1,0,4000,0,0,0,0,1,0,0,0,0,0,0,0,"Mordant Grimsby - On Script - Say Line 0"),
(@ENTRY,9,6,0,0,0,100,0,4000,4000,0,0,1,1,5000,0,0,0,0,1,0,0,0,0,0,0,0,"Mordant Grimsby - On Script - Say Line 1"),
(@ENTRY,9,7,0,0,0,100,0,5000,5000,0,0,1,2,6000,0,0,0,0,1,0,0,0,0,0,0,0,"Mordant Grimsby - On Script - Say Line 2"),
(@ENTRY,9,8,0,0,0,100,0,6000,6000,0,0,1,0,5000,0,0,0,0,19,4792,20,0,0,0,0,0,"Mordant Grimsby - On Script - Say Line 0"),
(@ENTRY,9,9,0,0,0,100,0,5000,5000,0,0,1,3,6000,0,0,0,0,1,0,0,0,0,0,0,0,"Mordant Grimsby - On Script - Say Line 3"),
(@ENTRY,9,10,0,0,0,100,0,6000,6000,0,0,1,1,5000,0,0,0,0,19,4792,20,0,0,0,0,0,"Mordant Grimsby - On Script - Say Line 1"),
(@ENTRY,9,11,0,0,0,100,0,5000,5000,0,0,1,4,8000,0,0,0,0,1,0,0,0,0,0,0,0,"Mordant Grimsby - On Script - Say Line 4"),
(@ENTRY,9,12,0,0,0,100,0,8000,8000,0,0,5,381,0,0,0,0,0,1,0,0,0,0,0,0,0,"Mordant Grimsby - On Script - Play Emote 381");
@@ -0,0 +1,18 @@
--
-- [Q] Strange Brew -- http://wotlk.openwow.com/quest=10511
-- Borgrim Stouthammer SAI
SET @ENTRY := 21151;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,20,0,100,0,10511,0,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,"Borgrim Stouthammer - On Quest 'Strange Brew' Finished - Run Script");
-- Actionlist SAI
SET @ENTRY := 2115100;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,5000,5000,0,0,1,0,5000,0,0,0,0,1,0,0,0,0,0,0,0,"Borgrim Stouthammer - On Script - Say Line 0");
DELETE FROM `creature_text` WHERE `CreatureID`=21151;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `Comment`) VALUES
(21151, 0, 0, 'ACK! That''s the worst thing I''ve ever tasted! I wouldn''t let my ram drink that!', 12, 0, 100, 1, 0, 0, 18830, 'Borgrim Stouthammer');
@@ -0,0 +1,79 @@
DELETE FROM `smart_scripts` WHERE `entryorguid`=28747 AND `source_type`=0 AND `id`=8;
DELETE FROM `smart_scripts` WHERE `entryorguid`=28748 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
(28747, 0, 8, 0, 7, 0, 100, 512, 0, 0, 0, 0, 42, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Quetz\'lun Worshipper - On Evade - Turn Invincibility off'),
(28748, 0, 7, 0, 7, 0, 100, 512, 0, 0, 0, 0, 42, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Serpent-Touched Berserker - On Evade - Turn Invincibility off');
UPDATE `smart_scripts` SET `link`=1,`event_flags`=513 WHERE `entryorguid`IN(25397,25398,25399) AND `source_type`=0 AND `id`=0 AND `link`=0;
DELETE FROM `smart_scripts` WHERE `entryorguid`IN(25397,25398,25399) 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
(25397, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 11, 33345, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Elder Kesuk - On Spellhit \'Complete Ancestor Ritual\' - Cast Yellow Banish State '),
(25397, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 3, 0, 28320, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Elder Kesuk - On Spellhit \'Complete Ancestor Ritual\' - Change Modelid '),
(25397, 0, 3, 4, 61, 0, 100, 0, 0, 0, 0, 0, 114, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 18, 0, 'Elder Kesuk - On Spellhit \'Complete Ancestor Ritual\' - Change Modelid '),
(25397, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Elder Kesuk - On Spellhit \'Complete Ancestor Ritual\' - Change Modelid '),
(25398, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 11, 33345, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Elder Sagani - On Spellhit \'Complete Ancestor Ritual\' - Cast Yellow Banish State '),
(25398, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 3, 0, 28320, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Elder Sagani - On Spellhit \'Complete Ancestor Ritual\' - Change Modelid '),
(25398, 0, 3, 4, 61, 0, 100, 0, 0, 0, 0, 0, 114, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 18, 0, 'Elder Sagani - On Spellhit \'Complete Ancestor Ritual\' - Change Modelid '),
(25398, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Elder Sagani - On Spellhit \'Complete Ancestor Ritual\' - Change Modelid '),
(25399, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 11, 33345, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Elder Takret - On Spellhit \'Complete Ancestor Ritual\' - Cast Yellow Banish State '),
(25399, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 3, 0, 28320, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Elder Takret - On Spellhit \'Complete Ancestor Ritual\' - Change Modelid '),
(25399, 0, 3, 4, 61, 0, 100, 0, 0, 0, 0, 0, 114, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 18, 0, 'Elder Takret - On Spellhit \'Complete Ancestor Ritual\' - Change Modelid '),
(25399, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Elder Takret - On Spellhit \'Complete Ancestor Ritual\' - Change Modelid ');
UPDATE `creature` SET `spawntimesecs`=30 WHERE `id`IN(25397,25398,25399);
UPDATE `creature_template` SET `InhabitType`=4 WHERE `entry` IN(25397,25398,25399);
UPDATE `quest_template_addon` SET `PrevQuestID`=871 WHERE `ID`=872;
SET @BreadCrumb := 1061; -- The Spirits of Stonetalon
SET @FirstQuest := 1062; -- Goblin Invaders
UPDATE `quest_template_addon` SET `PrevQuestID` =0 WHERE `ID`=@FirstQuest;
UPDATE `quest_template_addon` SET `NextQuestID` =0 WHERE `ID`=@BreadCrumb;
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` IN (19,20) AND `SourceEntry`=@BreadCrumb AND `ConditionTypeOrReference`=14 AND `ConditionValue1`=@FirstQuest;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(19, 0, @BreadCrumb, 0, 0, 14, 0, @FirstQuest, 0, 0, 0, 0, 0, '', 'Optional BreadCrumb Quest'),
(20, 0, @BreadCrumb, 0, 0, 14, 0, @FirstQuest, 0, 0, 0, 0, 0, '', 'Optional BreadCrumb Quest');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` IN (19,20) AND `SourceEntry`IN(12451,12161,12425);
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(19, 0, 12451, 0, 0, 14, 0, 12195, 0, 0, 0, 0, 0, '', 'Onward to Camp Oneqwah is optional BreadCrumb Quest'),
(20, 0, 12451, 0, 0, 14, 0, 12195, 0, 0, 0, 0, 0, '', 'Onward to Camp Oneqwah is optional BreadCrumb Quest'),
(19, 0, 12161, 0, 0, 14, 0, 12328, 0, 0, 0, 0, 0, '', 'Ruuna the Blind is optional BreadCrumb Quest'),
(20, 0, 12161, 0, 0, 14, 0, 12328, 0, 0, 0, 0, 0, '', 'Ruuna the Blind is optional BreadCrumb Quest'),
(19, 0, 12425, 0, 0, 14, 0, 12328, 0, 0, 0, 0, 0, '', 'Ruuna the Blind is optional BreadCrumb Quest'),
(20, 0, 12425, 0, 0, 14, 0, 12328, 0, 0, 0, 0, 0, '', 'Ruuna the Blind is optional BreadCrumb Quest');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` IN (19,20) AND `SourceEntry`IN(11175,11406,12182,12189,11573,11995,12469,12542,11996,12511,12208,12210);
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(19, 0, 11175, 0, 0, 14, 0, 11176, 0, 0, 0, 0, 0, '', 'My Daughter is optional BreadCrumb Quest'),
(20, 0, 11175, 0, 0, 14, 0, 11176, 0, 0, 0, 0, 0, '', 'My Daughter is optional BreadCrumb Quest'),
(19, 0, 11406, 0, 0, 14, 0, 11269, 0, 0, 0, 0, 0, '', 'Everything Must Be Ready is optional BreadCrumb Quest'),
(20, 0, 11406, 0, 0, 14, 0, 11269, 0, 0, 0, 0, 0, '', 'Everything Must Be Ready is optional BreadCrumb Quest'),
(19, 0, 12182, 0, 0, 14, 0, 12188, 0, 0, 0, 0, 0, '', 'To Venomspite! is optional BreadCrumb Quest'),
(20, 0, 12182, 0, 0, 14, 0, 12188, 0, 0, 0, 0, 0, '', 'To Venomspite! is optional BreadCrumb Quest'),
(19, 0, 12189, 0, 0, 14, 0, 12188, 0, 0, 0, 0, 0, '', 'Imbeciles Abound! is optional BreadCrumb Quest'),
(20, 0, 12189, 0, 0, 14, 0, 12188, 0, 0, 0, 0, 0, '', 'Imbeciles Abound! is optional BreadCrumb Quest'),
(19, 0, 11573, 0, 0, 14, 0, 11504, 0, 0, 0, 0, 0, '', 'Orfus of Kamagua is optional BreadCrumb Quest'),
(20, 0, 11573, 0, 0, 14, 0, 11504, 0, 0, 0, 0, 0, '', 'Orfus of Kamagua is optional BreadCrumb Quest'),
(19, 0, 11995, 0, 0, 14, 0, 12000, 0, 0, 0, 0, 0, '', 'Your Presence is Required at Stars'' Rest is optional BreadCrumb Quest'),
(20, 0, 11995, 0, 0, 14, 0, 12000, 0, 0, 0, 0, 0, '', 'Your Presence is Required at Stars'' Rest is optional BreadCrumb Quest'),
(19, 0, 12469, 0, 0, 14, 0, 12044, 0, 0, 0, 0, 0, '', 'Return to Sender is optional BreadCrumb Quest'),
(20, 0, 12469, 0, 0, 14, 0, 12044, 0, 0, 0, 0, 0, '', 'Return to Sender is optional BreadCrumb Quest'),
(19, 0, 12542, 0, 0, 14, 0, 12545, 0, 0, 0, 0, 0, '', 'The Call Of The Crusade is optional BreadCrumb Quest'),
(20, 0, 12542, 0, 0, 14, 0, 12545, 0, 0, 0, 0, 0, '', 'The Call Of The Crusade is optional BreadCrumb Quest'),
(19, 0, 11996, 0, 0, 14, 0, 11999, 0, 0, 0, 0, 0, '', 'Your Presence is Required at Agmar''s Hammer is optional BreadCrumb Quest'),
(20, 0, 11996, 0, 0, 14, 0, 11999, 0, 0, 0, 0, 0, '', 'Your Presence is Required at Agmar''s Hammer is optional BreadCrumb Quest'),
(19, 0, 12511, 0, 0, 14, 0, 12292, 0, 0, 0, 0, 0, '', 'The Hills Have Us is optional BreadCrumb Quest'),
(20, 0, 12511, 0, 0, 14, 0, 12292, 0, 0, 0, 0, 0, '', 'The Hills Have Us is optional BreadCrumb Quest'),
(19, 0, 12208, 0, 0, 14, 0, 11984, 0, 0, 0, 0, 0, '', 'Good Troll Hunting is optional BreadCrumb Quest'),
(20, 0, 12208, 0, 0, 14, 0, 11984, 0, 0, 0, 0, 0, '', 'Good Troll Hunting is optional BreadCrumb Quest'),
(19, 0, 12210, 0, 0, 14, 0, 11984, 0, 0, 0, 0, 0, '', 'Troll Season! is optional BreadCrumb Quest'),
(20, 0, 12210, 0, 0, 14, 0, 11984, 0, 0, 0, 0, 0, '', 'Troll Season! is optional BreadCrumb Quest');
@@ -0,0 +1 @@
UPDATE `quest_template_addon` SET `NextQuestID`=0 WHERE `ID`IN(12451,12161,12425,11175,11406,12182,12189,11573,11995,12469,12542,11996,12511,12208,12210);
@@ -0,0 +1,7 @@
--
-- Highlord Bolvar Fordragon SAI
SET @ENTRY := 27872;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,20,0,100,0,12499,0,0,0,68,14,0,0,0,0,0,7,0,0,0,0,0,0,0,"Highlord Bolvar Fordragon - On Quest 'Return To Angrathar' Finished - Play Movie 14");
@@ -0,0 +1,3 @@
--
UPDATE `creature` SET `PhaseId` = 170 WHERE `guid` IN (110540,110541,110544,110545,110546,110547,110551,110552,110553,110554);
UPDATE `creature_addon` SET `bytes1`=1 WHERE `guid`=111075;
@@ -0,0 +1,2 @@
--
DELETE FROM `creature_loot_template` WHERE `Entry`=11444 AND `Reference`=35015;
@@ -0,0 +1,23 @@
DELETE FROM `creature_equip_template` WHERE `CreatureID`=794 AND `ID`=1;
INSERT INTO `creature_equip_template` (`CreatureID`, `ItemID1`) VALUES
(794, 1117);
-- Matt SAI
SET @ENTRY := 794;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (@ENTRY*100+00,@ENTRY*100+01) 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
(@ENTRY,0,0,0,25,0,100,512,0,0,0,0,53,0,794,1,0,0,0,1,0,0,0,0,0,0,0,"Matt - On Reset - Start Waypoint"),
(@ENTRY,0,1,0,40,0,100,512,1,794,0,0,54,3597000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Matt - On Waypoint 1 Reached - Pause Waypoint"),
(@ENTRY,0,2,0,40,0,100,512,1,794,0,0,80,@ENTRY*100+00,0,0,0,0,0,1,0,0,0,0,0,0,0,"Matt - On Waypoint 1 Reached - Run Script"),
(@ENTRY,0,3,0,40,0,100,512,26,794,0,0,54,900000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Matt - On Waypoint 26 Reached - Pause Waypoint"),
(@ENTRY,0,4,0,40,0,100,512,26,794,0,0,80,@ENTRY*100+01,0,0,0,0,0,1,0,0,0,0,0,0,0,"Matt - On Waypoint 26 Reached - Run Script"),
(@ENTRY*100+00,9,0,0,0,0,100,0,0,0,0,0,71,1,0,1117,0,0,0,1,0,0,0,0,0,0,0,"Matt - On Script - Change Equipment"),
(@ENTRY*100+00,9,1,0,0,0,100,0,0,0,0,0,66,0,0,0,0,0,0,8,0,0,0,-9387.45,-117.388,58.8643,2.61799,"Matt - On Script - Set Orientation 2,61799"),
(@ENTRY*100+00,9,2,0,0,0,100,0,3597000,3597000,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Matt - On Script - Say Line 0"),
(@ENTRY*100+00,9,3,0,0,0,100,0,0,0,0,0,71,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Matt - On Script - Change Equipment"),
(@ENTRY*100+01,9,0,0,0,0,100,0,0,0,0,0,71,1,0,1117,0,0,0,1,0,0,0,0,0,0,0,"Matt - On Script - Change Equipment"),
(@ENTRY*100+01,9,1,0,0,0,100,0,500,500,0,0,66,0,0,0,0,0,0,8,0,0,0,-9429.23,148.94,56.5713,2.118,"Matt - On Script - Set Orientation 2,118"),
(@ENTRY*100+01,9,2,0,0,0,100,0,897000,897000,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Matt - On Script - Say Line 1"),
(@ENTRY*100+01,9,3,0,0,0,100,0,0,0,0,0,71,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Matt - On Script - Change Equipment");
@@ -0,0 +1,115 @@
-- Showdown (10742)
-- Showdown (10806)
DELETE FROM `creature_template_addon` WHERE `entry`=22448;
DELETE FROM `creature_addon` WHERE `guid` IN (SELECT `guid` FROM `creature` WHERE `id` IN(22496, 20555));
DELETE FROM `creature` WHERE `id` IN(22496, 20555);
DELETE FROM `waypoint_data` WHERE `id`=868810;
DELETE FROM `event_scripts` WHERE `id` IN(14462, 14525);
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `dataint`, `x`, `y`, `z`, `o`) VALUES
(14462, 0, 10, 20555, 300000, 0, 3703.51, 5387.74, -4.37, 5.9),
(14462, 0, 10, 22448, 300000, 0, 3688, 5353, 25, 0),
(14525, 0, 10, 20555, 300000, 0, 3703.51, 5387.74, -4.37, 5.9),
(14525, 0, 10, 22473, 300000, 0, 3718.36, 5361.27, -8.0, 2.14);
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=17 AND `SourceEntry` IN (39224,39223);
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(17, 0, 39224, 0, 0, 29, 0, 20555, 100, 0, 1, 0, 0, '', 'Require no Goc nearby'),
(17, 0, 39223, 0, 0, 29, 0, 20555, 100, 0, 1, 0, 0, '', 'Require no Goc nearby');
DELETE FROM `creature_text` WHERE `CreatureID` IN (20555, 22473, 22448);
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `Comment`) VALUES
(20555, 0, 0, 'Who dares place this affront upon the altar of Goc?', 14, 0, 100, 53, 0, 0, 20381, 'Goc'),
(20555, 1, 0, 'Who dares rouse Goc from his restful slumber?', 14, 0, 100, 53, 0, 0, 20317, 'Goc'),
(20555, 2, 0, 'Your name is as insignificant to me as the names of the thousands who have died under the might of Goc. I will crush you and $N', 14, 0, 100, 53, 0, 0, 20321, 'Goc'),
(22473, 0, 0, 'It''s only right that you know the name of the one who will take your life.', 14, 0, 100, 1, 0, 0, 20323, 'Baron Sablemane'),
(22473, 1, 0, 'Baron Sablemane. It will be on your lips as you gasp your dying breath.', 14, 0, 100, 1, 0, 0, 20324, 'Baron Sablemane'),
(22473, 2, 0, 'Let us begin.', 14, 0, 100, 15, 0, 0, 20325, 'Baron Sablemane'),
(22473, 3, 0, 'We will speak again, but away from here.', 14, 0, 100, 1, 0, 0, 20327, 'Baron Sablemane'),
(22448, 0, 0, 'I am Rexxar, son of the Mok''Nathal, champion of the Horde.', 14, 0, 100, 397, 0, 0, 20318, 'Rexxar'),
(22448, 1, 0, 'And their torment at your hands is at an end. By my name, I shall put an end to your life.', 14, 0, 100, 113, 0, 0, 20319, 'Rexxar'),
(22448, 2, 0, 'Prepare yourself for the end.', 14, 0, 100, 15, 0, 0, 20320, 'Rexxar'),
(22448, 3, 0, 'I could not have achieved this victory without you. We will speak back at Thunderlord Stronghold.', 14, 0, 100, 397, 0, 0, 20326, 'Rexxar');
UPDATE `creature_template` SET `InhabitType`=5, `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=22448;
UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='' WHERE `entry` IN (22473,20555);
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (20555,22473,22448) AND `source_type`=0;
DELETE FROM `smart_scripts` WHERE `entryorguid` IN(22473*100, 22473*100+1, 22448*100, 22448*100+1) 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
(20555, 0, 0, 0, 38, 0, 100, 0, 1, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 19, 22448, 100, 0, 0, 0, 0, 0, 'Goc - On Data Set - Set Orientation'),
(20555, 0, 1, 0, 38, 0, 100, 0, 1, 1, 0, 0, 1, 2, 0, 0, 0, 0, 0, 21, 100, 0, 0, 0, 0, 0, 0, 'Goc - On Data Set - Say Line 2'),
(20555, 0, 2, 9, 38, 0, 100, 0, 1, 2, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 100, 0, 0, 0, 0, 0, 0, 'Goc - On Data Set - Attack Start'),
(20555, 0, 3, 0, 6, 0, 100, 0, 0, 0, 0, 0, 11, 45106, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Goc - On Death - Cast Showdown: Goc Kill Credit'),
(20555, 0, 4, 0, 7, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Goc - On Evade - Despawn'),
(20555, 0, 5, 0, 0, 0, 100, 0, 9000, 12000, 11000, 15000, 11, 38784, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Goc - In Combat - Cast Ground Smash'),
(20555, 0, 6, 0, 0, 0, 100, 0, 3000, 6000, 11000, 15000, 11, 38783, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Goc - In Combat - Cast Boulder Volley'),
(20555, 0, 7, 8, 25, 0, 100, 0, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Goc - On Reset - Set Unit Flags'),
(20555, 0, 8, 0, 61, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Goc - On Reset - Set React Passive'),
(20555, 0, 9, 10, 61, 0, 100, 0, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Goc - Dataset - Remove Unit Flags'),
(20555, 0, 10, 0, 61, 0, 100, 0, 0, 0, 0, 0, 8, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Goc - Dataset - Set React Aggressive'),
(20555, 0, 11, 0, 38, 0, 100, 0, 1, 3, 0, 0, 66, 0, 0, 0, 0, 0, 0, 19, 22473, 100, 0, 0, 0, 0, 0, 'Goc - On Data Set - Set Orientation'),
(20555, 0, 12, 0, 2, 0, 100, 1, 0, 50, 0, 0, 45, 0, 1, 0, 0, 0, 0, 19, 22473, 60 , 0, 0, 0, 0, 0, "Goc - On health ptc - Set data"),
(22473, 0, 0, 0, 37, 0, 100, 257, 0, 0, 0, 0, 80, 22473*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Baron Sablemane - On Update - Start Script'),
(22473, 0, 1, 0, 7, 0, 100, 257, 0, 0, 0, 0, 80, 22473*100+1, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Baron Sablemane - On Evade - Start Script'),
(22473, 0, 2, 0, 0, 1, 100, 0, 0, 1000, 3000, 3000, 11, 17290, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Baron Sablemane - In Combat - Cast Fireball'),
(22473, 0, 3, 0, 0, 1, 100, 0, 4000, 7000, 11000, 20000, 11, 39268, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Baron Sablemane - In Combat - Cast Chains of Ice'),
(22473*100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Baron Sablemane - On Update - Set Unit Flags'),
(22473*100, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 41232, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Baron Sablemane - On Update - Cast Teleport Visual Only'),
(22473*100, 9, 2, 0, 0, 0, 100, 0, 500, 500, 0, 0, 1, 1, 0, 0, 0, 0, 0, 19, 20555, 100, 0, 0, 0, 0, 0, 'Baron Sablemane - On Update - Say Line 1 Target'),
(22473*100, 9, 3, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Baron Sablemane - On Update - Say Line 0'),
(22473*100, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 45, 1, 3, 0, 0, 0, 0, 19, 20555, 100, 0, 0, 0, 0, 0, 'Baron Sablemane - On Update - Set Data'),
(22473*100, 9, 5, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Baron Sablemane - On Update - Say Line 1'),
(22473*100, 9, 6, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 45, 1, 1, 0, 0, 0, 0, 19, 20555, 100, 0, 0, 0, 0, 0, 'Baron Sablemane - On Update - Set Data'),
(22473*100, 9, 7, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Baron Sablemane - On Update - Say Line 1'),
(22473*100, 9, 8, 0, 0, 0, 100, 0, 500, 500, 0, 0, 45, 1, 2, 0, 0, 0, 0, 19, 20555, 100, 0, 0, 0, 0, 0, 'Baron Sablemane - On Update - Set Data'),
(22473*100, 9, 9, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Baron Sablemane - On Update - Remove unitflag'),
(22473*100, 9, 10, 0, 0, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Baron Sablemane - On Update - Start attack'),
(22473*100, 9, 11, 0, 0, 0, 100, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Baron Sablemane - In spell hit - Set event phase 1'),
(22473*100+1, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - On Update - demorph'),
(22473*100+1, 9, 1, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Baron Sablemane - On Update - Say Line 3'),
(22473*100+1, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 21, 50, 0, 0, 0, 0, 0, 0, 'Rexxar - On Update - Set Orientation'),
(22473*100+1, 9, 3, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 11, 41232, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Baron Sablemane - On Update - Cast Teleport Visual Only'),
(22473*100+1, 9, 4, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Baron Sablemane - On Update - Despawn'),
(22473, 0, 6, 5, 38, 0, 100, 0, 0, 1, 0, 0, 22, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Baron Sablemane - In data set - Set event phase 2'),
(22473, 0, 5, 0, 61, 0, 100, 0, 0, 0, 0, 0, 11, 39255, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Baron Sablemane - In Data set - Cast Black Dragon Form'),
(22473, 0, 6, 7, 8, 0, 100, 1, 39255, 0, 0, 0, 3, 0, 21079, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Baron Sablemane - In spell hit - morph'),
(22473, 0, 7, 0, 61, 0, 100, 0, 0, 0, 0, 0, 21, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Baron Sablemane - In spell hit - Allow movements'),
(22473, 0, 8, 0, 0, 2, 100, 0, 7000, 9000, 9000, 12000, 11, 39263, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Baron Sablemane - In Combat - Flame Breath'),
(22473, 0, 9, 0, 0, 2, 100, 1, 5000, 5000, 0, 0, 3, 0, 21079, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Baron Sablemane - IC Phase2 no repeat - morph in case the spell hit fails'),
(22448, 0, 0, 1, 37, 0, 100, 257, 0, 0, 0, 0, 43, 0 , 20964, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - On AI Init - mount'),
(22448, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 60, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - On AI Init - Set Flying'),
(22448, 0, 2, 0, 60, 0, 100, 257, 0, 0, 0, 0, 80, 22448*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - On Update - Start Script'),
(22448, 0, 3, 0, 7, 0, 100, 257, 0, 0, 0, 0, 80, 22448*100+1, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - On Evade - Start Script'),
(22448, 0, 4, 0, 0, 0, 100, 1, 4000, 4000, 0, 0, 11, 39269, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - In Combat - Cast Summon Misha'),
(22448, 0, 5, 0, 0, 0, 100, 1, 16000, 16000, 0, 0, 11, 39251, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - In Combat - Cast Summon Huffer'),
(22448, 0, 6, 0, 0, 0, 100, 1, 30000, 30000, 0, 0, 11, 39253, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - In Combat - Cast Summon Spirit'),
(22448*100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - On Update - Set Unit Flags'),
(22448*100, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 17, 27, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - On Update - Set Emote State'),
(22448*100, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, 3718.36, 5361.27, -6.5, 0, 'Rexxar - On Update - Move to Point'),
(22448*100, 9, 3, 0, 0, 0, 100, 0, 2500, 2500, 0, 0, 1, 0, 0, 0, 0, 0, 0, 19, 20555, 100, 0, 0, 0, 0, 0, 'Rexxar - On Update - Say Line 0 Target'),
(22448*100, 9, 4, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 43, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - On Update - Dismount'),
(22448*100, 9, 5, 0, 0, 0, 100, 0, 0, 0, 0, 0, 91, 2 , 3, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - On Update - Remove hover'),
(22448*100, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 60, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - On Update - Set Fly off'),
(22448*100, 9, 7, 0, 0, 0, 100, 0, 500, 500, 0, 0, 66, 0, 0, 0, 0, 0, 0, 19, 20555, 100, 0, 0, 0, 0, 0, 'Rexxar - On Update - Set Orientation'),
(22448*100, 9, 8, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - On Update - Say Line 0'),
(22448*100, 9, 9, 0, 0, 0, 100, 0, 0, 0, 0, 0, 45, 1, 0, 0, 0, 0, 0, 19, 20555, 100, 0, 0, 0, 0, 0, 'Rexxar - On Update - Set Data'),
(22448*100, 9, 10, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - On Update - Say Line 1'),
(22448*100, 9, 11, 0, 0, 0, 100, 0, 8000, 8000, 0, 0, 45, 1, 1, 0, 0, 0, 0, 19, 20555, 100, 0, 0, 0, 0, 0, 'Rexxar - On Update - Set Data'),
(22448*100, 9, 12, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - On Update - Say Line 2'),
(22448*100, 9, 13, 0, 0, 0, 100, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - On Update - Set Home Position'),
(22448*100, 9, 14, 0, 0, 0, 100, 0, 500, 500, 0, 0, 45, 1, 2, 0, 0, 0, 0, 19, 20555, 100, 0, 0, 0, 0, 0, 'Rexxar - On Update - Set Data'),
(22448*100, 9, 15, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - On Update - Remove Unit Flags'),
(22448*100, 9, 16, 0, 0, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 19, 20555, 100, 0, 0, 0, 0, 0, 'Rexxar - On Update - Attack Start'),
(22448*100+1, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 19, 22492, 100, 0, 0, 0, 0, 0, 'Rexxar - On Update - Despawn Target'),
(22448*100+1, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 19, 22498, 100, 0, 0, 0, 0, 0, 'Rexxar - On Update - Despawn Target'),
(22448*100+1, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 19, 22490, 100, 0, 0, 0, 0, 0, 'Rexxar - On Update - Despawn Target'),
(22448*100+1, 9, 3, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - On Update - Say Line 3'),
(22448*100+1, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 21, 50, 0, 0, 0, 0, 0, 0, 'Rexxar - On Update - Set Orientation'),
(22448*100+1, 9, 5, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 43, 0, 20964, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - On Update - Mount'),
(22448*100+1, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 59, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - On Update - Set run'),
(22448*100+1, 9, 7, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 34873, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - On Update - Cast fly'),
(22448*100+1, 9, 8, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 39333, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - On Update - Cast Rexxar Speed Increase'),
(22448*100+1, 9, 9, 0, 0, 0, 100, 0, 0, 0, 0, 0, 69, 2, 0, 0, 0, 0, 0, 8, 0, 0, 0, 3625, 5468, 104, 0, 'Rexxar - On Update - Move To Position'),
(22448*100+1, 9, 10, 0, 0, 0, 100, 0, 7000, 7000, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - On Update - Despawn');
@@ -0,0 +1,100 @@
-- Fix position
UPDATE `creature` SET `position_x` = -533.573547, `position_y` = -2984.998291, `position_z` = 92.891449 WHERE `guid` = 302320;
-- Gruk SAI
SET @ENTRY := 14850;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,25,0,100,0,0,0,0,0,53,0,14850,1,0,0,0,1,0,0,0,0,0,0,0,"Gruk - On Reset - Start Waypoint"),
(@ENTRY,0,1,0,40,0,100,0,2,8000,0,0,54,8000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Gruk - On Waypoint 2 Reached - Pause Waypoint"),
(@ENTRY,0,2,0,40,0,100,0,4,14850,0,0,54,5000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Gruk - On Waypoint 4 Reached - Pause Waypoint"),
(@ENTRY,0,3,0,40,0,100,0,10,14850,0,0,54,10000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Gruk - On Waypoint 10 Reached - Pause Waypoint"),
(@ENTRY,0,4,0,40,0,100,0,16,14850,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,"Gruk - On Waypoint 16 Reached - Run Script"),
(@ENTRY,0,5,0,40,0,100,0,21,14850,0,0,54,3000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Gruk - On Waypoint 21 Reached - Pause Waypoint"),
(@ENTRY,0,6,0,40,0,100,0,27,14850,0,0,80,@ENTRY*100+01,2,0,0,0,0,1,0,0,0,0,0,0,0,"Gruk - On Waypoint 27 Reached - Run Script"),
(@ENTRY,0,7,0,40,0,100,0,29,14850,0,0,54,120000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Gruk - On Waypoint 29 Reached - Pause Waypoint");
-- Actionlist SAI
SET @ENTRY := 1485000;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,54,11000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Gruk - On Script - Pause Waypoint"),
(@ENTRY,9,1,0,0,0,100,0,1000,1000,0,0,66,0,0,0,0,0,0,19,14859,30,0,0,0,0,0,"Gruk - On Script - Set Orientation Closest Creature 'Guard Taruc'"),
(@ENTRY,9,2,0,0,0,100,0,2000,2000,0,0,1,0,5000,0,0,0,0,1,0,0,0,0,0,0,0,"Gruk - On Script - Say Line 0"),
(@ENTRY,9,3,0,0,0,100,0,5000,5000,0,0,1,0,4000,0,0,0,0,19,14859,30,0,0,0,0,0,"Gruk - On Script - Say Line 0"),
(@ENTRY,9,4,0,0,0,100,0,4000,4000,0,0,1,1,5000,0,0,0,0,1,0,0,0,0,0,0,0,"Gruk - On Script - Say Line 1");
-- Actionlist SAI
SET @ENTRY := 1485001;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,54,12000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Gruk - On Script - Pause Waypoint"),
(@ENTRY,9,1,0,0,0,100,0,1000,1000,0,0,66,0,0,0,0,0,0,19,14859,30,0,0,0,0,0,"Gruk - On Script - Set Orientation Closest Creature 'Guard Taruc'"),
(@ENTRY,9,2,0,0,0,100,0,2000,2000,0,0,1,2,4000,0,0,0,0,1,0,0,0,0,0,0,0,"Gruk - On Script - Say Line 2"),
(@ENTRY,9,3,0,0,0,100,0,4000,4000,0,0,1,1,5000,0,0,0,0,19,14859,30,0,0,0,0,0,"Gruk - On Script - Say Line 1"),
(@ENTRY,9,4,0,0,0,100,0,5000,5000,0,0,1,3,5000,0,0,0,0,1,0,0,0,0,0,0,0,"Gruk - On Script - Say Line 3");
DELETE FROM `waypoints` WHERE `entry`=14850;
INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`, `point_comment`) VALUES
(14850,1,-533.573547,-2984.998291,92.891449, 'Gruk'),
(14850,2,-532.475403,-2982.788330,92.937279, 'Gruk'),
(14850,3,-535.363220,-2986.683350,92.872704, 'Gruk'),
(14850,4,-542.794800,-2987.175781,92.978973, 'Gruk'),
(14850,5,-539.589355,-2979.670410,93.142120, 'Gruk'),
(14850,6,-540.856995,-2972.263428,93.218491, 'Gruk'),
(14850,7,-542.508789,-2968.742188,91.666573, 'Gruk'),
(14850,8,-556.491699,-2958.448730,91.808884, 'Gruk'),
(14850,9,-560.313782,-2959.109131,91.671059, 'Gruk'),
(14850,10,-563.526733,-2961.728027,91.670532, 'Gruk'),
(14850,11,-554.859009,-2957.945313,91.988205, 'Gruk'),
(14850,12,-542.145020,-2969.399414,91.667198, 'Gruk'),
(14850,13,-541.034119,-2970.875977,92.783127, 'Gruk'),
(14850,14,-540.202698,-2974.504883,93.244942, 'Gruk'),
(14850,15,-538.437439,-2986.249268,92.934875, 'Gruk'),
(14850,16,-534.473755,-2989.052246,92.933678, 'Gruk'),
(14850,17,-537.863098,-2989.072754,92.941650, 'Gruk'),
(14850,18,-541.218079,-2972.432129,93.217178, 'Gruk'),
(14850,19,-542.573792,-2969.562012,91.666840, 'Gruk'),
(14850,20,-555.276855,-2959.603027,91.810295, 'Gruk'),
(14850,21,-557.442505,-2961.866943,91.666817, 'Gruk'),
(14850,22,-549.292786,-2960.807861,91.770721, 'Gruk'),
(14850,23,-541.476624,-2969.215576,91.667030, 'Gruk'),
(14850,24,-540.882019,-2970.607422,92.726028, 'Gruk'),
(14850,25,-540.170898,-2974.454590,93.247406, 'Gruk'),
(14850,26,-538.799744,-2988.168457,92.916451, 'Gruk'),
(14850,27,-534.022583,-2988.809082,92.925842, 'Gruk'),
(14850,28,-535.851135,-2988.203857,92.910934, 'Gruk'),
(14850,29,-537.077087,-2984.784668,92.954727, 'Gruk');
DELETE FROM `creature_text` WHERE `CreatureID` IN (14850, 14859);
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `Comment`) VALUES
-- Gruk
(14850, 0, 0, 'Would you like something more to eat sir?', 12, 0, 100, 1, 0, 0, 10066, 'Gruk'),
(14850, 1, 0, 'Right away sir.', 12, 0, 100, 1, 0, 0, 10267, 'Gruk'),
(14850, 2, 0, 'Here is your bread sir.', 12, 0, 100, 1, 0, 0, 10184, 'Gruk'),
(14850, 3, 0, 'As you wish sir.', 12, 0, 100, 1, 0, 0, 10266, 'Gruk'),
-- Guard Taruc
(14859, 0, 0, 'More bread boy!', 12, 0, 100, 1, 0, 0, 10183, 'Guard Taruc'),
(14859, 1, 0, 'Aaahh... Very good. Now scat!', 12, 0, 100, 1, 0, 0, 10265, 'Guard Taruc');
-- Grub SAI
SET @ENTRY := 3443;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,1,0,100,0,8000,8000,8000,8000,5,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Grub - Out of Combat - Play Emote 1");
-- Duhng SAI
SET @ENTRY := 8306;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,1,0,100,0,8000,10000,8000,10000,5,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Duhng - Out of Combat - Play Emote 1");
-- Guard Taruc SAI
SET @ENTRY := 14859;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,1,0,100,0,8000,9000,8000,9000,5,7,0,0,0,0,0,1,0,0,0,0,0,0,0,"Guard Taruc - Out of Combat - Play Emote 7");
@@ -0,0 +1,3 @@
DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_skeram_true_fulfillment';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(785,'spell_skeram_true_fulfillment');
@@ -0,0 +1,129 @@
-- [Q] Totem of Vark -- http://wotlk.openwow.com/quest=9542
-- this spell must be casted later in the spawnscript
UPDATE `quest_template_addon` SET `SourceSpellID`=0 WHERE `ID`=9542;
-- Totem of Yor SAI
SET @ENTRY := 17363;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,19,0,100,0,9542,0,0,0,12,17393,1,360000,0,0,0,8,0,0,0,-4637.05,-13067.3,-13.5973,0.26767,"Totem of Yor - On Quest 'Totem of Vark' Taken - Summon Creature 'Stillpine Ancestor Yor'");
-- spawncondition
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=22 AND `SourceGroup`=1 AND `SourceEntry`=17363;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
(22,1,17363,0,0,29,0,17393,50,0,1,0,0,"","Totem of Yor - Do not summon Stillpine Ancestor Yor if creature is in 50 yards range");
DELETE FROM `spell_linked_spell` WHERE `spell_trigger` IN (30448, -30448, 30447);
INSERT INTO `spell_linked_spell` (`spell_trigger`, `spell_effect`, `type`, `comment`) VALUES
(30448, 32213, 2, 'Shadow of the Forest - Shadow of the Forest SI DND'),
(30447, 32213, 2, 'Shadow of the Forest - Shadow of the Forest SI DND'),
(-30448, -32213, 0, 'Shadow of the Forest - Shadow of the Forest SI DND');
-- Stillpine Ancestor Yor SAI
SET @ENTRY := 17393;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,1,11,0,100,1,0,0,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,"Stillpine Ancestor Yor - On Respawn - Run Script (No Repeat)"),
(@ENTRY,0,1,0,61,0,100,0,0,0,0,0,64,1,0,0,0,0,0,21,30,0,0,0,0,0,0,"Stillpine Ancestor Yor - On Respawn - Store Targetlist (No Repeat)"),
(@ENTRY,0,2,0,40,0,100,0,63,17393,0,0,80,@ENTRY*100+01,2,0,0,0,0,1,0,0,0,0,0,0,0,"Stillpine Ancestor Yor - On Waypoint 63 Reached - Run Script");
-- Actionlist SAI
SET @ENTRY := 1739300;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,3,0,17002,0,0,0,0,1,0,0,0,0,0,0,0,"Stillpine Ancestor Yor - On Script - Morph To Model 17002"),
(@ENTRY,9,1,0,0,0,100,0,1000,1000,0,0,11,25035,0,0,0,0,0,1,0,0,0,0,0,0,0,"Stillpine Ancestor Yor - On Script - Cast 'Elemental Spawn-in'"),
(@ENTRY,9,2,0,0,0,100,0,2000,2000,0,0,66,0,0,0,0,0,0,12,1,0,0,0,0,0,0,"Stillpine Ancestor Yor - On Script - Set Orientation Stored Player"),
(@ENTRY,9,3,0,0,0,100,0,0,0,0,0,1,0,5000,0,0,0,0,12,1,0,0,0,0,0,0,"Stillpine Ancestor Yor - On Script - Say Line 0"),
(@ENTRY,9,4,0,0,0,100,0,1000,1000,0,0,69,0,0,0,0,0,0,8,0,0,0,-4646.63,-13015.4,-1.38673,1.6751,"Stillpine Ancestor Yor - On Script - Move To Position"),
(@ENTRY,9,5,0,0,0,100,0,13000,13000,0,0,11,30446,0,0,0,0,0,1,0,0,0,0,0,0,0,"Stillpine Ancestor Yor - On Script - Cast 'Yor Transform Furbolg DND'"),
(@ENTRY,9,6,0,0,0,100,0,2000,2000,0,0,69,0,0,0,0,0,0,8,0,0,0,-4679.14,-12985,0.5803,1.93085,"Stillpine Ancestor Yor - On Script - Move To Position"),
(@ENTRY,9,7,0,0,0,100,0,13000,13000,0,0,66,0,0,0,0,0,0,12,1,0,0,0,0,0,0,"Stillpine Ancestor Yor - On Script - Set Orientation Stored Player"),
(@ENTRY,9,8,0,0,0,100,0,3000,3000,0,0,1,1,5000,0,0,0,0,1,0,0,0,0,0,0,0,"Stillpine Ancestor Yor - On Script - Say Line 1"),
(@ENTRY,9,9,0,0,0,100,0,3000,3000,0,0,11,30448,0,0,0,0,0,12,1,0,0,0,0,0,0,"Stillpine Ancestor Yor - On Script - Cast 'Shadow of the Forest'"),
(@ENTRY,9,10,0,0,0,100,0,1000,1000,0,0,11,30447,0,0,0,0,0,1,0,0,0,0,0,0,0,"Stillpine Ancestor Yor - On Script - Invoker Cast 'Shadow of the Forest'"),
(@ENTRY,9,11,0,0,0,100,0,2000,2000,0,0,1,2,5000,0,0,0,0,1,0,0,0,0,0,0,0,"Stillpine Ancestor Yor - On Script - Say Line 2"),
(@ENTRY,9,12,0,0,0,100,0,5000,5000,0,0,53,1,17393,0,0,0,0,1,0,0,0,0,0,0,0,"Stillpine Ancestor Yor - On Script - Start Waypoint");
-- Actionlist SAI
SET @ENTRY := 1739301;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,1000,1000,0,0,1,3,5000,0,0,0,0,12,1,0,0,0,0,0,0,"Stillpine Ancestor Yor - On Script - Say Line 3"),
(@ENTRY,9,1,0,0,0,100,0,3000,3000,0,0,11,25035,0,0,0,0,0,1,0,0,0,0,0,0,0,"Stillpine Ancestor Yor - On Script - Cast 'Elemental Spawn-in'"),
(@ENTRY,9,2,0,0,0,100,0,3000,3000,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Stillpine Ancestor Yor - On Script - Despawn Instant");
DELETE FROM `creature_text` WHERE `CreatureID`=17393;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `Comment`) VALUES
(17393, 0, 0, '[Furbolg] Come, $n. Let us leave the water together, purified.', 12, 0, 100, 0, 0, 0, 13901, 'Stillpine Ancestor Yor'),
(17393, 1, 0, '[Furbolg] We go now, together. We will seek Vark.', 12, 0, 100, 0, 0, 0, 13903, 'Stillpine Ancestor Yor'),
(17393, 2, 0, '[Furbolg] Follow me to Vark.', 12, 0, 100, 0, 0, 0, 13907, 'Stillpine Ancestor Yor'),
(17393, 3, 0, '[Furbolg] Hurry, $n. Vark awaits you.', 12, 0, 100, 0, 0, 0, 13927, 'Stillpine Ancestor Yor');
DELETE FROM `waypoints` WHERE `entry`=17393;
INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`, `point_comment`) VALUES
(17393, 1, -4679.14,-12985,0.5803, 'Stillpine Ancestor Yor'),
(17393, 2, -4680.61,-12963.3,2.66436, 'Stillpine Ancestor Yor'),
(17393, 3, -4681.2,-12949.7,5.54, 'Stillpine Ancestor Yor'),
(17393, 4, -4682.73,-12929.5,3.47035, 'Stillpine Ancestor Yor'),
(17393, 5, -4667.73,-12909.8,1.50962, 'Stillpine Ancestor Yor'),
(17393, 6, -4647.96,-12887.9,2.97161, 'Stillpine Ancestor Yor'),
(17393, 7, -4639.09,-12877.2,4.9471, 'Stillpine Ancestor Yor'),
(17393, 8, -4630.71,-12855.1,4.28118, 'Stillpine Ancestor Yor'),
(17393, 9, -4620.17,-12829.9,6.06746, 'Stillpine Ancestor Yor'),
(17393, 10, -4612,-12814,7.12509, 'Stillpine Ancestor Yor'),
(17393, 11, -4601.96,-12795.7,3.27105, 'Stillpine Ancestor Yor'),
(17393, 12, -4588.53,-12774.2,7.44323, 'Stillpine Ancestor Yor'),
(17393, 13, -4575.77,-12760.8,6.10979, 'Stillpine Ancestor Yor'),
(17393, 14, -4563.73,-12744.2,9.99685, 'Stillpine Ancestor Yor'),
(17393, 15, -4554.96,-12729,12.2105, 'Stillpine Ancestor Yor'),
(17393, 16, -4547.41,-12712.1,9.81412, 'Stillpine Ancestor Yor'),
(17393, 17, -4538.2,-12689.2,12.5838, 'Stillpine Ancestor Yor'),
(17393, 18, -4533.22,-12668.1,16.8651, 'Stillpine Ancestor Yor'),
(17393, 19, -4532.96,-12656.8,15.2664, 'Stillpine Ancestor Yor'),
(17393, 20, -4532.78,-12637.9,16.5789, 'Stillpine Ancestor Yor'),
(17393, 21, -4533.02,-12619.1,12.0263, 'Stillpine Ancestor Yor'),
(17393, 22, -4532.77,-12592.5,14.642, 'Stillpine Ancestor Yor'),
(17393, 23, -4535.16,-12572.5,11.9603, 'Stillpine Ancestor Yor'),
(17393, 24, -4521.38,-12547.2,8.20642, 'Stillpine Ancestor Yor'),
(17393, 25, -4506.74,-12520.5,2.71515, 'Stillpine Ancestor Yor'),
(17393, 26, -4492.57,-12495.4,4.36968, 'Stillpine Ancestor Yor'),
(17393, 27, -4476.92,-12469.2,2.26036, 'Stillpine Ancestor Yor'),
(17393, 28, -4462.38,-12438.4,2.68436, 'Stillpine Ancestor Yor'),
(17393, 29, -4430.42,-12442,2.38524, 'Stillpine Ancestor Yor'),
(17393, 30, -4419.91,-12429.3,3.2091, 'Stillpine Ancestor Yor'),
(17393, 31, -4408.61,-12400.1,5.02559, 'Stillpine Ancestor Yor'),
(17393, 32, -4414.42,-12370.4,5.99229, 'Stillpine Ancestor Yor'),
(17393, 33, -4423.44,-12345,8.29463, 'Stillpine Ancestor Yor'),
(17393, 34, -4435.58,-12315.7,10.3162, 'Stillpine Ancestor Yor'),
(17393, 35, -4457.19,-12304.2,12.3064, 'Stillpine Ancestor Yor'),
(17393, 36, -4475.24,-12294,13.9122, 'Stillpine Ancestor Yor'),
(17393, 37, -4490.89,-12279.7,15.2792, 'Stillpine Ancestor Yor'),
(17393, 38, -4503.42,-12249.6,16.3871, 'Stillpine Ancestor Yor'),
(17393, 39, -4510.15,-12229.8,17.1362, 'Stillpine Ancestor Yor'),
(17393, 40, -4513.27,-12209.5,16.9777, 'Stillpine Ancestor Yor'),
(17393, 41, -4513.64,-12189.1,16.9593, 'Stillpine Ancestor Yor'),
(17393, 42, -4502.99,-12158,16.1291, 'Stillpine Ancestor Yor'),
(17393, 43, -4508.94,-12122.7,16.9898, 'Stillpine Ancestor Yor'),
(17393, 44, -4505.31,-12095.6,18.8873, 'Stillpine Ancestor Yor'),
(17393, 45, -4500.36,-12071.2,21.4168, 'Stillpine Ancestor Yor'),
(17393, 46, -4516.81,-12050.5,24.2492, 'Stillpine Ancestor Yor'),
(17393, 47, -4528.22,-12037.5,26.0347, 'Stillpine Ancestor Yor'),
(17393, 48, -4531.9,-12008.6,28.4037, 'Stillpine Ancestor Yor'),
(17393, 49, -4538.61,-11984.4,29.7635, 'Stillpine Ancestor Yor'),
(17393, 50, -4543.79,-11963.5,29.1954, 'Stillpine Ancestor Yor'),
(17393, 51, -4537.48,-11934.2,27.0094, 'Stillpine Ancestor Yor'),
(17393, 52, -4533.18,-11906.3,22.686, 'Stillpine Ancestor Yor'),
(17393, 53, -4504.71,-11879,17.5661, 'Stillpine Ancestor Yor'),
(17393, 54, -4500.36,-11845.7,15.0063, 'Stillpine Ancestor Yor'),
(17393, 55, -4510.63,-11816.8,13.8306, 'Stillpine Ancestor Yor'),
(17393, 56, -4531.7,-11786.6,15.5384, 'Stillpine Ancestor Yor'),
(17393, 57, -4555.94,-11756.9,17.6289, 'Stillpine Ancestor Yor'),
(17393, 58, -4546.7,-11735.9,19.533, 'Stillpine Ancestor Yor'),
(17393, 59, -4535.96,-11712.4,18.2368, 'Stillpine Ancestor Yor'),
(17393, 60, -4519.88,-11702.4,17.8815, 'Stillpine Ancestor Yor'),
(17393, 61, -4507,-11694.5,13.2184, 'Stillpine Ancestor Yor'),
(17393, 62, -4490.14,-11673,10.8723, 'Stillpine Ancestor Yor'),
(17393, 63, -4486.34,-11658,10.6353, 'Stillpine Ancestor Yor');
@@ -0,0 +1,141 @@
-- Exarch Admetius SAI
SET @ENTRY := 17658;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,1,20,0,100,1,9759,0,0,0,1,0,0,0,0,0,0,7,0,0,0,0,0,0,0,"Exarch Admetius - On Quest 'Ending Their World' Finished - Say Line 0 (No Repeat)"),
(@ENTRY,0,1,0,61,0,100,0,9759,0,0,0,80,1765800,2,0,0,0,0,1,0,0,0,0,0,0,0,"Exarch Admetius - On Quest 'Ending Their World' Finished - Run Script (No Repeat)");
-- Actionlist SAI
SET @ENTRY := 1765800;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,12,17659,2,300000,0,0,0,8,0,0,0,-1930.46,-11812.6,62.6309,2.30995,"Exarch Admetius - On Script - Summon Creature 'Blade of Argus'"),
(@ENTRY,9,1,0,0,0,100,0,0,0,0,0,12,17659,2,300000,0,0,0,8,0,0,0,-1937.49,-11805.7,63.7985,5.53597,"Exarch Admetius - On Script - Summon Creature 'Blade of Argus'"),
(@ENTRY,9,2,0,0,0,100,0,0,0,0,0,12,17659,2,300000,0,0,0,8,0,0,0,-1933.49,-11814.8,62.108,2.22748,"Exarch Admetius - On Script - Summon Creature 'Blade of Argus'"),
(@ENTRY,9,3,0,0,0,100,0,0,0,0,0,12,17659,2,300000,0,0,0,8,0,0,0,-1939.96,-11808.2,62.6752,5.49985,"Exarch Admetius - On Script - Summon Creature 'Blade of Argus'"),
(@ENTRY,9,4,0,0,0,100,0,0,0,0,0,12,17659,2,300000,0,0,0,8,0,0,0,-1936.87,-11817,61.1348,2.24899,"Exarch Admetius - On Script - Summon Creature 'Blade of Argus'"),
(@ENTRY,9,5,0,0,0,100,0,0,0,0,0,12,17659,2,300000,0,0,0,8,0,0,0,-1942.61,-11810.6,61.8243,5.24734,"Exarch Admetius - On Script - Summon Creature 'Blade of Argus'"),
(@ENTRY,9,6,0,0,0,100,0,0,0,0,0,12,17659,2,300000,0,0,0,8,0,0,0,-1940.21,-11819.8,60.3075,2.36209,"Exarch Admetius - On Script - Summon Creature 'Blade of Argus'"),
(@ENTRY,9,7,0,0,0,100,0,0,0,0,0,12,17659,2,300000,0,0,0,8,0,0,0,-1945.48,-11813.6,60.9112,5.35298,"Exarch Admetius - On Script - Summon Creature 'Blade of Argus'"),
(@ENTRY,9,8,0,0,0,100,0,0,0,0,0,12,17659,2,300000,0,0,0,8,0,0,0,-1944.12,-11823.2,59.0743,2.18733,"Exarch Admetius - On Script - Summon Creature 'Blade of Argus'"),
(@ENTRY,9,9,0,0,0,100,0,0,0,0,0,12,17659,2,300000,0,0,0,8,0,0,0,-1948.83,-11816.8,60.053,5.34669,"Exarch Admetius - On Script - Summon Creature 'Blade of Argus'"),
(@ENTRY,9,10,0,0,0,100,0,0,0,0,0,12,17116,2,300000,0,0,0,8,0,0,0,-1958.72,-11821.6,58.8921,0.461123,"Exarch Admetius - On Script - Summon Creature 'Exarch Menelaous'"),
(@ENTRY,9,11,0,0,0,100,0,0,0,0,0,12,17214,2,300000,0,0,0,8,0,0,0,-1960.27,-11819.9,59.571,0.295709,"Exarch Admetius - On Script - Summon Creature 'Anchorite Fateema'"),
(@ENTRY,9,12,0,0,0,100,0,0,0,0,0,12,17101,2,300000,0,0,0,8,0,0,0,-1959.95,-11823.8,57.6277,0.372766,"Exarch Admetius - On Script - Summon Creature 'Diktynna'"),
(@ENTRY,9,13,0,0,0,100,0,0,0,0,0,12,17215,2,300000,0,0,0,8,0,0,0,-1961.16,-11823.4,57.702,0.640498,"Exarch Admetius - On Script - Summon Creature 'Daedal'"),
(@ENTRY,9,14,0,0,0,100,0,0,0,0,0,12,17110,2,300000,0,0,0,8,0,0,0,-1961.2,-11821.9,58.6004,0.525438,"Exarch Admetius - On Script - Summon Creature 'Acteon'"),
(@ENTRY,9,15,0,0,0,100,0,0,0,0,0,12,17440,2,300000,0,0,0,8,0,0,0,-1964.16,-11827,56.1668,0.561564,"Exarch Admetius - On Script - Summon Creature 'High Chief Stillpine'"),
(@ENTRY,9,16,0,0,0,100,0,0,0,0,0,12,17682,2,300000,0,0,0,8,0,0,0,-1966.07,-11824.7,57.2651,0.161011,"Exarch Admetius - On Script - Summon Creature 'Princess Stillpine'"),
(@ENTRY,9,17,0,0,0,100,0,0,0,0,0,12,17443,2,300000,0,0,0,8,0,0,0,-1966.24,-11822,58.598,6.20858,"Exarch Admetius - On Script - Summon Creature 'Kurz the Revelator'"),
(@ENTRY,9,18,0,0,0,100,0,0,0,0,0,12,17445,2,300000,0,0,0,8,0,0,0,-1968.9,-11829.1,55.0413,0.386419,"Exarch Admetius - On Script - Summon Creature 'Stillpine the Younger'"),
(@ENTRY,9,19,0,0,0,100,0,0,0,0,0,12,17242,2,300000,0,0,0,8,0,0,0,-1948.33,-11832.6,57.24,1.14982,"Exarch Admetius - On Script - Summon Creature 'Archaeologist Adamant Ironheart'"),
(@ENTRY,9,20,0,0,0,100,0,0,0,0,0,12,17240,2,300000,0,0,0,8,0,0,0,-1950.2,-11831.7,56.9671,1.09092,"Exarch Admetius - On Script - Summon Creature 'Admiral Odesyus'"),
(@ENTRY,9,21,0,0,0,100,0,0,0,0,0,12,17117,2,300000,0,0,0,8,0,0,0,-1952.31,-11831.3,56.7056,0.91224,"Exarch Admetius - On Script - Summon Creature 'Injured Night Elf Priestess'"),
(@ENTRY,9,22,0,0,0,100,0,0,0,0,0,12,17246,2,300000,0,0,0,8,0,0,0,-1949.92,-11834,56.7319,1.21854,"Exarch Admetius - On Script - Summon Creature Cookie McWeaksauce"),
(@ENTRY,9,23,0,0,0,100,0,0,0,0,0,12,17241,2,300000,0,0,0,8,0,0,0,-1952.39,-11833.5,56.4305,0.977035,"Exarch Admetius - On Script - Summon Creature Priestess Kyleen Ildinare"),
(@ENTRY,9,24,0,0,0,100,0,0,0,0,0,12,17311,2,300000,0,0,0,8,0,0,0,-1954.8,-11838.6,55.2527,1.1616,"Exarch Admetius - On Script - Summon Creature 'Cowlen'"),
(@ENTRY,9,25,0,0,0,100,0,0,0,0,0,12,17649,2,300000,0,0,0,8,0,0,0,-1955.7,-11843.1,54.1458,1.17557,"Exarch Admetius - On Script - Summon Creature Kessel"),
(@ENTRY,9,26,0,0,0,100,0,0,0,0,0,12,17468,2,300000,0,0,0,8,0,0,0,-1965.8,-11838.7,53.2196,0.792683,"Exarch Admetius - On Script - Summon Creature Prophet Velen");
-- Blade of Argus SAI
SET @ENTRY := 17659;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,54,0,100,0,0,0,0,0,90,8,0,0,0,0,0,1,0,0,0,0,0,0,0,"Blade of Argus - On Just Summoned - Set Flag Standstate Kneel");
-- Diktynna SAI
SET @ENTRY := 17101;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,54,0,100,0,0,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Acteon - On Just Summoned - Set Event Phase 1"),
(@ENTRY,0,1,0,1,1,100,0,3000,3000,5000,8000,5,4,0,0,0,0,0,1,0,0,0,0,0,0,0,"Acteon - Out of Combat - Play Emote 4");
-- Exarch Menelaous SAI
SET @ENTRY := 17116;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,54,0,100,0,0,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Acteon - On Just Summoned - Set Event Phase 1"),
(@ENTRY,0,1,0,1,1,100,0,3000,3000,5000,8000,5,4,0,0,0,0,0,1,0,0,0,0,0,0,0,"Acteon - Out of Combat - Play Emote 4"),
(@ENTRY, 0, 2, 0, 64, 0, 100, 0, 0, 0, 0, 0, 33, 17116, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On gossip hello credit for quest 9663');
-- 17215SAI
SET @ENTRY := 17215;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,54,0,100,0,0,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Acteon - On Just Summoned - Set Event Phase 1"),
(@ENTRY,0,1,0,1,1,100,0,3000,3000,5000,8000,5,4,0,0,0,0,0,1,0,0,0,0,0,0,0,"Acteon - Out of Combat - Play Emote 4");
-- Acteon SAI
SET @ENTRY := 17110;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,54,0,100,0,0,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Acteon - On Just Summoned - Set Event Phase 1"),
(@ENTRY,0,1,0,1,1,100,0,3000,3000,5000,8000,5,4,0,0,0,0,0,1,0,0,0,0,0,0,0,"Acteon - Out of Combat - Play Emote 4");
-- Anchorite Fateema SAI
SET @ENTRY := 17214;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,54,0,100,0,0,0,0,0,5,10,0,0,0,0,0,1,0,0,0,0,0,0,0,"Anchorite Fateema - On Just Summoned - Play Emote 10");
-- Admiral Odesyus SAI
SET @ENTRY := 17240;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,64,0,100,0,0,0,0,0,33,17240,0,0,0,0,0,7,0,0,0,0,0,0,0,"Admiral Odesyus - On Gossip Hello - Quest Credit 'The Kessel Run'"),
(@ENTRY,0,1,0,54,0,100,0,0,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Admiral Odesyus - On Just Summoned - Set Event Phase 1"),
(@ENTRY,0,2,0,1,1,100,0,0,0,0,0,5,10,0,0,0,0,0,1,0,0,0,0,0,0,0,"Admiral Odesyus - Out of Combat - Play Emote 10 (Phase 1)");
-- Cowlen SAI
SET @ENTRY := 17311;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,1,62,0,100,0,7401,0,0,0,5,18,0,0,0,0,0,1,0,0,0,0,0,0,0,"Cowlen - On Gossip Option 0 Selected - Play Emote 18"),
(@ENTRY,0,1,0,61,0,100,0,7401,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,"Cowlen - On Gossip Option 0 Selected - Close Gossip"),
(@ENTRY,0,2,0,54,0,100,0,0,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Cowlen - On Just Summoned - Set Event Phase 1"),
(@ENTRY,0,3,0,1,1,100,0,0,0,0,0,5,10,0,0,0,0,0,1,0,0,0,0,0,0,0,"Cowlen - Out of Combat - Play Emote 10 (Phase 1)");
-- Archaeologist Adamant Ironheart SAI
SET @ENTRY := 17242;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,54,0,100,0,0,0,0,0,5,10,0,0,0,0,0,1,0,0,0,0,0,0,0,"Archaeologist Adamant Ironheart - On Just Summoned - Play Emote 10");
-- Injured Night Elf Priestess SAI
SET @ENTRY := 17117;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,1,54,0,100,0,0,0,0,0,91,3,0,0,0,0,0,1,0,0,0,0,0,0,0,"Injured Night Elf Priestess - On Just Summoned - Remove Flag Standstate Sleep"),
(@ENTRY,0,1,0,61,0,100,0,0,0,0,0,5,10,0,0,0,0,0,1,0,0,0,0,0,0,0,"Injured Night Elf Priestess - On Just Summoned - Play Emote 10");
-- "Cookie" McWeaksauce SAI
SET @ENTRY := 17246;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,54,0,100,0,0,0,0,0,5,10,0,0,0,0,0,1,0,0,0,0,0,0,0,"Cookie McWeaksauce - On Just Summoned - Play Emote 10");
-- Priestess Kyleen Il'dinare SAI
SET @ENTRY := 17241;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,54,0,100,0,0,0,0,0,5,10,0,0,0,0,0,1,0,0,0,0,0,0,0,"Priestess Kyleen Il'dinare - On Just Summoned - Play Emote 10");
-- Kessel SAI
SET @ENTRY := 17649;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,54,0,100,0,0,0,0,0,5,10,0,0,0,0,0,1,0,0,0,0,0,0,0,"Kessel - On Just Summoned - Play Emote 10");
@@ -0,0 +1,147 @@
-- LBRS Pathing
SET @NPC := 43503;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`, `delay`) VALUES
(@PATH,1, -24.539305,-514.424866,29.163296, 0),
(@PATH,2, -24.539305,-514.424866,29.163296, 30000),
(@PATH,3, -49.821911,-513.863159,29.187195, 0),
(@PATH,4, -49.821911,-513.863159,29.187195, 30000);
UPDATE `creature` SET `position_x`=-39.0271, `position_y`=-547.342, `position_z`=16.1255, `orientation`=4.97512 WHERE `guid`=43559;
SET @NPC := 43559;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`, `delay`) VALUES
(@PATH,1, -39.107231,-547.148987,16.125872, 60*1000),
(@PATH,2, -39.597519,-523.890381,4.992621, 30*1000);
SET @NPC := 40154;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`, `delay`) VALUES
(@PATH,1, -48.089626,-460.303558,16.398632, 0),
(@PATH,2, -8.386492,-461.059998,16.728352, 0),
(@PATH,3, -47.694778,-460.330566,16.402576, 0),
(@PATH,4, -47.758339,-472.839417,16.333258, 0),
(@PATH,5, -40.366806,-493.487183,16.186602, 0),
(@PATH,6, -39.576500,-509.575165,5.856623, 30*1000),
(@PATH,7, -39.994362,-493.414276,16.188383, 0),
(@PATH,8, -47.637386,-472.980103,16.333862, 0);
UPDATE `creature` SET `position_x`=-72.9836, `position_y`=-517.218, `position_z`=-7.14286, `orientation`=4.7285 WHERE `guid`=43560;
SET @NPC := 43560;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`, `delay`) VALUES
(@PATH,1, -73.970467,-517.234009,-7.142864, 0),
(@PATH,2, -73.874817,-523.169250,-7.142920, 0),
(@PATH,3, -73.265968,-540.061218,-18.795183, 0),
(@PATH,4, -73.173820,-545.779480,-18.800999, 0),
(@PATH,5, -63.243862,-549.406189,-18.812057, 0),
(@PATH,6, -18.329285,-549.121521,-18.785419, 0),
(@PATH,7, -5.791784,-542.450745,-18.793913, 0),
(@PATH,8, -5.484589,-523.005493,-7.142718, 0),
(@PATH,9, -5.638316,-512.436646,-7.142718, 0),
(@PATH,10, -5.917571,-493.237671,-18.795147, 0),
(@PATH,11, -14.509295,-487.841888,-18.789783, 0),
(@PATH,12, -66.097374,-487.162323,-18.788757, 0),
(@PATH,13, -73.520866,-493.968750,-18.793919, 0),
(@PATH,14, -73.070999,-511.362244,-7.242242, 0);
DELETE FROM `creature_formations` WHERE `leaderGUID`=43560;
INSERT INTO `creature_formations` (`leaderGUID`, `memberGUID`, `dist`, `angle`, `groupAI`, `point_1`, `point_2`) VALUES
(43560, 43560, 0, 0, 2, 0, 0),
(43560, 43561, 3, 0, 2, 0, 0);
UPDATE `creature` SET `position_x`=-111.52, `position_y`=-495.227, `position_z`=-18.4569, `orientation`=1.48874 WHERE `guid`=43764;
SET @NPC := 43764;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`) VALUES
(@PATH,1, -111.519859,-495.227142,-18.456940),
(@PATH,2, -109.896652,-464.849060,-18.934961),
(@PATH,3, -84.653816,-439.250580,-18.934961),
(@PATH,4, -67.780334,-419.889923,-18.934961),
(@PATH,5, -60.713531,-417.953033,-18.934961),
(@PATH,6, -9.332710,-420.316162,-18.934961),
(@PATH,7, -2.238527,-422.439362,-18.934961),
(@PATH,8, -1.244248,-446.211823,-18.934753),
(@PATH,9, 19.821653,-447.426331,-18.934378),
(@PATH,10, 18.931326,-493.151703,-18.483871),
(@PATH,11, 15.599535,-504.352753,-18.405764),
(@PATH,12, 16.812010,-512.320251,-18.463589),
(@PATH,13, 16.011930,-504.230652,-18.412947),
(@PATH,14, 19.295931,-492.924255,-18.492430),
(@PATH,15, 19.841694,-448.336029,-18.933733),
(@PATH,16, -0.717553,-446.633148,-18.934631),
(@PATH,17, -1.842408,-422.642365,-18.934040),
(@PATH,18, -9.304630,-420.401215,-18.934040),
(@PATH,19, -60.141975,-418.226532,-18.934040),
(@PATH,20, -67.558952,-420.345734,-18.934040),
(@PATH,21, -84.157814,-439.430664,-18.934040),
(@PATH,22, -109.428772,-465.330292,-18.934040),
(@PATH,23, -111.255486,-495.324738,-18.456909);
-- Grunt in the middle of the main corridor patrolling back and forth between two tents
UPDATE `creature` SET `position_x`=-41.9485, `position_y`=-425.748, `position_z`=-18.935, `orientation`=0.458297 WHERE `guid`=43764;
SET @NPC := 43767;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`, `delay`) VALUES
(@PATH,1, -42.213486,-425.895782,-18.934973, 30*1000),
(@PATH,2, -53.331005,-413.390137,-18.934973, 30*1000);
-- Patrol of one grunt and one darkweaver patrolling all the way
UPDATE `creature` SET `position_x`=-109.985, `position_y`=-456.958, `position_z`=-18.9344, `orientation`=4.69159 WHERE `guid`=43763;
UPDATE `creature` SET `position_x`=-112.677, `position_y`=-458.12, `position_z`=-18.9344, `orientation`=4.69159 WHERE `guid`=43771;
SET @NPC := 43763;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`, `delay`) VALUES
(@PATH,1, -111.095695,-457.167389,-18.934425, 0),
(@PATH,2, -111.467453,-475.041534,-18.539604, 0),
(@PATH,3, -110.836365,-457.761536,-18.933743, 0),
(@PATH,4, -90.937553,-443.860382,-18.933743, 0),
(@PATH,5, -65.725304,-416.266144,-18.933743, 0),
(@PATH,6, -1.099830,-418.993073,-18.759935, 0),
(@PATH,7, 0.389136,-443.609253,-18.934147, 0),
(@PATH,8, 23.756561,-446.480286,-18.934437, 0),
(@PATH,9, 20.058512,-473.346893,-18.416866, 0),
(@PATH,10, 19.636366,-497.844696,-18.437708, 0),
(@PATH,11, 16.802956,-496.517242,-18.383026, 0),
(@PATH,12, 15.794456,-472.194489,-18.580204, 0),
(@PATH,13, 19.537477,-449.352936,-18.934959, 0),
(@PATH,14, -1.293265,-448.573944,-18.935009, 0),
(@PATH,15, -4.664356,-423.750244,-18.933882, 0),
(@PATH,16, -24.780350,-420.808136,-18.933882, 0),
(@PATH,17, -65.957001,-420.163727,-18.933882, 0),
(@PATH,18, -90.123260,-445.283661,-18.933882, 0);
DELETE FROM `creature_formations` WHERE `leaderGUID`=43763;
INSERT INTO `creature_formations` (`leaderGUID`, `memberGUID`, `dist`, `angle`, `groupAI`, `point_1`, `point_2`) VALUES
(43763, 43763, 0, 0, 2, 0, 0),
(43763, 43771, 3, 0, 2, 0, 0);
@@ -0,0 +1,8 @@
DELETE FROM `creature_addon` WHERE guid IN(52480,52481);
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES
(52480, 0, 0, 8, 1, 0, NULL),
(52481, 0, 0, 8, 1, 0, NULL);
DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_illidari_nightlord_shadow_inferno';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(39645,'spell_illidari_nightlord_shadow_inferno');
@@ -0,0 +1,34 @@
-- The Fallen Exarch (10915)
DELETE FROM `event_scripts` WHERE `id`=14444;
UPDATE `gameobject_template` SET `AIName`='SmartGameObjectAI', `ScriptName`='' WHERE entry=184999;
DELETE FROM `smart_scripts` WHERE `entryorguid`=184999 AND `source_type`=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
(184999, 1, 0, 0, 64, 0, 100, 0, 1, 0, 0, 0, 12, 22452, 4, 30000, 0, 0, 0, 8, 0, 0, 0, -3361.91, 5153.95, -9.00, 1.57, 'Auchenai Coffin - On Gossip Hello - Summon Creature');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=22 AND `SourceEntry`=184999;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
(22, 1, 184999, 1, 0, 29, 1, 22452, 80, 0, 1, 0, 0, '', 'No NPC Nearby to run action');
DELETE FROM `creature_template_addon` WHERE `entry`=22452;
INSERT INTO `creature_template_addon` (`entry`,`bytes1`,`bytes2`,`auras`) VALUES
(22452,0,1,"17327");
UPDATE `creature_template` SET `unit_flags`=`unit_flags`|768, `AIName`='SmartAI', `ScriptName`='' WHERE `entry`=22452;
UPDATE `creature_template` SET `InhabitType`=4, `flags_extra`=0 WHERE `entry`=21903;
UPDATE `creature` SET `modelid`=20597 WHERE `id`=21903;
DELETE FROM `smart_scripts` WHERE `entryorguid`=22452 AND `source_type`=0;
DELETE FROM `smart_scripts` WHERE `entryorguid`=2245200 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
(22452, 0, 0, 0, 63, 0, 100, 0, 0, 0, 0, 0, 80, 2245200, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Reanimated Exarch - Just created - action list'),
(2245200, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 3, 0, 21024, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Reanimated Exarch - action list - morph'),
(2245200, 9, 1, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Reanimated Exarch - action list - Say Line 0'),
(2245200, 9, 2, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 11, 36004, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Reanimated Exarch - action list - CAST 36004'),
(2245200, 9, 3, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 4.72, 'Reanimated Exarch - action list - Set Orientation'),
(2245200, 9, 4, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Reanimated Exarch - action list - Remove Unit Flags'),
(2245200, 9, 5, 0, 0, 0, 100, 0, 500, 500, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 40, 0, 0, 0, 0, 0, 0, 'Reanimated Exarch - action list - Attack Start'),
(22452, 0, 1, 0, 0, 0, 100, 1, 2000, 2000, 0, 0, 11, 8258, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Reanimated Exarch - In Combat - Cast Devotion Aura');
DELETE FROM `creature_text` WHERE `CreatureID`=22452;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `Comment`) VALUES
(22452, 0, 0, 'You have brought me back too soon! I am weak yet... What is this! Who... It matters not! DIE!', 12, 0, 100, 1, 0, 0, 20298, 'Reanimated Exarch');
@@ -0,0 +1,2 @@
--
UPDATE `smart_scripts` SET `action_type`=11, `action_param1`=30444, `action_param2`=0, `action_param3`=0, `target_type`=7, `target_x`=0, `target_y`=0, `target_z`=0, `target_o`=0, `comment`='Totem of Yor - On Quest \'Totem of Vark\' Taken - Cast \'Stillpine Ancestor Yor TRIGGER\'' WHERE `entryorguid`=17363 AND `source_type`=0 AND `id`=0 AND `link`=0;
@@ -0,0 +1,20 @@
-- [Q] World of Shadows -- http://wotlk.openwow.com/quest=11004
-- Severin SAI
SET @ENTRY := 23042;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,19,0,100,0,11004,0,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,"Severin - On Quest 'World of Shadows' Taken - Run Script");
-- Actionlist SAI
SET @ENTRY := 2304200;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,1000,1000,0,0,1,0,7000,0,0,0,0,19,23038,10,0,0,0,0,0,"Severin - On Script - Say Line 0"),
(@ENTRY,9,1,0,0,0,100,0,6000,6000,0,0,5,16,0,0,0,0,0,1,0,0,0,0,0,0,0,"Severin - On Script - Play Emote 16"),
(@ENTRY,9,2,0,0,0,100,0,3000,3000,0,0,1,0,5000,0,0,0,0,1,0,0,0,0,0,0,0,"Severin - On Script - Say Line 1");
DELETE FROM `creature_text` WHERE `CreatureID` IN (23038, 23042);
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `Comment`) VALUES
(23038, 0, 0, 'The arakkoa are hidden... everywhere!', 12, 0, 100, 0, 0, 0, 21917, 'Sky Commander Adaris'),
(23042, 0, 0, 'Rest now, Adaris. You need to recover your strength.', 12, 0, 100, 0, 0, 0, 21918, 'Severin');
@@ -0,0 +1,20 @@
--
-- [Q] The Fel and the Furious -- http://wotlk.openwow.com/?quest=10612
-- Plexi SAI
SET @ENTRY := 21790;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,19,0,100,0,10612,0,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,"Plexi - On Quest 'The Fel and the Furious' Taken - Run Script");
-- Actionlist SAI
SET @ENTRY := 2179000;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,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.797690,"Plexi - On Script - Set Oriebtation 1.797"),
(@ENTRY,9,1,0,0,0,100,0,1000,1000,0,0,5,25,0,0,0,0,0,1,0,0,0,0,0,0,0,"Plexi - On Script - Play Emote 25"),
(@ENTRY,9,2,0,0,0,100,0,1000,1000,0,0,1,0,7000,0,0,0,0,1,0,0,0,0,0,0,0,"Plexi - On Script - Say Line 0");
DELETE FROM `creature_text` WHERE `CreatureID`=21790;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `Comment`) VALUES
(21790, 0, 0, 'I''ve rigged a few control consoles down the slope. Get one quickly and take control of the fel reaver! You''ll only have a limited amount of time.', 12, 0, 100, 0, 0, 0, 19666, 'Plexi');
@@ -0,0 +1,45 @@
-- [Q] Galaen's Fate -- http://wotlk.openwow.com/quest=9579
-- Galaen's Corpse SAI
SET @ENTRY := 17508;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,1,19,0,100,0,9579,0,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,"Galaen's Corpse - On Quest 'Galaen's Fate' Taken - Run Script"),
(@ENTRY,0,1,0,61,0,100,0,9579,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,"Galaen's Corpse - On Quest 'Galaen's Fate' Taken - Store Targetlist"),
(@ENTRY,0,2,0,17,0,100,0,17426,0,0,0,64,2,0,0,0,0,0,7,0,0,0,0,0,0,0,"Galaen's Corpse - On Summoned Unit - Store Targetlist");
-- Conditions for summon
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=22 AND `SourceGroup`=1 AND `SourceEntry`=17508;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
(22,1,17508,0,0,29,0,17426,20,0,1,0,0,"","Galaen's Corpse - Do not summon Galaen if creature is in 20 yards range");
-- Actionlist SAI
SET @ENTRY := 1750800;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,1000,1000,0,0,12,17426,1,15000,0,0,0,8,0,0,0,-2090.03,-11297.5,63.5025,3.56455,"Galaen's Corpse - On Script - Summon Creature 'Galaen'"),
(@ENTRY,9,1,0,0,0,100,0,100,100,0,0,100,1,0,0,0,0,0,12,2,0,0,0,0,0,0,"Galaen's Corpse - On Script - Send Target 1");
-- Actionlist SAI
SET @ENTRY := 1750800;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,1000,1000,0,0,12,17426,1,15000,0,0,0,8,0,0,0,-2090.03,-11297.5,63.5025,3.56455,"Galaen's Corpse - On Script - Summon Creature 'Galaen'"),
(@ENTRY,9,1,0,0,0,100,0,100,100,0,0,100,1,0,0,0,0,0,12,2,0,0,0,0,0,0,"Galaen's Corpse - On Script - Send Target 1"),
(@ENTRY,9,2,0,0,0,100,0,100,100,0,0,45,1,1,0,0,0,0,12,2,0,0,0,0,0,0,"Galaen's Corpse - On Script - Set Data 1 1"),
(@ENTRY,9,3,0,0,0,100,0,1000,1000,0,0,1,0,3000,0,0,0,0,12,2,0,0,0,0,0,0,"Galaen's Corpse - On Script - Say Line 0"),
(@ENTRY,9,4,0,0,0,100,0,3000,3000,0,0,1,1,4000,0,0,0,0,12,2,0,0,0,0,0,0,"Galaen's Corpse - On Script - Say Line 1"),
(@ENTRY,9,5,0,0,0,100,0,4000,4000,0,0,1,2,4000,0,0,0,0,12,2,0,0,0,0,0,0,"Galaen's Corpse - On Script - Say Line 2");
-- Galaen SAI
SET @ENTRY := 17426;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,38,0,100,0,1,1,0,0,66,0,0,0,0,0,0,12,1,0,0,0,0,0,0,"Galaen - On Data Set 1 1 - Set Orientation Stored Payer");
DELETE FROM `creature_text` WHERE `CreatureID`=17426;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `Comment`) VALUES
(17426, 0, 0, 'Morae... Is that you?', 12, 0, 100, 6, 0, 0, 14262, 'Galaen'),
(17426, 1, 0, 'No... you''re not Morae, but I sense that you have met. When you see her, tell her that I survived the crash, only to be done in by the infiltrators.', 12, 0, 100, 274, 0, 0, 14263, 'Galaen'),
(17426, 2, 0, 'Let her know... my last thought was of her...', 12, 0, 100, 1, 0, 0, 14264, 'Galaen');
@@ -0,0 +1,27 @@
--
-- [Q] The Fel and the Furious -- http://wotlk.openwow.com/?quest=10613
-- Nakansi SAI
SET @ENTRY := 21789;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,19,0,100,0,10613,0,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,"Nakansi - On Quest 'The Fel and the Furious' Taken - Run Script");
-- Actionlist SAI
SET @ENTRY := 2178900;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,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.989615,"Nakansi - On Script - Set Oriebtation 5.989615"),
(@ENTRY,9,1,0,0,0,100,0,1000,1000,0,0,5,25,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nakansi - On Script - Play Emote 25"),
(@ENTRY,9,2,0,0,0,100,0,1000,1000,0,0,1,0,7000,0,0,0,0,1,0,0,0,0,0,0,0,"Nakansi - On Script - Say Line 0"),
(@ENTRY,9,3,0,0,0,100,0,5000,5000,0,0,66,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Nakansi - On Script - ReSet Oriebtation");
DELETE FROM `creature_text` WHERE `CreatureID`=21789;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `Comment`) VALUES
(21789, 0, 0, 'I''ve rigged a few control consoles down the slope. Get one quickly and take control of the fel reaver! You''ll only have a limited amount of time.', 12, 0, 100, 0, 0, 0, 19666, 'Nakansi');
SET @ENTRY := 2179000;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=9 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
(@ENTRY,9,3,0,0,0,100,0,5000,5000,0,0,66,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Plexi - On Script - ReSet Oriebtation");
@@ -0,0 +1,142 @@
-- Ethereal Sorcerer SAI
SET @ENTRY := 18313;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,0,0,100,2,0,0,2400,3800,11,15791,64,0,0,0,0,2,0,0,0,0,0,0,0,"Ethereal Sorcerer - In Combat CMC - Cast 'Arcane Missiles' (Normal Dungeon)"),
(@ENTRY,0,1,0,0,0,100,6,5100,10800,10800,15700,11,25603,0,0,0,0,0,2,0,0,0,0,0,0,0,"Ethereal Sorcerer - In Combat - Cast 'Slow' (Dungeon)"),
(@ENTRY,0,2,0,0,0,100,6,14000,22700,22300,22300,11,32349,0,0,0,0,0,1,0,0,0,0,0,0,0,"Ethereal Sorcerer - In Combat - Cast 'Summon Arcane Fiend' (Dungeon)"),
(@ENTRY,0,3,0,0,0,100,6,14000,22700,22300,22300,11,32353,0,0,0,0,0,1,0,0,0,0,0,0,0,"Ethereal Sorcerer - In Combat - Cast 'Summon Arcane Fiend' (Dungeon)"),
(@ENTRY,0,4,0,0,0,100,4,0,0,2400,3800,11,22273,64,0,0,0,0,2,0,0,0,0,0,0,0,"Ethereal Sorcerer - In Combat CMC - Cast 'Arcane Missiles' (Heroic Dungeon)");
-- Cobalt Serpent SAI
SET @ENTRY := 19428;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,0,0,100,2,0,0,3400,4800,11,17503,64,0,0,0,0,2,0,0,0,0,0,0,0,"Cobalt Serpent - In Combat CMC - Cast 'Frostbolt' (Normal Dungeon)"),
(@ENTRY,0,1,0,0,0,100,2,4000,5000,8000,11000,11,38193,0,0,0,0,0,2,0,0,0,0,0,0,0,"Cobalt Serpent - In Combat - Cast 'Lightning Breath' (Normal Dungeon)"),
(@ENTRY,0,2,0,0,0,100,4,4000,5000,8000,11000,11,38133,0,0,0,0,0,2,0,0,0,0,0,0,0,"Cobalt Serpent - In Combat - Cast 'Lightning Breath' (Heroic Dungeon)"),
(@ENTRY,0,3,0,0,0,100,6,6000,7000,7000,13000,11,38110,0,0,0,0,0,1,0,0,0,0,0,0,0,"Cobalt Serpent - In Combat - Cast 'Wing Buffet' (Dungeon)"),
(@ENTRY,0,4,0,0,0,100,4,0,0,3400,4800,11,38238,64,0,0,0,0,2,0,0,0,0,0,0,0,"Cobalt Serpent - In Combat CMC - Cast 'Frostbolt' (Heroic Dungeon)");
-- Master Daellis Dawnstrike SAI
SET @ENTRY := 19705;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,0,0,100,0,2300,3900,2300,3900,11,50092,64,0,0,0,0,2,0,0,0,0,0,0,0,"Master Daellis Dawnstrike - In Combat CMC - Cast 'Shoot'"),
(@ENTRY,0,1,0,0,0,100,0,12000,15000,11000,14000,11,35963,1,0,0,0,0,2,0,0,0,0,0,0,0,"Master Daellis Dawnstrike - In Combat - Cast 'Improved Wing Clip'"),
(@ENTRY,0,2,0,2,0,100,1,0,15,0,0,25,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Master Daellis Dawnstrike - Between 0-15% Health - Flee For Assist (No Repeat)");
-- Deathforge Summoner SAI
SET @ENTRY := 20872;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,0,0,100,0,0,0,2400,3800,11,9613,64,0,0,0,0,2,0,0,0,0,0,0,0,"Deathforge Summoner - In Combat CMC - Cast 'Shadow Bolt'"),
(@ENTRY,0,1,0,0,0,100,0,7000,9000,17000,24000,11,37628,1,0,0,0,0,2,0,0,0,0,0,0,0,"Deathforge Summoner - In Combat - Cast 'Fel Immolate'");
-- Gordunni Soulreaper SAI
SET @ENTRY := 23022;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,0,0,100,0,0,0,2400,3800,11,15232,64,0,0,0,0,2,0,0,0,0,0,0,0,"Gordunni Soulreaper - In Combat CMC - Cast 'Shadow Bolt'"),
(@ENTRY,0,1,0,0,0,100,0,4000,6000,18000,25000,11,20464,1,0,0,0,0,1,0,0,0,0,0,0,0,"Gordunni Soulreaper - In Combat - Cast 'Summon Skeleton'"),
(@ENTRY,0,2,0,2,0,100,1,0,30,0,0,11,20743,1,0,0,0,0,2,0,0,0,0,0,0,0,"Gordunni Soulreaper - Between 0-30% Health - Cast 'Drain Life' (No Repeat)");
-- Dragonflayer Strategist SAI
SET @ENTRY := 23956;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,0,0,100,2,0,0,2300,5000,11,42772,64,0,0,0,0,2,0,0,0,0,0,0,0,"Dragonflayer Strategist - In Combat CMC - Cast 'Hurl Dagger' (Normal Dungeon)"),
(@ENTRY,0,1,0,0,0,100,2,4500,5000,11000,16000,11,54962,1,0,0,0,0,5,0,0,0,0,0,0,0,"Dragonflayer Strategist - In Combat - Cast 'Ticking Bomb' (Normal Dungeon)"),
(@ENTRY,0,2,0,0,0,100,4,4500,5000,11000,16000,11,60227,1,0,0,0,0,5,0,0,0,0,0,0,0,"Dragonflayer Strategist - In Combat - Cast 'Ticking Time Bomb' (Heroic Dungeon)"),
(@ENTRY,0,3,0,0,0,100,6,7500,9000,13000,15000,11,42972,1,0,0,0,0,5,0,0,0,0,0,0,0,"Dragonflayer Strategist - In Combat - Cast 'Blind' (Dungeon)"),
(@ENTRY,0,4,0,0,0,100,4,0,0,2300,5000,11,59685,64,0,0,0,0,2,0,0,0,0,0,0,0,"Dragonflayer Strategist - In Combat CMC - Cast 'Hurl Dagger' (Heroic Dungeon)");
-- Solstice Hunter SAI
SET @ENTRY := 26389;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,0,0,100,0,0,0,2300,3900,11,6660,64,0,0,0,0,2,0,0,0,0,0,0,0,"Solstice Hunter - In Combat CMC - Cast 'Shoot'"),
(@ENTRY,0,1,0,9,0,100,0,5,30,9000,13000,11,14443,1,0,0,0,0,2,0,0,0,0,0,0,0,"Solstice Hunter - Within 5-30 Range - Cast 'Multi-Shot'"),
(@ENTRY,0,2,0,0,0,100,0,7000,9000,19000,24000,11,52604,1,0,0,0,0,5,0,0,0,0,0,0,0,"Solstice Hunter - In Combat - Cast 'Scorpid Sting'"),
(@ENTRY,0,3,0,0,0,100,0,11000,15000,18000,24000,11,52606,1,0,0,0,0,1,0,0,0,0,0,0,0,"Solstice Hunter - In Combat - Cast 'Immolation Trap'"),
(@ENTRY,0,4,0,2,0,100,1,0,50,0,0,11,49561,0,0,0,0,0,1,0,0,0,0,0,0,0,"Solstice Hunter - Between 0-50% Health - Cast 'Worgen Transform' (No Repeat)"),
(@ENTRY,0,5,0,0,0,100,0,12000,15000,18000,21000,11,31975,1,0,0,0,0,5,0,0,0,0,0,0,0,"Solstice Hunter - In Combat - Cast 'Serpent Sting'");
-- Stars' Rest Sentinel SAI
SET @ENTRY := 26448;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,0,0,100,0,0,2300,2300,3900,11,6660,64,0,0,0,0,2,0,0,0,0,0,0,0,"Stars' Rest Sentinel - In Combat CMC - Cast 'Shoot'"),
(@ENTRY,0,1,0,9,0,100,0,8,100,9000,13000,11,47059,1,0,0,0,0,2,0,0,0,0,0,0,0,"Stars' Rest Sentinel - Within 8-100 Range - Cast 'Frost Arrow'");
-- Wastes Taskmaster SAI
SET @ENTRY := 26493;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,0,0,100,0,0,0,3400,4800,11,16583,64,0,0,0,0,2,0,0,0,0,0,0,0,"Wastes Taskmaster - In Combat CMC - Cast 'Shadow Shock'"),
(@ENTRY,0,1,0,9,0,100,0,0,8,12000,15000,11,32712,1,0,0,0,0,1,0,0,0,0,0,0,0,"Wastes Taskmaster - Within 0-8 Range - Cast 'Shadow Nova'");
-- Silverbrook Trapper SAI
SET @ENTRY := 26679;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,0,0,100,0,0,0,2300,3900,11,6660,64,0,0,0,0,2,0,0,0,0,0,0,0,"Silverbrook Trapper - In Combat CMC - Cast 'Shoot'"),
(@ENTRY,0,1,0,9,0,100,0,0,20,9000,15000,11,13608,1,0,0,0,0,2,0,0,0,0,0,0,0,"Silverbrook Trapper - Within 0-20 Range - Cast 'Hooked Net'");
-- Moa'ki Warrior SAI
SET @ENTRY := 27178;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,0,0,100,0,0,0,2300,3900,11,38556,64,0,0,0,0,2,0,0,0,0,0,0,0,"Moa'ki Warrior - In Combat CMC - Cast 'Throw'");
-- Onslaught Raven Priest SAI
SET @ENTRY := 27202;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,0,0,100,1,0,0,3400,4800,11,50740,64,0,0,0,0,2,0,0,0,0,0,0,0,"Onslaught Raven Priest - In Combat CMC - Cast 'Raven Flock' (No Repeat)"),
(@ENTRY,0,1,0,2,0,100,0,0,30,14000,18000,11,50750,1,0,0,0,0,1,0,0,0,0,0,0,0,"Onslaught Raven Priest - Between 0-30% Health - Cast 'Raven Heal'"),
(@ENTRY,0,2,3,8,0,100,1,48679,0,0,0,85,48655,2,0,0,0,0,1,0,0,0,0,0,0,0,"Onslaught Raven Priest - On Spellhit 'Banshee's Magic Mirror' - Invoker Cast 'The Perfect Dissemblance: Summon Player's Footman & Credit Credit' (No Repeat)"),
(@ENTRY,0,3,7,61,0,100,0,48679,0,0,0,1,2,0,0,0,0,0,7,0,0,0,0,0,0,0,"Onslaught Raven Priest - On Spellhit 'Banshee's Magic Mirror' - Say Line 2 (No Repeat)"),
(@ENTRY,0,4,0,8,0,100,255,48268,0,0,0,41,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Onslaught Raven Priest - On Spellhit 'Container of Rats' - Despawn Instant (No Repeat) (Dungeon & Raid) (Debug)"),
(@ENTRY,0,5,0,4,0,30,1,0,0,0,0,1,0,0,0,0,0,0,7,0,0,0,0,0,0,0,"Onslaught Raven Priest - On Aggro - Say Line 0 (No Repeat)"),
(@ENTRY,0,6,0,1,0,50,0,0,45000,60000,90000,1,1,0,0,0,0,0,7,0,0,0,0,0,0,0,"Onslaught Raven Priest - Out of Combat - Say Line 1"),
(@ENTRY,0,7,8,61,0,100,0,48679,0,0,0,11,48654,0,0,0,0,0,1,0,0,0,0,0,0,0,"Onslaught Raven Priest - On Spellhit 'Banshee's Magic Mirror' - Cast 'The Perfect Dissemblance: Summon Priest's Footman' (No Repeat)"),
(@ENTRY,0,8,9,61,0,100,0,48679,0,0,0,85,48763,0,0,0,0,0,7,0,0,0,0,0,0,0,"Onslaught Raven Priest - On Spellhit 'Banshee's Magic Mirror' - Invoker Cast 'Scarlet Raven Priest Image' (No Repeat)"),
(@ENTRY,0,9,10,61,0,100,0,48679,0,0,0,85,48761,0,0,0,0,0,7,0,0,0,0,0,0,0,"Onslaught Raven Priest - On Spellhit 'Banshee's Magic Mirror' - Invoker Cast 'Scarlet Raven Priest Image' (No Repeat)"),
(@ENTRY,0,10,0,61,0,100,255,48679,0,0,0,2,14,0,0,0,0,0,1,0,0,0,0,0,0,0,"Onslaught Raven Priest - On Spellhit 'Banshee's Magic Mirror' - Set Faction 14 (No Repeat)");
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=22 AND `SourceEntry` IN (27202);
INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
(22,9,27202,0,0,20,1,0,0,0,0,0,0,'','Onslaught Raven Priest SAI event 17 require a male character'),
(22,10,27202,0,0,20,1,1,0,0,0,0,0,'','Onslaught Raven Priest SAI event 17 require a female character');
-- Steamwheedle Bruiser SAI
SET @ENTRY := 16096;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,0,0,100,0,2200,3800,2200,3800,11,6660,64,0,0,0,0,2,0,0,0,0,0,0,0,"Steamwheedle Bruiser - In Combat CMC - Cast 'Shoot'"),
(@ENTRY,0,1,0,2,0,100,1,0,15,0,0,25,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Steamwheedle Bruiser - Between 0-15% Health - Flee For Assist (No Repeat)"),
(@ENTRY,0,2,0,0,0,100,0,500,1800,11000,18000,11,12024,0,0,0,0,0,2,0,0,0,0,0,0,0,"Steamwheedle Bruiser - In Combat - Cast 'Net'");
-- Mag'har Hunter SAI
SET @ENTRY := 16912;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,0,0,100,0,2200,3800,2200,3800,11,6660,64,0,0,0,0,2,0,0,0,0,0,0,0,"Mag'har Hunter - In Combat CMC - Cast 'Shoot'"),
(@ENTRY,0,1,0,2,0,100,1,0,15,0,0,25,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Mag'har Hunter - Between 0-15% Health - Flee For Assist (No Repeat)"),
(@ENTRY,0,2,0,0,0,100,0,500,1800,11000,18000,11,12024,0,0,0,0,0,2,0,0,0,0,0,0,0,"Mag'har Hunter - In Combat - Cast 'Net'"),
(@ENTRY,0,3,0,1,0,100,1,1000,1000,0,0,11,32730,1,0,0,0,0,1,0,0,0,0,0,0,0,"Mag'har Hunter - Out of Combat - Cast 'Summon Tamed Ravager' (No Repeat)");
@@ -0,0 +1,4 @@
--
DELETE FROM `creature_template_addon` WHERE `entry`=16408;
INSERT INTO `creature_template_addon` (`entry`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES
(16408,0,0,0,0,0, '18950');
@@ -0,0 +1,3 @@
--
UPDATE `smart_scripts` SET `event_flags`=2 WHERE `entryorguid`=18313 AND `source_type`=0 AND `id`=2;
UPDATE `smart_scripts` SET `event_flags`=4 WHERE `entryorguid`=18313 AND `source_type`=0 AND `id`=3;
@@ -0,0 +1,53 @@
-- 1st Kvaldir Vessel (The Serpent's Maw) SAI
SET @ENTRY := 25510;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,1,8,0,100,0,45692,0,0,0,33,25510,0,0,0,0,0,7,0,0,0,0,0,0,0,"1st Kvaldir Vessel (The Serpent's Maw) - On Spellhit 'Use Tuskarr Torch' - Quest Credit 'Burn in Effigy'"),
(@ENTRY,0,1,2,61,0,100,0,45692,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"1st Kvaldir Vessel (The Serpent's Maw) - On Spellhit 'Use Tuskarr Torch' - Say Line 0"),
(@ENTRY,0,2,3,61,0,100,0,45692,0,0,0,50,187704,60,0,0,0,0,8,0,0,0,3043.885,6745.263,10.34062,6.143561,"1st Kvaldir Vessel (The Serpent's Maw) - On Spellhit 'Use Tuskarr Torch' - Summon Gameobject 'Kvaldir Inferno'"),
(@ENTRY,0,3,4,61,0,100,0,45692,0,0,0,50,187704,60,0,0,0,0,8,0,0,0,3049.331,6757.823,5.417898,5.358162,"1st Kvaldir Vessel (The Serpent's Maw) - On Spellhit 'Use Tuskarr Torch' - Summon Gameobject 'Kvaldir Inferno'"),
(@ENTRY,0,4,5,61,0,100,0,45692,0,0,0,50,187704,60,0,0,0,0,8,0,0,0,3054.117,6764.733,3.606305,1.500983,"1st Kvaldir Vessel (The Serpent's Maw) - On Spellhit 'Use Tuskarr Torch' - Summon Gameobject 'Kvaldir Inferno'"),
(@ENTRY,0,5,6,61,0,100,0,45692,0,0,0,50,187704,60,0,0,0,0,8,0,0,0,3053.359,6773.643,3.813772,2.426008,"1st Kvaldir Vessel (The Serpent's Maw) - On Spellhit 'Use Tuskarr Torch' - Summon Gameobject 'Kvaldir Inferno'"),
(@ENTRY,0,6,0,61,0,100,0,45692,0,0,0,50,187704,60,0,0,0,0,8,0,0,0,3064.19,6785.298,8.44076,4.049168, "1st Kvaldir Vessel (The Serpent's Maw) - On Spellhit 'Use Tuskarr Torch' - Summon Gameobject 'Kvaldir Inferno'");
-- 2nd Kvaldir Vessel (The Kur Drakkar) SAI
SET @ENTRY := 25511;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,1,8,0,100,0,45692,0,0,0,33,25511,0,0,0,0,0,7,0,0,0,0,0,0,0,"2nd Kvaldir Vessel (The Kur Drakkar) - On Spellhit 'Use Tuskarr Torch' - Quest Credit 'Burn in Effigy'"),
(@ENTRY,0,1,2,61,0,100,0,45692,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"2nd Kvaldir Vessel (The Kur Drakkar) - On Spellhit 'Use Tuskarr Torch' - Say Line 0"),
(@ENTRY,0,2,3,61,0,100,0,45692,0,0,0,50,187704,60,0,0,0,0,8,0,0,0,3025.193,6784.228,8.375009,6.03884, "2nd Kvaldir Vessel (The Kur Drakkar) - On Spellhit 'Use Tuskarr Torch' - Summon Gameobject 'Kvaldir Inferno'"),
(@ENTRY,0,3,4,61,0,100,0,45692,0,0,0,50,187704,60,0,0,0,0,8,0,0,0,3035.19,6794.023,4.210261,3.839725, "2nd Kvaldir Vessel (The Kur Drakkar) - On Spellhit 'Use Tuskarr Torch' - Summon Gameobject 'Kvaldir Inferno'"),
(@ENTRY,0,4,5,61,0,100,0,45692,0,0,0,50,187704,60,0,0,0,0,8,0,0,0,3044.207,6799.383,3.345489,4.782203,"2nd Kvaldir Vessel (The Kur Drakkar) - On Spellhit 'Use Tuskarr Torch' - Summon Gameobject 'Kvaldir Inferno'"),
(@ENTRY,0,5,6,61,0,100,0,45692,0,0,0,50,187704,60,0,0,0,0,8,0,0,0,3056.192,6807.476,7.09576,0.8726639,"2nd Kvaldir Vessel (The Kur Drakkar) - On Spellhit 'Use Tuskarr Torch' - Summon Gameobject 'Kvaldir Inferno'"),
(@ENTRY,0,6,0,61,0,100,0,45692,0,0,0,50,187704,60,0,0,0,0,8,0,0,0,3043.326,6791.393,3.042087,4.485497,"2nd Kvaldir Vessel (The Kur Drakkar) - On Spellhit 'Use Tuskarr Torch' - Summon Gameobject 'Kvaldir Inferno'");
-- 3rd Kvaldir Vessel (Bor's Hammer) SAI
SET @ENTRY := 25512;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,1,8,0,100,0,45692,0,0,0,33,25512,0,0,0,0,0,7,0,0,0,0,0,0,0,"3rd Kvaldir Vessel (Bor's Hammer) - On Spellhit 'Use Tuskarr Torch' - Quest Credit 'Burn in Effigy'"),
(@ENTRY,0,1,2,61,0,100,0,45692,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"3rd Kvaldir Vessel (Bor's Hammer) - On Spellhit 'Use Tuskarr Torch' - Say Line 0"),
(@ENTRY,0,2,3,61,0,100,0,45692,0,0,0,50,187704,60,0,0,0,0,8,0,0,0,2877.174,6855.259,15.0139,4.363324, "3rd Kvaldir Vessel (Bor's Hammer) - On Spellhit 'Use Tuskarr Torch' - Summon Gameobject 'Kvaldir Inferno'"),
(@ENTRY,0,3,4,61,0,100,0,45692,0,0,0,50,187704,60,0,0,0,0,8,0,0,0,2867.662,6862.611,3.956,3.263772, "3rd Kvaldir Vessel (Bor's Hammer) - On Spellhit 'Use Tuskarr Torch' - Summon Gameobject 'Kvaldir Inferno'"),
(@ENTRY,0,4,5,61,0,100,0,45692,0,0,0,50,187704,60,0,0,0,0,8,0,0,0,2862.167,6871.526,2.134927,0.9773831,"3rd Kvaldir Vessel (Bor's Hammer) - On Spellhit 'Use Tuskarr Torch' - Summon Gameobject 'Kvaldir Inferno'"),
(@ENTRY,0,5,6,61,0,100,0,45692,0,0,0,50,187704,60,0,0,0,0,8,0,0,0,2866.583,6875.242,2.717505,4.694937, "3rd Kvaldir Vessel (Bor's Hammer) - On Spellhit 'Use Tuskarr Torch' - Summon Gameobject 'Kvaldir Inferno'"),
(@ENTRY,0,6,0,61,0,100,0,45692,0,0,0,50,187704,60,0,0,0,0,8,0,0,0,2852.196,6875.289,1.91545,4.084071, "3rd Kvaldir Vessel (Bor's Hammer) - On Spellhit 'Use Tuskarr Torch' - Summon Gameobject 'Kvaldir Inferno'");
-- 4th Kvaldir Vessel (Bor's Anvil) SAI
SET @ENTRY := 25513;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,1,8,0,100,0,45692,0,0,0,33,25513,0,0,0,0,0,7,0,0,0,0,0,0,0,"4th Kvaldir Vessel (Bor's Anvil) - On Spellhit 'Use Tuskarr Torch' - Quest Credit 'Burn in Effigy'"),
(@ENTRY,0,1,2,61,0,100,0,45692,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"4th Kvaldir Vessel (Bor's Anvil) - On Spellhit 'Use Tuskarr Torch' - Say Line 0"),
(@ENTRY,0,2,3,61,0,100,0,45692,0,0,0,50,187703,60,0,0,0,0,8,0,0,0,2515.687,6852.452,3.775909,5.166176,"4th Kvaldir Vessel (Bor's Anvil) - On Spellhit 'Use Tuskarr Torch' - Summon Gameobject 'Kvaldir Inferno'"),
(@ENTRY,0,3,4,61,0,100,0,45692,0,0,0,50,187703,60,0,0,0,0,8,0,0,0,2524.152,6848.546,5.444669,1.937312,"4th Kvaldir Vessel (Bor's Anvil) - On Spellhit 'Use Tuskarr Torch' - Summon Gameobject 'Kvaldir Inferno'"),
(@ENTRY,0,4,5,61,0,100,0,45692,0,0,0,50,187703,60,0,0,0,0,8,0,0,0,2524.671,6853.061,4.362841,3.42085, "4th Kvaldir Vessel (Bor's Anvil) - On Spellhit 'Use Tuskarr Torch' - Summon Gameobject 'Kvaldir Inferno'"),
(@ENTRY,0,5,6,61,0,100,0,45692,0,0,0,50,187703,60,0,0,0,0,8,0,0,0,2522.521,6851.036,4.778915,3.769912,"4th Kvaldir Vessel (Bor's Anvil) - On Spellhit 'Use Tuskarr Torch' - Summon Gameobject 'Kvaldir Inferno'"),
(@ENTRY,0,6,0,61,0,100,0,45692,0,0,0,50,187703,60,0,0,0,0,8,0,0,0,2520.258,6846.322,5.93863,1.570796, "4th Kvaldir Vessel (Bor's Anvil) - On Spellhit 'Use Tuskarr Torch' - Summon Gameobject 'Kvaldir Inferno'");
@@ -0,0 +1,9 @@
-- Warsong Battleguard
-- 2 more found
UPDATE `creature` SET `PhaseId` = 170 WHERE `guid` IN (110370,110378);
-- some must have individual addons
UPDATE `creature` SET `spawndist`=0, `MovementType`=0 WHERE `guid` IN (110370,110378);
DELETE FROM `creature_addon` WHERE `guid` IN (110370,110378);
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES
(110370, 0, 0, 7, 0, 0, "29266"),
(110378, 0, 0, 7, 0, 0, "29266");
@@ -0,0 +1,2 @@
--
UPDATE `smart_scripts` SET `event_flags`=1 WHERE `entryorguid`=30951 AND `source_type`=0 AND `id`=0;
@@ -0,0 +1,51 @@
--
-- Technician Dyvuun SAI -- http://www.wowhead.com/npc=16551
SET @ENTRY := 16551;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,25,0,100,0,0,0,0,0,53,0,16551,1,0,0,0,1,0,0,0,0,0,0,0,"Technician Dyvuun - On Reset - Start Waypoint"),
(@ENTRY,0,1,0,64,0,100,0,0,0,0,0,54,5000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Technician Dyvuun - On Gossip Hello - Pause Waypoint"),
(@ENTRY,0,2,0,40,0,100,0,1,16551,0,0,54,20000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Technician Dyvuun - On Waypoint 1 Reached - Pause Waypoint"),
(@ENTRY,0,3,0,40,0,100,0,2,16551,0,0,54,46000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Technician Dyvuun - On Waypoint 2 Reached - Pause Waypoint"),
(@ENTRY,0,4,0,40,0,100,0,3,16551,0,0,54,90000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Technician Dyvuun - On Waypoint 3 Reached - Pause Waypoint"),
(@ENTRY,0,5,6,40,0,100,0,4,16551,0,0,54,65000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Technician Dyvuun - On Waypoint 4 Reached - Pause Waypoint"),
(@ENTRY,0,6,0,61,0,100,0,4,16551,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,"Technician Dyvuun - On Waypoint 4 Reached - Run Script"),
(@ENTRY,0,7,0,40,0,100,0,5,16551,0,0,54,100000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Technician Dyvuun - On Waypoint 5 Reached - Pause Waypoint");
DELETE FROM `waypoints` WHERE `entry`=@ENTRY;
INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`, `point_comment`) VALUES
(@ENTRY, 1, -4158.32, -12483.1, 45.4554, 'Technician Dyvuun'),
(@ENTRY, 2, -4157.08, -12480.4, 45.2039, 'Technician Dyvuun'),
(@ENTRY, 3, -4158.32, -12483.1, 45.4554, 'Technician Dyvuun'),
(@ENTRY, 4, -4157.08, -12480.4, 45.2039, 'Technician Dyvuun'),
(@ENTRY, 5, -4158.32, -12483.1, 45.4554, 'Technician Dyvuun');
-- Actionlist SAI
SET @ENTRY := 1655100;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,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,"On Script - Set Emote State 69"),
(@ENTRY,9,1,0,0,0,100,0,7000,7000,0,0,17,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Set Emote State 0"),
(@ENTRY,9,2,0,0,0,100,0,0,0,0,0,9,0,0,0,0,0,0,20,181805,100,0,0,0,0,0,"On Script - Activate Gameobject"),
(@ENTRY,9,3,0,0,0,100,0,2000,2000,0,0,5,4,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Play Emote 4"),
(@ENTRY,9,4,0,0,0,100,0,0,0,0,0,12,17268,3,27000,0,0,0,8,0,0,0,-4156.35,-12477.5,46.1839,3.12414,"On Script - Summon Creature 'Image of Technician Zhanaa'"),
(@ENTRY,9,5,0,0,0,100,0,5000,5000,0,0,1,0,0,0,0,0,0,19,17268,100,0,0,0,0,0,"On Script - Say Line 0"),
(@ENTRY,9,6,0,0,0,100,0,4000,4000,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Say Line 0"),
(@ENTRY,9,7,0,0,0,100,0,9000,9000,0,0,1,1,0,0,0,0,0,19,17268,100,0,0,0,0,0,"On Script - Say Line 1"),
(@ENTRY,9,8,0,0,0,100,0,9000,9000,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Say Line 1"),
(@ENTRY,9,9,0,0,0,100,0,6000,6000,0,0,17,69,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Set Emote State 69"),
(@ENTRY,9,10,0,0,0,100,0,15000,15000,0,0,17,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Set Emote State 0");
-- must be summned by script
DELETE FROM `creature` WHERE guid = 62014;
DELETE FROM `creature_text` WHERE `CreatureID`=16551;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `Comment`) VALUES
(16551, 0, 0, 'Yes, Zhanna, it''s me! Your signal is weak.', 12, 0, 100, 0, 0, 0, 13687, 'Technician Dyvuun'),
(16551, 1, 0, 'Zhanna! Gah, I have to get this thing fixed!', 12, 0, 100, 0, 0, 0, 13692, 'Technician Dyvuun');
DELETE FROM `creature_text` WHERE `CreatureID`=17268;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `Comment`) VALUES
(17268, 0, 0, 'Dyvuun, is that you?', 12, 0, 100, 0, 0, 0, 13686, 'Image of Technician Zhanaa'),
(17268, 1, 0, 'I can barely hear you... <static> aking up!', 12, 0, 100, 0, 0, 0, 13688, 'Image of Technician Zhanaa');
@@ -0,0 +1,88 @@
-- Silvermoon City Trainer - updates #2
-- Winthren <Shield Merchant>
UPDATE `creature` SET position_x = 9451.738, position_y = -7122.863, position_z = 16.14618, orientation = 6.128479, Spawndist = 0, MovementType = 2 WHERE guid = 57682;
DELETE FROM `waypoints` WHERE `entry`=16693;
INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`) VALUES
(16693, 1, 9451.74, -7122.86, 16.1462),
(16693, 2, 9452.37, -7125.35, 16.1465),
(16693, 3, 9451.99, -7128.64, 16.1465),
(16693, 4, 9451.74, -7122.86, 16.1462),
(16693, 5, 9451.74, -7122.86, 16.1462);
-- Winthren SAI
SET @ENTRY := 16693;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,25,0,100,0,0,0,0,0,53,0,16693,1,0,0,0,1,0,0,0,0,0,0,0,"Winthren - On Reset - Start Waypoint"),
(@ENTRY,0,1,0,40,0,100,0,2,16693,0,0,80,@ENTRY*100+00,0,0,0,0,0,1,0,0,0,0,0,0,0,"Winthren - On Waypoint 2 Reached - Run Script"),
(@ENTRY,0,2,0,40,0,100,0,3,16693,0,0,80,@ENTRY*100+00,0,0,0,0,0,1,0,0,0,0,0,0,0,"Winthren - On Waypoint 3 Reached - Run Script"),
(@ENTRY,0,3,0,40,0,100,0,1,16693,0,0,54,5000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Winthren - On Waypoint 1 Reached - Pause Waypoint"),
(@ENTRY,0,4,0,40,0,100,0,5,16693,0,0,54,5000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Winthren - On Waypoint 5 Reached - Pause Waypoint");
-- Actionlist SAI
SET @ENTRY := 1669300;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,54,30000,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Pause Waypoint"),
(@ENTRY,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,"On Script - Set Emote State 69"),
(@ENTRY,9,2,0,0,0,100,0,26000,26000,0,0,17,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Set Emote State 0");
-- Tynna <Plate Armor Merchant>
UPDATE `creature` SET position_x = 9453.12, position_y = -7138.64, position_z = 16.1464, orientation = 0.186189, Spawndist = 0, MovementType = 0 WHERE guid = 57621;
DELETE FROM `waypoints` WHERE `entry`=16626;
INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`) VALUES
(16626, 1, 9453.12, -7138.64, 16.1464),
(16626, 2, 9455.66, -7135.42, 16.1352),
(16626, 3, 9453.97, -7134.69, 16.1431),
(16626, 4, 9451.15, -7138.66, 16.1464),
(16626, 5, 9453.12, -7138.64, 16.1464);
-- Tynna SAI
SET @ENTRY := 16626;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,25,0,100,0,0,0,0,0,53,0,16626,1,0,0,0,1,0,0,0,0,0,0,0,"Tynna - On Reset - Start Waypoint"),
(@ENTRY,0,1,0,40,0,100,0,1,16626,0,0,54,5000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Tynna - On Waypoint 1 Reached - Pause Waypoint"),
(@ENTRY,0,2,0,40,0,100,0,3,16626,0,0,80,@ENTRY*100+00,0,0,0,0,0,1,0,0,0,0,0,0,0,"Tynna - On Waypoint 3 Reached - Run Script"),
(@ENTRY,0,3,0,40,0,100,0,4,16626,0,0,80,@ENTRY*100+00,0,0,0,0,0,1,0,0,0,0,0,0,0,"Tynna - On Waypoint 4 Reached - Run Script"),
(@ENTRY,0,4,0,40,0,100,0,5,16626,0,0,54,5000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Tynna - On Waypoint 5 Reached - Pause Waypoint");
-- Actionlist SAI
SET @ENTRY := 1662600;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,54,30000,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Pause Waypoint"),
(@ENTRY,9,1,0,0,0,100,0,2000,2000,0,0,17,69,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Set Emote State 69"),
(@ENTRY,9,2,0,0,0,100,0,26000,26000,0,0,17,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Set Emote State 0");
-- Zalle
DELETE FROM `waypoints` WHERE `entry`=16611;
INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`) VALUES
(16611, 1, 9572.41, -7060.69, 18.6436),
(16611, 2, 9581.56, -7062.5, 18.6436),
(16611, 3, 9590.1, -7060.46, 18.6436),
(16611, 4, 9587.3, -7060.51, 18.6436),
(16611, 5, 9586.82, -7062.25, 18.6436),
(16611, 6, 9581.68, -7062.86, 18.6436),
(16611, 7, 9571.29, -7061.17, 18.6436),
(16611, 8, 9572.41, -7060.69, 18.6436);
-- Zalle SAI
SET @ENTRY := 16611;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,25,0,100,0,0,0,0,0,53,0,16611,1,0,0,0,1,0,0,0,0,0,0,0,"Zalle - On Reset - Start Waypoint"),
(@ENTRY,0,1,0,40,0,100,0,1,16611,0,0,54,5000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Zalle - On Waypoint 1 Reached - Pause Waypoint"),
(@ENTRY,0,2,0,40,0,100,0,3,16611,0,0,80,@ENTRY*100+00,0,0,0,0,0,1,0,0,0,0,0,0,0,"Zalle - On Waypoint 3 Reached - Run Script"),
(@ENTRY,0,4,0,40,0,100,0,8,16611,0,0,54,5000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Zalle - On Waypoint 8 Reached - Pause Waypoint");
-- Actionlist SAI
SET @ENTRY := 1661100;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,54,30000,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Pause Waypoint"),
(@ENTRY,9,1,0,0,0,100,0,2000,2000,0,0,17,69,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Set Emote State 69"),
(@ENTRY,9,2,0,0,0,100,0,26000,26000,0,0,17,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Set Emote State 0");
@@ -0,0 +1,39 @@
-- Razia SAI -- http://www.wowhead.com/npc=16643/razia
SET @ENTRY := 16643;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,25,0,100,0,0,0,0,0,53,0,16643,1,0,0,0,1,0,0,0,0,0,0,0,"Razia - On Reset - Start Waypoint"),
(@ENTRY,0,1,0,40,0,100,0,1,16643,0,0,54,30000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Razia - On Waypoint 1 Reached - Pause Waypoint"),
(@ENTRY,0,2,0,40,0,100,0,3,16643,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,"Razia - On Waypoint 3 Reached - Run Script"),
(@ENTRY,0,3,0,40,0,100,0,6,16643,0,0,80,@ENTRY*100+01,2,0,0,0,0,1,0,0,0,0,0,0,0,"Razia - On Waypoint 6 Reached - Run Script"),
(@ENTRY,0,4,0,40,0,100,0,9,16643,0,0,54,20000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Razia - On Waypoint 9 Reached - Pause Waypoint"),
(@ENTRY,0,5,0,64,0,100,0,0,0,0,0,54,10000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Razia - On Gossip Hello - Pause Waypoint");
-- Actionlist SAI
SET @ENTRY := 1664300;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,54,20000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Razia - On Script - Pause Waypoint"),
(@ENTRY,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,"Razia - On Script - Play Emote 25");
-- Actionlist SAI
SET @ENTRY := 1664301;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,54,6000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Razia - On Script - Pause Waypoint"),
(@ENTRY,9,1,0,0,0,100,0,2000,2000,0,0,5,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Razia - On Script - Play Emote 1");
DELETE FROM `waypoints` WHERE `entry`=16643;
INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`, `point_comment`) VALUES
(16643, 1, 10013.3, -7214.86, 32.0748, 'Razia'),
(16643, 2, 10013.5, -7217.56, 32.0748, 'Razia'),
(16643, 3, 10016.2, -7218.02, 32.0748, 'Razia'),
(16643, 4, 10014.7, -7217.3, 32.0764, 'Razia'),
(16643, 5, 10017.5, -7213.64, 32.0764, 'Razia'),
(16643, 6, 10017.7, -7210.42, 32.0756, 'Razia'),
(16643, 7, 10017.5, -7213.48, 32.0764, 'Razia'),
(16643, 8, 10013.3, -7214.86, 32.0748, 'Razia'),
(16643, 9, 10013.3, -7214.86, 32.0748, 'Razia');
UPDATE `creature` SET `Spawndist` = 0, `MovementType` = 0 WHERE `guid` IN (57682, 57621);
@@ -0,0 +1,81 @@
-- Silvermoon City - Trainer Scripts
DELETE FROM `waypoints` WHERE `entry`=16671;
INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`) VALUES
(16671, 1, 9859.67, -7361.79, 18.5932),
(16671, 2, 9858.73, -7363.12, 18.5903),
(16671, 3, 9859.67, -7361.79, 18.5932),
(16671, 4, 9859.67, -7361.79, 18.5932);
-- Mirvedon SAI
SET @ENTRY := 16671;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,25,0,100,0,0,0,0,0,53,0,16671,1,0,0,0,1,0,0,0,0,0,0,0,"Mirvedon - On Reset - Start Waypoint"),
(@ENTRY,0,1,0,40,0,100,0,1,16671,0,0,54,5000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Mirvedon - On Waypoint 1 Reached - Pause Waypoint"),
(@ENTRY,0,2,3,40,0,100,0,2,16671,0,0,54,20000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Mirvedon - On Waypoint 2 Reached - Pause Waypoint"),
(@ENTRY,0,3,0,61,0,100,0,2,16671,0,0,80,@ENTRY*100+00,0,0,0,0,0,1,0,0,0,0,0,0,0,"Mirvedon - On Waypoint 2 Reached - Run Script"),
(@ENTRY,0,4,0,40,0,100,0,4,16671,0,0,54,5000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Mirvedon - On Waypoint 4 Reached - Pause Waypoint"),
(@ENTRY,0,5,0,64,0,100,0,0,0,0,0,54,10000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Mirvedon - On Gossip Hello - Pause Waypoint");
-- Actionlist SAI
SET @ENTRY := 1667100;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,3000,3000,0,0,17,173,0,0,0,0,0,1,0,0,0,0,0,0,0,"Mirvedon - On Script - Set Emote State 173"),
(@ENTRY,9,1,0,0,0,100,0,10000,10000,0,0,17,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Mirvedon - On Script - Set Emote State 0");
DELETE FROM `waypoints` WHERE `entry`=16667;
INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`) VALUES
(16667, 1, 9822.16, -7333.16, 26.3),
(16667, 2, 9822.35, -7331.03, 26.2814),
(16667, 3, 9820.39, -7329.52, 26.2814),
(16667, 4, 9819.43, -7330.37, 26.2814),
(16667, 5, 9820.59, -7329.88, 26.2814),
(16667, 6, 9821.49, -7331.48, 26.2814),
(16667, 7, 9821.25, -7331.97, 26.2814),
(16667, 8, 9822.16, -7333.16, 26.3),
(16667, 9, 9822.16, -7333.16, 26.3);
-- Danwe SAI
SET @ENTRY := 16667;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,25,0,100,0,0,0,0,0,53,0,16667,1,0,0,0,1,0,0,0,0,0,0,0,"Danwe - On Reset - Start Waypoint"),
(@ENTRY,0,1,2,40,0,100,0,4,16667,0,0,54,30000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Danwe - On Waypoint 4 Reached - Pause Waypoint"),
(@ENTRY,0,2,0,61,0,100,0,4,16667,0,0,80,@ENTRY*100+00,0,0,0,0,0,1,0,0,0,0,0,0,0,"Danwe - On Waypoint 4 Reached - Run Script"),
(@ENTRY,0,3,4,40,0,100,0,7,16667,0,0,54,30000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Danwe - On Waypoint 7 Reached - Pause Waypoint"),
(@ENTRY,0,4,0,61,0,100,0,7,16667,0,0,80,@ENTRY*100+01,0,0,0,0,0,1,0,0,0,0,0,0,0,"Danwe - On Waypoint 7 Reached - Run Script"),
(@ENTRY,0,5,0,64,0,100,0,0,0,0,0,54,10000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Danwe - On Gossip Hello - Pause Waypoint");
-- Actionlist SAI
SET @ENTRY := 1666700;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,2000,2000,0,0,75,68442,0,0,0,0,0,1,0,0,0,0,0,0,0,"Danwe - On Script - Add Aura 'Kneel'"),
(@ENTRY,9,1,0,0,0,100,0,26000,26000,0,0,28,68442,0,0,0,0,0,1,0,0,0,0,0,0,0,"Danwe - On Script - Remove Aura 'Kneel'");
-- Actionlist SAI
SET @ENTRY := 1666701;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,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,"On Script - Set Emote State 69"),
(@ENTRY,9,1,0,0,0,100,0,26000,26000,0,0,17,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Set Emote State 0");
SET @NPC := 57637;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`) VALUES
(@PATH, 1, 10013.3, -7214.86, 32.0748),
(@PATH, 2, 10013.5, -7217.56, 32.0748),
(@PATH, 3, 10016.2, -7218.02, 32.0748),
(@PATH, 4, 10014.7, -7217.3, 32.0764),
(@PATH, 5, 10017.5, -7213.64, 32.0764),
(@PATH, 6, 10017.7, -7210.42, 32.0756),
(@PATH, 7, 10017.5, -7213.48, 32.0764),
(@PATH, 8, 10013.3, -7214.86, 32.0748),
(@PATH, 9, 10013.3, -7214.86, 32.0748);
@@ -0,0 +1,46 @@
-- Brother Daniels SAI -- http://www.wowhead.com/npc=19447/brother-daniels
SET @ENTRY := 19447;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,25,0,100,0,0,0,0,0,53,0,19447,1,0,0,0,1,0,0,0,0,0,0,0,"Brother Daniels - On Reset - Start Waypoint"),
(@ENTRY,0,1,0,40,0,100,0,2,19447,0,0,54,2000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Brother Daniels - On Waypoint 2 Reached - Pause Waypoint"),
(@ENTRY,0,2,0,40,0,100,0,3,19447,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,"Brother Daniels - On Waypoint 3 Reached - Run Script"),
(@ENTRY,0,3,0,40,0,100,0,5,19447,0,0,80,@ENTRY*100+01,2,0,0,0,0,1,0,0,0,0,0,0,0,"Brother Daniels - On Waypoint 5 Reached - Run Script");
-- Actionlist SAI
SET @ENTRY := 1944700;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,54,155000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Brother Daniels - On Script - Pause Waypoint"),
(@ENTRY,9,1,0,0,0,100,0,0,0,0,0,66,0,0,0,0,0,0,8,0,0,0,0,0,0,4.47099,"Brother Daniels - On Script - Set Orientation 4.47099"),
(@ENTRY,9,2,0,0,0,100,0,15000,15000,0,0,1,0,10000,0,0,0,0,1,0,0,0,0,0,0,0,"Brother Daniels - On Script - Say Line 0"),
(@ENTRY,9,3,0,0,0,100,0,15000,15000,0,0,75,68442,0,0,0,0,0,1,0,0,0,0,0,0,0,"Brother Daniels - On Script - Set Flag Standstate Kneel"),
(@ENTRY,9,4,0,0,0,100,0,1000,1000,0,0,1,1,10000,0,0,0,0,1,0,0,0,0,0,0,0,"Brother Daniels - On Script - Say Line 1"),
(@ENTRY,9,5,0,0,0,100,0,119000,119000,0,0,28,68442,0,0,0,0,0,1,0,0,0,0,0,0,0,"Brother Daniels - On Script - Remove Flag Standstate Stand Up");
-- Actionlist SAI
SET @ENTRY := 1944701;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,54,155000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Brother Daniels - On Script - Pause Waypoint"),
(@ENTRY,9,1,0,0,0,100,0,0,0,0,0,66,0,0,0,0,0,0,8,0,0,0,0,0,0,4.00368,"Brother Daniels - On Script - Set Orientation 4.00368"),
(@ENTRY,9,2,0,0,0,100,0,15000,15000,0,0,1,2,10000,0,0,0,0,1,0,0,0,0,0,0,0,"Brother Daniels - On Script - Say Line 2"),
(@ENTRY,9,3,0,0,0,100,0,15000,15000,0,0,75,68442,0,0,0,0,0,1,0,0,0,0,0,0,0,"Brother Daniels - On Script - Set Flag Standstate Kneel"),
(@ENTRY,9,4,0,0,0,100,0,1000,1000,0,0,1,3,10000,0,0,0,0,1,0,0,0,0,0,0,0,"Brother Daniels - On Script - Say Line 3"),
(@ENTRY,9,5,0,0,0,100,0,119000,119000,0,0,28,68442,0,0,0,0,0,1,0,0,0,0,0,0,0,"Brother Daniels - On Script - Remove Flag Standstate Stand Up");
DELETE FROM `creature_text` WHERE `CreatureID`=19447;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `Comment`) VALUES
(19447, 0, 0, 'Light, lead the fallen from untruth to truth, from darkness to Light and from death to immortality.', 12, 0, 100, 0, 0, 0, 16769, 'Brother Daniels'),
(19447, 1, 0, 'Light be with you now and forever.', 12, 0, 100, 0, 0, 0, 16770, 'Brother Daniels'),
(19447, 2, 0, 'Light, give me strength.', 12, 0, 100, 0, 0, 0, 16767, 'Brother Daniels'),
(19447, 3, 0, 'The priest kneels in silent prayer.', 16, 0, 100, 0, 0, 0, 16772, 'Brother Daniels');
DELETE FROM `waypoints` WHERE `entry`=19447;
INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`, `point_comment`) VALUES
(19447, 1, -365.8, 980.679, 54.1955, 'Brother Daniels'),
(19447, 2, -354.904, 978.248, 54.2496, 'Brother Daniels'),
(19447, 3, -354.904, 978.248, 54.2496, 'Brother Daniels'),
(19447, 4, -366.477, 980.557, 54.1895, 'Brother Daniels'),
(19447, 5, -369.43, 977.106, 54.1679, 'Brother Daniels');
@@ -0,0 +1,73 @@
DELETE FROM `creature` WHERE `id` IN(22952,22950,22949,22951);
DELETE FROM `creature_summon_groups` WHERE `summonerId`=23426; -- Illidari Council Trigger
INSERT INTO `creature_summon_groups` (`summonerId`,`summonerType`,`groupId`,`entry`,`position_x`,`position_y`,`position_z`,`orientation`,`summonType`,`summonTime`) VALUES
(23426,0,1,22952,697.495,310.651,277.527,3.1765 ,6,3600000), -- Veras Darkshadow
(23426,0,1,22950,700.792,307.192,277.526,3.14159,6,3600000), -- High Nethermancer Zerevor
(23426,0,1,22949,700.739,302.722,277.526,3.10669,6,3600000), -- Gathios the Shatterer
(23426,0,1,22951,697.409,299.377,277.526,3.07178,6,3600000); -- Lady Malande
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=13 AND `SourceEntry`=41333; -- Empyreal Equivalency
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(13,1,41333,0,0,31,0,3,22950,0,0,0,0,'','Effect_0 hits High Nethermancer Zerevor'),
(13,1,41333,0,1,31,0,3,22949,0,0,0,0,'','Effect_0 hits Gathios the Shatterer'),
(13,1,41333,0,2,31,0,3,22951,0,0,0,0,'','Effect_0 hits Lady Malande'),
(13,1,41333,0,3,31,0,3,22952,0,0,0,0,'','Effect_0 hits Veras Darkshadow');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=13 AND `SourceEntry`=41499; -- Empyreal Balance
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(13,1,41499,0,0,31,0,3,22950,0,0,0,0,'','Effect_0 hits High Nethermancer Zerevor'),
(13,1,41499,0,1,31,0,3,22949,0,0,0,0,'','Effect_0 hits Gathios the Shatterer'),
(13,1,41499,0,2,31,0,3,22951,0,0,0,0,'','Effect_0 hits Lady Malande'),
(13,1,41499,0,3,31,0,3,22952,0,0,0,0,'','Effect_0 hits Veras Darkshadow');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=13 AND `SourceEntry`=41342; -- Shared Rule
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(13,1,41342,0,0,31,0,3,23426,0,0,0,0,'','Effect_0 hits The Illidari Council');
UPDATE `linked_respawn` SET `linkedGuid`=52479 WHERE `linkedGuid`=52762;
UPDATE `creature_template` SET `flags_extra`=`flags_extra`|128, `ScriptName`='npc_veras_vanish_effect' WHERE `entry`=23451;
UPDATE `creature_template` SET `ScriptName`='boss_illidari_council' WHERE `entry`=23426;
UPDATE `creature_template` SET `ScriptName`='' WHERE `entry`=23499;
DELETE FROM `spell_script_names` WHERE `ScriptName` IN(
'spell_illidari_council_empyreal_balance',
'spell_illidari_council_empyreal_equivalency',
'spell_illidari_council_balance_of_power',
'spell_illidari_council_deadly_strike',
'spell_illidari_council_deadly_poison',
'spell_illidari_council_judgement',
'spell_illidari_council_seal',
'spell_boss_lady_malande_shield',
'spell_illidari_council_reflective_shield',
'spell_illidari_dampen_magic');
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(41499,'spell_illidari_council_empyreal_balance'),
(41333,'spell_illidari_council_empyreal_equivalency'),
(41341,'spell_illidari_council_balance_of_power'),
(41480,'spell_illidari_council_deadly_strike'),
(41485,'spell_illidari_council_deadly_poison'),
(41467,'spell_illidari_council_judgement'),
(41469,'spell_illidari_council_seal'),
(41459,'spell_illidari_council_seal'),
(41475,'spell_illidari_council_reflective_shield'),
(41478,'spell_illidari_dampen_magic');
DELETE FROM `creature_text` WHERE `CreatureID` IN(22951,22949,22950,22952) AND (`GroupID` IN(3,4,5,6) OR (`GroupID`=2 AND `ID`=1));
INSERT INTO `creature_text` (`CreatureID`,`GroupID`,`ID`,`Text`,`Type`,`Language`,`Probability`,`Emote`,`Duration`,`Sound`,`BroadcastTextId`,`TextRange`,`Comment`) VALUES
(22949,2,1,'You are MINE!',14,0,100,0,0,11427,21739,0,'council gath SPECIAL2'),
(22949,3,0,'Selama am\'oronor!',14,0,100,0,0,11423,21735,0,'council gath SLAY'),
(22949,4,0,'Well done!',14,0,100,0,0,11424,21736,0,'council gath SLAY_COMT'),
(22949,5,0,'Lord Illidan, I...',14,0,100,0,0,11425,21737,0,'council gath DEATH'),
(22951,2,1,'I\'m full of surprises!',14,0,100,0,0,11487,21719,0,'council mala SPECIAL2'),
(22951,3,0,'My work is done.',14,0,100,0,0,11483,21712,0,'council mala SLAY'),
(22951,4,0,'As it should be.',14,0,100,0,0,11484,21713,0,'council mala SLAY_COMT'),
(22951,5,0,'Destiny... awaits.',14,0,100,0,0,11485,21715,0,'council mala DEATH'),
(22950,2,1,'Sha\'amoor ara mashal?',14,0,100,0,0,11445,21731,0,'council zere SPECIAL2'),
(22950,3,0,'Shorel\'aran.',14,0,100,0,0,11441,21725,0,'council zere SLAY'),
(22950,4,0,'Belesa menoor!',14,0,100,0,0,11442,21727,0,'council zere SLAY_COMT'),
(22950,5,0,'Diel ma\'ahn... orindel\'o.',14,0,100,0,0,11443,21729,0,'council zere DEATH'),
(22952,2,1,'Anar\'alah belore!',14,0,100,0,0,11529,21705,0,'council vera SPECIAL2'),
(22952,3,0,'Valiant effort.',14,0,100,0,0,11525,21699,0,'council vera SLAY'),
(22952,4,0,'A glorious kill!',14,0,100,0,0,11526,21701,0,'council vera SLAY_COMT'),
(22952,5,0,'You got... lucky.',14,0,100,0,0,11527,21703,0,'council vera DEATH');
@@ -0,0 +1,13 @@
DELETE FROM `linked_respawn` WHERE `guid`IN(201369,201493,201577,201286);
DELETE FROM `creature` WHERE `id` IN(37973,37972,37970);
DELETE FROM `creature_summon_groups` WHERE `summonerId`=38008; -- Blood orb controller
INSERT INTO `creature_summon_groups` (`summonerId`,`summonerType`,`groupId`,`entry`,`position_x`,`position_y`,`position_z`,`orientation`,`summonType`,`summonTime`) VALUES
(38008,0,1,37973,4682.89,2755.11,364.17,3.14159 ,6,3600000), -- Taldaram
(38008,0,1,37972,4682.73,2783.42,364.17,3.14159,6,3600000), -- Keleseth
(38008,0,1,37970,4680.29,2769.24,364.17,3.14159,6,3600000); -- Valanar
DELETE FROM spell_proc WHERE SpellId=72059;
INSERT INTO spell_proc (SpellId, SchoolMask, SpellFamilyName, SpellFamilyMask0, SpellFamilyMask1, SpellFamilyMask2, ProcFlags, SpellTypeMask, SpellPhaseMask, HitMask, AttributesMask, ProcsPerMinute, Chance, Cooldown, Charges) VALUES
(72059, 0, 0, 0x0, 0x0, 0x0, 0, 0x1, 0x2, 0x403, 0x2, 0, 0, 0, 0); -- Unstable
UPDATE `creature_template` SET `speed_walk`=0.4, `speed_run`=0.142857 WHERE `entry` IN (38454,38775); -- normal kinetic
@@ -0,0 +1,48 @@
-- Harene Plainwalker -- http://www.wowhead.com/npc=16655/harene-plainwalker#comments
UPDATE `creature_template_addon` SET `emote`=0 WHERE `entry`=16655;
-- Harene Plainwalker SAI
SET @ENTRY := 16655;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,25,0,100,0,0,0,0,0,53,0,16655,1,0,0,0,1,0,0,0,0,0,0,0,"Harene Plainwalker - On Reset - Start Waypoint"),
(@ENTRY,0,1,0,40,0,100,0,1,16655,0,0,54,5000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Harene Plainwalker - On Waypoint 1 Reached - Pause Waypoint"),
(@ENTRY,0,2,0,40,0,100,0,3,16655,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,"Harene Plainwalker - On Waypoint 3 Reached - Run Script"),
(@ENTRY,0,3,0,40,0,100,0,7,16655,0,0,80,@ENTRY*100+01,2,0,0,0,0,1,0,0,0,0,0,0,0,"Harene Plainwalker - On Waypoint 7 Reached - Run Script"),
(@ENTRY,0,4,0,40,0,100,0,11,16655,0,0,80,@ENTRY*100+01,2,0,0,0,0,1,0,0,0,0,0,0,0,"Harene Plainwalker - On Waypoint 11 Reached - Run Script"),
(@ENTRY,0,5,0,40,0,100,0,14,16655,0,0,54,60000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Harene Plainwalker - On Waypoint 14 Reached - Pause Waypoint"),
(@ENTRY,0,6,0,64,0,100,0,0,0,0,0,54,15000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Harene Plainwalker - On Gossip Hello - Pause Waypoint");
-- Actionlist SAI
SET @ENTRY := 1665500;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,54,0,0,0,54,30000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Harene Plainwalker - On Script - Pause Waypoint"),
(@ENTRY,9,1,0,0,0,100,0,2000,2000,0,0,17,133,0,0,0,0,0,1,0,0,0,0,0,0,0,"Harene Plainwalker - On Script - Set Emote State 133"),
(@ENTRY,9,2,0,0,0,100,0,25000,25000,0,0,17,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Harene Plainwalker - On Script - Set Emote State 0");
-- Actionlist SAI
SET @ENTRY := 1665501;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,54,30000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Harene Plainwalker - On Script - Pause Waypoint"),
(@ENTRY,9,1,0,0,0,100,0,2000,2000,0,0,75,68442,0,0,0,0,0,1,0,0,0,0,0,0,0,"Harene Plainwalker - On Script - Add Aura 'Kneel'"),
(@ENTRY,9,2,0,0,0,100,0,25000,25000,0,0,28,68442,0,0,0,0,0,1,0,0,0,0,0,0,0,"Harene Plainwalker - On Script - Remove Aura 'Kneel'");
DELETE FROM `waypoints` WHERE `entry`=16655;
INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`, `point_comment`) VALUES
(16655, 1, 9703.85, -7267.49, 16.1144, 'Harene Plainwalker'),
(16655, 2, 9703.63, -7263.83, 15.9914, 'Harene Plainwalker'),
(16655, 3, 9706.74, -7261.86, 16.5287, 'Harene Plainwalker'),
(16655, 4, 9703.75, -7263.42, 16.0209, 'Harene Plainwalker'),
(16655, 5, 9701.5, -7261.56, 15.9065, 'Harene Plainwalker'),
(16655, 6, 9698.97, -7258.35, 15.599, 'Harene Plainwalker'),
(16655, 7, 9698.97, -7258.35, 15.599, 'Harene Plainwalker'),
(16655, 8, 9700.7, -7261.93, 15.7977, 'Harene Plainwalker'),
(16655, 9, 9703.63, -7266.76, 16.0817, 'Harene Plainwalker'),
(16655, 10, 9701.12, -7272.78, 15.8364, 'Harene Plainwalker'),
(16655, 11, 9700.66, -7278.72, 15.5704, 'Harene Plainwalker'),
(16655, 12, 9701.32, -7272.86, 15.8672, 'Harene Plainwalker'),
(16655, 13, 9703.85, -7267.49, 16.1144, 'Harene Plainwalker'),
(16655, 14, 9703.85, -7267.49, 16.1144, 'Harene Plainwalker');
@@ -0,0 +1,94 @@
-- Silvermoon City - Trainer Update 3
-- Welethelon <Blunt Weapon Merchant>
UPDATE `creature` SET position_x = 9665.084, position_y = -7073.852, position_z = 14.32864, orientation = 4.869938, Spawndist = 0, MovementType = 2 WHERE guid = 57631;
SET @NPC := 57631;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`, `delay`) VALUES
(@PATH, 1, 9665.08, -7073.85, 14.3286,0),
(@PATH, 2, 9663.17, -7075.62, 14.3327,0),
(@PATH, 3, 9662.24, -7078.38, 14.3211,5000),
(@PATH, 4, 9668.51, -7079.23, 14.3343,0),
(@PATH, 5, 9668.51, -7079.23, 14.3343,5000),
(@PATH, 6, 9666.14, -7076.94, 14.3352,0),
(@PATH, 7, 9665.08, -7073.85, 14.3286,0),
(@PATH, 8, 9665.08, -7073.85, 14.3286,10000);
-- Noraelath <Leather Armor Merchant>
UPDATE `creature` SET position_x = 9651.68, position_y = -7070.56, position_z = 14.3104, orientation = 4.01189, Spawndist = 0, MovementType = 2 WHERE guid = 57680;
SET @NPC := 57680;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`, `delay`) VALUES
(@PATH, 1, 9651.68, -7070.56, 14.3104,10000),
(@PATH, 2, 9650.83, -7073.55, 14.3112,0),
(@PATH, 3, 9649.54, -7070.92, 14.3095,0),
(@PATH, 4, 9648.21, -7071.54, 14.3092,10000),
(@PATH, 5, 9651.68, -7070.56, 14.3104,0),
(@PATH, 6, 9651.68, -7070.56, 14.3104,5000);
-- Rahein <Blade Vendor>
DELETE FROM `waypoints` WHERE `entry`=16678;
INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`) VALUES
(16678, 1, 9630.69, -7032.97, 15.2687),
(16678, 2, 9636.05, -7031.66, 15.2674),
(16678, 3, 9630.66, -7032.19, 15.2674),
(16678, 4, 9627.83, -7031.5, 15.2674),
(16678, 5, 9630.69, -7032.97, 15.2687),
(16678, 6, 9630.69, -7032.97, 15.2687);
-- Rahein SAI
SET @ENTRY := 16678;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,25,0,100,0,0,0,0,0,53,0,16678,1,0,0,0,1,0,0,0,0,0,0,0,"Rahein - On Reset - Start Waypoint"),
(@ENTRY,0,1,0,40,0,100,0,4,16678,0,0,80,@ENTRY*100+00,0,0,0,0,0,1,0,0,0,0,0,0,0,"Rahein - On Waypoint 4 Reached - Run Script"),
(@ENTRY,0,2,0,64,0,100,0,0,0,0,0,54,15000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Rahein - On Gossip Hello - Pause Waypoint");
-- Actionlist SAI
SET @ENTRY := 1667800;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,54,40000,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Pause Waypoint"),
(@ENTRY,9,1,0,0,0,100,0,2000,2000,0,0,17,69,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Set Emote State 69"),
(@ENTRY,9,2,0,0,0,100,0,35000,35000,0,0,17,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Set Emote State 0");
-- Feledis <Axe Vendor>
DELETE FROM `waypoints` WHERE `entry`=16666;
INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`) VALUES
(16666, 1, 9644.87, -7037.51, 15.2466),
(16666, 2, 9649.12, -7037.71, 15.247),
(16666, 3, 9649.12, -7037.71, 15.247),
(16666, 4, 9649.84, -7036.01, 15.2545),
(16666, 5, 9650.34, -7034.34, 15.2614),
(16666, 6, 9647.34, -7032.51, 15.2673),
(16666, 7, 9647.34, -7032.51, 15.2673),
(16666, 8, 9644.26, -7032.12, 15.2673),
(16666, 9, 9643.18, -7034.19, 15.2648),
(16666, 10, 9643.12, -7036.25, 15.254),
(16666, 11, 9644.87, -7037.51, 15.2466),
(16666, 12, 9644.87, -7037.51, 15.2466);
-- Feledis SAI
SET @ENTRY := 16666;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,25,0,100,0,0,0,0,0,53,0,16666,1,0,0,0,1,0,0,0,0,0,0,0,"Feledis - On Reset - Start Waypoint"),
(@ENTRY,0,1,0,40,0,100,0,4,16666,0,0,80,@ENTRY*100+00,0,0,0,0,0,1,0,0,0,0,0,0,0,"Feledis - On Waypoint 4 Reached - Run Script"),
(@ENTRY,0,2,0,64,0,100,0,0,0,0,0,54,15000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Feledis - On Gossip Hello - Pause Waypoint");
-- Actionlist SAI
SET @ENTRY := 1666600;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,54,45000,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Pause Waypoint"),
(@ENTRY,9,1,0,0,0,100,0,2000,2000,0,0,17,69,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Set Emote State 69"),
(@ENTRY,9,2,0,0,0,100,0,41000,41000,0,0,17,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Set Emote State 0");
@@ -0,0 +1,175 @@
-- Fleshfiend
SET @CGUID := 77792; -- 12 FREE GUIDS NEEDED SET BY TC TEAM
DELETE FROM `creature` WHERE `guid` NOT IN (72253, 72254, 72255) AND `id`=20340;
DELETE FROM `creature` WHERE `guid` BETWEEN @CGUID+0 AND @CGUID+11;
INSERT INTO `creature` (`guid`, `id`, `map`, `spawnMask`, `modelid`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `curhealth`, `curmana`, `MovementType`) VALUES
(@CGUID+0, 20340, 530, 1, 0, 3700.07, 2104.38, 154.187, 1.05376, 300, 0, 6761, 0, 2),
(@CGUID+1, 20340, 530, 1, 0, 3802, 2077.1, 149.618, 2.7682, 300, 5, 6986, 0, 1),
(@CGUID+2, 20340, 530, 1, 0, 3757.67, 2080.25, 151.914, 3.0616, 300, 2, 6986, 0, 1),
(@CGUID+3, 20340, 530, 1, 0, 3830.72, 2152.55, 145.842, 4.57919, 300, 5, 6986, 0, 1),
(@CGUID+4, 20340, 530, 1, 0, 3845.32, 2111.13, 148.712, 3.38892, 300, 0, 6761, 0, 2),
(@CGUID+5, 20340, 530, 1, 0, 3864.73, 2158.55, 139.53, 5.98851, 300, 5, 6761, 0, 1),
(@CGUID+6, 20340, 530, 1, 0, 3883.87, 2131.02, 133.884, 5.14029, 300, 5, 6761, 0, 1),
(@CGUID+7, 20340, 530, 1, 0, 3873.85, 2104.63, 133.388, 4.74834, 300, 0, 6986, 0, 2),
(@CGUID+8, 20340, 530, 1, 0, 3919.83, 2087.85, 133.488, 2.46537, 300, 5, 6761, 0, 1),
(@CGUID+9, 20340, 530, 1, 0, 3895.68, 2034.48, 148.256, 3.45105, 300, 5, 6761, 0, 1),
(@CGUID+10, 20340, 530, 1, 0, 3909.46, 2090.17, 155.839, 2.58317, 300, 5, 6986, 0, 1),
(@CGUID+11, 20340, 530, 1, 0, 3927.87, 2118.67, 159.924, 4.58354, 300, 0, 6761, 0, 2);
-- Updates
UPDATE `creature` SET `spawndist` = 0, `MovementType` = 0 WHERE guid = 72253;
UPDATE `creature` SET `position_x` = 3845.784424, `position_y` = 2111.566895, `position_z` = 148.651016, `spawndist` = 5, `MovementType` = 1 WHERE `guid` = 72254;
SET @NPC := 72253;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`) VALUES
(@PATH, 1, 3828.6, 2052.43, 146.299),
(@PATH, 2, 3814.57, 2068.55, 148.037),
(@PATH, 3, 3803.64, 2075.73, 148.999),
(@PATH, 4, 3793.57, 2076.63, 152.807),
(@PATH, 5, 3772.9, 2078.11, 154.741),
(@PATH, 6, 3793.79, 2077.36, 152.872),
(@PATH, 7, 3806.68, 2075.38, 148.988),
(@PATH, 8, 3817.08, 2066.81, 147.837),
(@PATH, 9, 3829.58, 2051.22, 145.945),
(@PATH, 10, 3837.99, 2045.38, 144.981),
(@PATH, 11, 3844.06, 2036.32, 143.92),
(@PATH, 12, 3853.07, 2030.52, 142.777),
(@PATH, 13, 3865.79, 2024.48, 144.208),
(@PATH, 14, 3851.93, 2030.9, 142.805),
(@PATH, 15, 3844.37, 2036.31, 143.849),
(@PATH, 16, 3838.85, 2044.04, 144.628);
SET @NPC := @CGUID+0;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`) VALUES
(@PATH, 1, 3708.42, 2110.91, 152.714),
(@PATH, 2, 3718.47, 2112.17, 150.762),
(@PATH, 3, 3738.52, 2109.59, 148.183),
(@PATH, 4, 3711.96, 2112.24, 152.367),
(@PATH, 5, 3702.12, 2107.95, 153.659),
(@PATH, 6, 3692.42, 2098.89, 155.214),
(@PATH, 7, 3686.26, 2093.03, 149.364),
(@PATH, 8, 3683.91, 2089.67, 152.259),
(@PATH, 9, 3688.53, 2083.23, 152.775),
(@PATH, 10, 3698.57, 2069.71, 150.483),
(@PATH, 11, 3715.1, 2062.27, 147.368),
(@PATH, 12, 3728.18, 2056.63, 144.842),
(@PATH, 13, 3740.76, 2052.12, 146.617),
(@PATH, 14, 3756.8, 2056.43, 150.487),
(@PATH, 15, 3741.21, 2052.22, 146.648),
(@PATH, 16, 3727.44, 2056.94, 144.813),
(@PATH, 17, 3698.21, 2070.22, 150.638),
(@PATH, 18, 3689.34, 2085.61, 152.047),
(@PATH, 19, 3687.46, 2092.86, 149.402),
(@PATH, 20, 3690.78, 2097.36, 154.156),
(@PATH, 21, 3700.04, 2104.35, 154.194);
SET @NPC := @CGUID+4;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`) VALUES
(@PATH, 1, 3832.22, 2107.48, 149.717),
(@PATH, 2, 3825.75, 2105.58, 151.003),
(@PATH, 3, 3820.36, 2104.75, 148.444),
(@PATH, 4, 3811.88, 2098.79, 147.848),
(@PATH, 5, 3804.56, 2091.55, 149.842),
(@PATH, 6, 3813.68, 2099.89, 147.724),
(@PATH, 7, 3820.93, 2105.03, 148.563),
(@PATH, 8, 3825.93, 2106.17, 151.103),
(@PATH, 9, 3832.41, 2107.12, 149.743),
(@PATH, 10, 3843.08, 2112.63, 148.908),
(@PATH, 11, 3843.73, 2122.31, 147.232),
(@PATH, 12, 3839.65, 2131.35, 146.628),
(@PATH, 13, 3837.69, 2138.62, 145.446),
(@PATH, 14, 3832.25, 2154.89, 145.916),
(@PATH, 15, 3838.13, 2137.13, 145.727),
(@PATH, 16, 3842.26, 2122.59, 147.082),
(@PATH, 17, 3846.68, 2115.09, 148.459),
(@PATH, 18, 3855.48, 2114.4, 147.42),
(@PATH, 19, 3870.42, 2114.12, 147.612),
(@PATH, 20, 3885.1, 2109.86, 149.593),
(@PATH, 21, 3893.09, 2104.7, 152.478),
(@PATH, 22, 3903.74, 2097.1, 154.744),
(@PATH, 23, 3895.22, 2104.42, 153.216),
(@PATH, 24, 3883.14, 2110.8, 149.206),
(@PATH, 25, 3867.52, 2114.77, 147.194),
(@PATH, 26, 3852.24, 2113.81, 147.649),
(@PATH, 27, 3846.62, 2115.55, 148.453),
(@PATH, 28, 3840.54, 2128.64, 146.783),
(@PATH, 29, 3837.58, 2140.16, 145.256),
(@PATH, 30, 3832.01, 2155.39, 145.949),
(@PATH, 31, 3837.48, 2140.4, 145.27);
SET @NPC := @CGUID+7;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`) VALUES
(@PATH, 1, 3874.85, 2092.38, 131.986),
(@PATH, 2, 3881.79, 2076.72, 132.069),
(@PATH, 3, 3876.13, 2088.46, 131.757),
(@PATH, 4, 3873.89, 2102.41, 132.905),
(@PATH, 5, 3875.56, 2109.94, 135.03),
(@PATH, 6, 3879.99, 2120.42, 133.436),
(@PATH, 7, 3882.52, 2130.11, 133.948),
(@PATH, 8, 3877.94, 2139.1, 135.257),
(@PATH, 9, 3876.27, 2145.36, 139.053),
(@PATH, 10, 3874.56, 2152.62, 138.963),
(@PATH, 11, 3867.19, 2159.01, 139.152),
(@PATH, 12, 3857.43, 2157.18, 140.557),
(@PATH, 13, 3846.26, 2156.16, 141.191),
(@PATH, 14, 3842.13, 2158.58, 141.856),
(@PATH, 15, 3848.25, 2155.62, 140.979),
(@PATH, 16, 3858.78, 2157.24, 140.533),
(@PATH, 17, 3872.4, 2155.03, 138.92),
(@PATH, 18, 3875.87, 2150.28, 139.98),
(@PATH, 19, 3876.41, 2145.97, 139.209),
(@PATH, 20, 3878.13, 2140.38, 135.46),
(@PATH, 21, 3882.97, 2129.62, 133.867),
(@PATH, 22, 3880.17, 2118.79, 133.545),
(@PATH, 23, 3875.72, 2110.03, 134.98),
(@PATH, 24, 3874.23, 2103.02, 132.96);
SET @NPC := @CGUID+11;
SET @PATH := @NPC * 10;
UPDATE `creature` SET `spawndist`=0,`MovementType`=2 WHERE `guid`=@NPC;
DELETE FROM `creature_addon` WHERE `guid`=@NPC;
INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, '');
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`) VALUES
(@PATH, 1, 3923.03, 2102, 158.719),
(@PATH, 2, 3918.22, 2094.92, 157.148),
(@PATH, 3, 3909.27, 2086.84, 156.194),
(@PATH, 4, 3908.21, 2079.6, 153.654),
(@PATH, 5, 3907.09, 2069.95, 152.617),
(@PATH, 6, 3906.22, 2058.27, 150.862),
(@PATH, 7, 3901.95, 2047.35, 149.152),
(@PATH, 8, 3907.01, 2060.82, 151.077),
(@PATH, 9, 3907.93, 2080.42, 153.756),
(@PATH, 10, 3909.4, 2086.92, 156.191),
(@PATH, 11, 3913.55, 2091.18, 155.927),
(@PATH, 12, 3920.32, 2096.83, 157.939),
(@PATH, 13, 3926.47, 2109.47, 159.1),
(@PATH, 14, 3927.97, 2121.86, 160.375),
(@PATH, 15, 3930.43, 2129, 160.119),
(@PATH, 16, 3940.05, 2136.96, 160.067),
(@PATH, 17, 3952.66, 2135.78, 161.632),
(@PATH, 18, 3957.72, 2133.09, 162.299),
(@PATH, 19, 3946.18, 2137.7, 160.791),
(@PATH, 20, 3936.69, 2136.25, 160.133),
(@PATH, 21, 3928.27, 2125.16, 160.584),
(@PATH, 22, 3927.47, 2118.3, 159.805);
@@ -0,0 +1,47 @@
-- [Q] The Flesh Lies...
-- Withered Corpse SAI
SET @ENTRY := 20561;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,1,8,0,100,0,35372,0,0,0,33,20561,0,0,0,0,0,7,0,0,0,0,0,0,0,"Withered Corpse - On Spellhit 'Protectorate Igniter' - Quest Credit 'The Flesh Lies...''"),
(@ENTRY,0,1,2,61,0,100,0,35372,0,0,0,50,184445,60,0,0,0,0,1,0,0,0,0,0,0,0,"Withered Corpse - On Spellhit 'Protectorate Igniter' - Summon Gameobject 'Charred Remains'"),
(@ENTRY,0,2,0,61,0,100,0,35372,0,0,0,51,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Withered Corpse - On Spellhit 'Protectorate Igniter' - Kill Target"),
(@ENTRY,0,3,4,10,0,100,1,0,4,0,0,12,20335,3,120000,0,0,0,1,0,0,0,0,0,0,0,"Withered Corpse - Within 0-4 Range Out of Combat LoS - Summon Creature 'Parasitic Fleshbeast'"),
(@ENTRY,0,4,5,61,0,100,0,0,4,0,0,11,35309,0,0,0,0,0,1,0,0,0,0,0,0,0,"Withered Corpse - Within 0-4 Range Out of Combat LoS - Cast 'Bloody Explosion'"),
(@ENTRY,0,5,0,61,0,100,0,0,4,0,0,41,1000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Withered Corpse - Within 0-4 Range Out of Combat LoS - Despawn In 1000 ms");
DELETE FROM `creature_template_addon` WHERE `entry`=20561;
INSERT INTO `creature_template_addon` (`entry`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES
(20561, 0, 0, 3, 1, 0, '29266');
-- respawn creatures correctly
SET @CGUID := 77881; -- 25 spawns set by TC TEAM
DELETE FROM `creature` WHERE `id`=20561;
DELETE FROM `creature` WHERE `guid` BETWEEN @CGUID+0 AND @CGUID+24;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnMask`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`) VALUES
(@CGUID+0, 20561, 530, 0, 0, 1, 0, 0, 3711.35, 2096.57, 151.984, 1.18682, 120, 0, 0, 1, 0, 0, 0, 0, 0),
(@CGUID+1, 20561, 530, 0, 0, 1, 0, 0, 3737.86, 2082.16, 148.9, 0.837758, 120, 0, 0, 1, 0, 0, 0, 0, 0),
(@CGUID+2, 20561, 530, 0, 0, 1, 0, 0, 3750.9, 2055.32, 148.853, 5.44543, 120, 0, 0, 1, 0, 0, 0, 0, 0),
(@CGUID+3, 20561, 530, 0, 0, 1, 0, 0, 3760.86, 2082.87, 152.837, 2.40855, 120, 0, 0, 1, 0, 0, 0, 0, 0),
(@CGUID+4, 20561, 530, 0, 0, 1, 0, 0, 3790.07, 2073.02, 153.16, 4.60767, 120, 0, 0, 1, 0, 0, 0, 0, 0),
(@CGUID+5, 20561, 530, 0, 0, 1, 0, 0, 3815.1, 2102.61, 148.003, 1.72788, 120, 0, 0, 1, 0, 0, 0, 0, 0),
(@CGUID+6, 20561, 530, 0, 0, 1, 0, 0, 3823.88, 2064.43, 147.579, 6.21337, 120, 0, 0, 1, 0, 0, 0, 0, 0),
(@CGUID+7, 20561, 530, 0, 0, 1, 0, 0, 3835.91, 2045.9, 145.151, 0.942478, 120, 0, 0, 1, 0, 0, 0, 0, 0),
(@CGUID+8, 20561, 530, 0, 0, 1, 0, 0, 3839.54, 2137.05, 145.967, 3.54302, 120, 0, 0, 1, 0, 0, 0, 0, 0),
(@CGUID+9, 20561, 530, 0, 0, 1, 0, 0, 3849.06, 2147.26, 140.311, 4.31096, 120, 0, 0, 1, 0, 0, 0, 0, 0),
(@CGUID+10, 20561, 530, 0, 0, 1, 0, 0, 3853.08, 2153.72, 140.589, 0.418879, 120, 0, 0, 1, 0, 0, 0, 0, 0),
(@CGUID+11, 20561, 530, 0, 0, 1, 0, 0, 3863.25, 2120.24, 146.842, 5.46288, 120, 0, 0, 1, 0, 0, 0, 0, 0),
(@CGUID+12, 20561, 530, 0, 0, 1, 0, 0, 3867.95, 2023.28, 144.585, 5.65487, 120, 0, 0, 1, 0, 0, 0, 0, 0),
(@CGUID+13, 20561, 530, 0, 0, 1, 0, 0, 3870.96, 2103.97, 133.353, 1.58825, 120, 0, 0, 1, 0, 0, 0, 0, 0),
(@CGUID+14, 20561, 530, 0, 0, 1, 0, 0, 3875.74, 2150.16, 139.272, 3.61283, 120, 0, 0, 1, 0, 0, 0, 0, 0),
(@CGUID+15, 20561, 530, 0, 0, 1, 0, 0, 3881.19, 2078.43, 131.736, 3.66519, 120, 0, 0, 1, 0, 0, 0, 0, 0),
(@CGUID+16, 20561, 530, 0, 0, 1, 0, 0, 3890.49, 2102.26, 153.708, 4.62512, 120, 0, 0, 1, 0, 0, 0, 0, 0),
(@CGUID+17, 20561, 530, 0, 0, 1, 0, 0, 3902.53, 2052.92, 150.162, 3.21141, 120, 0, 0, 1, 0, 0, 0, 0, 0),
(@CGUID+18, 20561, 530, 0, 0, 1, 0, 0, 3903.43, 2124.28, 137.706, 0.244346, 120, 0, 0, 1, 0, 0, 0, 0, 0),
(@CGUID+19, 20561, 530, 0, 0, 1, 0, 0, 3908.28, 2081.01, 133.479, 4.18879, 120, 0, 0, 1, 0, 0, 0, 0, 0),
(@CGUID+20, 20561, 530, 0, 0, 1, 0, 0, 3912.87, 2079.35, 153.77, 1.37881, 120, 0, 0, 1, 0, 0, 0, 0, 0),
(@CGUID+21, 20561, 530, 0, 0, 1, 0, 0, 3926.43, 2105.75, 159.264, 3.61283, 120, 0, 0, 1, 0, 0, 0, 0, 0),
(@CGUID+22, 20561, 530, 0, 0, 1, 0, 0, 3935.88, 2138.8, 160.69, 1.23918, 120, 0, 0, 1, 0, 0, 0, 0, 0),
(@CGUID+23, 20561, 530, 0, 0, 1, 0, 0, 3968.76, 2112.71, 162.382, 6.19592, 120, 0, 0, 1, 0, 0, 0, 0, 0),
(@CGUID+24, 20561, 530, 0, 0, 1, 0, 0, 3987.21, 2132.56, 162.681, 3.40339, 120, 0, 0, 1, 0, 0, 0, 0, 0);
@@ -0,0 +1,11 @@
-- Protectorate Tracer -- http://wotlk.openwow.com/object=184447
DELETE FROM `gameobject` WHERE `guid` IN (5,15,20,24,28,30,32,34);
INSERT INTO `gameobject` (`guid`, `id`, `map`, `spawnMask`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`) VALUES
(5, 184447, 530, 1, 3793.59, 2079.87, 153.262, 3.61391, 0, 0, -0.968147, 0.250381, 300, 255, 1),
(15, 184447, 530, 1, 3801.51, 2087.91, 150.493, 4.7822, 0, 0, -0.681998, 0.731354, 300, 255, 1),
(20, 184447, 530, 1, 3836.21, 2111.1, 149.73, 3.52557, 0, 0, -0.981627, 0.190812, 300, 255, 1),
(24, 184447, 530, 1, 3819.34, 2098.08, 147.986, 3.15906, 0, 0, -0.999962, 0.00873464, 300, 255, 1),
(28, 184447, 530, 1, 3855.51, 2154.05, 140.302, 3.05433, 0, 0, 0.999048, 0.0436193, 300, 255, 1),
(30, 184447, 530, 1, 3876.8, 2152.48, 139.198, 2.46091, 0, 0, 0.942641, 0.333808, 300, 255, 1),
(32, 184447, 530, 1, 3891.8, 2124.59, 134.586, 2.32129, 0, 0, 0.91706, 0.39875, 300, 255, 1),
(34, 184447, 530, 1, 3907.58, 2105.97, 138.454, 5.25344, 0, 0, -0.492423, 0.870356, 300, 255, 1);
@@ -0,0 +1,7 @@
-- Rot Hide Gnoll SAI
SET @ENTRY := 1674;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,0,0,100,0,7000,21000,120000,125000,11,3237,0,0,0,0,0,2,0,0,0,0,0,0,0,"Rot Hide Gnoll - In Combat - Cast 'Curse of Thule'"),
(@ENTRY,0,1,0,2,0,100,1,0,15,0,0,25,1,0,0,0,0,0,7,0,0,0,0,0,0,0,"Rot Hide Gnoll - Between 0-15% Health - Flee For Assist (No Repeat)");
@@ -0,0 +1,9 @@
-- Rajah Haghazed SAI
SET @ENTRY := 18046;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,4,0,100,1,0,0,0,0,11,35472,0,0,0,0,0,2,0,0,0,0,0,0,0,"Rajah Haghazed - On Aggro - Cast 'Shield Charge' (No Repeat)"),
(@ENTRY,0,1,0,0,0,100,0,3000,4000,9000,10000,11,35473,0,0,0,0,0,2,0,0,0,0,0,0,0,"Rajah Haghazed - In Combat - Cast 'Forceful Cleave'"),
(@ENTRY,0,2,0,0,0,100,0,7000,9000,15000,16000,11,16856,0,0,0,0,0,2,0,0,0,0,0,0,0,"Rajah Haghazed - In Combat - Cast 'Mortal Strike'"),
(@ENTRY,0,3,0,2,0,100,0,0,40,16000,21000,11,15062,1,0,0,0,0,1,0,0,0,0,0,0,0,"Rajah Haghazed - Between 0-40% Health - Cast 'Shield Wall'");
@@ -0,0 +1,12 @@
--
DELETE FROM `creature` WHERE `guid` IN (52762, 52763, 52764, 52765, 77804);
INSERT INTO `creature` (`guid`, `id`, `map`, `spawnMask`, `modelid`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `curhealth`, `curmana`, `MovementType`) VALUES
(52762, 21636, 530, 1, 0, -3049.0556, 4495.867, -42.944, 6.090739, 600, 0, 5914, 0, 0),
(52763, 21636, 530, 1, 0, -2980.0466, 4363.27, -49.227, 1.616328, 600, 0, 5914, 0, 0),
(52764, 21636, 530, 1, 0, -2961.9802, 4363.849, -49.227, 1.886506, 600, 0, 5914, 0, 0),
(52765, 21636, 530, 1, 0, -2962.7990, 4378.178, -49.227, 3.089739, 600, 0, 5914, 0, 0),
(77804, 21636, 530, 1, 0, -2981.7517, 4378.619, -49.227, 6.209339, 600, 0, 5914, 0, 0);
DELETE FROM `creature_template_addon` WHERE `entry`=21636;
INSERT INTO `creature_template_addon` (`entry`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES
(21636, 0, 0, 0, 1, 0, '17327');
@@ -0,0 +1,4 @@
--
UPDATE `smart_scripts` SET `action_type`=11, `action_param1`=35374, `action_param2`=0 WHERE `entryorguid`=20561 AND `source_type`=0 AND `id`=1;
UPDATE `smart_scripts` SET `event_param1`=0 WHERE `entryorguid`=1665500 AND `source_type`=9 AND `id`=0;
UPDATE `smart_scripts` SET `link`=0 WHERE `entryorguid`=14908 AND `source_type`=0 AND `id`=7;
@@ -0,0 +1,81 @@
-- Coren Direbrew Implementation
SET @CGUID := 77805;
DELETE FROM `creature` WHERE `id`=23872 OR `guid`=@CGUID;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnMask`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `VerifiedBuild`) VALUES
(@CGUID, 23872, 230, 0, 0, 2, 0, 1, 891.8394, -129.1829, -49.65985, 5.253441, 300, 0, 0, 0, 0, 2, 0, 0, 0, 0);
DELETE FROM `creature_addon` WHERE `guid`=@CGUID;
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES
(@CGUID,@CGUID*10,0,0,1,0,NULL);
DELETE FROM `game_event_creature` WHERE `eventEntry`=24 AND `guid`=@CGUID;
INSERT INTO `game_event_creature` (`eventEntry`, `guid`) VALUES
(24,@CGUID);
DELETE FROM `waypoint_data` WHERE `id` IN (@CGUID*10);
INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`action`,`action_chance`,`wpguid`) VALUES
(@CGUID*10,0,888.4606, -130.909, -49.7434,0,0,0,100,0),
(@CGUID*10,1,895.4048, -126.9586, -49.74198,0,0,0,100,0);
UPDATE `gameobject_template` SET `ScriptName`='go_direbrew_mole_machine' WHERE `entry`=188508;
UPDATE `gameobject_template` SET `displayId`=1287, `VerifiedBuild`=0 WHERE `entry`=188509;
UPDATE `creature_template` SET `unit_flags`=33024 WHERE `entry`=23795;
UPDATE `creature_template` SET `ScriptName`='npc_direbrew_antagonist' WHERE `entry`=23795;
UPDATE `creature_template` SET `ScriptName`='npc_direbrew_minion' WHERE `entry`=26776;
UPDATE `creature_template` SET `ScriptName`='npc_coren_direbrew_sisters' WHERE `entry` IN(26764,26822);
UPDATE `creature_template` SET `unit_flags`=256, `MovementType`=2, `ScriptName`='boss_coren_direbrew' WHERE `entry`=23872;
DELETE FROM `disables` WHERE `sourceType`=0 AND `entry`=50313;
INSERT INTO `disables` (`sourceType`, `entry`, `flags`, `params_0`, `params_1`, `comment`) VALUES
(0,50313,64,0,0,'Disable LOS for Spell Mole Machine Emerge');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=13 AND `SourceEntry` IN(47344,52850);
INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
(13,1,47344,0,0,31,0,3,26764,0,0,0,0,'','Spell Request Second mug targets Ilsa Direbrew'),
(13,1,52850,0,0,31,0,3,23872,0,0,0,0,'','Spell Port to Coren target Coren Direbrew');
DELETE FROM `creature_text` WHERE `CreatureID` IN(23872,23795);
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `Comment`) VALUES
(23872, 0, 0, "This is an insult! An affront! They deny us participation in time-honored dwarven traditions!", 12, 0, 100, 15, 0, 0, 22376, 0, 'Coren Direbrew SAY_INTRO'),
(23872, 1, 0, "Are we going to hide in our mountain and let those swill-peddlers have their little shindig without us?!", 12, 0, 100, 15, 0, 0, 22388, 0, 'Coren Direbrew SAY_INTRO2'),
(23872, 2, 0, "DAMN RIGHT! We'll show 'em why you don't cross the Dark Iron dwarves!", 12, 0, 100, 15, 0, 0, 22389, 0, 'Coren Direbrew SAY_INTRO3'),
(23872, 3, 0, "You'll pay for this insult, $c!", 12, 0, 100, 15, 0, 0, 25921, 0, 'Coren Direbrew SAY_INSULT'),
(23795, 0, 0, "No way!", 12, 0, 100, 15, 0, 0, 22397, 0, 'Dark Iron Antagonist SAY_ANTAGONIST_1'),
(23795, 0, 1, "NO!", 12, 0, 100, 15, 0, 0, 22399, 0, 'Dark Iron Antagonist SAY_ANTAGONIST_1'),
(23795, 0, 2, "Not on your life", 12, 0, 100, 15, 0, 0, 22398, 0, 'Dark Iron Antagonist SAY_ANTAGONIST_1'),
(23795, 1, 0, "Yeah!", 12, 0, 100, 15, 0, 0, 22393, 0, 'Dark Iron Antagonist SAY_ANTAGONIST_2'),
(23795, 1, 1, "You said it!", 12, 0, 100, 15, 0, 0, 22395, 0, 'Dark Iron Antagonist SAY_ANTAGONIST_2'),
(23795, 1, 2, "Damn straight!", 12, 0, 100, 15, 0, 0, 22396, 0, 'Dark Iron Antagonist SAY_ANTAGONIST_2'),
(23795, 1, 3, "Right!", 12, 0, 100, 15, 0, 0, 22394, 0, 'Dark Iron Antagonist SAY_ANTAGONIST_2'),
(23795, 2, 0, 'Never cross a Dark Iron, $C.', 12, 0, 50, 0, 0, 0, 1934, 0, 'Dark Iron Antagonist to Player'),
(23795, 2, 1, 'Feel the power of the Dark Iron Dwarves!', 12, 0, 50, 0, 0, 0, 1936, 0, 'Dark Iron Antagonist to Player');
DELETE FROM `creature_template_addon` WHERE `entry` IN (26764,26822);
INSERT INTO `creature_template_addon` (`entry`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES
(26764, 0, 0, 0, 1, 0, '47759 47760'),
(26822, 0, 0, 0, 1, 0, '47759 47760');
DELETE FROM `spell_script_names` WHERE `ScriptName` IN (
'spell_direbrew_summon_mole_machine_target_picker',
'spell_direbrew_disarm',
'spell_send_mug_control_aura',
'spell_send_mug_target_picker',
'spell_request_second_mug',
'spell_barreled_control_aura');
INSERT INTO `spell_script_names` (`spell_id`,`ScriptName`) VALUES
(47407,'spell_direbrew_disarm'),
(47691,'spell_direbrew_summon_mole_machine_target_picker'),
(47369,'spell_send_mug_control_aura'),
(47370,'spell_send_mug_target_picker'),
(47344,'spell_request_second_mug'),
(50278,'spell_barreled_control_aura');
DELETE FROM `gossip_menu_option` WHERE `MenuID` IN(11387,11388);
INSERT INTO `gossip_menu_option` (`MenuID`, `OptionIndex`, `OptionIcon`, `OptionText`, `OptionBroadcastTextID`, `OptionType`, `OptionNpcFlag`) VALUES
(11387, 0, 0, "Insult Coren Direbrew's brew.", 40431, 1, 1),
(11388, 0, 0, "Fight", 40433, 1, 1),
(11388, 1, 0, "Apologize", 40434, 1, 1);
DELETE FROM `gossip_menu_option_action` WHERE `MenuId`=11387;
INSERT INTO `gossip_menu_option_action` (`MenuId`, `OptionIndex`, `ActionMenuId`, `ActionPoiId`) VALUES
(11387, 0, 11388, 0);
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,69 @@
-- Image of Commander Ameer SAI
SET @ENTRY := 20553;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,63,0,100,0,0,0,0,0,11,12980,0,0,0,0,0,1,0,0,0,0,0,0,0,"Image of Commander Ameer - On Just Created - Cast 'Simple Teleport'");
-- Image of Agent Ya-six SAI
SET @ENTRY := 20564;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,63,0,100,0,0,0,0,0,11,12980,0,0,0,0,0,1,0,0,0,0,0,0,0,"Image of Agent Ya-six - On Just Created - Cast 'Simple Teleport'");
DELETE FROM `creature` WHERE `guid` IN (72679,72694);
DELETE FROM `creature_addon` WHERE `guid` IN (72679,72694);
UPDATE `creature_template` SET `InhabitType` = 4 WHERE `entry` IN (20553, 20564);
UPDATE `gameobject` SET `spawntimesecs` = 1 WHERE `id` = 184434;
-- Agent Araxes SAI
SET @ENTRY := 20551;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,25,0,100,0,0,0,0,0,53,0,20551,1,0,0,0,1,0,0,0,0,0,0,0,"Agent Araxes - On Reset - Start Waypoint"),
(@ENTRY,0,1,0,64,0,100,0,0,0,0,0,54,15000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Agent Araxes - On Gossip Hello - Pause Waypoint"),
(@ENTRY,0,2,0,40,0,100,0,2,20551,0,0,54,180000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Agent Araxes - On Waypoint 2 Reached - Pause Waypoint"),
(@ENTRY,0,3,0,40,0,100,0,1,20551,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,"Agent Araxes - On Waypoint 1 Reached - Run Script"),
(@ENTRY,0,4,0,17,0,100,0,20553,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,"Agent Araxes - On Summoned Unit - Store Targetlist"),
(@ENTRY,0,5,0,17,0,100,0,20564,0,0,0,64,2,0,0,0,0,0,7,0,0,0,0,0,0,0,"Agent Araxes - On Summoned Unit - Store Targetlist");
-- Actionlist SAI
SET @ENTRY := 2055100;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,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.67552,"Agent Araxes - On Script - Set Orientation 1.67552"),
(@ENTRY,9,1,0,0,0,100,0,1000,1000,0,0,1,0,4000,0,0,0,0,1,0,0,0,0,0,0,0,"Agent Araxes - On Script - Say Line 0"),
(@ENTRY,9,2,0,0,0,100,0,0,0,0,0,9,0,0,0,0,0,0,20,184434,50,0,0,0,0,0,"Agent Araxes - On Script - Activate Gameobject"),
(@ENTRY,9,3,0,0,0,100,0,2000,2000,0,0,12,20553,3,31000,0,0,0,8,0,0,0,3781.9,2175.33,142.558,4.99164,"Agent Araxes - On Script - Summon Creature 'Image of Commander Ameer'"),
(@ENTRY,9,4,0,0,0,100,0,2000,2000,0,0,1,0,5000,0,0,0,0,12,1,0,0,0,0,0,0,"Agent Araxes - On Script - Say Line 0"),
(@ENTRY,9,5,0,0,0,100,0,5000,5000,0,0,1,1,5000,0,0,0,0,1,0,0,0,0,0,0,0,"Agent Araxes - On Script - Say Line 1"),
(@ENTRY,9,6,0,0,0,100,0,5000,5000,0,0,1,1,6000,0,0,0,0,12,1,0,0,0,0,0,0,"Agent Araxes - On Script - Say Line 1"),
(@ENTRY,9,7,0,0,0,100,0,5000,5000,0,0,1,2,6000,0,0,0,0,1,0,0,0,0,0,0,0,"Agent Araxes - On Script - Say Line 2"),
(@ENTRY,9,8,0,0,0,100,0,6000,6000,0,0,1,2,6000,0,0,0,0,12,1,0,0,0,0,0,0,"Agent Araxes - On Script - Say Line 2"),
(@ENTRY,9,9,0,0,0,100,0,6000,6000,0,0,1,3,5000,0,0,0,0,12,1,0,0,0,0,0,0,"Agent Araxes - On Script - Say Line 3"),
(@ENTRY,9,10,0,0,0,100,0,2000,2000,0,0,32,0,0,0,0,0,0,20,184434,50,0,0,0,0,0,"Agent Araxes - On Script - Activate Gameobject"),
(@ENTRY,9,11,0,0,0,100,0,0,0,0,0,12,20564,3,11000,0,0,0,8,0,0,0,3781.898,2175.332,142.5583,4.991642,"Agent Araxes - On Script - Summon Creature 'Image of Agent Ya-six'"),
(@ENTRY,9,12,0,0,0,100,0,2000,2000,0,0,1,0,5000,0,0,0,0,12,2,0,0,0,0,0,0,"Agent Araxes - On Script - Say Line 0"),
(@ENTRY,9,13,0,0,0,100,0,5000,5000,0,0,1,1,6000,0,0,0,0,12,2,0,0,0,0,0,0,"Agent Araxes - On Script - Say Line 1");
DELETE FROM `waypoints` WHERE `entry`=20551;
INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`, `point_comment`) VALUES
(20551, 1, 3782.49,2170.66,141.422, 'Agent Araxes'),
(20551, 2, 3782.49,2170.66,141.422, 'Agent Araxes');
DELETE FROM `creature_text` WHERE `CreatureID` IN (20551, 20553, 20564);
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `Comment`) VALUES
-- Agent Araxes
(20551, 0, 0, 'I hope this damned thing works. *Araxes pounds on the portable transponder.*', 12, 0, 100, 1, 0, 0, 18256, 'Agent Araxes'),
(20551, 1, 0, 'I\'m here, commander.', 12, 0, 100, 1, 0, 0, 18267, 'Agent Araxes'),
(20551, 2, 0, 'We\'ve located the mark, commander. Ya-six and I have been separated. Requesting backup.', 12, 0, 100, 1, 0, 0, 18268, 'Agent Araxes'),
-- Image of Commander Ameer
(20553, 0, 0, 'Araxes, come in... Are you there Araxes? Visibility is nil. Warp storms blocking us.', 12, 0, 100, 1, 0, 0, 18249, 'Image of Commander Ameer'),
(20553, 1, 0, 'Copy. Status report, soldier.', 12, 0, 100, 1, 0, 0, 18250, 'Image of Commander Ameer'),
(20553, 2, 0, 'Copy that, Araxes. Backup is on the way. Hold your position. I repeat, hold your position.', 12, 0, 100, 1, 0, 0, 18269, 'Image of Commander Ameer'),
(20553, 3, 0, 'Ameer, over and out.', 12, 0, 100, 1, 0, 0, 18270, 'Image of Commander Ameer'),
-- Image of Agent Ya-six
(20564, 0, 0, 'Araxes! Send help! I\'m pinned down in the mines. I... I\'m not sure where I am exactly but I had the presence of mind to drop tracers on the ground behind me.', 12, 0, 100, 1, 0, 0, 18281, 'Image of Agent Ya-six'),
(20564, 1, 0, 'I can\'t follow the tracers back out, too many flesh beasts in the way. Send someone in... Follow the tracers... Ya-six, out.', 12, 0, 100, 1, 0, 0, 18282, 'Image of Agent Ya-six');
@@ -0,0 +1,26 @@
DELETE FROM `creature` WHERE `id` in (20480,20496);
-- Tormented Soul SAI
SET @ENTRY := 20512;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,4,0,100,0,0,0,0,0,87,2048000,2048001,0,0,0,0,1,0,0,0,0,0,0,0,"Tormented Soul - On Aggro - Run Random Script");
-- Tormented Citizen SAI
SET @ENTRY := 21065;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,4,0,100,0,0,0,0,0,87,2048000,2048001,0,0,0,0,1,0,0,0,0,0,0,0,"Tormented Citizen - On Aggro - Run Random Script");
-- Actionlist SAI
SET @ENTRY := 2048000;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,3,20480,0,0,0,0,0,1,0,0,0,0,0,0,0,"Tormented - On Script - Morph To Creature Kirin'Var Ghost");
-- Actionlist SAI
SET @ENTRY := 2048001;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,9,0,0,0,0,100,0,0,0,0,0,3,20496,0,0,0,0,0,1,0,0,0,0,0,0,0,"Tormented - On Script - Morph To Creature Kirin'Var Spectre");
@@ -0,0 +1,2 @@
--
DELETE FROM `creature_loot_template` WHERE `item` = 23612 AND `entry` IN (21060,21061);
@@ -0,0 +1,3 @@
--
UPDATE `creature` SET `spawnMask`=6 WHERE `guid` IN (6998,77806,77816,77817,77818,77819,77820,77854,83923,83926,83928,83929,83932,83933,83959,83972);
UPDATE `gameobject` SET `SpawnMask`=6 WHERE `map`=560 AND `ID` IN (181270,181275,181276,181278,181556,181569);