Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 3rd, 2012  |  syntax: None  |  size: 4.03 KB  |  hits: 68  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. -- Fix quests Borrowed Technology, The Solution Solution /Daily/, Volatility, Volatility /Daily/
  2. SET @Skytalon := 31583; -- Frostbrood Skytalon
  3. SET @Decoy := 31578; -- Armored Decoy
  4. SET @QuestCredit := 31364; -- Kill credit
  5. SET @Stun := 55591; -- Freeze animation to look like Decoy
  6. SET @Explosion := 59335; -- The spell that should kill all in the end
  7. SET @Summon := 59303; -- Summon Skyatalon
  8. SET @Immolation := 54690; -- Skytalon ending spell, most likely some epxlosion effect animation
  9. SET @Script := 3027406; -- Skytalon timed actions for exploding
  10. SET @Ride := 56687; -- Activated by grab as explained
  11. SET @Grab := 59318;
  12. -- Makes Grab cause target to cast mount on source
  13. INSERT INTO `spell_scripts` (`id`,`effindex`,`delay`,`command`,`datalong`,`datalong2`) VALUES
  14. (@Grab,0,0,15,@Ride,3);
  15. -- Quests relations
  16. UPDATE `quest_template` SET `PrevQuestId`=13290, `NextQuestId`=13383 WHERE `id`=13291; -- Borrowed Technology
  17. UPDATE `quest_template` SET `PrevQuestId`=13291, `NextQuestId`=0 WHERE `id`=13292; -- The Solution Solution /Daily/
  18. UPDATE `quest_template` SET `PrevQuestId`=13238, `NextQuestId`=13373 WHERE `id`=13356; -- Volatility
  19. UPDATE `quest_template` SET `PrevQuestId`=13356, `NextQuestId`=0 WHERE `id`=13239; -- Volatiliy /Daily/
  20. -- Add SAI for Frostbrood Skytalon
  21. UPDATE `creature_template` SET `vehicleid`=234,`InhabitType`=5,`AIName`= 'SmartAI' WHERE `entry`=@Skytalon;
  22. DELETE FROM `vehicle_template_accessory` WHERE `entry`=31583 AND `seat_id`=1;
  23. DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid`=@Skytalon;
  24. DELETE FROM `smart_scripts` WHERE `source_type`=9 AND `entryorguid`=@Script;
  25. 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
  26. (@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'),
  27. (@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'),
  28. (@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'),
  29. (@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'),
  30. -- Script 00
  31. (@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'),
  32. (@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'),
  33. (@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'),
  34. (@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'),
  35. (@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');
  36. -- Add SAI for Armored Decoy
  37. UPDATE `creature_template` SET `equipment_id`=326,`AIName`= 'SmartAI' WHERE `entry`=@Decoy; `flags_extra`=`flags_extra` 128 WHERE `entry`=@Decoy;
  38. DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid`=@Decoy;
  39. 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
  40. (@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'),
  41. (@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'),
  42. (@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');