DB/Quest: Fixed Warming up quest in Exiles Reach / NPE

Closes #27530
This commit is contained in:
ModoX
2022-01-15 04:47:31 +01:00
parent 72286dc5e4
commit 6f3a11f7b1

View File

@@ -0,0 +1,12 @@
-- Combat Dummy smart ai
SET @ENTRY := 160737;
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `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, 6, 0, 100, 0, 0, 0, 0, 0, 137, 120374, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On death - Self: Plays SpellVisual with SpellVisualKitId: 120374, KitType: 0 for 0 ms'),
(@ENTRY, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 85, 344116, 0, 0, 0, 0, 0, 27, 0, 0, 0, 0, 0, 0, 0, 'On death - Targets all loot recipients: Cast spell 344116 on self'),
(@ENTRY, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 3, 0, 11686, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On death - Self: Morph to model 11686'),
(@ENTRY, 0, 3, 4, 11, 0, 100, 0, 0, 0, 0, 0, 116, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On respawn - Self: Sets corpse delay to 3 s'),
(@ENTRY, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On respawn - Self: Set react state to Passive');
UPDATE `creature` SET `spawntimesecs`=2 WHERE `id`=@ENTRY;