- -- Fix quests Borrowed Technology, The Solution Solution /Daily/, Volatility, Volatility /Daily/
- SET @Skytalon := 31583; -- Frostbrood Skytalon
- SET @Decoy := 31578; -- Armored Decoy
- SET @QuestCredit := 31364; -- Kill credit
- SET @Stun := 55591; -- Freeze animation to look like Decoy
- SET @Explosion := 59335; -- The spell that should kill all in the end
- SET @Summon := 59303; -- Summon Skyatalon
- SET @Immolation := 54690; -- Skytalon ending spell, most likely some epxlosion effect animation
- SET @Script := 3027406; -- Skytalon timed actions for exploding
- SET @Ride := 56687; -- Activated by grab as explained
- SET @Grab := 59318;
- -- Makes Grab cause target to cast mount on source
- INSERT INTO `spell_scripts` (`id`,`effindex`,`delay`,`command`,`datalong`,`datalong2`) VALUES
- (@Grab,0,0,15,@Ride,3);
- -- Quests relations
- UPDATE `quest_template` SET `PrevQuestId`=13290, `NextQuestId`=13383 WHERE `id`=13291; -- Borrowed Technology
- UPDATE `quest_template` SET `PrevQuestId`=13291, `NextQuestId`=0 WHERE `id`=13292; -- The Solution Solution /Daily/
- UPDATE `quest_template` SET `PrevQuestId`=13238, `NextQuestId`=13373 WHERE `id`=13356; -- Volatility
- UPDATE `quest_template` SET `PrevQuestId`=13356, `NextQuestId`=0 WHERE `id`=13239; -- Volatiliy /Daily/
- -- Add SAI for Frostbrood Skytalon
- UPDATE `creature_template` SET `vehicleid`=234,`InhabitType`=5,`AIName`= 'SmartAI' WHERE `entry`=@Skytalon;
- DELETE FROM `vehicle_template_accessory` WHERE `entry`=31583 AND `seat_id`=1;
- DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid`=@Skytalon;
- DELETE FROM `smart_scripts` WHERE `source_type`=9 AND `entryorguid`=@Script;
- 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
- (@Skytalon,0,0,0,25,0,100,0,0,0,0,0,29,0,0,@Decoy,0,0,0,9,@Decoy,1,50,0,0,0,0,'On Spawn - Go to target with follow'),
- (@Skytalon,0,1,2,65,0,100,0,0,0,0,0,11,@Grab,0,0,0,0,0,9,@Decoy,1,10,0,0,0,0,'On follow complete - Cast trigger spell to make Decoy mount'),
- (@Skytalon,0,2,3,61,0,100,0,0,0,0,0,69,1,0,0,0,0,0,8,0,0,0,6510.496582,1192.790771,380.557190,0.222656,'Linked with event 2 - Fly Away with move to position'),
- (@Skytalon,0,3,0,61,0,100,0,0,0,0,0,80,@Script,0,0,0,0,0,1,0,0,0,0,0,0,0,'Linked with event 2 - Start script 00'),
- -- Script 00
- (@Script,9,0,0,0,0,100,0,5000,5000,0,0,11,@Explosion,0,0,0,0,0,1,0,0,0,0,0,0,0,'Timed action - Cast Explosion on self'),
- (@Script,9,1,0,0,0,100,0,0,0,0,0,33,@QuestCredit,0,0,0,0,0,21,50,0,0,0,0,0,0,'Give kill credit to player'),
- (@Script,9,2,0,0,0,100,0,0,0,0,0,11,@Immolation,0,0,0,0,0,1,0,0,0,0,0,0,0,'Cast Immolation'),
- (@Script,9,3,0,0,0,100,0,0,0,0,0,51,0,0,0,0,0,0,9,@Decoy,0,5,0,0,0,0,'Kill Decoy'),
- (@Script,9,4,0,0,0,100,0,0,0,0,0,78,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Call script reset');
- -- Add SAI for Armored Decoy
- UPDATE `creature_template` SET `equipment_id`=326,`AIName`= 'SmartAI' WHERE `entry`=@Decoy; `flags_extra`=`flags_extra` 128 WHERE `entry`=@Decoy;
- DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid`=@Decoy;
- 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
- (@Decoy,0,0,1,25,0,100,0,0,0,0,0,11,@Stun,0,0,0,0,0,1,0,0,0,0,0,0,0,'On spawn - Cast Freeze animation on self'),
- (@Decoy,0,1,0,61,0,100,0,0,0,0,0,11,@Summon,0,0,0,0,0,1,0,0,0,0,0,0,0,'On spawn - Cast summon Skytalon behind'),
- (@Decoy,0,2,0,6,0,100,0,0,0,0,0,44,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'On death - Change phase mask');