fix(DB/Quest): Deliver the Plans to An'telas (#7848)

This commit is contained in:
Asthalor
2021-09-17 13:42:31 +02:00
committed by GitHub
parent f6f18cb538
commit a02b9ef7eb

View File

@@ -0,0 +1,20 @@
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1631541374686335522');
-- Inserting lines for Magister Sylastor
DELETE FROM `creature_text` WHERE `CreatureID` = 16237;
INSERT INTO `creature_text` (`CreatureID`,`GroupID`,`ID`,`Text`,`Type`,`Language`,`Probability`,`Emote`,`Duration`,`Sound`,`BroadcastTextId`,`TextRange`,`COMMENT`) VALUES
(16237,0,0,'Look out... the night elves are back!',12,0,100,0,0,0,12115,0,'Quest Deliver the Plans to An''telas completion');
-- Inserting the 2 Night Elf Ambusher to the summon group table
DELETE FROM `creature_summon_groups` WHERE `summonerId` = 16237;
INSERT INTO `creature_summon_groups` (`summonerId`, `summonerType`, `groupId`, `entry`, `position_x`, `position_y`, `position_z`, `orientation`, `summonType`, `summonTime`) VALUES
(16237, 0, 0, 16238, 7448.06, -7268.192, 97.59, 6.14, 4, 60),
(16237, 0, 0, 16238, 7451.11, -7279.82, 95.58, 0.13, 4, 60);
-- Inserting script
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 16237;
DELETE FROM `smart_scripts` WHERE (`entryorguid` = 16237) AND (`source_type` = 0) AND (`id` IN (0, 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`, `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
(16237, 0, 0, 0, 20, 0, 100, 0, 9166, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Magister Sylastor - On Quest \'Deliver the Plans to An\'telas\' Finished - Say Line 0'),
(16237, 0, 1, 0, 20, 0, 100, 0, 9166, 0, 0, 0, 0, 107, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Magister Sylastor - On Quest \'Deliver the Plans to An\'telas\' Finished - Summon 2 Night Elf Ambusher');