Core/DB: Misc fixes

This commit is contained in:
hondacrx
2018-04-24 17:57:56 -04:00
parent e88d23ff50
commit 3da7c9d009
16 changed files with 2305 additions and 0 deletions
@@ -0,0 +1,34 @@
-- [Q] Challenge to the Black Flight -- http://wotlk.openwow.com/quest=11162
-- Smolderwing SAI
SET @ENTRY := 23789;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
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,0,63,0,100,0,0,0,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,"Smolderwing - On Just Created - Run Script"),
(@ENTRY,0,1,0,34,0,100,0,0,1,0,0,80,@ENTRY*100+01,2,0,0,0,0,1,0,0,0,0,0,0,0,"Smolderwing - On Reached Point 1 - Run Script");
-- Actionlist SAI
SET @ENTRY := 2378900;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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`,`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,9,0,0,0,0,100,0,0,0,0,0,18,770,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Set Flags Not Attackable & Immune To Players & Immune To NPC's"),
(@ENTRY,9,1,0,0,0,100,0,2000,2000,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Say Line 0"),
(@ENTRY,9,2,0,0,0,100,0,5000,5000,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Say Line 1"),
(@ENTRY,9,3,0,0,0,100,0,3000,3000,0,0,69,1,0,0,0,0,0,20,186335,100,0,0,0,0,0,"On Script - Move To Closest Gameobject 'Stonemaul Banner'");
-- Actionlist SAI
SET @ENTRY := 2378901;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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`,`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,9,0,0,0,0,100,0,0,0,0,0,11,42433,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Cast 'Smolderwing Fire Breath'"),
(@ENTRY,9,1,0,0,0,100,0,3000,3000,0,0,19,770,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Remove Flags Not Attackable & Immune To Players & Immune To NPC's"),
(@ENTRY,9,2,0,0,0,100,0,0,0,0,0,49,0,0,0,0,0,0,21,20,0,0,0,0,0,0,"On Script - Start Attacking");
DELETE FROM `creature_text` WHERE `CreatureID`=23789;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `comment`) VALUES
(23789, 0, 0, 'Pitiful mortal, Onyxia answers to no one!', 14, 0, 100, 0, 0, 0, 22285, 'Smolderwing'),
(23789, 1, 0, 'Your pathetic challenge has not gone unnoticed. I shall enjoy toying with you before you die.', 14, 0, 100, 0, 0, 0, 22286, 'Smolderwing');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=17 AND `SourceGroup`=0 AND `SourceEntry`=42425;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
(17,0,42425,0,0,29,0,23789,200,0,1,0,0,"","Cannot cast Plant Stonemaul Banner if Smolderwing is in range");
@@ -0,0 +1,41 @@
--
-- [Q] Call of Fire -- http://wotlk.openwow.com/quest=9467
-- Temper SAI
SET @ENTRY := 17205;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
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,0,20,0,100,0,9467,0,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,"Temper - On Quest 'Call of Fire' Finished - Run Script");
-- Actionlist SAI
SET @ENTRY := 1720500;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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`,`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,9,0,0,0,0,100,0,1000,1000,0,0,11,30218,0,0,0,0,0,19,17274,50,0,0,0,0,0,"Temper - On Script - Cast 'Fireball'"),
(@ENTRY,9,1,0,0,0,100,0,2000,2000,0,0,12,17220,2,13000,0,0,0,8,0,0,0,-3266.49,-12929.1,11.4484,2.23998,"Temper - On Script - Summon Creature 'Hauteur Reborn'");
-- Hauteur Reborn SAI
SET @ENTRY := 17220;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
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,0,63,0,100,0,0,0,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,"Hauteur Reborn - On Just Created - Run Script");
-- Actionlist SAI
SET @ENTRY := 1722000;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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`,`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,9,0,0,0,0,100,0,2000,2000,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Hauteur Reborn - On Script - Say Line 0"),
(@ENTRY,9,1,0,0,0,100,0,3000,3000,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Hauteur Reborn - On Script - Say Line 1");
DELETE FROM `creature_text` WHERE `CreatureID`=17220;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `comment`) VALUES
(17220, 0, 0, '%s looks over at Temper as if reluctant to speak.', 16, 0, 100, 0, 0, 0, 13694, 'Hauteur Reborn'),
(17220, 1, 0, 'Thank you, shaman. I am reborn and will burn brighter than ever before!', 12, 0, 100, 0, 0, 0, 13693, 'Hauteur Reborn');
DELETE FROM `creature` WHERE `guid`=86511;
UPDATE `creature_template` SET `MovementType` = 0 WHERE entry = 17220;
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=13 AND `SourceGroup`=1 AND `SourceEntry`=30218;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(13, 1, 30218, 0, 0, 31, 0, 3, 17274, 0, 0, 0, 0, '', 'Fireball only target Temper''s Target');
@@ -0,0 +1,43 @@
-- [Q] Suspicious Hoofprints -- http://wotlk.openwow.com/quest=1268
-- Krog SAI
SET @ENTRY := 4926;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
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,0,20,0,100,0,1268,0,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,"Krog - On Quest 'Suspicious Hoofprints' Finished - Run Script");
-- Actionlist SAI
SET @ENTRY := 492600;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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`,`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,9,0,0,0,0,100,0,0,0,0,0,12,4972,5,0,0,0,0,8,0,0,0,-3136.897,-2894.5666,34.5287,2.5493,"Krog - On Script - Summon Creature 'Kagoro'"),
(@ENTRY,9,1,0,0,0,100,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Krog - On Script - Say Line 0"),
(@ENTRY,9,2,0,0,0,100,0,6000,6000,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Krog - On Script - Say Line 1"),
(@ENTRY,9,3,0,0,0,100,0,1000,1000,0,0,1,0,0,0,0,0,0,19,4972,20,0,0,0,0,0,"Krog - On Script - Say Line 0"),
(@ENTRY,9,4,0,0,0,100,0,4000,4000,0,0,85,6245,2,0,0,0,0,19,4972,20,0,0,0,0,0,"Krog - On Script - Invoker Cast 'Force Target - Salute'");
-- Kagoro SAI
SET @ENTRY := 4972;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
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,0,63,0,100,0,0,0,0,0,53,1,4972,0,0,0,0,1,0,0,0,0,0,0,0,"Kagoro - On Just Created - Start Waypoint"),
(@ENTRY,0,1,0,40,0,100,0,2,4972,0,0,54,10000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Kagoro - On Waypoint 2 Reached - Pause Waypoint"),
(@ENTRY,0,2,0,40,0,100,0,8,4972,0,0,41,1000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Kagoro - On Waypoint 8 Reached - Despawn In 1000 ms");
DELETE FROM `waypoints` WHERE `entry`=4972;
INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`, `point_comment`) VALUES
(4972, 1, -3141.51, -2889.5, 34.1959, 'Kagoro'),
(4972, 2, -3146.74, -2887.85, 34.1221, 'Kagoro'),
(4972, 3, -3144.92, -2882.28, 34.0017, 'Kagoro'),
(4972, 4, -3141.55, -2871.59, 34.6909, 'Kagoro'),
(4972, 5, -3142.67, -2863.14, 34.5384, 'Kagoro'),
(4972, 6, -3154.45, -2860.24, 34.3526, 'Kagoro'),
(4972, 7, -3168.05, -2856.89, 34.0434, 'Kagoro'),
(4972, 8, -3175.28, -2848.33, 34.4749, 'Kagoro');
DELETE FROM `creature_text` WHERE `CreatureID` IN (4926, 4972);
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `comment`) VALUES
(4926, 0, 0, 'Kagoro, I require your presence!', 12, 0, 100, 0, 0, 0, 1755, 'Krog'),
(4926, 1, 0, 'Go to the Shady Rest Inn and follow the tracks. See where they lead and report back to me.', 12, 0, 100, 1, 0, 0, 1648, 'Krog'),
(4972, 0, 0, 'Understood. I will return shortly.', 12, 0, 100, 1, 0, 0, 1649, 'Kagoro');
@@ -0,0 +1,6 @@
--
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`IN (13,17) AND `SourceEntry`=30218;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(17, 0, 30218, 0, 0, 31, 1, 3, 17274, 0, 0, 0, 0, '', 'Fireball only target Temper''s Target');
DELETE FROM `gameobject_addon` WHERE `guid`=30031;
@@ -0,0 +1,16 @@
--
-- [Q] Return to Onu -- http://wotlk.openwow.com/quest=950
-- Onu SAI
SET @ENTRY := 3616;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
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,20,0,100,0,950,0,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,"Onu - On Quest 'Return to Onu' Finished - Run Script");
-- Actionlist SAI
SET @ENTRY := 361600;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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`,`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,9,0,0,0,0,100,0,1000,1000,0,0,1,0,3000,0,0,0,0,1,0,0,0,0,0,0,0,"Onu - On Script - Say Line 0"),
(@ENTRY,9,1,0,0,0,100,0,3000,3000,0,0,1,1,4000,0,0,0,0,1,0,0,0,0,0,0,0,"Onu - On Script - Say Line 1"),
(@ENTRY,9,2,0,0,0,100,0,4000,4000,0,0,1,2,3000,0,0,0,0,1,0,0,0,0,0,0,0,"Onu - On Script - Say Line 2");
@@ -0,0 +1,25 @@
--
-- [Q] Felbound Ancients -- http://wotlk.openwow.com/quest=4441
-- Eridan Bluewind SAI
SET @ENTRY := 9116;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
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,0,20,0,100,0,4441,0,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,"Eridan Bluewind - On Quest 'Felbound Ancients' Finished - Run Script");
-- Actionlist SAI
SET @ENTRY := 911600;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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`,`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,9,0,0,0,0,100,0,0,0,0,0,83,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"Eridan Bluewind - On Script - Remove Npc Flag Questgiver"),
(@ENTRY,9,1,0,0,0,100,0,1000,1000,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Eridan Bluewind - On Script - Say Line 0"),
(@ENTRY,9,2,0,0,0,100,0,1000,1000,0,0,66,0,0,0,0,0,0,8,0,0,0,0,0,0,2.59669,"Eridan Bluewind - On Script - Set Orientation 2,59669"),
(@ENTRY,9,3,0,0,0,100,0,1000,1000,0,0,11,28892,0,0,0,0,0,1,0,0,0,0,0,0,0,"Eridan Bluewind - On Script - Cast 'Nature Channeling'"),
(@ENTRY,9,4,0,0,0,100,0,5000,5000,0,0,66,0,0,0,0,0,0,8,0,0,0,0,0,0,2.72271,"Eridan Bluewind - On Script - Set Orientation 2,72271"),
(@ENTRY,9,5,0,0,0,100,0,1000,1000,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Eridan Bluewind - On Script - Say Line 1"),
(@ENTRY,9,6,0,0,0,100,0,0,0,0,0,82,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"Eridan Bluewind - On Script - Add Npc Flag Questgiver");
DELETE FROM `creature_text` WHERE `CreatureID`=9116;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `comment`) VALUES
(9116, 0, 0, 'May this evil aura be banished from this artifact!', 12, 0, 100, 0, 0, 0, 8366, 'Eridan Bluewind'),
(9116, 1, 0, 'I can feel the presence of evil leaving...', 12, 0, 100, 0, 0, 0, 8367, 'Eridan Bluewind');
@@ -0,0 +1,21 @@
--
-- [Q] The Knife Revealed -- http://wotlk.openwow.com/quest=4129
-- Quintis Jonespyre SAI
SET @ENTRY := 7879;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
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,0,20,0,100,0,4129,0,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,"Quintis Jonespyre - On Quest 'The Knife Revealed' Finished - Run Script");
-- Actionlist SAI
SET @ENTRY := 787900;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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`,`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,9,0,0,0,0,100,0,2000,2000,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Say Line 0"),
(@ENTRY,9,1,0,0,0,100,0,1000,1000,0,0,11,15050,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Cast 'Psychometry'"),
(@ENTRY,9,2,0,0,0,100,0,7000,7000,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Say Line 1");
DELETE FROM `creature_text` WHERE `CreatureID`=7879;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `comment`) VALUES
(7879, 0, 0, 'I will need to focus my energies onto this knife. By doing so, I should catch some of the stronger psychic impressions associated with it.', 12, 0, 100, 0, 0, 0, 5148, 'Quintis Jonespyre'),
(7879, 1, 0, 'I... I''ve seen enough I think... so very draining...', 12, 0, 100, 462, 0, 0, 5149, 'Quintis Jonespyre');
@@ -0,0 +1,70 @@
--
-- [Q] Reclaiming the Charred Vale -- http://wotlk.openwow.com/quest=1059
-- Falfindel Waywarder SAI
SET @ENTRY := 4048;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
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,20,0,100,0,1059,0,0,0,53,0,4048,0,0,0,0,1,0,0,0,0,0,0,0,"Falfindel Waywarder - On Quest 'Reclaiming the Charred Vale' Finished - Start Waypoint"),
(@ENTRY,0,1,2,61,0,100,0,0,0,0,0,48,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Falfindel Waywarder - On Quest 'Reclaiming the Charred Vale' Finished - Set Active On"),
(@ENTRY,0,2,0,61,0,100,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Falfindel Waywarder - On Quest 'Reclaiming the Charred Vale' Finished - Say Line 0"),
(@ENTRY,0,3,4,40,0,100,0,5,4048,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,"Falfindel Waywarder - On Waypoint 5 Reached - Run Script"),
(@ENTRY,0,4,0,61,0,100,0,5,4048,0,0,54,27000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Falfindel Waywarder - On Waypoint 5 Reached - Pause Waypoint");
DELETE FROM `waypoints` WHERE `entry`=4048;
INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`, `point_comment`) VALUES
(4048, 1, -4524.24, -782.628, -41.5763, 'Falfindel Waywarder'),
(4048, 2, -4520.69, -775.438, -41.0733, 'Falfindel Waywarder'),
(4048, 3, -4514.55, -770.937, -40.0658, 'Falfindel Waywarder'),
(4048, 4, -4503.63, -774.032, -40.224, 'Falfindel Waywarder'),
(4048, 5, -4488.25, -767.98, -36.61, 'Falfindel Waywarder'),
(4048, 6, -4499.17, -773.174, -39.449, 'Falfindel Waywarder'),
(4048, 7, -4514.09, -771.136, -40.0971, 'Falfindel Waywarder'),
(4048, 8, -4520.48, -775.049, -41.0191, 'Falfindel Waywarder'),
(4048, 9, -4524.16, -782.978, -41.2406, 'Falfindel Waywarder'),
(4048, 10, -4524.12, -788.099, -41.6929, 'Falfindel Waywarder'),
(4048, 11, -4524.12, -788.099, -41.6929, 'Falfindel Waywarder');
DELETE FROM `creature_text` WHERE `CreatureID`=4048;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `comment`) VALUES
(4048, 0, 0, 'We must hurry.', 12, 0, 100, 1, 0, 0, 1397, 'Falfindel Waywarder'),
(4048, 1, 0, 'Spirits of the forest come forth and heed nature''s call!', 12, 0, 100, 1, 0, 0, 1398, 'Falfindel Waywarder'),
(4048, 2, 0, 'Spirits of the forest, you are needed! Make haste to the Charred Vale!', 12, 0, 100, 25, 0, 0, 1400, 'Falfindel Waywarder');
-- Actionlist SAI
SET @ENTRY := 404800;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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`,`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,9,0,0,0,0,100,0,2000,2000,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Falfindel Waywarder - On Script - Say Line 1"),
(@ENTRY,9,1,0,0,0,100,0,2000,2000,0,0,11,6537,0,0,0,0,0,1,0,0,0,0,0,0,0,"Falfindel Waywarder - On Script - Cast 'Call of the Forest'"),
(@ENTRY,9,2,0,0,0,100,0,2000,2000,0,0,12,4059,3,50000,0,0,0,8,0,0,0,-4479.45,-768.01,-37.36,0,"Falfindel Waywarder - On Script - Summon Creature 'Forest Spirit'"),
(@ENTRY,9,3,0,0,0,100,0,1000,1000,0,0,12,4059,3,50000,0,0,0,8,0,0,0,-4486.55,-769.8,-37.23,0,"Falfindel Waywarder - On Script - Summon Creature 'Forest Spirit'"),
(@ENTRY,9,4,0,0,0,100,0,1000,1000,0,0,12,4059,3,50000,0,0,0,8,0,0,0,-4484.95,-767.87,-36.61,0,"Falfindel Waywarder - On Script - Summon Creature 'Forest Spirit'"),
(@ENTRY,9,5,0,0,0,100,0,1000,1000,0,0,12,4059,3,50000,0,0,0,8,0,0,0,-4484.9,-770.79,-37.62,0,"Falfindel Waywarder - On Script - Summon Creature 'Forest Spirit'"),
(@ENTRY,9,6,0,0,0,100,0,1000,1000,0,0,12,4059,3,50000,0,0,0,8,0,0,0,-4484.07,-765.04,-35.74,0,"Falfindel Waywarder - On Script - Summon Creature 'Forest Spirit'"),
(@ENTRY,9,7,0,0,0,100,0,1000,1000,0,0,12,4059,3,50000,0,0,0,8,0,0,0,-4485.88,-764.05,-35.19,0,"Falfindel Waywarder - On Script - Summon Creature 'Forest Spirit'"),
(@ENTRY,9,8,0,0,0,100,0,3000,3000,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"Falfindel Waywarder - On Script - Say Line 2"),
(@ENTRY,9,9,0,0,0,100,0,0,0,0,0,28,6537,0,0,0,0,0,1,0,0,0,0,0,0,0,"Falfindel Waywarder - On Script - Remove Aura 'Call of the Forest'");
UPDATE `creature_template` SET `InhabitType`=4 WHERE `entry`=4059;
-- Forest Spirit SAI
SET @ENTRY := 4059;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
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,0,54,0,100,0,0,0,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,"Forest Spirit - On Just Summoned - Run Script");
-- Actionlist SAI
SET @ENTRY := 405900;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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`,`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,9,0,0,0,0,100,0,7000,7000,0,0,53,1,4059,0,0,0,0,1,0,0,0,0,0,0,0,"On Script - Start Waypoint");
DELETE FROM `waypoints` WHERE `entry`=4059;
INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`, `point_comment`) VALUES
(4059, 1, -4484.5, -759, -33.57, 'Forest Spirit'),
(4059, 2, -4484.5, -759, -33.57, 'Forest Spirit'),
(4059, 3, -4483, -755.56, -31.94, 'Forest Spirit'),
(4059, 4, -4481, -686.51, -14.39, 'Forest Spirit'),
(4059, 5, -4472, -571.90, 5.91, 'Forest Spirit');
@@ -0,0 +1,29 @@
--
-- [Q] The Ward of Wakening -- http://wotlk.openwow.com/quest=10961
-- Morthis Whisperwing SAI
SET @ENTRY := 22832;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
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,20,0,100,0,10961,0,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,"Morthis Whisperwing - On Quest 'The Ward of Wakening' Finished - Run Script"),
(@ENTRY,0,1,0,61,0,100,0,10961,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,"Morthis Whisperwing - On Quest 'The Ward of Wakening' Finished - Store Targetlist");
-- Actionlist SAI
SET @ENTRY := 2283200;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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`,`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,9,0,0,0,0,100,0,0,0,0,0,83,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"Morthis Whisperwing - On Script - Remove Npc Flag Questgiver"),
(@ENTRY,9,1,0,0,0,100,0,1000,1000,0,0,1,0,5000,0,0,0,0,12,1,0,0,0,0,0,0,"Morthis Whisperwing - On Script - Say Line 0"),
(@ENTRY,9,2,0,0,0,100,0,5000,5000,0,0,90,8,0,0,0,0,0,0,0,0,0,0,0,0,0,"Morthis Whisperwing - On Script - Set Flag Standstate Kneel"),
(@ENTRY,9,3,0,0,0,100,0,2000,2000,0,0,1,1,3000,0,0,0,0,1,0,0,0,0,0,0,0,"Morthis Whisperwing - On Script - Say Line 1"),
(@ENTRY,9,4,0,0,0,100,0,3000,3000,0,0,91,8,0,0,0,0,0,0,0,0,0,0,0,0,0,"Morthis Whisperwing - On Script - Set Remove Standstate Kneel"),
(@ENTRY,9,5,0,0,0,100,0,3000,3000,0,0,1,2,4000,0,0,0,0,1,0,0,0,0,0,0,0,"Morthis Whisperwing - On Script - Say Line 2"),
(@ENTRY,9,6,0,0,0,100,0,4000,4000,0,0,1,3,3000,0,0,0,0,1,0,0,0,0,0,0,0,"Morthis Whisperwing - On Script - Say Line 3"),
(@ENTRY,9,7,0,0,0,100,0,1000,1000,0,0,82,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"Morthis Whisperwing - On Script - Add Npc Flag Questgiver");
DELETE FROM `creature_text` WHERE `CreatureID`=22832;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `comment`) VALUES
(22832, 0, 0, 'There are few left in the world who can prepare the Ward of Waking, $N. We are fortunate that I am among them.', 12, 0, 100, 1, 0, 0, 20516, 'Morthis Whisperwing'),
(22832, 1, 0, '%s kneels, filling the vial with water from the moonwell.', 16, 0, 100, 0, 0, 0, 20512, 'Morthis Whisperwing'),
(22832, 2, 0, '%s combines the herbs with the moonwell water to create the Ward of Waking', 16, 0, 100, 0, 0, 0, 20517, 'Morthis Whisperwing'),
(22832, 3, 0, 'The potion is finished. I can only hope Clintar forgives us for interrupting his sojourn in the Emerald Dream.', 12, 0, 100, 1, 0, 0, 20513, 'Morthis Whisperwing');
@@ -0,0 +1,38 @@
--
-- [Q] To Catch A Sparrowhawk -- http://wotlk.openwow.com/quest=10987
-- Watcher Elaira SAI
SET @ENTRY := 22981;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
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,20,0,100,0,10987,0,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,"Watcher Elaira - On Quest 'To Catch A Sparrowhawk' Finished - Run Script"),
(@ENTRY,0,1,0,61,0,100,0,10987,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,"Watcher Elaira - On Quest 'To Catch A Sparrowhawk' Finished - Store Targetlist");
-- Actionlist SAI
SET @ENTRY := 2298100;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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`,`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,9,0,0,0,0,100,0,2000,2000,0,0,12,23036,1,17000,0,0,0,8,0,0,0,-1272.48,9164.06,217.776,4.20625,"Watcher Elaira - On Script - Summon Creature 'Captive Sparrowhawk'"),
(@ENTRY,9,1,0,0,0,100,0,2000,2000,0,0,1,0,3000,0,0,0,0,12,1,0,0,0,0,0,0,"Watcher Elaira - On Script - Say Line 0"),
(@ENTRY,9,2,0,0,0,100,0,2000,2000,0,0,45,1,1,0,0,0,0,19,23036,60,0,0,0,0,0,"Watcher Elaira - On Script - Set Data 1 1"),
(@ENTRY,9,3,0,0,0,100,0,0,0,0,0,1,0,4000,0,0,0,0,19,23036,30,0,0,0,0,0,"Watcher Elaira - On Script - Say Line 0"),
(@ENTRY,9,4,0,0,0,100,0,4000,4000,0,0,1,1,4000,0,0,0,0,12,1,0,0,0,0,0,0,"Watcher Elaira - On Script - Say Line 1"),
(@ENTRY,9,5,0,0,0,100,0,4000,4000,0,0,1,2,1000,0,0,0,0,12,1,0,0,0,0,0,0,"Watcher Elaira - On Script - Say Line 2"),
(@ENTRY,9,6,0,0,0,100,0,2000,2000,0,0,45,2,2,0,0,0,0,19,23036,60,0,0,0,0,0,"Watcher Elaira - On Script - Set Data 2 2");
-- Captive Sparrowhawk SAI
SET @ENTRY := 23036;
UPDATE `creature_template` SET `AIName`="SmartAI", `InhabitType`=4 WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
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,38,0,100,0,1,1,0,0,59,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Captive Sparrowhawk - On Data Set 1 1 - Set Run Off"),
(@ENTRY,0,1,0,61,0,100,0,1,1,0,0,69,0,0,0,0,0,0,8,0,0,0,-1273.05,9161.96,217.298,4.34369,"Captive Sparrowhawk - On Data Set 1 1 - Move To Position"),
(@ENTRY,0,2,3,38,0,100,0,2,2,0,0,59,1,0,0,0,0,0,1,0,0,0,0,0,0,0,"Captive Sparrowhawk - On Data Set 2 2 - Set Run On"),
(@ENTRY,0,3,0,61,0,100,0,2,2,0,0,69,0,0,0,0,0,0,8,0,0,0,-1335.43,9128.58,251.388,3.6604,"Captive Sparrowhawk - On Data Set 2 2 - Move To Position");
DELETE FROM `creature_text` WHERE `CreatureID` IN (22981, 23036);
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `comment`) VALUES
(22981, 0, 0, 'Come closer, young one. There\'s nothing to fear from me or $n.', 12, 0, 100, 1, 0, 0, 20738, 'Watcher Elaira'),
(23036, 0, 0, '%s cautiously approaches Wather Elaira.', 16, 0, 100, 0, 0, 0, 20739, 'Captive Sparrowhawk'),
(22981, 1, 0, 'I\'m going to train you to help $N with very important task. After that, I promose you\'ll be free to return home.', 12, 0, 100, 1, 0, 0, 20740, 'Watcher Elaira'),
(22981, 2, 0, 'You will hear the call when you are needed. Fly east, to Skettis, and wait there for $N\'s signal.', 12, 0, 100, 1, 0, 0, 20751, 'Watcher Elaira');
@@ -0,0 +1,14 @@
-- Emotes for Magrami Spectre
-- Actionlist SAI
SET @ENTRY := 1156000;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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`,`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,9,0,0,0,0,100,0,0,0,0,0,59,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Magrami Spectre - On Script - Set Run Off"),
(@ENTRY,9,1,0,0,0,100,0,0,0,0,0,1,0,3000,0,0,0,0,1,0,0,0,0,0,0,0,"Magrami Spectre - On Script - Say Line 0"),
(@ENTRY,9,2,0,0,0,100,0,0,0,0,0,69,0,0,0,0,0,0,20,177746,70,0,0,0,0,0,"Magrami Spectre - On Script - Move To Closest Gameobject 'Ghost Magnet'"),
(@ENTRY,9,3,0,0,0,100,0,7000,7000,0,0,49,0,0,0,0,0,0,21,30,0,0,0,0,0,0,"Magrami Spectre - On Script - Start Attacking");
DELETE FROM `creature_text` WHERE `CreatureID`=11560;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `comment`) VALUES
(11560, 0, 0, '%s is drawn to the ghost magnet...', 16, 0, 100, 0, 0, 0, 7585, 'Magrami Spectre'),
(11560, 0, 1, '%s is angered!', 16, 0, 100, 0, 0, 0, 7583, 'Magrami Spectre');
@@ -0,0 +1,24 @@
--
-- Field Marshal Afrasiabi SAI
SET @ENTRY := 14721;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
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,20,0,100,0,7782,0,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,"Field Marshal Afrasiabi - On Quest 'The Lord of Blackrock' Finished - Run Script"),
(@ENTRY,0,1,0,61,0,100,0,7782,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,"Field Marshal Afrasiabi - On Quest 'The Lord of Blackrock' Finished - Store Targetlist");
-- Actionlist SAI
SET @ENTRY := 1472100;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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`,`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,9,0,0,0,0,100,0,1000,1000,0,0,83,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"Field Marshal Afrasiabi - On Script - Remove Npc Flag Questgiver"),
(@ENTRY,9,1,0,0,0,100,0,5000,5000,0,0,1,0,8000,0,0,0,0,12,1,0,0,0,0,0,0,"Field Marshal Afrasiabi - On Script - Say Line 0"),
(@ENTRY,9,2,0,0,0,100,0,8000,8000,0,0,1,1,10000,0,0,0,0,12,1,0,0,0,0,0,0,"Field Marshal Afrasiabi - On Script - Say Line 1"),
(@ENTRY,9,3,0,0,0,100,0,3000,3000,0,0,50,179882,21600,0,0,0,0,8,0,0,0,-8925.57,496.042,103.767,2.42801,"Field Marshal Afrasiabi - On Script - Summon Gameobject 'The Severed Head of Nefarian'"),
(@ENTRY,9,4,0,0,0,100,0,6000,6000,0,0,11,22888,0,0,0,0,0,1,0,0,0,0,0,0,0,"Field Marshal Afrasiabi - On Script - Cast 'Rallying Cry of the Dragonslayer'"),
(@ENTRY,9,5,0,0,0,100,0,1000,1000,0,0,82,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"Field Marshal Afrasiabi - On Script - Add Npc Flag Questgiver");
DELETE FROM `creature_text` WHERE `CreatureID` IN (14721);
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `comment`, `BroadcastTextId`) VALUES
(14721, 0, 0, 'Citizens of the Alliance, the Lord of Blackrock is slain! Nefarian has been subdued by the combined might of $N and $Ghis:her; allies!', 14, 0, 100, 0, 0, 0, 'Field Marshal Afrasiabi', 9870),
(14721, 1, 0, 'Let your spirits rise! Rally around your champion, bask in $Ghis:her; glory! Revel in the rallying cry of the dragon slayer!', 14, 0, 100, 0, 0, 0, 'Field Marshal Afrasiabi', 9872);
@@ -0,0 +1,29 @@
-- Overlord Runthak SAI
SET @ENTRY := 14392;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
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,20,0,100,0,7784,0,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,"Overlord Runthak - On Quest 'The Lord of Blackrock' Finished - Run Script"),
(@ENTRY,0,1,0,61,0,100,0,7784,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,"Overlord Runthak - On Quest 'The Lord of Blackrock' Finished - Store Targetlist");
-- Actionlist SAI
SET @ENTRY := 1439200;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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`,`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,9,0,0,0,0,100,0,1000,1000,0,0,83,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"Overlord Runthak - On Script - Remove Npc Flag Questgiver"),
(@ENTRY,9,1,0,0,0,100,0,2000,2000,0,0,59,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Overlord Runthak - On Script - Set Run Off"),
(@ENTRY,9,2,0,0,0,100,0,0,0,0,0,69,0,0,0,0,0,0,8,0,0,0,1544,-4425.87,10.9056,3.323,"Overlord Runthak - On Script - Move To Position"),
(@ENTRY,9,3,0,0,0,100,0,14000,14000,0,0,66,0,0,0,0,0,0,8,0,0,0,0,0,0,0.6367,"Overlord Runthak - On Script - Set Orientation 0,6367"),
(@ENTRY,9,4,0,0,0,100,0,3000,3000,0,0,1,0,17000,0,0,0,0,12,1,0,0,0,0,0,0,"Overlord Runthak - On Script - Say Line 0"),
(@ENTRY,9,5,0,0,0,100,0,17000,17000,0,0,1,1,10000,0,0,0,0,12,1,0,0,0,0,0,0,"Overlord Runthak - On Script - Say Line 1"),
(@ENTRY,9,6,0,0,0,100,0,3000,3000,0,0,50,179881,21600,0,0,0,0,8,0,0,0,1540.28,-4422.19,7.0051,5.22833,"Overlord Runthak - On Script - Summon Gameobject 'The Severed Head of Nefarian'"),
(@ENTRY,9,7,0,0,0,100,0,5000,5000,0,0,9,0,0,0,0,0,0,20,179881,100,0,0,0,0,0,"Overlord Runthak - On Script - Activate Gameobject"),
(@ENTRY,9,8,0,0,0,100,0,5000,5000,0,0,11,22888,0,0,0,0,0,1,0,0,0,0,0,0,0,"Overlord Runthak - On Script - Cast 'Rallying Cry of the Dragonslayer'"),
(@ENTRY,9,9,0,0,0,100,0,10000,10000,0,0,69,0,0,0,0,0,0,8,0,0,0,1568,-4405.87,8.13371,0.3434,"Overlord Runthak - On Script - Move To Position"),
(@ENTRY,9,10,0,0,0,100,0,15000,15000,0,0,66,0,0,0,0,0,0,8,0,0,0,0,0,0,3.31613,"Overlord Runthak - On Script - Set Orientation 3,31613"),
(@ENTRY,9,11,0,0,0,100,0,1000,1000,0,0,82,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"Overlord Runthak - On Script - Add Npc Flag Questgiver");
DELETE FROM `creature_text` WHERE `CreatureID` IN (14392);
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `comment`, `BroadcastTextId`) VALUES
(14392, 0, 0, 'NEFARIAN IS SLAIN! people of Orgrimmar, bow down before the might of $N and his allies for they have laid a blow against the Black Dragonflight that is sure to stir the Aspects from their malaise! This defeat shall surely be felt by the father of the Black Flight: Deathwing reels in pain and anguish this day!', 14, 0, 100, 0, 0, 0, 'Overlord Runthak', 9867),
(14392, 1, 0, 'Be lifted by $N accomplishment! Revel in his rallying cry!', 14, 0, 100, 0, 0, 0, 'Overlord Runthak', 9868);
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,320 @@
--
UPDATE `quest_template_addon` SET `ProvidedItemCount` = 1 WHERE `ID` IN (24471, 24623, 24813, 27671, 26333, 31156, 35057);
DELETE FROM `quest_template_addon` WHERE `ID` IN (31541, 31543, 31544, 32836, 32838, 32840, 32842, 32844, 32846, 32848, 32850, 32852, 32854, 32856, 32858, 37469, 37565, 37653, 38015, 38035, 38307, 38407, 38505, 38507, 38552, 38641, 38646, 38697, 38724, 38777, 38784, 38785, 38786, 38789, 38790, 38791, 38795, 38796, 38797, 38800, 38801, 38802, 38806, 38937, 39060, 39125, 39142, 39277, 39305, 39327, 39330, 39333, 39334, 39338, 39341, 39343, 39345, 39347, 39390, 39405, 39430, 39431, 39595, 39645, 39656, 39790, 39791, 39847, 39876, 39877, 39883, 39942, 39950, 39951, 39952, 39987, 40003, 40011, 40013, 40015, 40018, 40020, 40022, 40024, 40025, 40028, 40029, 40030, 40032, 40034, 40036, 40038, 40040, 40062, 40064, 40065, 40120, 40129, 40131, 40133, 40136, 40141, 40143, 40151, 40156, 40169, 40217, 40228, 40267, 40321, 40349, 40350, 40351, 40352, 40353, 40354, 40355, 40356, 40357, 40358, 40359, 40360, 40361, 40362, 40363, 40370, 40519, 40539, 40545, 40558, 40570, 40615, 40647, 40725, 40749, 40794, 40798, 40832, 40859, 40860, 40862, 40869, 40872, 40890, 40901, 40904, 40919, 40947, 40956, 40960, 40961, 40963, 41112, 41137, 41167, 41168, 41178, 41179, 41187, 41216, 41255, 41436, 41626, 41770, 41771, 41778, 41784, 41787, 41919, 42006, 42042, 42079, 42090, 42133, 42147, 42213, 42244, 42387, 42406, 42430, 42454, 42487, 42494, 42503, 42510, 42640, 42641, 42707, 42750, 42884, 42955, 42956, 42962, 43003, 43376, 43565, 43819, 43826, 43827, 43926, 43942, 44112, 44153, 44448, 44457, 44490, 44546, 44558, 44672, 44684, 44685, 44719, 44733, 44754, 44767, 44813, 44815, 44816, 44842, 44925, 44926, 44928, 45026, 45044, 45051, 45061, 45062, 45063, 45064, 45065, 45118, 45159, 45176, 45260, 45261, 45262, 45263, 45265, 45266, 45267, 45268, 45269, 45296, 45342, 45346, 45405, 45482, 45545, 45570, 45586, 45726, 45747, 45748, 45749, 45750, 45751, 45752, 45753, 45754, 45755, 45756, 45757, 45758, 45759, 45760, 45761, 45762, 45771, 46268, 46683, 46689, 46690, 46695, 46701, 46725, 46810, 46935, 46946, 47049, 47050, 47051, 47052, 47067, 47102, 47180, 47220, 47563, 47745, 47750, 47882, 47987, 48027, 48028, 48029, 48034, 48035, 48036, 48037, 48038, 48039, 48040, 48041, 48042, 48056, 48065, 48078, 48231, 48483, 48559, 48560, 48637, 48640, 48691, 48864, 48954, 49077);
INSERT INTO `quest_template_addon` (`ID`, `ProvidedItemCount`) VALUES
(31541, 1),
(31543, 1),
(31544, 1),
(32836, 1),
(32838, 1),
(32840, 1),
(32842, 1),
(32844, 1),
(32846, 1),
(32848, 1),
(32850, 1),
(32852, 1),
(32854, 1),
(32856, 1),
(32858, 1),
(37469, 1),
(37565, 1),
(37653, 1),
(38015, 1),
(38035, 1),
(38307, 1),
(38407, 1),
(38505, 1),
(38507, 1),
(38552, 1),
(38641, 1),
(38646, 1),
(38697, 1),
(38724, 1),
(38777, 1),
(38784, 1),
(38785, 1),
(38786, 1),
(38789, 1),
(38790, 1),
(38791, 1),
(38795, 1),
(38796, 1),
(38797, 1),
(38800, 1),
(38801, 1),
(38802, 1),
(38806, 1),
(38937, 1),
(39060, 1),
(39125, 1),
(39142, 1),
(39277, 1),
(39305, 1),
(39327, 1),
(39330, 1),
(39333, 1),
(39334, 1),
(39338, 1),
(39341, 1),
(39343, 1),
(39345, 1),
(39347, 1),
(39390, 1),
(39405, 1),
(39430, 1),
(39431, 1),
(39595, 1),
(39645, 1),
(39656, 1),
(39790, 1),
(39791, 1),
(39847, 1),
(39876, 1),
(39877, 1),
(39883, 1),
(39942, 1),
(39950, 1),
(39951, 1),
(39952, 1),
(39987, 1),
(40003, 1),
(40011, 1),
(40013, 1),
(40015, 1),
(40018, 1),
(40020, 1),
(40022, 1),
(40024, 1),
(40025, 1),
(40028, 1),
(40029, 1),
(40030, 1),
(40032, 1),
(40034, 1),
(40036, 1),
(40038, 1),
(40040, 1),
(40062, 1),
(40064, 1),
(40065, 1),
(40120, 1),
(40129, 1),
(40131, 1),
(40133, 1),
(40136, 1),
(40141, 1),
(40143, 1),
(40151, 1),
(40156, 1),
(40169, 1),
(40217, 1),
(40228, 1),
(40267, 1),
(40321, 1),
(40349, 1),
(40350, 1),
(40351, 1),
(40352, 1),
(40353, 1),
(40354, 1),
(40355, 1),
(40356, 1),
(40357, 1),
(40358, 1),
(40359, 1),
(40360, 1),
(40361, 1),
(40362, 1),
(40363, 1),
(40370, 1),
(40519, 1),
(40539, 1),
(40545, 1),
(40558, 1),
(40570, 1),
(40615, 1),
(40647, 1),
(40725, 1),
(40749, 1),
(40794, 1),
(40798, 1),
(40832, 1),
(40859, 1),
(40860, 1),
(40862, 1),
(40869, 1),
(40872, 1),
(40890, 1),
(40901, 1),
(40904, 1),
(40919, 1),
(40947, 1),
(40956, 1),
(40960, 1),
(40961, 1),
(40963, 1),
(41112, 1),
(41137, 1),
(41167, 1),
(41168, 1),
(41178, 1),
(41179, 1),
(41187, 1),
(41216, 1),
(41255, 1),
(41436, 1),
(41626, 1),
(41770, 1),
(41771, 1),
(41778, 1),
(41784, 1),
(41787, 1),
(41919, 1),
(42006, 1),
(42042, 1),
(42079, 1),
(42090, 1),
(42133, 1),
(42147, 1),
(42213, 1),
(42244, 1),
(42387, 1),
(42406, 1),
(42430, 1),
(42454, 1),
(42487, 1),
(42494, 1),
(42503, 1),
(42510, 1),
(42640, 1),
(42641, 1),
(42707, 1),
(42750, 1),
(42884, 1),
(42955, 1),
(42956, 1),
(42962, 1),
(43003, 1),
(43376, 1),
(43565, 1),
(43819, 1),
(43826, 1),
(43827, 1),
(43926, 1),
(43942, 1),
(44112, 1),
(44153, 1),
(44448, 1),
(44457, 1),
(44490, 1),
(44546, 1),
(44558, 1),
(44672, 1),
(44684, 1),
(44685, 1),
(44719, 1),
(44733, 1),
(44754, 1),
(44767, 1),
(44813, 1),
(44815, 1),
(44816, 1),
(44842, 1),
(44925, 1),
(44926, 1),
(44928, 1),
(45026, 1),
(45044, 1),
(45051, 1),
(45061, 1),
(45062, 1),
(45063, 1),
(45064, 1),
(45065, 1),
(45118, 1),
(45159, 1),
(45176, 1),
(45260, 1),
(45261, 1),
(45262, 1),
(45263, 1),
(45265, 1),
(45266, 1),
(45267, 1),
(45268, 1),
(45269, 1),
(45296, 1),
(45342, 1),
(45346, 1),
(45405, 1),
(45482, 1),
(45545, 1),
(45570, 1),
(45586, 1),
(45726, 1),
(45747, 1),
(45748, 1),
(45749, 1),
(45750, 1),
(45751, 1),
(45752, 1),
(45753, 1),
(45754, 1),
(45755, 1),
(45756, 1),
(45757, 1),
(45758, 1),
(45759, 1),
(45760, 1),
(45761, 1),
(45762, 1),
(45771, 1),
(46268, 1),
(46683, 1),
(46689, 1),
(46690, 1),
(46695, 1),
(46701, 1),
(46725, 1),
(46810, 1),
(46935, 1),
(46946, 1),
(47049, 1),
(47050, 1),
(47051, 1),
(47052, 1),
(47067, 1),
(47102, 1),
(47180, 1),
(47220, 1),
(47563, 1),
(47745, 1),
(47750, 1),
(47882, 1),
(47987, 1),
(48027, 1),
(48028, 1),
(48029, 1),
(48034, 1),
(48035, 1),
(48036, 1),
(48037, 1),
(48038, 1),
(48039, 1),
(48040, 1),
(48041, 1),
(48042, 1),
(48056, 1),
(48065, 1),
(48078, 1),
(48231, 1),
(48483, 1),
(48559, 1),
(48560, 1),
(48637, 1),
(48640, 1),
(48691, 1),
(48864, 1),
(48954, 1),
(49077, 1);
@@ -0,0 +1,443 @@
UPDATE `quest_template_addon` SET `RequiredSkillId` = 164 WHERE `ID` IN (38505, 38507, 38543, 38544, 38545, 38546, 38547, 38549, 38550, 38551, 44926, 45044, 45051, 46701);
UPDATE `quest_template_addon` SET `RequiredSkillId` = 165 WHERE `ID` IN (46689, 46690, 46695, 48078);
UPDATE `quest_template_addon` SET `RequiredSkillId` = 171 WHERE `ID` IN (30122, 39327, 39330, 39333, 39334, 39338, 39341, 39343, 39345, 39347, 39390, 39430, 39431, 39645, 44112);
UPDATE `quest_template_addon` SET `RequiredSkillId` = 182 WHERE `ID` IN (40013, 40015, 40018, 40020, 40022, 40024, 40025, 40028, 40029, 40030, 40032, 40034, 40036, 40038, 40040, 48027, 48028, 48029);
UPDATE `quest_template_addon` SET `RequiredSkillId` = 185 WHERE `ID` IN (30330, 30331, 33022);
UPDATE `quest_template_addon` SET `RequiredSkillId` = 197 WHERE `ID` = 46683;
UPDATE `quest_template_addon` SET `RequiredSkillId` = 202 WHERE `ID` IN (40545, 40859, 40860, 40862, 40869, 40872, 48056, 48065);
UPDATE `quest_template_addon` SET `RequiredSkillId` = 356 WHERE `ID` IN (30613, 30658, 30678, 31664, 36131, 36132, 36201, 36202, 36608, 36609, 36611, 36882, 40960, 40961);
UPDATE `quest_template_addon` SET `RequiredSkillId` = 755 WHERE `ID` IN (29969, 29970, 39183, 39184, 39185, 39186, 39187, 40539, 40558);
UPDATE `quest_template_addon` SET `RequiredSkillId` = 773 WHERE `ID` IN (39695, 39847, 39942, 39950, 39951, 39952, 40062, 40064, 40065);
UPDATE `quest_template_addon` SET `RequiredSkillId` = 794 WHERE `ID` IN (40349, 40350, 40351, 40352, 40353, 40354, 40355, 40356, 40357, 40358, 40359, 40360, 40361, 40362, 40363, 41167, 41168, 41178, 41179, 41187);
DELETE FROM `quest_template_addon` WHERE `ID` IN (30328, 30329, 30332, 30584, 30585, 30586, 30588, 30597, 30598, 30698, 30700, 30701, 30753, 30754, 30763, 31443, 31444, 31446, 31752, 32107, 32435, 32436, 33018, 33019, 33020, 33021, 33023, 33024, 33025, 33026, 33027, 33107, 33139, 33146, 33358, 34193, 34194, 34758, 34774, 34846, 35066, 35071, 35072, 35073, 35074, 35075, 35296, 36141, 36199, 36404, 36510, 36511, 36513, 36514, 36515, 36517, 36612, 36616, 36800, 36802, 36803, 36804, 36805, 36806, 36870, 37270, 38243, 38287, 38290, 38293, 38296, 38399, 38406, 38499, 38500, 38501, 38502, 38506, 38513, 38514, 38515, 38518, 38519, 38522, 38523, 38524, 38525, 38526, 38527, 38528, 38530, 38531, 38532, 38533, 38534, 38536, 38537, 38538, 38539, 38540, 38541, 38542, 38559, 38563, 38564, 38833, 38944, 38945, 38946, 38947, 38948, 38949, 38950, 38951, 38952, 38953, 38954, 38955, 38956, 38957, 38958, 38959, 38960, 38961, 38962, 38963, 38964, 38965, 38966, 38967, 38968, 38969, 38970, 38971, 38974, 38975, 38976, 38977, 38978, 38979, 38980, 38981, 38982, 38983, 39175, 39176, 39177, 39195, 39283, 39325, 39326, 39328, 39329, 39331, 39332, 39335, 39336, 39337, 39339, 39340, 39342, 39344, 39346, 39348, 39349, 39350, 39351, 39566, 39602, 39605, 39667, 39680, 39681, 39699, 39702, 39726, 39729, 39931, 39932, 39933, 39934, 39935, 39936, 39937, 39938, 39939, 39940, 39941, 39943, 39944, 39945, 39946, 39947, 39948, 39949, 39953, 39954, 39955, 39956, 39957, 39958, 39959, 39960, 39961, 40014, 40016, 40017, 40019, 40021, 40023, 40026, 40031, 40033, 40035, 40037, 40039, 40041, 40042, 40052, 40056, 40057, 40058, 40059, 40060, 40061, 40063, 40176, 40177, 40178, 40179, 40180, 40181, 40182, 40183, 40184, 40185, 40186, 40187, 40188, 40189, 40190, 40191, 40192, 40193, 40194, 40195, 40196, 40197, 40198, 40199, 40200, 40201, 40202, 40203, 40204, 40205, 40206, 40207, 40208, 40209, 40210, 40211, 40212, 40213, 40214, 40215, 40241, 40302, 40303, 40304, 40327, 40415, 40523, 40524, 40525, 40526, 40527, 40528, 40529, 40530, 40531, 40532, 40533, 40534, 40535, 40536, 40538, 40540, 40541, 40542, 40543, 40544, 40546, 40547, 40556, 40557, 40559, 40560, 40561, 40562, 40753, 40854, 40855, 40856, 40857, 40858, 40861, 40863, 40864, 40865, 40866, 40867, 40868, 40870, 40871, 40873, 40874, 40875, 40876, 40877, 40878, 40879, 40880, 40881, 40882, 40988, 40989, 40990, 40991, 41010, 41157, 41158, 41159, 41160, 41161, 41162, 41163, 41164, 41165, 41166, 41169, 41170, 41171, 41172, 41173, 41174, 41175, 41176, 41177, 41180, 41181, 41182, 41183, 41184, 41185, 41186, 41188, 41189, 41190, 41191, 41192, 41193, 41802, 41889, 41985, 42058, 42081, 42214, 42215, 42245, 42250, 42255, 42303, 42308, 42309, 42323, 42333, 42334, 42340, 42345, 42350, 42351, 43726, 43929, 44449, 44581, 44741, 44863, 44927, 44952, 45055, 45057, 46119, 46128, 46678, 46679, 46680, 46681, 46682, 46684, 46685, 46686, 46687, 46688, 46691, 46692, 46693, 46694, 46696, 46697, 46698, 46699, 46700, 46709, 47092, 47093, 47094, 47095, 47096, 48002, 48013, 48016, 48053, 48054, 48055, 48069, 48074, 48075, 48076);
INSERT INTO `quest_template_addon` (`ID`, `RequiredSkillID`) VALUES
(30328, 185),
(30329, 185),
(30332, 185),
(30584, 356),
(30585, 356),
(30586, 356),
(30588, 356),
(30597, 171),
(30598, 356),
(30698, 356),
(30700, 356),
(30701, 356),
(30753, 356),
(30754, 356),
(30763, 356),
(31443, 356),
(31444, 356),
(31446, 356),
(31752, 202),
(32107, 356),
(32435, 356),
(32436, 356),
(33018, 185),
(33019, 185),
(33020, 185),
(33021, 185),
(33023, 185),
(33024, 185),
(33025, 185),
(33026, 185),
(33027, 185),
(33107, 185),
(33139, 185),
(33146, 185),
(33358, 185),
(34193, 182),
(34194, 356),
(34758, 356),
(34774, 202),
(34846, 356),
(35066, 356),
(35071, 356),
(35072, 356),
(35073, 356),
(35074, 356),
(35075, 356),
(35296, 185),
(36141, 356),
(36199, 356),
(36404, 182),
(36510, 356),
(36511, 356),
(36513, 356),
(36514, 356),
(36515, 356),
(36517, 356),
(36612, 356),
(36616, 356),
(36800, 356),
(36802, 356),
(36803, 356),
(36804, 356),
(36805, 356),
(36806, 356),
(36870, 356),
(37270, 202),
(38243, 202),
(38287, 202),
(38290, 202),
(38293, 202),
(38296, 202),
(38399, 202),
(38406, 356),
(38499, 164),
(38500, 164),
(38501, 164),
(38502, 164),
(38506, 164),
(38513, 164),
(38514, 164),
(38515, 164),
(38518, 164),
(38519, 164),
(38522, 164),
(38523, 164),
(38524, 164),
(38525, 164),
(38526, 164),
(38527, 164),
(38528, 164),
(38530, 164),
(38531, 164),
(38532, 164),
(38533, 164),
(38534, 164),
(38536, 164),
(38537, 164),
(38538, 164),
(38539, 164),
(38540, 164),
(38541, 164),
(38542, 164),
(38559, 164),
(38563, 164),
(38564, 164),
(38833, 164),
(38944, 197),
(38945, 197),
(38946, 197),
(38947, 197),
(38948, 197),
(38949, 197),
(38950, 197),
(38951, 197),
(38952, 197),
(38953, 197),
(38954, 197),
(38955, 197),
(38956, 197),
(38957, 197),
(38958, 197),
(38959, 197),
(38960, 197),
(38961, 197),
(38962, 197),
(38963, 197),
(38964, 197),
(38965, 197),
(38966, 197),
(38967, 197),
(38968, 197),
(38969, 197),
(38970, 197),
(38971, 197),
(38974, 197),
(38975, 197),
(38976, 197),
(38977, 197),
(38978, 197),
(38979, 197),
(38980, 197),
(38981, 197),
(38982, 197),
(38983, 197),
(39175, 755),
(39176, 755),
(39177, 755),
(39195, 755),
(39283, 356),
(39325, 171),
(39326, 171),
(39328, 171),
(39329, 171),
(39331, 171),
(39332, 171),
(39335, 171),
(39336, 171),
(39337, 171),
(39339, 171),
(39340, 171),
(39342, 171),
(39344, 171),
(39346, 171),
(39348, 171),
(39349, 171),
(39350, 171),
(39351, 171),
(39566, 171),
(39602, 197),
(39605, 197),
(39667, 197),
(39680, 164),
(39681, 164),
(39699, 164),
(39702, 164),
(39726, 164),
(39729, 164),
(39931, 773),
(39932, 773),
(39933, 773),
(39934, 773),
(39935, 773),
(39936, 773),
(39937, 773),
(39938, 773),
(39939, 773),
(39940, 773),
(39941, 773),
(39943, 773),
(39944, 773),
(39945, 773),
(39946, 773),
(39947, 773),
(39948, 773),
(39949, 773),
(39953, 773),
(39954, 773),
(39955, 773),
(39956, 773),
(39957, 773),
(39958, 165),
(39959, 773),
(39960, 773),
(39961, 773),
(40014, 182),
(40016, 182),
(40017, 182),
(40019, 182),
(40021, 182),
(40023, 182),
(40026, 182),
(40031, 182),
(40033, 182),
(40035, 182),
(40037, 182),
(40039, 182),
(40041, 182),
(40042, 182),
(40052, 773),
(40056, 773),
(40057, 773),
(40058, 773),
(40059, 773),
(40060, 773),
(40061, 773),
(40063, 773),
(40176, 165),
(40177, 165),
(40178, 165),
(40179, 165),
(40180, 165),
(40181, 165),
(40182, 165),
(40183, 165),
(40184, 165),
(40185, 165),
(40186, 165),
(40187, 165),
(40188, 165),
(40189, 165),
(40190, 165),
(40191, 165),
(40192, 165),
(40193, 165),
(40194, 165),
(40195, 165),
(40196, 165),
(40197, 165),
(40198, 165),
(40199, 165),
(40200, 165),
(40201, 165),
(40202, 165),
(40203, 165),
(40204, 165),
(40205, 165),
(40206, 165),
(40207, 165),
(40208, 165),
(40209, 165),
(40210, 165),
(40211, 165),
(40212, 165),
(40213, 165),
(40214, 165),
(40215, 165),
(40241, 165),
(40302, 755),
(40303, 755),
(40304, 755),
(40327, 165),
(40415, 165),
(40523, 755),
(40524, 755),
(40525, 755),
(40526, 755),
(40527, 755),
(40528, 755),
(40529, 755),
(40530, 755),
(40531, 755),
(40532, 755),
(40533, 755),
(40534, 755),
(40535, 755),
(40536, 755),
(40538, 755),
(40540, 755),
(40541, 755),
(40542, 755),
(40543, 755),
(40544, 755),
(40546, 755),
(40547, 755),
(40556, 755),
(40557, 755),
(40559, 755),
(40560, 755),
(40561, 755),
(40562, 755),
(40753, 202),
(40854, 202),
(40855, 202),
(40856, 202),
(40857, 794),
(40858, 202),
(40861, 202),
(40863, 202),
(40864, 202),
(40865, 202),
(40866, 202),
(40867, 202),
(40868, 202),
(40870, 202),
(40871, 202),
(40873, 202),
(40874, 202),
(40875, 202),
(40876, 202),
(40877, 202),
(40878, 202),
(40879, 202),
(40880, 202),
(40881, 202),
(40882, 202),
(40988, 185),
(40989, 185),
(40990, 185),
(40991, 185),
(41010, 356),
(41157, 794),
(41158, 794),
(41159, 794),
(41160, 164),
(41161, 794),
(41162, 794),
(41163, 794),
(41164, 794),
(41165, 794),
(41166, 794),
(41169, 794),
(41170, 794),
(41171, 794),
(41172, 794),
(41173, 794),
(41174, 794),
(41175, 794),
(41176, 794),
(41177, 794),
(41180, 794),
(41181, 794),
(41182, 794),
(41183, 794),
(41184, 794),
(41185, 794),
(41186, 794),
(41188, 794),
(41189, 794),
(41190, 794),
(41191, 794),
(41192, 794),
(41193, 794),
(41802, 794),
(41889, 165),
(41985, 129),
(42058, 129),
(42081, 171),
(42214, 755),
(42215, 129),
(42245, 129),
(42250, 129),
(42255, 129),
(42303, 129),
(42308, 129),
(42309, 129),
(42323, 129),
(42333, 129),
(42334, 129),
(42340, 129),
(42345, 129),
(42350, 129),
(42351, 129),
(43726, 773),
(43929, 773),
(44449, 164),
(44581, 185),
(44741, 197),
(44863, 164),
(44927, 164),
(44952, 164),
(45055, 164),
(45057, 164),
(46119, 202),
(46128, 202),
(46678, 197),
(46679, 197),
(46680, 197),
(46681, 197),
(46682, 197),
(46684, 165),
(46685, 165),
(46686, 165),
(46687, 165),
(46688, 165),
(46691, 165),
(46692, 165),
(46693, 165),
(46694, 165),
(46696, 164),
(46697, 164),
(46698, 164),
(46699, 164),
(46700, 164),
(46709, 164),
(47092, 164),
(47093, 164),
(47094, 164),
(47095, 164),
(47096, 164),
(48002, 171),
(48013, 171),
(48016, 171),
(48053, 164),
(48054, 164),
(48055, 164),
(48069, 202),
(48074, 197),
(48075, 755),
(48076, 755);