DB/Quest: Add light and weather change to Lightning Definitely Strikes Twice & All Is Well That Ends Well

Closes #24241
Fix also timers, wrong target for the first text and add a missing spell
This commit is contained in:
Killyana
2020-03-06 19:29:36 +01:00
parent f06ac0fedb
commit ff40502fcb

View File

@@ -0,0 +1,52 @@
-- All Is Well That Ends Well
UPDATE `smart_scripts` SET `target_type`=1 WHERE `entryorguid` IN (1612800) AND `source_type`=9 AND `id`=2;
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (1612802,1612801) 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`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(1612802, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 45, 32, 32, 0, 0, 0, 0, 10, 74529, 28332, 0, 0, 0, 0, 0, 0, "Rhonin - Script 3 - Set Data on Generic Trigger LAB (Large AOI)"),
(1612802, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 45, 32, 32, 0, 0, 0, 0, 10, 74530, 28332, 0, 0, 0, 0, 0, 0, "Rhonin - Script 3 - Set Data on Generic Trigger LAB (Large AOI)"),
(1612802, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 45, 32, 32, 0, 0, 0, 0, 10, 74531, 28332, 0, 0, 0, 0, 0, 0, "Rhonin - Script 3 - Set Data on Generic Trigger LAB (Large AOI)"),
(1612802, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 45, 32, 32, 0, 0, 0, 0, 10, 74532, 28332, 0, 0, 0, 0, 0, 0, "Rhonin - Script 3 - Set Data on Generic Trigger LAB (Large AOI)"),
(1612802, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 45, 32, 32, 0, 0, 0, 0, 10, 74533, 28332, 0, 0, 0, 0, 0, 0, "Rhonin - Script 3 - Set Data on Generic Trigger LAB (Large AOI)"),
(1612802, 9, 5, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 45, 32, 32, 0, 0, 0, 0, 10, 74534, 28332, 0, 0, 0, 0, 0, 0, "Rhonin - Script 3 - Set Data on Generic Trigger LAB (Large AOI)"),
(1612802, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 45, 30, 30, 0, 0, 0, 0, 10, 74528, 28332, 0, 0, 0, 0, 0, 0, "Rhonin - Script 3 - Set Data on Generic Trigger LAB (Large AOI)"),
(1612802, 9, 7, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 45, 30, 30, 0, 0, 0, 0, 10, 74535, 28332, 0, 0, 0, 0, 0, 0, "Rhonin - Script 3 - Set Data on Generic Trigger LAB (Large AOI)"),
(1612802, 9, 8, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 45, 30, 30, 0, 0, 0, 0, 10, 74536, 28332, 0, 0, 0, 0, 0, 0, "Rhonin - Script 3 - Set Data on Generic Trigger LAB (Large AOI)"),
(1612802, 9, 9, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 45, 30, 30, 0, 0, 0, 0, 10, 74537, 28332, 0, 0, 0, 0, 0, 0, "Rhonin - Script 3 - Set Data on Generic Trigger LAB (Large AOI)"),
(1612802, 9, 10, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 45, 31, 31, 0, 0, 0, 0, 10, 74538, 28332, 0, 0, 0, 0, 0, 0, "Rhonin - Script 3 - Set Data on Generic Trigger LAB (Large AOI)"),
(1612802, 9, 11, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Rhonin - Script 3 - Say Line 2"),
(1612802, 9, 12, 0, 0, 0, 100, 0, 10000, 10000, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Rhonin - Script 3 - Say Line 3"),
(1612802, 9, 13, 0, 0, 0, 100, 0, 10000, 10000, 0, 0, 0, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Rhonin - Script 3 - Say Line 4"),
(1612802, 9, 14, 0, 0, 0, 100, 0, 10000, 10000, 0, 0, 0, 1, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Rhonin - Script 3 - Say Line 5"),
(1612802, 9, 15, 0, 0, 0, 100, 0, 8000, 8000, 0, 0, 0, 1, 5, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Rhonin - Script 3 - Say Line 6"),
(1612802, 9, 16, 0, 0, 0, 100, 0, 10000, 10000, 0, 0, 0, 1, 6, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Rhonin - Script 3 - Say Line 7"),
(1612802, 9, 17, 0, 0, 0, 100, 0, 14000, 14000, 0, 0, 0, 1, 7, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Rhonin - Script 3 - Say Line 8"),
(1612802, 9, 18, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 85, 64581, 0, 0, 0, 0, 0, 10, 74538, 28332, 0, 0, 0, 0, 0, 0, 'Rhonin - Script 3 - Self cast Reply-Code Alpha'),
(1612802, 9, 19, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 138, 4395, 1802, 1773, 1000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Rhonin - Script 3 - SMSG_LIGHT'),
(1612802, 9, 20, 0, 0, 0, 100, 0, 20000, 20000, 0, 0, 0, 45, 29, 29, 0, 0, 0, 0, 10, 74538, 28332, 0, 0, 0, 0, 0, 0, "Rhonin - Script 3 - Set Data on Generic Trigger LAB (Large AOI)"),
(1612802, 9, 21, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 45, 28, 28, 0, 0, 0, 0, 10, 74528, 28332, 0, 0, 0, 0, 0, 0, "Rhonin - Script 3 - Set Data on Generic Trigger LAB (Large AOI)"),
(1612802, 9, 22, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 45, 28, 28, 0, 0, 0, 0, 10, 74529, 28332, 0, 0, 0, 0, 0, 0, "Rhonin - Script 3 - Set Data on Generic Trigger LAB (Large AOI)"),
(1612802, 9, 23, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 45, 28, 28, 0, 0, 0, 0, 10, 74530, 28332, 0, 0, 0, 0, 0, 0, "Rhonin - Script 3 - Set Data on Generic Trigger LAB (Large AOI)"),
(1612802, 9, 24, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 45, 28, 28, 0, 0, 0, 0, 10, 74531, 28332, 0, 0, 0, 0, 0, 0, "Rhonin - Script 3 - Set Data on Generic Trigger LAB (Large AOI)"),
(1612802, 9, 25, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 45, 28, 28, 0, 0, 0, 0, 10, 74532, 28332, 0, 0, 0, 0, 0, 0, "Rhonin - Script 3 - Set Data on Generic Trigger LAB (Large AOI)"),
(1612802, 9, 26, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 45, 28, 28, 0, 0, 0, 0, 10, 74533, 28332, 0, 0, 0, 0, 0, 0, "Rhonin - Script 3 - Set Data on Generic Trigger LAB (Large AOI)"),
(1612802, 9, 27, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 45, 28, 28, 0, 0, 0, 0, 10, 74534, 28332, 0, 0, 0, 0, 0, 0, "Rhonin - Script 3 - Set Data on Generic Trigger LAB (Large AOI)"),
(1612802, 9, 28, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 45, 28, 28, 0, 0, 0, 0, 10, 74535, 28332, 0, 0, 0, 0, 0, 0, "Rhonin - Script 3 - Set Data on Generic Trigger LAB (Large AOI)"),
(1612802, 9, 29, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 45, 28, 28, 0, 0, 0, 0, 10, 74536, 28332, 0, 0, 0, 0, 0, 0, "Rhonin - Script 3 - Set Data on Generic Trigger LAB (Large AOI)"),
(1612802, 9, 30, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 45, 28, 28, 0, 0, 0, 0, 10, 74537, 28332, 0, 0, 0, 0, 0, 0, "Rhonin - Script 3 - Set Data on Generic Trigger LAB (Large AOI)"),
(1612802, 9, 31, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 45, 28, 28, 0, 0, 0, 0, 10, 74538, 28332, 0, 0, 0, 0, 0, 0, "Rhonin - Script 3 - Set Data on Generic Trigger LAB (Large AOI)"),
(1612802, 9, 32, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 138, 4395, 1802, 0, 5000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Rhonin - Script 3 - SMSG_LIGHT'),
(1612802, 9, 33, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 19, 34044, 0, 0, 0, 0, 0, 0, 0, "Rhonin - Script 3 - Set Data on Brann Bronzebeard"),
(1612802, 9, 34, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 0, 11, 51347, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Rhonin - Script 3 - Cast teleport"),
(1612802, 9, 35, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Rhonin - Script 3 - Despawn"),
(1612801, 9, 0, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 0, 5, 25, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Rhonin - Script 2 - Play emote"),
(1612801, 9, 1, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 0, 53, 0, 16128, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Rhonin - Script 2 - Start WP");
UPDATE `creature_template_addon` SET `visibilityDistanceType`=5 WHERE `entry` IN (28332,16128);
DELETE FROM `creature_template_addon` WHERE `entry`=34044;
INSERT INTO `creature_template_addon` (`entry`, `visibilityDistanceType`) VALUES
(34044, 5);
-- Lightning Definitely Strikes Twice
DELETE FROM `smart_scripts` WHERE `entryorguid`=-119104 AND `source_type`=0 AND `id` IN (4,5);
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(-119104, 0, 4, 0, 8, 0, 100, 0, 51172, 0, 2000, 2000, 0, 139, 3711, 5, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Mistwhisper Lightning Cloud - On Waypoint reach - OVERRIDE_WEATHER'),
(-119104, 0, 5, 0, 11, 0, 100, 0, 0, 0, 0, 0, 0, 139, 3711, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Mistwhisper Lightning Cloud - On spawn - OVERRIDE_WEATHER');