Scripts/BWD: use sniffed exit coordinate for passenger ejection and initial work on Nefarian's heroic intro

This commit is contained in:
Ovahlord
2019-04-22 19:36:16 +02:00
parent 6af3c166a0
commit 433bd5a1bb
5 changed files with 163 additions and 89 deletions

View File

@@ -9,12 +9,15 @@ UPDATE `creature_template` SET `unit_flags`= 33587264, `unit_flags2`= 34816, `fl
-- Lava Parasite
UPDATE `creature_template` SET `speed_run`= 0.3571, `speed_walk`= 1 WHERE `entry`= 41806;
-- Exposed Head of Magmaw
UPDATE `creature_template` SET `AIName`= '' WHERE `entry` IN (42347, 51248, 51249, 51250);
UPDATE `creature_template` SET `ScriptName`= '' WHERE `entry`= 42347;
-- Nefarian
UPDATE `creature_template` SET `speed_run`= 1.7142, `unit_flags`= 33587264 WHERE `entry`= 49427;
-- Addons
DELETE FROM `creature_template_addon` WHERE `entry` IN (41806);
INSERT INTO `creature_template_addon` (`entry`, `auras`) VALUES
(41806, '78019');
DELETE FROM `creature_template_addon` WHERE `entry` IN (41806, 49427);
INSERT INTO `creature_template_addon` (`entry`, `bytes1`, `bytes2`, `auras`) VALUES
(41806, 0, 1, '78019'),
(49427, 50331648, 1, '');
-- Vehicle accessory
DELETE FROM `vehicle_template_accessory` WHERE `entry`= 41570;
@@ -27,7 +30,7 @@ INSERT INTO `npc_spellclick_spells` (`npc_entry`, `spell_id`, `cast_flags`, `use
(51102, 77901, 1, 0),
(51103, 77901, 1, 0);
DELETE FROM `creature_template_movement` WHERE `CreatureId` IN (41570, 51101, 51102, 51103, 41620, 41789, 42347, 51248, 51249, 51250);
DELETE FROM `creature_template_movement` WHERE `CreatureId` IN (41570, 51101, 51102, 51103, 41620, 41789, 42347, 51248, 51249, 51250, 49427);
INSERT INTO `creature_template_movement` (`CreatureId`, `Ground`, `Swim`, `Flight`, `Rooted`) VALUES
-- Magmaw
(41570, 1, 0, 1, 1),
@@ -41,7 +44,9 @@ INSERT INTO `creature_template_movement` (`CreatureId`, `Ground`, `Swim`, `Fligh
(42347, 0, 0, 1, 0),
(51248, 0, 0, 1, 0),
(51249, 0, 0, 1, 0),
(51250, 0, 0, 1, 0);
(51250, 0, 0, 1, 0),
-- Nefarian
(49427, 0, 0, 2, 0);
-- Spells
DELETE FROM `spell_script_names` WHERE `ScriptName` IN
@@ -50,7 +55,9 @@ DELETE FROM `spell_script_names` WHERE `ScriptName` IN
'spell_magmaw_pillar_of_flame_dummy',
'spell_magmaw_pillar_of_flame_forcecast',
'spell_magmaw_ride_vehicle',
'spell_magmaw_launch_hook');
'spell_magmaw_launch_hook',
'spell_magmaw_eject_passenger_1',
'spell_magmaw_eject_passenger_3');
DELETE FROM `spell_script_names` WHERE `ScriptName`= 'spell_gen_eject_passenger' AND `spell_id` IN (77946, 95204);
DELETE FROM `spell_script_names` WHERE `ScriptName`= 'spell_gen_eject_passenger_1' AND `spell_id`= 77946;
@@ -62,8 +69,8 @@ INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(78017, 'spell_magmaw_pillar_of_flame_dummy'),
(77998, 'spell_magmaw_pillar_of_flame_forcecast'),
(77901, 'spell_magmaw_ride_vehicle'),
(77946, 'spell_gen_eject_passenger_1'),
(95204, 'spell_gen_eject_passenger_3'),
(77946, 'spell_magmaw_eject_passenger_1'),
(95204, 'spell_magmaw_eject_passenger_3'),
(77917, 'spell_magmaw_launch_hook'),
(77941, 'spell_magmaw_launch_hook');
@@ -82,12 +89,19 @@ INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry
(13, 1, 77929, 0, 0, 31, 0, 3, 41570, 0, 0, 0, '', 'Chain Visual - Target Magmaw');
-- Texts
DELETE FROM `creature_text` WHERE `CreatureID` IN (41570);
DELETE FROM `creature_text` WHERE `CreatureID` IN (41570, 49427);
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `comment`) VALUES
-- Magmaw
(41570, 0, 0, '%s begins to erupt, spewing Lava Parasites onto the ground!', 41, 0, 100, 0, 0, 8717, 51464, 'Magmaw - Announce Lava Parasites'),
(41570, 1, 0, '%s slumps forward, exposing his pincers!', 41, 0, 100, 0, 0, 8717, 47603, 'Magmaw - Announce Exposing Pincers'),
(41570, 2, 0, '%s becomes impaled on the spike, exposing his head!', 41, 0, 100, 0, 0, 8717, 41614, 'Magmaw - Announce Exposed Head');
(41570, 2, 0, '%s becomes impaled on the spike, exposing his head!', 41, 0, 100, 0, 0, 8717, 41614, 'Magmaw - Announce Exposed Head'),
-- Nefarian
(49427, 0, 0, 'I found this fascinating specimen in the lava underneath this very room. Magmaw should provide an adequate challenge for your pathetic little band.', 14, 0, 100, 0, 0, 23367, 49060, 'Nefarian - Intro 1'),
(49427, 1, 0, 'On second thought, what fun is an "adequate" challenge?', 14, 0, 100, 0, 0, 23369, 49061, 'Nefarian - Intro 2'),
(49427, 2, 0, 'Inconceivable! You may actually defeat my lava worm! Perhaps I can help... tip the scales.', 14, 0, 100, 0, 0, 23368, 49782, 'Nefarian - Low Health Heroic'),
(49427, 3, 0, 'You won? How... disappointing. I could have easily watched you all continue to stand in the fire.', 14, 0, 100, 0, 0, 23366, 49062, 'Nefarian - Death Heroic');
-- Delete encounter related creatures
DELETE FROM `creature` WHERE `guid` IN (250054, 250053, 250052);
DELETE FROM `creature_addon` WHERE `guid` IN (250054, 250053, 250052);