Scripts/OldHisbradFoothills): Improved Escape from Durnholde Keep event. (#15189)

This commit is contained in:
UltraNix
2023-03-04 21:42:02 +01:00
committed by GitHub
parent ab4e95cc20
commit 321195f4f8
5 changed files with 281 additions and 81 deletions

View File

@@ -0,0 +1,72 @@
--
DELETE FROM `creature_text` WHERE `CreatureID`=17876 AND `groupid` IN (21,22,23);
INSERT INTO `creature_text` VALUES
(17876,21,0,'Thrall startles the horse with a fierce yell!',16,0,100,0,0,0,0,0,'Thrall Horse Emote'),
(17876,22,0,'Thrall tries to calm the horse down.',16,0,100,0,0,0,0,0,'Thrall Horse Emote 2'),
(17876,23,0,'Taretha isn\'t here. Let\'s head into town.',12,0,100,0,0,0,0,0,'Thrall Say Lead');
UPDATE `creature_text` SET `groupid`=8 WHERE `CreatureID`=18096 AND `GroupId`=6;
UPDATE `creature_text` SET `groupid`=7 WHERE `CreatureID`=18096 AND `GroupId`=5;
UPDATE `creature_text` SET `groupid`=6 WHERE `CreatureID`=18096 AND `GroupId`=4;
UPDATE `creature_text` SET `groupid`=5 WHERE `CreatureID`=18096 AND `GroupId`=3;
UPDATE `creature_text` SET `groupid`=4 WHERE `CreatureID`=18096 AND `GroupId`=2;
UPDATE `creature_text` SET `groupid`=3 WHERE `CreatureID`=18096 AND `GroupId`=1;
UPDATE `creature_text` SET `groupid`=2 WHERE `CreatureID`=18096 AND `GroupId`=0 AND `id`=2;
UPDATE `creature_text` SET `groupid`=1 WHERE `CreatureID`=18096 AND `GroupId`=0 AND `id`=1;
UPDATE `script_waypoint` SET `waitTime`=13000 WHERE `entry`=17876 AND `pointid`=10;
UPDATE `script_waypoint` SET `waitTime`=20000 WHERE `entry`=17876 AND `pointid`=67;
DELETE FROM `waypoints` WHERE `entry` IN (180920,180921,180930,180940);
INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`) VALUES
(180920,1,2498.1045,695.5946,55.63158),
(180920,2,2495.6223,694.5012,55.63158),
(180920,3,2492.622,693.5881,55.699432),
(180920,4,2490.3777,695.98254,55.72346),
(180920,5,2490.0405,699.02325,55.73774),
(180920,6,2489.702,702.07544,55.759163),
(180920,7,2489.3306,702.90985,55.765854),
(180920,8,2488.1714,702.7047,55.77027),
(180921,1,2496.374,695.5221,55.63158),
(180921,2,2493.9353,694.89294,55.699627),
(180921,3,2490.935,693.97974,55.711452),
(180921,4,2491.0732,697.56885,55.724335),
(180921,5,2490.736,700.60956,55.741653),
(180921,6,2490.3975,703.66174,55.76295),
(180921,7,2487.7026,703.5013,55.777214),
(180930,1,2497.1765,697.05707,55.63158),
(180930,2,2495.118,696.15826,55.63158),
(180930,3,2492.1177,695.24506,55.70963),
(180930,4,2492.099,696.17346,55.713726),
(180930,5,2491.762,699.2142,55.728592),
(180930,6,2491.4233,702.26636,55.751934),
(180930,7,2489.0288,704.6154,55.77536),
(180930,8,2487.8696,704.4103,55.780678),
(180940,1,2495.4795,694.95447,55.63158),
(180940,2,2491.4536,694.1376,55.70895),
(180940,3,2490.363,703.972,55.764732);
UPDATE `smart_scripts` SET `link`=4 WHERE `entryorguid`=18092 AND `source_type`=0 AND `id`=3;
DELETE FROM `smart_scripts` WHERE `entryorguid`=18092 AND `source_type`=0 AND `id` IN (4,5,6);
INSERT INTO `smart_scripts` VALUES
(18092,0,4,0,61,0,100,0,0,0,0,0,0,53,0,180920,0,0,0,2,1,0,0,0,0,0,0,0,0,'Tarren Mill Guardsman - Do Action - Start WP'),
(18092,0,5,6,72,0,100,0,2,0,0,0,0,19,768,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Tarren Mill Guardsman - Do Action - Remove Unit Flag'),
(18092,0,6,0,61,0,100,0,0,0,0,0,0,53,0,180921,0,0,0,2,1,0,0,0,0,0,0,0,0,'Tarren Mill Guardsman - Do Action - Start WP');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=22 AND `SourceEntry`=18092 AND `SourceId` IN (4,6);
INSERT INTO `conditions` VALUES
(22,0,18092,4,0,1,1,22805,0,0,0,0,0,'','Exeucte SAI if aura present'),
(22,0,18092,6,0,1,1,22805,0,0,1,0,0,'','Exeucte SAI if aura not present');
UPDATE `smart_scripts` SET `link`=8 WHERE `entryorguid`=18093 AND `source_type`=0 AND `id`=7;
DELETE FROM `smart_scripts` WHERE `entryorguid`=18093 AND `source_type`=0 AND `id`=8;
INSERT INTO `smart_scripts` VALUES
(18093,0,8,0,61,0,100,0,0,0,0,0,0,53,0,180930,0,0,0,2,1,0,0,0,0,0,0,0,0,'Tarren Mill Protector - Do Action - Start WP');
UPDATE `smart_scripts` SET `link`=6 WHERE `entryorguid`=18094 AND `source_type`=0 AND `id`=5;
DELETE FROM `smart_scripts` WHERE `entryorguid`=18094 AND `source_type`=0 AND `id`=6;
INSERT INTO `smart_scripts` VALUES
(18094,0,6,0,61,0,100,0,0,0,0,0,0,53,0,180940,0,0,0,2,1,0,0,0,0,0,0,0,0,'Tarren Mill Lookout - Do Action - Start WP');