restructured repository based on following standards:

https://github.com/HW-Core/directory-structure
This commit is contained in:
Yehonal
2016-07-08 23:58:11 +02:00
parent eda1171939
commit 9fd22872c0
2536 changed files with 433 additions and 2158 deletions

View File

@@ -0,0 +1,736 @@
-- -------------------------------------------
-- BOREAN TUNDRA
-- -------------------------------------------
-- Re-Cursed (11712)
DELETE FROM spell_scripts WHERE id=45980;
INSERT INTO spell_scripts VALUES(45980, 0, 1, 18, 0, 0, 0, 0, 0, 0, 0);
INSERT INTO spell_scripts VALUES(45980, 0, 1, 8, 25773, 0, 0, 0, 0, 0, 0);
-- Words of Power (11942)
-- Words of Power (11640)
REPLACE INTO creature_text VALUES(26076, 0, 0, "What is the meaning of this? I have not yet finished my feast!", 14, 0, 100, 0, 0, 0, 0, "Naferset yell");
UPDATE creature_template SET AIName="SmartAI" WHERE entry=26076;
DELETE FROM smart_scripts WHERE entryorguid IN(26076) AND source_type=0;
INSERT INTO smart_scripts VALUES (26076, 0, 0, 0, 25, 0, 100, 0, 0, 0, 0, 0, 18, 33555200, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Set Unit flag on reset');
INSERT INTO smart_scripts VALUES (26076, 0, 1, 0, 11, 0, 100, 0, 0, 0, 0, 0, 18, 33555200, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Set Unit flag on respawn');
INSERT INTO smart_scripts VALUES (26076, 0, 2, 3, 1, 0, 100, 0, 2000, 2000, 5000, 5000, 19, 33555200, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Remove Unit flag on OOC');
INSERT INTO smart_scripts VALUES (26076, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Yell 0 linked');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=22 AND SourceEntry=26076;
INSERT INTO conditions VALUES(22, 3, 26076, 0, 0, 29, 1, 25378, 35, 0, 1, 0, 0, '', "SAI condition, requires no npc with entry 25378 in 30yd");
-- Emergency Protocol Section 8.2, Paragraph D (11796)
UPDATE creature_template SET flags_extra=128, AIName='SmartAI' WHERE entry IN(25845, 25846, 25847);
DELETE FROM smart_scripts WHERE entryorguid IN(25845, 25846, 25847) AND source_type=0;
INSERT INTO smart_scripts VALUES (25845, 0, 0, 1, 8, 0, 100, 0, 46171, 0, 0, 0, 33, 25845, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Kill credit on spell cast');
INSERT INTO smart_scripts VALUES (25846, 0, 0, 1, 8, 0, 100, 0, 46171, 0, 0, 0, 33, 25846, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Kill credit on spell cast');
INSERT INTO smart_scripts VALUES (25847, 0, 0, 1, 8, 0, 100, 0, 46171, 0, 0, 0, 33, 25847, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Kill credit on spell cast');
INSERT INTO smart_scripts VALUES (25845, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 50, 182072, 15, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'summon go linked');
INSERT INTO smart_scripts VALUES (25846, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 50, 182072, 15, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'summon go linked');
INSERT INTO smart_scripts VALUES (25847, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 50, 182072, 15, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'summon go linked');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=46171;
INSERT INTO conditions VALUES(13, 1, 46171, 0, 0, 31, 0, 3, 25845, 0, 0, 0, 0, "", "");
INSERT INTO conditions VALUES(13, 1, 46171, 0, 1, 31, 0, 3, 25846, 0, 0, 0, 0, "", "");
INSERT INTO conditions VALUES(13, 1, 46171, 0, 2, 31, 0, 3, 25847, 0, 0, 0, 0, "", "");
DELETE FROM disables WHERE sourceType=0 AND entry=46171;
INSERT INTO disables VALUES (0, 46171, 64, '', '', 'Ignore LOS on Scuttle Wrecked Flying Machine');
-- Kaw the Mammoth Destroyer (11879)
UPDATE creature SET curhealth=17964 WHERE id=25743;
UPDATE creature_template SET AIName='SmartAI' WHERE entry IN(25802, 25881);
UPDATE creature_template SET npcflag=16777216, spell1=46317, spell2=46315, spell3=46316, Health_mod=2 WHERE entry=25743;
DELETE FROM smart_scripts WHERE entryorguid=25743 AND source_type=0;
INSERT INTO smart_scripts VALUES (25743, 0, 0, 0, 6, 0, 100, 0, 0, 0, 0, 0, 11, 46221, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Wooly Mammoth Bull - On Death - Cast Animal Blood');
INSERT INTO smart_scripts VALUES (25743, 0, 1, 0, 0, 0, 100, 0, 3000, 9000, 9000, 18000, 11, 46316, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Wooly Mammoth Bull - In Combat - Cast Thundering Roar');
INSERT INTO smart_scripts VALUES (25743, 0, 2, 0, 27, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Wooly Mammoth Bull - On Passenger board - Set react state passive');
UPDATE creature_template SET unit_flags=0, AIName='SmartAI' WHERE entry=25802;
DELETE FROM smart_scripts WHERE entryorguid=25802 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid=25802*100 AND source_type=9;
INSERT INTO smart_scripts VALUES (25802, 0, 0, 0, 25, 0, 100, 0, 0, 0, 0, 0, 18, 33536, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Kaw - Reset - Make self unattackable');
INSERT INTO smart_scripts VALUES (25802, 0, 1, 0, 7, 0, 100, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 3954.9, 5478.45, 35.7016, 4.39823, 'Kaw - Reset - Make self unattackable');
INSERT INTO smart_scripts VALUES (25802*100, 9, 0, 0, 0, 0, 100, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Kaw - Timed - Yell');
INSERT INTO smart_scripts VALUES (25802*100, 9, 1, 0, 0, 0, 100, 1, 0, 0, 0, 0, 59, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Kaw - Timed - Enable Running');
INSERT INTO smart_scripts VALUES (25802*100, 9, 2, 0, 0, 0, 100, 1, 3000, 3000, 0, 0, 69, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 3974.17, 5476.31, 35.602, 5.564, 'Kaw - Timed - Move to Moria');
INSERT INTO smart_scripts VALUES (25802*100, 9, 3, 0, 0, 0, 100, 1, 2500, 2500, 0, 0, 11, 46260, 2, 0, 0, 0, 0, 19, 25881, 50, 0, 0, 0, 0, 0, 'Kaw - Timed - Mount to Moria');
UPDATE creature_template SET unit_flags=0, AIName='SmartAI' WHERE entry=25881;
DELETE FROM smart_scripts WHERE entryorguid=25881 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid=25881*100 AND source_type=9;
INSERT INTO smart_scripts VALUES (25881, 0, 0, 0, 8, 0, 100, 1, 46315, 0, 0, 0, 80, 25881*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Moria - On spell hit - Start Event');
INSERT INTO smart_scripts VALUES (25881, 0, 1, 0, 8, 0, 100, 1, 46317, 0, 0, 0, 80, 25881*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Moria - On spell hit - Start Event');
INSERT INTO smart_scripts VALUES (25881, 0, 2, 0, 6, 0, 100, 0, 0, 0, 0, 0, 19, 33536, 0, 0, 0, 0, 0, 19, 25802, 30, 0, 0, 0, 0, 0, 'Moria - On death - Make Kaw attackable');
INSERT INTO smart_scripts VALUES (25881, 0, 3, 0, 25, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Moria - Reset - Set passive');
INSERT INTO smart_scripts VALUES (25881, 0, 4, 0, 25, 0, 100, 0, 0, 0, 0, 0, 28, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Moria - Reset - Dismount Kaw');
INSERT INTO smart_scripts VALUES (25881*100, 9, 0, 0, 0, 0, 100, 1, 0, 0, 0, 0, 11, 17683, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Moria - Timed - Heal self');
INSERT INTO smart_scripts VALUES (25881*100, 9, 1, 0, 0, 0, 100, 1, 0, 0, 0, 0, 80, 25802*100, 2, 0, 0, 0, 0, 19, 25802, 80, 0, 0, 0, 0, 0, 'Moria - Timed - Activate Kaw script');
INSERT INTO smart_scripts VALUES (25881*100, 9, 2, 0, 0, 0, 100, 1, 5500, 5500, 0, 0, 8, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Moria - Timed - Set aggresive');
INSERT INTO smart_scripts VALUES (25881*100, 9, 3, 0, 0, 0, 100, 1, 0, 0, 0, 0, 11, 17683, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Moria - Timed - Heal self');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=16 AND SourceEntry=25743;
INSERT INTO conditions VALUES (16, 0, 25743, 0, 0, 9, 0, 11879, 0, 0, 0, 0, 0, '', 'Vehicle Wooly Mammoth Bull requires quest 11879');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=18 AND SourceGroup=25743;
INSERT INTO conditions VALUES (18, 25743, 46260, 0, 0, 9, 0, 11879, 0, 0, 0, 0, 0, '', 'Vehicle Wooly Mammoth Bull requires quest 11879');
DELETE FROM spell_area WHERE spell=46234;
INSERT INTO spell_area VALUES (46234, 3537, 11879, 0, 0, 0, 2, 1, 8, 0);
DELETE FROM creature_text WHERE entry=25802;
INSERT INTO creature_text VALUES (25802, 0, 0, 'You challenge Kaw, destroyer of mammoths? Then face me and feel my thunder!', 14, 0, 100, 0, 0, 0, 0, 'Kaw - Event Start Yell');
-- Breaking Through (11898)
DELETE FROM areatrigger_scripts WHERE entry=5339;
INSERT INTO areatrigger_scripts VALUES(5339, 'at_last_rites');
-- Patching Up (11894)
DELETE FROM gameobject WHERE id=188086;
INSERT INTO gameobject VALUES (NULL, 188086, 571, 1, 1, 4241.54, 5153.61, 13.0754, 2.20814, 0, 0, 0.893046, 0.449965, 300, 0, 1, 0);
INSERT INTO gameobject VALUES (NULL, 188086, 571, 1, 1, 3649.06, 4197.95, 16.817, 0.492043, 0, 0, 0.243547, 0.969889, 300, 0, 1, 0);
INSERT INTO gameobject VALUES (NULL, 188086, 571, 1, 1, 3850.5, 4884.73, -4.55864, 3.9046, 0, 0, 0.928106, -0.372316, 300, 0, 1, 0);
INSERT INTO gameobject VALUES (NULL, 188086, 571, 1, 1, 3813.33, 4471.39, 27.4984, 5.91771, 0, 0, 0.181722, -0.98335, 300, 0, 1, 0);
INSERT INTO gameobject VALUES (NULL, 188086, 571, 1, 1, 3751.68, 4549.81, 10.8374, 1.13857, 0, 0, 0.53903, 0.842287, 300, 0, 1, 0);
INSERT INTO gameobject VALUES (NULL, 188086, 571, 1, 1, 3815.53, 4611.2, 11.6697, 0.114409, 0, 0, 0.0571733, 0.998364, 300, 0, 1, 0);
INSERT INTO gameobject VALUES (NULL, 188086, 571, 1, 1, 3855.69, 4743.49, -5.76928, 1.18255, 0, 0, 0.55742, 0.830231, 300, 0, 1, 0);
-- Karuk's Oath (11613)
UPDATE quest_template SET NextQuestId=11613, NextQuestIdChain=11613 WHERE Id IN(11662, 12141);
-- Lupus Pupus (11728)
DELETE FROM smart_scripts WHERE entryorguid=25791 AND source_type=0;
INSERT INTO smart_scripts VALUES(25791, 0, 0, 0, 11, 0, 100, 0, 0, 0, 0, 0, 11, 45948, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Oil-stained Wolf - On Respawn - Cast Oil Coat');
INSERT INTO smart_scripts VALUES(25791, 0, 1, 2, 8, 0, 100, 0, 53326, 0, 0, 0, 2, 35, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Oil-stained Wolf becomes friendly');
INSERT INTO smart_scripts VALUES(25791, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 46, 5, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Oil-stained Wolf moves forward');
INSERT INTO smart_scripts VALUES(25791, 0, 3, 4, 61, 0, 100, 0, 0, 0, 0, 0, 50, 187981, 30, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Oil-stained Wolf poops');
INSERT INTO smart_scripts VALUES(25791, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 15000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Oil-stained Wolf despawns on poop.');
-- Nedar, Lord of Rhinos... (11884)
REPLACE INTO npc_spellclick_spells VALUES(25968, 67830, 1, 0);
DELETE FROM creature_addon WHERE guid IN(SELECT guid FROM creature WHERE id=25801);
DELETE FROM creature WHERE id=25801;
UPDATE creature_template SET AIName='CombatAI' WHERE entry=25968;
REPLACE INTO vehicle_template_accessory VALUES(25968, 25801, 0, 0, 'Nedar, Lord of Rhinos', 6, 30000);
-- Hatching a Plan (11936)
UPDATE gameobject_template SET data3=120000 WHERE entry=188133;
-- Master and Servant (11730)
DELETE FROM spell_area WHERE spell=46023;
-- It Was The Orcs, Honest! (11670)
DELETE FROM spell_script_names WHERE spell_id=45759;
INSERT INTO spell_script_names VALUES(45759, "spell_q11670_it_was_the_orcs_honest");
DELETE FROM conditions WHERE SourceTypeOrReferenceId=17 AND SourceEntry=45742;
INSERT INTO conditions VALUES (17, 0, 45742, 0, 0, 31, 1, 3, 25430, 0, 0, 0, 0, '', 'Requires Magmothregar');
INSERT INTO conditions VALUES (17, 0, 45742, 0, 0, 36, 1, 0, 0, 0, 1, 0, 0, '', 'Must be dead');
DELETE FROM spell_script_names WHERE spell_id=45742;
INSERT INTO spell_script_names VALUES(45742, "spell_q11670_it_was_the_orcs_honest");
UPDATE creature_template SET AIName='SmartAI' WHERE entry=25430;
DELETE FROM smart_scripts WHERE entryorguid=25430 AND source_type=0;
INSERT INTO smart_scripts VALUES(25430, 0, 0, 0, 4, 0, 100, 0, 0, 0, 0, 0, 11, 50413, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On Aggro - Cast Spell');
INSERT INTO smart_scripts VALUES(25430, 0, 1, 0, 0, 0, 100, 0, 3000, 5000, 10000, 14000, 11, 50822, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'On OOC Update - Cast Spell');
INSERT INTO smart_scripts VALUES(25430, 0, 2, 3, 8, 0, 100, 0, 45742, 0, 0, 0, 33, 25581, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - Kill Credit');
INSERT INTO smart_scripts VALUES(25430, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 1000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - Despawn');
-- Scouting the Sinkholes (11684)
-- Scouting the Sinkholes (11713)
UPDATE creature SET position_z=-15 WHERE id IN(25664, 25665, 25666);
-- Springing the Trap (11969)
REPLACE INTO creature_template_addon VALUES(26299, 0, 0, 0, 0, 0, '58951');
REPLACE INTO creature_template_addon VALUES(33087, 0, 0, 50331648, 0, 0, '');
REPLACE INTO creature_template_addon VALUES(26237, 0, 0, 50331648, 0, 0, '');
REPLACE INTO creature_template_addon VALUES(26310, 0, 0, 50331648, 0, 0, '');
DELETE FROM creature_text WHERE entry IN(26237, 26310);
INSERT INTO creature_text VALUES(26237, 0, 0, "Stay close to me, $N. I could not bear for any harm to come to you.", 12, 0, 100, 0, 0, 0, 0, 'Keristrasza');
INSERT INTO creature_text VALUES(26237, 1, 0, "MALYGOS!!", 14, 0, 100, 0, 0, 0, 0, 'Keristrasza');
INSERT INTO creature_text VALUES(26237, 2, 0, "Come, Lord of Magic, and recover your precious consort....", 14, 0, 100, 0, 0, 0, 0, 'Keristrasza');
INSERT INTO creature_text VALUES(26237, 3, 0, "...what remains of her!", 14, 0, 100, 0, 0, 0, 0, 'Keristrasza');
INSERT INTO creature_text VALUES(26237, 4, 0, "Come, $N. Let us see the fruits of our efforts.", 12, 0, 100, 0, 0, 0, 0, 'Keristrasza');
INSERT INTO creature_text VALUES(26237, 5, 0, "Hurry, $N! Flee! Live to finish what we've begun here....", 12, 0, 100, 0, 0, 0, 0, 'Keristrasza');
INSERT INTO creature_text VALUES(26237, 6, 0, "Never!", 14, 0, 100, 0, 0, 0, 0, 'Keristrasza');
INSERT INTO creature_text VALUES(26310, 0, 0, "Keristrasza! You've bested my consort... and now YOU shall take her place!", 14, 0, 100, 0, 0, 0, 0, 'Malygos');
DELETE FROM creature WHERE id=33087;
INSERT INTO creature VALUES(NULL, 33087, 571, 1, 1, 0, 0, 4061.82, 7109.99, 187.889, 3.75826, 300, 0, 0, 42, 0, 0, 0, 0, 0);
UPDATE creature_template SET AIName='NullCreatureAI', InhabitType=4 WHERE entry=26310;
UPDATE creature_template SET speed_run=1, AIName='SmartAI', InhabitType=4 WHERE entry=26237;
UPDATE creature_template SET modelid1=11686, modelid2=0, AIName='SmartAI', InhabitType=4 WHERE entry=33087;
DELETE FROM smart_scripts WHERE entryorguid=33087 AND source_type=0;
INSERT INTO smart_scripts VALUES(33087, 0, 0, 0, 8, 0, 100, 0, 62272, 0, 120000, 120000, 12, 26237, 8, 0, 0, 0, 0, 8, 0, 0, 0, 4106, 7070, 201, 2.6, 'On Spell Hit - Summon Creature');
DELETE FROM smart_scripts WHERE entryorguid=26237 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid IN(26237*100, 26237*100+1) AND source_type=9;
INSERT INTO smart_scripts VALUES(26237, 0, 0, 0, 37, 0, 100, 1, 0, 0, 0, 0, 80, 26237*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On AI Init - Script9');
INSERT INTO smart_scripts VALUES(26237, 0, 1, 0, 37, 0, 100, 1, 0, 0, 0, 0, 80, 26237*100+1, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On AI Init - Script9');
INSERT INTO smart_scripts VALUES(26237*100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 60, 1, 100, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Set Fly');
INSERT INTO smart_scripts VALUES(26237*100, 9, 1, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 69, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 4063.72, 7084.12, 171, 3, 'Script9 - Move Pos');
INSERT INTO smart_scripts VALUES(26237*100, 9, 2, 0, 0, 0, 100, 0, 10000, 10000, 0, 0, 60, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Set Fly false');
INSERT INTO smart_scripts VALUES(26237*100, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Set Run false');
INSERT INTO smart_scripts VALUES(26237*100, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 91, 3, 3, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Remove Byte Flag');
INSERT INTO smart_scripts VALUES(26237*100, 9, 5, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 21, 40, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES(26237*100, 9, 6, 0, 0, 0, 100, 0, 8000, 8000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES(26237*100, 9, 7, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 69, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 4037.97, 7083.64, 167.71, 3.2, 'Script9 - Move Pos');
INSERT INTO smart_scripts VALUES(26237*100, 9, 8, 0, 0, 0, 100, 0, 11000, 11000, 0, 0, 12, 26299, 4, 70000, 0, 0, 0, 8, 0, 0, 0, 4025.15, 7082.42, 162.54, 0.5, 'Script9 - Summon Creature');
INSERT INTO smart_scripts VALUES(26237*100, 9, 9, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES(26237*100, 9, 10, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 11, 31962, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Cast Spell');
INSERT INTO smart_scripts VALUES(26237*100, 9, 11, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 75, 39199, 0, 0, 0, 0, 0, 11, 26299, 30, 0, 0, 0, 0, 0, 'Script9 - Add Aura');
INSERT INTO smart_scripts VALUES(26237*100, 9, 12, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES(26237*100, 9, 13, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 11, 46853, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Cast Spell');
INSERT INTO smart_scripts VALUES(26237*100, 9, 14, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 1, 4, 0, 0, 0, 0, 0, 21, 40, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES(26237*100, 9, 15, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 86, 46814, 2, 21, 40, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Cross Cast');
INSERT INTO smart_scripts VALUES(26237*100, 9, 16, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 11, 26299, 30, 0, 0, 0, 0, 0, 'Script9 - Despawn');
INSERT INTO smart_scripts VALUES(26237*100, 9, 17, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Despawn');
INSERT INTO smart_scripts VALUES(26237*100+1, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 60, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Set Fly false');
INSERT INTO smart_scripts VALUES(26237*100+1, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 91, 3, 3, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Remove Byte Flag');
INSERT INTO smart_scripts VALUES(26237*100+1, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 33, 26237, 0, 0, 0, 0, 0, 21, 50, 0, 0, 0, 0, 0, 0, 'Script9 - Kill Credit');
INSERT INTO smart_scripts VALUES(26237*100+1, 9, 3, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 12, 26310, 4, 60000, 0, 0, 0, 8, 0, 0, 0, 3860, 6586, 234, 3.8, 'Script9 - Summon Creature');
INSERT INTO smart_scripts VALUES(26237*100+1, 9, 4, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 1, 5, 0, 0, 0, 0, 0, 21, 40, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES(26237*100+1, 9, 5, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 19, 26310, 100, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES(26237*100+1, 9, 6, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 75, 65137, 0, 0, 0, 0, 0, 19, 26310, 100, 0, 0, 0, 0, 0, 'Script9 - Add Aura');
INSERT INTO smart_scripts VALUES(26237*100+1, 9, 7, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 1, 6, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES(26237*100+1, 9, 8, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 11, 46882, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Cast Spell');
INSERT INTO smart_scripts VALUES(26237*100+1, 9, 9, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 41, 0, 0, 0, 0, 0, 0, 11, 26310, 100, 0, 0, 0, 0, 0, 'Script9 - Despawn');
INSERT INTO smart_scripts VALUES(26237*100+1, 9, 10, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Despawn');
DELETE FROM event_scripts WHERE id=17499;
INSERT INTO event_scripts VALUES(17499, 2, 10, 26237, 300000, 0, 3789, 6534, 175.31, 1);
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry IN(46886, 62272);
INSERT INTO conditions VALUES (13, 1, 46886, 0, 0, 31, 0, 3, 26237, 0, 0, 0, 0, '', 'Requires Keristrasza');
INSERT INTO conditions VALUES (13, 1, 62272, 0, 0, 31, 0, 3, 33087, 0, 0, 0, 0, '', 'Requires Fire Trigger');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=22 AND SourceEntry=26237;
INSERT INTO conditions VALUES (22, 1, 26237, 0, 0, 30, 1, 194151, 70, 0, 0, 0, 0, '', 'Requires GO In Range');
INSERT INTO conditions VALUES (22, 2, 26237, 0, 0, 30, 1, 194151, 70, 0, 1, 0, 0, '', 'Requires No GO In Range');
-- Foolish Endeavors (11705)
DELETE FROM creature_text WHERE entry IN(25729, 25618, 25751);
INSERT INTO creature_text VALUES(25729, 0, 0, "This is it, $N. The start of the end of the world. And you're here to see it off...", 12, 0, 100, 0, 0, 0, 0, 'Shadowstalker Getry');
INSERT INTO creature_text VALUES(25729, 1, 0, "Let's go...", 12, 0, 100, 0, 0, 0, 0, 'Shadowstalker Getry');
INSERT INTO creature_text VALUES(25729, 2, 0, "I... I can't believe it... Saurfang... I... I am honored... honored to have fought along side you, sir.", 12, 0, 100, 1, 0, 0, 0, 'Shadowstalker Getry');
INSERT INTO creature_text VALUES(25729, 3, 0, "You should return to Warsong Hold now, friend. Hellscream will surely want to hear of what just happened here... of Saurfang...", 12, 0, 100, 1, 0, 0, 0, 'Shadowstalker Getry');
INSERT INTO creature_text VALUES(25729, 4, 0, "Farewell...", 12, 0, 100, 0, 0, 0, 0, 'Shadowstalker Getry');
INSERT INTO creature_text VALUES(25618, 0, 0, "Is this it? Is this all the mighty Horde could muster?", 12, 0, 100, 0, 0, 0, 0, 'Varidus the Flenser');
INSERT INTO creature_text VALUES(25618, 1, 0, "Pathetic.", 12, 0, 100, 11, 0, 0, 0, 'Varidus the Flenser');
INSERT INTO creature_text VALUES(25618, 2, 0, "I've never understood your type. The hero...", 12, 0, 100, 0, 0, 0, 0, 'Varidus the Flenser');
INSERT INTO creature_text VALUES(25618, 3, 0, "Why won't you just let go? Why do you fight the inevitable?", 12, 0, 100, 1, 0, 0, 0, 'Varidus the Flenser');
INSERT INTO creature_text VALUES(25618, 4, 0, "The Lich King cannot be stopped. Accept it.", 12, 0, 100, 274, 0, 0, 0, 'Varidus the Flenser');
INSERT INTO creature_text VALUES(25618, 5, 0, "This world is coming to an end. Let. It. Burn.", 12, 0, 100, 25, 0, 0, 0, 'Varidus the Flenser');
INSERT INTO creature_text VALUES(25618, 6, 0, "Take him away and prepare him for reanimation.", 12, 0, 100, 1, 0, 0, 0, 'Varidus the Flenser');
INSERT INTO creature_text VALUES(25618, 7, 0, "What's this now?", 12, 0, 100, 1, 0, 0, 0, 'Varidus the Flenser');
INSERT INTO creature_text VALUES(25618, 8, 0, "Then you are a fool.", 12, 0, 100, 1, 0, 0, 0, 'Varidus the Flenser');
INSERT INTO creature_text VALUES(25618, 9, 0, "You? A lone orc? Against me and...", 12, 0, 100, 1, 0, 0, 0, 'Varidus the Flenser');
INSERT INTO creature_text VALUES(25618, 10, 0, "RISE!", 14, 0, 100, 0, 0, 0, 0, 'Varidus the Flenser');
INSERT INTO creature_text VALUES(25751, 0, 0, "I'll rip out your shriveled heart with my bare hands before any harm comes to $N, Necromancer.", 12, 0, 100, 1, 0, 0, 0, 'High Overlord Saurfang');
INSERT INTO creature_text VALUES(25751, 1, 0, "You were never alone, $N.", 12, 0, 100, 0, 0, 0, 0, 'High Overlord Saurfang');
INSERT INTO creature_text VALUES(25751, 2, 0, "This world that you seek to destroy is our home.", 12, 0, 100, 1, 0, 0, 0, 'High Overlord Saurfang');
INSERT INTO creature_text VALUES(25751, 3, 0, "We will fight you with every fiber of our being- Until we are nothing more than dust and debris. We will fight until the end.", 12, 0, 100, 5, 0, 0, 0, 'High Overlord Saurfang');
INSERT INTO creature_text VALUES(25751, 4, 0, "A fool that is about to end you, Necrolord. There will be nothing left of you for the Lich King to reanimate!", 12, 0, 100, 1, 0, 0, 0, 'High Overlord Saurfang');
INSERT INTO creature_text VALUES(25751, 5, 0, "You'll make no mention of me. Either of you!", 12, 0, 100, 1, 0, 0, 0, 'High Overlord Saurfang');
DELETE FROM creature WHERE id=25624;
INSERT INTO creature VALUES (NULL, 25624, 571, 1, 1, 0, 0, 3112.36, 6527.99, 80.8751, 3.63029, 100, 0, 0, 5914, 0, 0, 0, 0, 0),(NULL, 25624, 571, 1, 1, 0, 0, 3116.76, 6524.07, 80.8485, 6.02139, 100, 0, 0, 5914, 0, 0, 0, 0, 0),(NULL, 25624, 571, 1, 1, 0, 0, 3122.21, 6510.26, 81.0079, 2.86234, 100, 0, 0, 5914, 0, 0, 0, 0, 0),(NULL, 25624, 571, 1, 1, 0, 0, 3121, 6502.85, 81.3337, 3.22886, 100, 0, 0, 5914, 0, 0, 0, 0, 0),(NULL, 25624, 571, 1, 1, 0, 0, 3114.64, 6501.5, 81.6178, 0.349066, 100, 0, 0, 5914, 0, 0, 0, 0, 0),(NULL, 25624, 571, 1, 1, 0, 0, 3120.76, 6495.86, 81.5926, 2.49582, 100, 0, 0, 5914, 0, 0, 0, 0, 0),(NULL, 25624, 571, 1, 1, 0, 0, 3099.79, 6524.31, 81.5106, 3.36848, 100, 0, 0, 5914, 0, 0, 0, 0, 0),(NULL, 25624, 571, 1, 1, 0, 0, 3120.45, 6486.97, 81.9426, 1.90241, 100, 0, 0, 5914, 0, 0, 0, 0, 0),(NULL, 25624, 571, 1, 1, 0, 0, 3109.11, 6498.78, 81.9249, 2.63545, 100, 0, 0, 5914, 0, 0, 0, 0, 0),(NULL, 25624, 571, 1, 1, 0, 0, 3104.28, 6528.08, 81.1888, 3.42085, 100, 0, 0, 5914, 0, 0, 0, 0, 0),
(NULL, 25624, 571, 1, 1, 0, 0, 3100.57, 6532.09, 81.1655, 6.23082, 100, 0, 0, 5914, 0, 0, 0, 0, 0),(NULL, 25624, 571, 1, 1, 0, 0, 3112.07, 6511.91, 81.3951, 5.14872, 100, 0, 0, 5914, 0, 0, 0, 0, 0),(NULL, 25624, 571, 1, 1, 0, 0, 3116.98, 6515.01, 81.08, 5.89921, 100, 0, 0, 5914, 0, 0, 0, 0, 0),(NULL, 25624, 571, 1, 1, 0, 0, 3126.8, 6505.61, 81.013, 3.90954, 100, 0, 0, 5914, 0, 0, 0, 0, 0),(NULL, 25624, 571, 1, 1, 0, 0, 3103.04, 6504.89, 82.0467, 3.94444, 100, 0, 0, 5914, 0, 0, 0, 0, 0),(NULL, 25624, 571, 1, 1, 0, 0, 3098.93, 6517.5, 81.775, 3.00197, 100, 0, 0, 5914, 0, 0, 0, 0, 0),(NULL, 25624, 571, 1, 1, 0, 0, 3115.22, 6492.26, 81.9308, 5.5676, 100, 0, 0, 5914, 0, 0, 0, 0, 0),(NULL, 25624, 571, 1, 1, 0, 0, 3109.38, 6506.75, 81.6883, 6.03884, 100, 0, 0, 5914, 0, 0, 0, 0, 0),(NULL, 25624, 571, 1, 1, 0, 0, 3126.14, 6514.96, 80.6848, 1.95477, 100, 0, 0, 5914, 0, 0, 0, 0, 0),
(NULL, 25624, 571, 1, 1, 0, 0, 3126.15, 6489.57, 81.6546, 2.14675, 100, 0, 0, 5914, 0, 0, 0, 0, 0),(NULL, 25624, 571, 1, 1, 0, 0, 3129.41, 6511.59, 80.7066, 2.72271, 100, 0, 0, 5914, 0, 0, 0, 0, 0),(NULL, 25624, 571, 1, 1, 0, 0, 3116.41, 6507.34, 81.3439, 5.81195, 100, 0, 0, 5914, 0, 0, 0, 0, 0),(NULL, 25624, 571, 1, 1, 0, 0, 3102.45, 6538.24, 80.8342, 1.58825, 100, 0, 0, 5914, 0, 0, 0, 0, 0),(NULL, 25624, 571, 1, 1, 0, 0, 3096.96, 6510.87, 82.0854, 0.558505, 100, 0, 0, 5914, 0, 0, 0, 0, 0),(NULL, 25624, 571, 1, 1, 0, 0, 3126.41, 6498.18, 81.302, 6.24828, 100, 0, 0, 5914, 0, 0, 0, 0, 0),(NULL, 25624, 571, 1, 1, 0, 0, 3108.6, 6531.9, 80.8754, 5.46288, 100, 0, 0, 5914, 0, 0, 0, 0, 0),(NULL, 25624, 571, 1, 1, 0, 0, 3105.6, 6534.98, 80.8596, 0.15708, 100, 0, 0, 5914, 0, 0, 0, 0, 0),
(NULL, 25624, 571, 1, 1, 0, 0, 3122.1, 6518.81, 80.7091, 1.81514, 100, 0, 0, 5914, 0, 0, 0, 0, 0),(NULL, 25624, 571, 1, 1, 0, 0, 3104.04, 6511.73, 81.8068, 3.45575, 100, 0, 0, 5914, 0, 0, 0, 0, 0),(NULL, 25624, 571, 1, 1, 0, 0, 3104.28, 6519.58, 81.5076, 6.17846, 100, 0, 0, 5914, 0, 0, 0, 0, 0);
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=25729;
DELETE FROM smart_scripts WHERE entryorguid=25729 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid IN(25729*100, 25729*100+1) AND source_type=9;
INSERT INTO smart_scripts VALUES (25729, 0, 0, 1, 19, 0, 100, 0, 11705, 0, 0, 0, 53, 0, 25729, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On Quest Accept - WP Start');
INSERT INTO smart_scripts VALUES (25729, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On Quest Accept - Talk');
INSERT INTO smart_scripts VALUES (25729, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 45, 25729, 0, 0, 0, 0, 0, 19, 25618, 150, 0, 0, 0, 0, 0, 'On Quest Accept - Set Data');
INSERT INTO smart_scripts VALUES (25729, 0, 3, 0, 40, 0, 100, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On WP Reach - Say Text');
INSERT INTO smart_scripts VALUES (25729, 0, 4, 5, 40, 0, 100, 0, 14, 0, 0, 0, 11, 58506, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On WP Reach - Cast Spell');
INSERT INTO smart_scripts VALUES (25729, 0, 5, 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 WP Reach - Set Passive');
INSERT INTO smart_scripts VALUES (25729, 0, 6, 7, 8, 0, 100, 0, 45923, 0, 0, 0, 28, 58506, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - Remove Aura');
INSERT INTO smart_scripts VALUES (25729, 0, 7, 8, 61, 0, 100, 0, 45923, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - Set Home Position');
INSERT INTO smart_scripts VALUES (25729, 0, 8, 0, 61, 0, 100, 0, 0, 0, 0, 0, 80, 25729*100+1, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - Script9');
INSERT INTO smart_scripts VALUES (25729, 0, 9, 0, 38, 0, 100, 0, 1, 1, 0, 0, 80, 25729*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Set Data - Script9');
INSERT INTO smart_scripts VALUES (25729*100, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES (25729*100, 9, 1, 0, 0, 0, 100, 0, 8000, 8000, 0, 0, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES (25729*100, 9, 2, 0, 0, 0, 100, 0, 8000, 8000, 0, 0, 1, 5, 0, 0, 0, 0, 0, 19, 25751, 30, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES (25729*100, 9, 3, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 41, 0, 0, 0, 0, 0, 0, 19, 25751, 30, 0, 0, 0, 0, 0, 'Script9 - Despawn');
INSERT INTO smart_scripts VALUES (25729*100, 9, 4, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Despawn');
INSERT INTO smart_scripts VALUES (25729*100+1, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 11, 45922, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Cast Spell');
UPDATE creature_template SET faction=1982, unit_flags=0, AIName='SmartAI', ScriptName='' WHERE entry=25618;
DELETE FROM smart_scripts WHERE entryorguid=25618 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid=25618*100 AND source_type=9;
INSERT INTO smart_scripts VALUES (25618, 0, 0, 1, 38, 0, 100, 0, 25729, 0, 0, 0, 80, 25618*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Data Set - Script9');
INSERT INTO smart_scripts VALUES (25618, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 18, 770, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Data Set - Set Flag');
INSERT INTO smart_scripts VALUES (25618, 0, 2, 0, 0, 0, 100, 0, 5000, 5000, 10000, 10000, 11, 32711, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'IC Update - Cast Spell Shadow Nova');
INSERT INTO smart_scripts VALUES (25618, 0, 3, 4, 6, 0, 100, 0, 0, 0, 0, 0, 15, 11705, 0, 0, 0, 0, 0, 18, 40, 0, 0, 0, 0, 0, 0, 'On Death - Area Explored');
INSERT INTO smart_scripts VALUES (25618, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 19, 25729, 40, 0, 0, 0, 0, 0, 'On Death - Set Data');
INSERT INTO smart_scripts VALUES (25618*100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 45908, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Cast Spell');
INSERT INTO smart_scripts VALUES (25618*100, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Set Run');
INSERT INTO smart_scripts VALUES (25618*100, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 69, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 3125, 6534, 80.1, 0, 'Script9 - Move to Pos');
INSERT INTO smart_scripts VALUES (25618*100, 9, 3, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 4.11, 'Script9 - Set Orientation');
INSERT INTO smart_scripts VALUES (25618*100, 9, 4, 0, 0, 0, 100, 0, 32000, 32000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES (25618*100, 9, 5, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1.52, 'Script9 - Set Orientation');
INSERT INTO smart_scripts VALUES (25618*100, 9, 6, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES (25618*100, 9, 7, 0, 0, 0, 100, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Set Home Position');
INSERT INTO smart_scripts VALUES (25618*100, 9, 8, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 11, 45923, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Cast Spell');
INSERT INTO smart_scripts VALUES (25618*100, 9, 9, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 12, 25730, 4, 120000, 0, 0, 0, 8, 0, 0, 0, 3149, 6527, 80.84, 2.6, 'Script9 - Summon Creature');
INSERT INTO smart_scripts VALUES (25618*100, 9, 10, 0, 0, 0, 100, 0, 8000, 8000, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES (25618*100, 9, 11, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES (25618*100, 9, 12, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 1, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES (25618*100, 9, 13, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 1, 5, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES (25618*100, 9, 14, 0, 0, 0, 100, 0, 7000, 7000, 0, 0, 1, 6, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES (25618*100, 9, 15, 0, 0, 0, 100, 0, 9000, 9000, 0, 0, 1, 7, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES (25618*100, 9, 16, 0, 0, 0, 100, 0, 20000, 20000, 0, 0, 1, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES (25618*100, 9, 17, 0, 0, 0, 100, 0, 10000, 10000, 0, 0, 1, 9, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES (25618*100, 9, 18, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 1, 10, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES (25618*100, 9, 19, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 19, 770, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Remove Flags');
INSERT INTO smart_scripts VALUES (25618*100, 9, 20, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 28, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Remove all auras');
INSERT INTO smart_scripts VALUES (25618*100, 9, 21, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 50329, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Cast Spell');
INSERT INTO smart_scripts VALUES (25618*100, 9, 22, 0, 0, 0, 100, 0, 0, 0, 0, 0, 19, 770, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Remove Flags');
INSERT INTO smart_scripts VALUES (25618*100, 9, 23, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 49, 0, 0, 0, 0, 0, 0, 19, 25751, 30, 0, 0, 0, 0, 0, 'Script9 - Attack Start');
INSERT INTO smart_scripts VALUES (25618*100, 9, 24, 0, 0, 0, 100, 0, 100000, 100000, 0, 0, 41, 0, 0, 0, 0, 0, 0, 19, 25729, 100, 0, 0, 0, 0, 0, 'Script9 - Fail Check');
INSERT INTO smart_scripts VALUES (25618*100, 9, 25, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 19, 25751, 100, 0, 0, 0, 0, 0, 'Script9 - Fail Check');
INSERT INTO smart_scripts VALUES (25618*100, 9, 26, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Fail Check');
UPDATE creature_template SET AIName='SmartAI' WHERE entry=25730;
UPDATE creature_template SET minlevel=70, maxlevel=70, mindmg=509, maxdmg=600 WHERE entry=25751;
DELETE FROM smart_scripts WHERE entryorguid=25730 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid=25730*100 AND source_type=9;
INSERT INTO smart_scripts VALUES (25730, 0, 0, 0, 37, 0, 100, 0, 0, 0, 0, 0, 80, 25730*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On AI Init - Script9');
INSERT INTO smart_scripts VALUES (25730, 0, 1, 0, 0, 0, 100, 0, 5000, 5000, 10000, 10000, 11, 24573, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'IC Update - Cast Spell Mortal Strike');
INSERT INTO smart_scripts VALUES (25730, 0, 2, 0, 0, 0, 100, 0, 2000, 2000, 11000, 11000, 11, 16044, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'IC Update - Cast Spell Cleave');
INSERT INTO smart_scripts VALUES (25730, 0, 3, 0, 0, 0, 100, 0, 10000, 10000, 30000, 40000, 11, 41097, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'IC Update - Cast Spell Whirlwind');
INSERT INTO smart_scripts VALUES (25730*100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 2, 14, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Set Faction');
INSERT INTO smart_scripts VALUES (25730*100, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 18, 256+512, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Set Flags');
INSERT INTO smart_scripts VALUES (25730*100, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Set Run');
INSERT INTO smart_scripts VALUES (25730*100, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 69, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 3126, 6539, 80.05, 0, 'Script9 - Move to Pos');
INSERT INTO smart_scripts VALUES (25730*100, 9, 4, 0, 0, 0, 100, 0, 9000, 9000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1.52, 'Script9 - Set Orientation');
INSERT INTO smart_scripts VALUES (25730*100, 9, 5, 0, 0, 0, 100, 0, 24000, 24000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 4.11, 'Script9 - Set Orientation');
INSERT INTO smart_scripts VALUES (25730*100, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 36, 25751, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Update Entry');
INSERT INTO smart_scripts VALUES (25730*100, 9, 7, 0, 0, 0, 100, 0, 0, 0, 0, 0, 18, 256+512, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Set Flags');
INSERT INTO smart_scripts VALUES (25730*100, 9, 8, 0, 0, 0, 100, 0, 0, 0, 0, 0, 2, 1979, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Set Faction');
INSERT INTO smart_scripts VALUES (25730*100, 9, 9, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 21, 50, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES (25730*100, 9, 10, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 21, 50, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES (25730*100, 9, 11, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES (25730*100, 9, 12, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES (25730*100, 9, 13, 0, 0, 0, 100, 0, 14000, 14000, 0, 0, 1, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES (25730*100, 9, 14, 0, 0, 0, 100, 0, 8000, 8000, 0, 0, 11, 45950, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Cast Spell');
INSERT INTO smart_scripts VALUES (25730*100, 9, 15, 0, 0, 0, 100, 0, 0, 0, 0, 0, 19, 256+512, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Remove Flags');
INSERT INTO smart_scripts VALUES (25730*100, 9, 16, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 45949, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Cast Spell');
INSERT INTO smart_scripts VALUES (25730*100, 9, 17, 0, 0, 0, 100, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Set Home Pos');
UPDATE creature_template SET minlevel=65, maxlevel=70, faction=14, unit_flags=33554688, AIName='SmartAI' WHERE entry=25624;
UPDATE creature_template SET faction=1982 WHERE entry=25625;
DELETE FROM smart_scripts WHERE entryorguid=25624 AND source_type=0;
INSERT INTO smart_scripts VALUES (25624, 0, 0, 0, 8, 0, 100, 0, 45949, 0, 0, 0, 12, 25625, 4, 30000, 2, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Death - Summon Creature');
DELETE FROM waypoints WHERE entry=25729;
INSERT INTO waypoints VALUES (25729, 1, 3111.1, 6580.77, 94.8496, 'Shadowstalker Getry'),(25729, 2, 3110.1, 6586.86, 91.3752, 'Shadowstalker Getry'),(25729, 3, 3113.44, 6592.44, 91.3642, 'Shadowstalker Getry'),(25729, 4, 3119.61, 6593.75, 91.3783, 'Shadowstalker Getry'),(25729, 5, 3125.42, 6589.7, 91.3783, 'Shadowstalker Getry'),(25729, 6, 3125.23, 6582.04, 88.7871, 'Shadowstalker Getry'),(25729, 7, 3118.36, 6581.91, 86.2718, 'Shadowstalker Getry'),(25729, 8, 3117.46, 6584.56, 85.5313, 'Shadowstalker Getry'),(25729, 9, 3118.02, 6589.55, 83.4635, 'Shadowstalker Getry'),(25729, 10, 3120.6, 6589.66, 82.701, 'Shadowstalker Getry'),(25729, 11, 3127.65, 6590.03, 79.6948, 'Shadowstalker Getry'),(25729, 12, 3127.04, 6587.56, 79.2347, 'Shadowstalker Getry'),
(25729, 13, 3125.78, 6583.56, 77.7368, 'Shadowstalker Getry'),(25729, 14, 3123.47, 6576.21, 78.2142, 'Shadowstalker Getry'),(25729, 15, 3122.13, 6567.54, 79.0694, 'Shadowstalker Getry'),(25729, 16, 3124.17, 6554.2, 78.9804, 'Shadowstalker Getry');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=22 AND SourceEntry=25730;
INSERT INTO conditions VALUES (22, 1, 25730, 0, 0, 29, 1, 25618, 40, 0, 0, 0, 0, '', 'Requires NPC nearby to run action');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=45923;
INSERT INTO conditions VALUES (13, 1, 45923, 0, 0, 31, 0, 3, 25729, 0, 0, 0, 0, '', 'Requires Shadowstalker Getry');
INSERT INTO conditions VALUES (13, 1, 45923, 0, 1, 31, 0, 4, 0, 0, 0, 0, 0, '', 'Requires Players');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=45949;
INSERT INTO conditions VALUES (13, 1, 45949, 0, 0, 31, 0, 3, 25624, 0, 0, 0, 0, '', 'Requires Infested Prisoner');
DELETE FROM spell_linked_spell WHERE spell_trigger IN(45923, 45950);
INSERT INTO spell_linked_spell VALUES(45923, 45922, 1, 'Shadow Prison Add');
INSERT INTO spell_linked_spell VALUES(45950, -45922, 1, 'Shadow Prison Remove');
-- Coward Delivery... Under 30 Minutes or it's Free (11711)
DELETE FROM gameobject WHERE id=187894;
INSERT INTO gameobject VALUES (NULL, 187894, 571, 1, 1, 2945.04, 5385.66, 60.5319, 4.5464, 0, 0, 0.76329, -0.646056, 300, 0, 1, 0);
REPLACE INTO spell_target_position VALUES (45956, 0, 571, 2921.65, 5347.06, 61.282, 1.07);
REPLACE INTO creature_template_addon VALUES (25761, 0, 0, 0, 0, 0, '45957');
UPDATE creature_template SET minlevel=80, maxlevel=80, unit_flags=0 WHERE entry=25761;
DELETE FROM creature_text WHERE entry IN(25379, 25759);
INSERT INTO creature_text VALUES (25379, 0, 0, "Try to not lose this one, $N. It is important that we at least try and keep up appearances with the Alliance.", 15, 0, 100, 0, 0, 0, 0, 'Warden Nork Bloodfrenzy');
INSERT INTO creature_text VALUES (25759, 0, 0, "Thank you, $r. I will take this miserable cur from you now.", 12, 0, 100, 0, 0, 0, 0, 'Warden Nork Bloodfrenzy');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=15 AND SourceGroup=9184;
INSERT INTO conditions VALUES(15, 9184, 0, 0, 0, 9, 0, 11711, 0, 0, 0, 0, 0, '', 'Coward Delivery');
INSERT INTO conditions VALUES(15, 9184, 0, 0, 0, 1, 0, 45963, 1, 0, 1, 0, 0, '', 'Didnt get soldier recently');
DELETE FROM gossip_menu_option WHERE menu_id=9184;
INSERT INTO gossip_menu_option VALUES(9184, 0, 0, "Give me one of the Alliance Deserters.", 1, 1, 0, 0, 0, 0, '');
UPDATE creature_template SET AIName="SmartAI" WHERE entry=25379;
DELETE FROM smart_scripts WHERE entryorguid=25379 AND source_type=0;
INSERT INTO smart_scripts VALUES (25379, 0, 0, 1, 62, 0, 100, 0, 9184, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On Gossip Select - Talk");
INSERT INTO smart_scripts VALUES (25379, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 11, 45975, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On Gossip Select - Cast Spell");
INSERT INTO smart_scripts VALUES (25379, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On Gossip Select - Close Gossip");
DELETE FROM conditions WHERE SourceTypeOrReferenceId=17 AND SourceEntry=45958;
INSERT INTO conditions VALUES (17, 0, 45958, 0, 0, 1, 0, 45957, 0, 0, 0, 0, 0, '', 'Requires Alliance Deserter Aura');
DELETE FROM spell_linked_spell WHERE spell_trigger=45958;
INSERT INTO spell_linked_spell VALUES (45958, 45956, 1, 'Signal Alliance');
REPLACE INTO creature_template_addon VALUES (25759, 0, 14584, 0, 0, 0, '');
UPDATE creature_template SET AIName='SmartAI' WHERE entry=25759;
DELETE FROM smart_scripts WHERE entryorguid=25759 AND source_type=0;
INSERT INTO smart_scripts VALUES (25759, 0, 0, 0, 60, 0, 100, 1, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, 2937.55, 5377.94, 60.64, 0, "On Update - Move To Pos");
INSERT INTO smart_scripts VALUES (25759, 0, 1, 2, 34, 0, 100, 1, 8, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 21, 40, 0, 0, 0, 0, 0, 0, "On Movement Inform - Talk");
INSERT INTO smart_scripts VALUES (25759, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 15, 11711, 0, 0, 0, 0, 0, 18, 40, 0, 0, 0, 0, 0, 0, "On Movement Inform - Area Explored");
INSERT INTO smart_scripts VALUES (25759, 0, 3, 4, 61, 0, 100, 0, 0, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 11, 25761, 50, 0, 0, 0, 0, 0, "On Movement Inform - Despawn Target");
INSERT INTO smart_scripts VALUES (25759, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On Movement Inform - Despawn");
-- Unfit for Death (11865)
UPDATE item_template SET ScriptName='' WHERE entry=35127;
DELETE FROM conditions WHERE SourceTypeOrReferenceId=17 AND SourceEntry IN(46104, 46085);
INSERT INTO conditions VALUES (17, 0, 46104, 0, 0, 31, 1, 3, 0, 0, 0, 27, 0, '', 'Requires NPC');
INSERT INTO conditions VALUES (17, 0, 46085, 0, 0, 30, 0, 187982, 2, 0, 0, 22, 0, '', 'Requires Trap Nearby');
INSERT INTO conditions VALUES (17, 0, 46085, 0, 0, 29, 0, 25835, 5, 0, 1, 22, 0, '', 'Requires No Trapper Nearby');
INSERT INTO conditions VALUES (17, 0, 46085, 0, 0, 29, 0, 25835, 5, 1, 1, 22, 0, '', 'Requires No Trapper Nearby');
UPDATE gameobject SET id=187982 WHERE id IN(187982, 187995, 187996, 187997, 187998, 187999, 188000, 188001, 188002, 188003, 188004, 188005, 188006, 188007, 188008);
UPDATE gameobject_template SET AIName='SmartGameObjectAI', ScriptName='' WHERE entry=187982;
DELETE FROM smart_scripts WHERE entryorguid=187982 AND source_type=1;
INSERT INTO smart_scripts VALUES (187982, 1, 0, 1, 64, 0, 100, 0, 1, 0, 0, 0, 50, 187983, 15, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Caribou Trap - On Gossip Hello - Summon Gameobject');
INSERT INTO smart_scripts VALUES (187982, 1, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 45, 1, 0, 0, 0, 0, 0, 19, 25835, 30, 0, 0, 0, 0, 0, 'Caribou Trap - On Gossip Hello - Set Data');
INSERT INTO smart_scripts VALUES (187982, 1, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Caribou Trap - On Gossip Hello - Store Target');
INSERT INTO smart_scripts VALUES (187982, 1, 3, 4, 38, 0, 100, 0, 2, 0, 0, 0, 131, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Caribou Trap - On Data Set - Set Gameobject State');
INSERT INTO smart_scripts VALUES (187982, 1, 4, 5, 61, 0, 100, 0, 0, 0, 0, 0, 67, 1, 5000, 5000, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Caribou Trap - On Data Set - Create Timed Event');
INSERT INTO smart_scripts VALUES (187982, 1, 5, 0, 61, 0, 100, 0, 0, 0, 0, 0, 33, 25835, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Caribou Trap - On Data Set - Kill Credit');
INSERT INTO smart_scripts VALUES (187982, 1, 6, 0, 59, 0, 100, 0, 1, 0, 0, 0, 99, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Caribou Trap - On Timed Event - Set Loot State');
UPDATE creature_template SET unit_flags=768, flags_extra=2, AIName='SmartAI', ScriptName='' WHERE entry=25835;
DELETE FROM smart_scripts WHERE entryorguid=25835 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid=25835*100 AND source_type=9;
INSERT INTO smart_scripts VALUES (25835, 0, 0, 1, 38, 0, 100, 1, 1, 0, 0, 0, 69, 1, 0, 0, 0, 0, 0, 20, 187983, 30, 0, 1, 0, 0, 0, 'Nesingwary Trapper - On Data Set - Move To Position');
INSERT INTO smart_scripts VALUES (25835, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Nesingwary Trapper - On Data Set - Set Visible');
INSERT INTO smart_scripts VALUES (25835, 0, 2, 3, 11, 0, 100, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Nesingwary Trapper - On Respawn - Set Visible false');
INSERT INTO smart_scripts VALUES (25835, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Nesingwary Trapper - On Respawn - Set React Passive');
INSERT INTO smart_scripts VALUES (25835, 0, 4, 0, 34, 0, 100, 0, 8, 1, 0, 0, 80, 25835*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Nesingwary Trapper - Movement Inform - Run Script');
INSERT INTO smart_scripts VALUES (25835*100, 9, 0, 0, 0, 0, 100, 0, 100, 100, 0, 0, 66, 0, 0, 0, 0, 0, 0, 20, 187983, 5, 0, 0, 0, 0, 0, 'Nesingwary Trapper - On Script - Set Orientation');
INSERT INTO smart_scripts VALUES (25835*100, 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, 'Nesingwary Trapper - On Script - Say Line 0');
INSERT INTO smart_scripts VALUES (25835*100, 9, 2, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 90, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Nesingwary Trapper - On Script - Set Bytes0');
INSERT INTO smart_scripts VALUES (25835*100, 9, 3, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 45, 2, 0, 0, 0, 0, 0, 20, 187982, 5, 0, 0, 0, 0, 0, 'Nesingwary Trapper - On Script - Set Data');
INSERT INTO smart_scripts VALUES (25835*100, 9, 4, 0, 0, 0, 100, 0, 500, 500, 0, 0, 37, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Nesingwary Trapper - On Script - Die');
INSERT INTO smart_scripts VALUES (25835*100, 9, 5, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Nesingwary Trapper - On Script - Despawn');
DELETE FROM creature WHERE id=25835;
INSERT INTO creature VALUES (NULL, 25835, 571, 1, 1, 0, 1, 3051.26, 5270.73, 60.5525, 3.11829, 180, 0, 0, 9291, 0, 0, 0, 0, 0);
INSERT INTO creature VALUES (NULL, 25835, 571, 1, 1, 0, 1, 3101.92, 5282.08, 59.4452, 2.97692, 180, 0, 0, 8982, 0, 0, 0, 0, 0);
INSERT INTO creature VALUES (NULL, 25835, 571, 1, 1, 0, 1, 3061.11, 5319.11, 59.7241, 6.15315, 180, 0, 0, 8982, 0, 0, 0, 0, 0);
INSERT INTO creature VALUES (NULL, 25835, 571, 1, 1, 0, 1, 3097.68, 5340.91, 55.5327, 3.1772, 180, 0, 0, 8982, 0, 0, 0, 0, 0);
INSERT INTO creature VALUES (NULL, 25835, 571, 1, 1, 0, 1, 3142.19, 5315.46, 53.1699, 0.172346, 180, 0, 0, 9291, 0, 0, 0, 0, 0);
INSERT INTO creature VALUES (NULL, 25835, 571, 1, 1, 0, 1, 3134.4, 5250.91, 59.2967, 0.0663204, 180, 0, 0, 8982, 0, 0, 0, 0, 0);
INSERT INTO creature VALUES (NULL, 25835, 571, 1, 1, 0, 1, 3018.35, 5334.55, 63.3825, 3.16542, 180, 0, 0, 9291, 0, 0, 0, 0, 0);
INSERT INTO creature VALUES (NULL, 25835, 571, 1, 1, 0, 1, 2975.63, 5331.37, 63.1262, 3.25182, 180, 0, 0, 8982, 0, 0, 0, 0, 0);
INSERT INTO creature VALUES (NULL, 25835, 571, 1, 1, 0, 1, 2995.56, 5290.19, 61.3343, 3.20077, 180, 0, 0, 9291, 0, 0, 0, 0, 0);
INSERT INTO creature VALUES (NULL, 25835, 571, 1, 1, 0, 1, 2940.88, 5295.13, 61.674, 3.1183, 180, 0, 0, 8982, 0, 0, 0, 0, 0);
INSERT INTO creature VALUES (NULL, 25835, 571, 1, 1, 0, 1, 2971.01, 5245.36, 58.9515, 3.08296, 180, 0, 0, 8982, 0, 0, 0, 0, 0);
INSERT INTO creature VALUES (NULL, 25835, 571, 1, 1, 0, 1, 2924.41, 5216.49, 59.4083, 3.19291, 180, 0, 0, 9291, 0, 0, 0, 0, 0);
INSERT INTO creature VALUES (NULL, 25835, 571, 1, 1, 0, 1, 2913.67, 5262.68, 61.6815, 3.20862, 180, 0, 0, 8982, 0, 0, 0, 0, 0);
INSERT INTO creature VALUES (NULL, 25835, 571, 1, 1, 0, 1, 3079.2, 5234.41, 63.5527, 2.988, 180, 0, 0, 9291, 0, 0, 0, 0, 0);
INSERT INTO creature VALUES (NULL, 25835, 571, 1, 1, 0, 1, 3012.67, 5231.05, 63.7945, 3.32965, 180, 0, 0, 9291, 0, 0, 0, 0, 0);
-- Cutting Off the Source (11602)
UPDATE gameobject_template SET data3=120000 WHERE entry=187655;
-- Bring 'Em Back Alive (11690)
DELETE FROM conditions WHERE SourceTypeOrReferenceId=16 AND SourceEntry=25596;
INSERT INTO conditions VALUES (16, 0, 25596, 0, 0, 23, 0, 3537, 0, 0, 0, 0, 0, '', 'Dismount player when not in intended zone');
INSERT INTO conditions VALUES (16, 0, 25596, 0, 1, 23, 0, 4141, 0, 0, 0, 0, 0, '', 'Dismount player when not in intended zone');
INSERT INTO conditions VALUES (16, 0, 25596, 0, 2, 23, 0, 4144, 0, 0, 0, 0, 0, '', 'Dismount player when not in intended zone');
-- The Collapse (11706)
-- Deploy the Shake-n-Quake! (11723)
DELETE FROM event_scripts WHERE id IN (16929, 17084);
INSERT INTO event_scripts VALUES (16929, 1, 10, 25742, 60000, 0, 3505.78, 4558.70, -12.98, 4.16); -- Alluvion
INSERT INTO event_scripts VALUES (17084, 1, 10, 25794, 60000, 0, 3505.78, 4558.70, -12.98, 4.16); -- Shake-n-Quake 5000
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry IN(25742, 25794);
DELETE FROM smart_scripts WHERE entryorguid IN(25742, 25794) AND source_type=0;
INSERT INTO smart_scripts VALUES (25742, 0, 0, 1, 11, 0, 100, 1, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On Respawn - Set Run");
INSERT INTO smart_scripts VALUES (25742, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, 3496.6, 4541.05, -12.98, 0, "On Respawn - Move Point");
INSERT INTO smart_scripts VALUES (25742, 0, 2, 0, 34, 0, 100, 1, 8, 1, 0, 0, 12, 25629, 4, 60000, 0, 0, 0, 8, 0, 0, 0, 3458.33, 4522.1, -12.99, 1.11, "MovementInform - Summon Creature");
INSERT INTO smart_scripts VALUES (25742, 0, 3, 4, 60, 0, 100, 1, 18000, 18000, 0, 0, 33, 25742, 0, 0, 0, 0, 0, 21, 30, 0, 0, 0, 0, 0, 0, "On Update - Kill Credit");
INSERT INTO smart_scripts VALUES (25742, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 3000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On Update - Despawn");
INSERT INTO smart_scripts VALUES (25794, 0, 0, 1, 11, 0, 100, 1, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On Respawn - Set Run");
INSERT INTO smart_scripts VALUES (25794, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, 3496.6, 4541.05, -12.98, 0, "On Respawn - Move Point");
INSERT INTO smart_scripts VALUES (25794, 0, 2, 0, 34, 0, 100, 1, 8, 1, 0, 0, 12, 25629, 4, 60000, 0, 0, 0, 8, 0, 0, 0, 3458.33, 4522.1, -12.99, 1.11, "MovementInform - Summon Creature");
INSERT INTO smart_scripts VALUES (25794, 0, 3, 4, 60, 0, 100, 1, 18000, 18000, 0, 0, 33, 25794, 0, 0, 0, 0, 0, 21, 30, 0, 0, 0, 0, 0, 0, "On Update - Kill Credit");
INSERT INTO smart_scripts VALUES (25794, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 3000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On Update - Despawn");
DELETE FROM creature_text WHERE entry=25629;
INSERT INTO creature_text VALUES (25629, 0, 0, "Feebleminded tinkerer, do you really think that your pathetic creation can stop me?", 14, 0, 100, 0, 0, 0, 0, 'Lord Kryxix');
UPDATE creature_template SET unit_flags=768, AIName='SmartAI', ScriptName='' WHERE entry=25629;
DELETE FROM smart_scripts WHERE entryorguid=25629 AND source_type=0;
INSERT INTO smart_scripts VALUES (25629, 0, 0, 1, 11, 0, 100, 1, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On Respawn - Set Run");
INSERT INTO smart_scripts VALUES (25629, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, 3496.6, 4541.05, -12.98, 0, "On Respawn - Move Point");
INSERT INTO smart_scripts VALUES (25629, 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, "On Respawn - Talk");
INSERT INTO smart_scripts VALUES (25629, 0, 3, 0, 34, 0, 100, 1, 8, 1, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "MovementInform - Remove Unit Flags");
-- Last Rites (12019)
DELETE FROM script_waypoint WHERE entry=26170;
DELETE FROM gossip_menu_option WHERE menu_id=9417;
INSERT INTO gossip_menu_option VALUES (9417, 0, 0, 'Let''s do this, Thassarian. It''s now or never.', 1, 1, 0, 0, 0, 0, '');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=15 AND SourceGroup=9417;
INSERT INTO conditions VALUES (15, 9417, 0, 0, 0, 23, 0, 4128, 0, 0, 0, 0, 0, '', 'Requires specific area');
INSERT INTO conditions VALUES (15, 9417, 0, 0, 0, 9, 0, 12019, 0, 0, 0, 0, 0, '', 'Requires Quest active');
DELETE FROM creature_addon WHERE guid IN(SELECT guid FROM creature WHERE id IN(25250, 25251) AND guid IN(111277, 111300));
DELETE FROM creature WHERE id IN(25250, 25251) AND guid IN(111277, 111300);
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=26170;
DELETE FROM smart_scripts WHERE entryorguid=26170 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid IN(26170*100, 26170*100+1, 26170*100+2) AND source_type=9;
INSERT INTO smart_scripts VALUES (26170, 0, 0, 0, 62, 0, 100, 0, 9417, 0, 0, 0, 53, 0, 26170, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Thassarian - On Gossip Select - Start Escort');
INSERT INTO smart_scripts VALUES (26170, 0, 1, 2, 40, 0, 100, 0, 3, 0, 0, 0, 54, 600000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Thassarian - On WP Reach - Pause WP');
INSERT INTO smart_scripts VALUES (26170, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 80, 26170*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Thassarian - On WP Reach - Start Script');
INSERT INTO smart_scripts VALUES (26170, 0, 3, 4, 38, 0, 100, 0, 4, 4, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Thassarian - On Data Set - Talk');
INSERT INTO smart_scripts VALUES (26170, 0, 4, 5, 61, 0, 100, 0, 0, 0, 0, 0, 59, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Thassarian - On Data Set - Set Run');
INSERT INTO smart_scripts VALUES (26170, 0, 5, 0, 61, 0, 100, 0, 0, 0, 0, 0, 65, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Thassarian - On Data Set - Resume Path');
INSERT INTO smart_scripts VALUES (26170, 0, 6, 7, 40, 0, 100, 0, 4, 0, 0, 0, 54, 600000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Thassarian - On WP Reach - Pause WP');
INSERT INTO smart_scripts VALUES (26170, 0, 7, 0, 61, 0, 100, 0, 0, 0, 0, 0, 80, 26170*100+1, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Thassarian - On WP Reach - Start Script');
INSERT INTO smart_scripts VALUES (26170, 0, 8, 0, 38, 0, 100, 0, 6, 6, 0, 0, 65, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Thassarian - On Data Set - Resume Path');
INSERT INTO smart_scripts VALUES (26170, 0, 9, 10, 40, 0, 100, 0, 5, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0.31, 'Thassarian - On WP Reach - Set Orientation');
INSERT INTO smart_scripts VALUES (26170, 0, 10, 0, 61, 0, 100, 0, 0, 0, 0, 0, 80, 26170*100+2, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Thassarian - On WP Reach - Start Script');
INSERT INTO smart_scripts VALUES (26170, 0, 11, 0, 11, 0, 100, 0, 0, 0, 0, 0, 91, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Thassarian - On Respawn - Remove Bytes1');
INSERT INTO smart_scripts VALUES (26170*100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 12, 26203, 4, 240000, 0, 0, 0, 8, 0, 0, 0, 3730.313, 3518.689, 473.324, 1.562, 'Thassarian - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (26170*100, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 19, 26203, 120, 0, 0, 0, 0, 0, 'Thassarian - On Script - Store Target Image of the Lich King');
INSERT INTO smart_scripts VALUES (26170*100, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 12, 25301, 4, 240000, 0, 0, 0, 8, 0, 0, 0, 3747.230, 3614.936, 473.321, 4.462, 'Thassarian - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (26170*100, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 64, 2, 0, 0, 0, 0, 0, 19, 25301, 120, 0, 0, 0, 0, 0, 'Thassarian - On Script - Store Target Counselor Talbot');
INSERT INTO smart_scripts VALUES (26170*100, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 45, 2, 2, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 'Thassarian - On Script - Set Data');
INSERT INTO smart_scripts VALUES (26170*100, 9, 5, 0, 0, 0, 100, 0, 22000, 22000, 0, 0, 36, 28189, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 'Thassarian - On Script - Update Entry');
INSERT INTO smart_scripts VALUES (26170*100, 9, 6, 0, 0, 0, 100, 0, 500, 500, 0, 0, 90, 8, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 'Thassarian - On Script - Set Bytes1');
INSERT INTO smart_scripts VALUES (26170*100, 9, 7, 0, 0, 0, 100, 0, 0, 0, 0, 0, 18, 256+512, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 'Thassarian - On Script - Set Unit Flag');
INSERT INTO smart_scripts VALUES (26170*100, 9, 8, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 'Thassarian - On Script - Talk Target 0');
INSERT INTO smart_scripts VALUES (26170*100, 9, 9, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Thassarian - On Script - Talk Target 0');
INSERT INTO smart_scripts VALUES (26170*100, 9, 10, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 'Thassarian - On Script - Talk Target 1');
INSERT INTO smart_scripts VALUES (26170*100, 9, 11, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 12, 25250, 4, 240000, 0, 0, 0, 8, 0, 0, 0, 3745.5271, 3615.655029, 473.321533, 4.447805, 'Thassarian - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (26170*100, 9, 12, 0, 0, 0, 100, 0, 0, 0, 0, 0, 12, 25251, 4, 240000, 0, 0, 0, 8, 0, 0, 0, 3749.654541, 3614.959717, 473.323486, 4.524959, 'Thassarian - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (26170*100, 9, 13, 0, 0, 0, 100, 0, 0, 0, 0, 0, 45, 3, 3, 0, 0, 0, 0, 19, 25250, 80, 0, 0, 0, 0, 0, 'Thassarian - On Script - Set Data');
INSERT INTO smart_scripts VALUES (26170*100, 9, 14, 0, 0, 0, 100, 0, 0, 0, 0, 0, 45, 3, 3, 0, 0, 0, 0, 19, 25251, 80, 0, 0, 0, 0, 0, 'Thassarian - On Script - Set Data');
INSERT INTO smart_scripts VALUES (26170*100+1, 9, 0, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Thassarian - On Script - Talk');
INSERT INTO smart_scripts VALUES (26170*100+1, 9, 1, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 91, 255, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 'Thassarian - On Script - Remove Bytes1');
INSERT INTO smart_scripts VALUES (26170*100+1, 9, 2, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 45, 3, 3, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Thassarian - On Script - Set Data');
INSERT INTO smart_scripts VALUES (26170*100+1, 9, 3, 0, 0, 0, 100, 0, 7000, 7000, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Thassarian - On Script - Talk');
INSERT INTO smart_scripts VALUES (26170*100+1, 9, 4, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 1, 2, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 'Thassarian - On Script - Talk Target 2');
INSERT INTO smart_scripts VALUES (26170*100+1, 9, 5, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 1, 2, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Thassarian - On Script - Talk Target 2');
INSERT INTO smart_scripts VALUES (26170*100+1, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 4000, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Thassarian - On Script - Despawn');
INSERT INTO smart_scripts VALUES (26170*100+1, 9, 7, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 1, 3, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 'Thassarian - On Script - Talk Target 3');
INSERT INTO smart_scripts VALUES (26170*100+1, 9, 8, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 45, 5, 5, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 'Thassarian - On Script - Set Data');
INSERT INTO smart_scripts VALUES (26170*100+1, 9, 9, 0, 0, 0, 100, 0, 500, 500, 0, 0, 49, 0, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 'Thassarian - On Script - Attack Start');
INSERT INTO smart_scripts VALUES (26170*100+2, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 19, 25250, 50, 0, 0, 0, 0, 0, 'Thassarian - On Script - Talk Target 0');
INSERT INTO smart_scripts VALUES (26170*100+2, 9, 1, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 19, 25250, 50, 0, 0, 0, 0, 0, 'Thassarian - On Script - Talk Target 1');
INSERT INTO smart_scripts VALUES (26170*100+2, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 28, 0, 0, 0, 0, 0, 0, 19, 25250, 50, 0, 0, 0, 0, 0, 'Thassarian - On Script - Remove Auras');
INSERT INTO smart_scripts VALUES (26170*100+2, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 90, 7, 0, 0, 0, 0, 0, 19, 25250, 50, 0, 0, 0, 0, 0, 'Thassarian - On Script - Set bytes1');
INSERT INTO smart_scripts VALUES (26170*100+2, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 28, 0, 0, 0, 0, 0, 0, 19, 25251, 50, 0, 0, 0, 0, 0, 'Thassarian - On Script - Remove Auras');
INSERT INTO smart_scripts VALUES (26170*100+2, 9, 5, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 19, 25251, 50, 0, 0, 0, 0, 0, 'Thassarian - On Script - Talk Target 0');
INSERT INTO smart_scripts VALUES (26170*100+2, 9, 6, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Thassarian - On Script - Talk');
INSERT INTO smart_scripts VALUES (26170*100+2, 9, 7, 0, 0, 0, 100, 0, 0, 0, 0, 0, 90, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Thassarian - On Script - Set bytes1');
INSERT INTO smart_scripts VALUES (26170*100+2, 9, 8, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 45, 7, 7, 0, 0, 0, 0, 19, 25251, 50, 0, 0, 0, 0, 0, 'Thassarian - On Script - Set Data');
INSERT INTO smart_scripts VALUES (26170*100+2, 9, 9, 0, 0, 0, 100, 0, 7000, 7000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 19, 25251, 50, 0, 0, 0, 0, 0, 'Thassarian - On Script - Talk Target 1');
INSERT INTO smart_scripts VALUES (26170*100+2, 9, 10, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 1, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Thassarian - On Script - Talk');
INSERT INTO smart_scripts VALUES (26170*100+2, 9, 11, 0, 0, 0, 100, 0, 8000, 8000, 0, 0, 1, 2, 0, 0, 0, 0, 0, 19, 25251, 50, 0, 0, 0, 0, 0, 'Thassarian - On Script - Talk Target 2');
INSERT INTO smart_scripts VALUES (26170*100+2, 9, 12, 0, 0, 0, 100, 0, 9000, 9000, 0, 0, 1, 5, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Thassarian - On Script - Talk');
INSERT INTO smart_scripts VALUES (26170*100+2, 9, 13, 0, 0, 0, 100, 0, 8000, 8000, 0, 0, 1, 3, 0, 0, 0, 0, 0, 19, 25251, 50, 0, 0, 0, 0, 0, 'Thassarian - On Script - Talk Target 3');
INSERT INTO smart_scripts VALUES (26170*100+2, 9, 14, 0, 0, 0, 100, 0, 7000, 7000, 0, 0, 1, 6, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Thassarian - On Script - Talk');
INSERT INTO smart_scripts VALUES (26170*100+2, 9, 15, 0, 0, 0, 100, 0, 10000, 10000, 0, 0, 41, 0, 0, 0, 0, 0, 0, 19, 25250, 50, 0, 0, 0, 0, 0, 'Thassarian - On Script - Despawn Target');
INSERT INTO smart_scripts VALUES (26170*100+2, 9, 16, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 19, 25251, 50, 0, 0, 0, 0, 0, 'Thassarian - On Script - Despawn Target');
INSERT INTO smart_scripts VALUES (26170*100+2, 9, 17, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 19, 28189, 50, 1, 0, 0, 0, 0, 'Thassarian - On Script - Despawn Target');
INSERT INTO smart_scripts VALUES (26170*100+2, 9, 18, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 20000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Thassarian - On Script - Despawn');
DELETE FROM waypoints WHERE entry=26170;
INSERT INTO waypoints VALUES (26170, 1, 3700.08, 3574.54, 473.322, 'Thassarin'),(26170, 2, 3707.26, 3573.78, 477.41, 'Thassarin'),(26170, 3, 3714.32, 3572.3, 477.442, 'Thassarin'),
(26170, 4, 3727.66, 3567.63, 477.34, 'Thassarin'),(26170, 5, 3717.94, 3563.50, 477.44, 'Thassarin');
UPDATE creature_template SET faction=14, flags_extra=2 WHERE entry=28189;
UPDATE creature_template SET faction=14, unit_flags=256+512, flags_extra=2, AIName='SmartAI', ScriptName='' WHERE entry=26203;
DELETE FROM smart_scripts WHERE entryorguid=26203 AND source_type=0;
INSERT INTO smart_scripts VALUES (26203, 0, 0, 1, 11, 0, 100, 1, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Image of the Lich King - On Respawn - Set Run False');
INSERT INTO smart_scripts VALUES (26203, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, 3737.374756, 3564.841309, 477.433014, 0, 'Image of the Lich King - On Respawn - Move to Pos');
INSERT INTO smart_scripts VALUES (26203, 0, 2, 3, 38, 0, 100, 1, 3, 3, 0, 0, 66, 0, 0, 0, 0, 0, 0, 19, 26170, 50, 0, 0, 0, 0, 0, 'Image of the Lich King - On Data Set - Set Orientation');
INSERT INTO smart_scripts VALUES (26203, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Image of the Lich King - On Data Set - Talk');
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=25301;
DELETE FROM smart_scripts WHERE entryorguid=25301 AND source_type=0;
INSERT INTO smart_scripts VALUES (25301, 0, 0, 1, 54, 0, 100, 0, 0, 0, 0, 0, 145, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Counselor Talbot - Is Summoned - No Event Phase Reset');
INSERT INTO smart_scripts VALUES (25301, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Counselor Talbot - Is Summoned - Set Event Phase');
INSERT INTO smart_scripts VALUES (25301, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 81, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Counselor Talbot - Is Summoned - Set NPC Flags 0');
INSERT INTO smart_scripts VALUES (25301, 0, 3, 4, 38, 1, 100, 1, 2, 2, 0, 0, 59, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Counselor Talbot - On Data Set - Set Run');
INSERT INTO smart_scripts VALUES (25301, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, 3738.000977, 3568.882080, 477.433014, 0, 'Counselor Talbot - On Data Set - Move to Pos');
INSERT INTO smart_scripts VALUES (25301, 0, 5, 0, 38, 1, 100, 1, 5, 5, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Counselor Talbot - On Data Set - Remove Unit Flag');
INSERT INTO smart_scripts VALUES (25301, 0, 6, 7, 6, 1, 100, 0, 0, 0, 0, 0, 45, 6, 6, 0, 0, 0, 0, 19, 26170, 80, 0, 0, 0, 0, 0, 'Counselor Talbot - On Death - Set Data');
INSERT INTO smart_scripts VALUES (25301, 0, 7, 0, 61, 0, 100, 0, 0, 0, 0, 0, 33, 28189, 0, 0, 0, 0, 0, 18, 50, 0, 0, 0, 0, 0, 0, 'Counselor Talbot - On Death - Kill Credit');
INSERT INTO smart_scripts VALUES (25301, 0, 8, 0, 0, 1, 100, 0, 3000, 5000, 5000, 7000, 11, 15537, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Counselor Talbot - In Combat - Cast Spell');
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=25250;
DELETE FROM smart_scripts WHERE entryorguid=25250 AND source_type=0;
INSERT INTO smart_scripts VALUES (25250, 0, 0, 1, 38, 0, 100, 1, 3, 3, 0, 0, 59, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'General Arlos - On Data Set - Set Run');
INSERT INTO smart_scripts VALUES (25250, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, 3735.570068, 3572.419922, 477.441010, 0, 'General Arlos - Movement Inform - Move to Position');
INSERT INTO smart_scripts VALUES (25250, 0, 2, 0, 34, 0, 100, 0, 8, 1, 0, 0, 11, 46957, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'General Arlos - Movement Inform - Cast Cosmetic - Stun (Permanent)');
INSERT INTO smart_scripts VALUES (25250, 0, 3, 0, 54, 0, 100, 0, 0, 0, 0, 0, 81, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'General Arlos - Is Summoned - Set NPC Flags 0');
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=25251;
DELETE FROM smart_scripts WHERE entryorguid=25251 AND source_type=0;
INSERT INTO smart_scripts VALUES (25251, 0, 0, 1, 38, 0, 100, 1, 3, 3, 0, 0, 59, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Leryssa - On Data Set - Set Run');
INSERT INTO smart_scripts VALUES (25251, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, 3741.969971, 3571.439941, 477.441010, 0, 'Leryssa - On Data Set - Move to Pos');
INSERT INTO smart_scripts VALUES (25251, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Leryssa - On Data Set - Set React State');
INSERT INTO smart_scripts VALUES (25251, 0, 3, 4, 34, 0, 100, 0, 8, 1, 0, 0, 11, 46957, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Leryssa - Movement Inform - Cast Cosmetic - Stun (Permanent)');
INSERT INTO smart_scripts VALUES (25251, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 45, 4, 4, 0, 0, 0, 0, 19, 26170, 50, 0, 0, 0, 0, 0, 'Leryssa - Movement Inform - Set Data');
INSERT INTO smart_scripts VALUES (25251, 0, 5, 6, 38, 0, 100, 1, 7, 7, 0, 0, 59, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Leryssa - On Data Set - Set Run');
INSERT INTO smart_scripts VALUES (25251, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 69, 2, 0, 0, 0, 0, 0, 8, 0, 0, 0, 3722.114502, 3564.201660, 477.441437, 0, 'Leryssa - On Data Set - Move to Pos');
INSERT INTO smart_scripts VALUES (25251, 0, 7, 0, 34, 0, 100, 0, 8, 2, 0, 0, 90, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Leryssa - Movement Inform - Set Bytes1');
INSERT INTO smart_scripts VALUES (25251, 0, 8, 0, 54, 0, 100, 0, 0, 0, 0, 0, 81, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Leryssa - Is Summoned - Set NPC Flags 0');
-- Monitoring the Rift: Cleftcliff Anomaly (11576)
UPDATE smart_scripts SET event_flags=0 WHERE entryorguid=25310 AND source_type=0;
-- Hah... You're Not So Big Now! (11653)
DELETE FROM spell_script_names WHERE spell_id=45668;
INSERT INTO spell_script_names VALUES (45668, 'spell_q11653_youre_not_so_big_now');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=22 AND SourceEntry IN(25432, 25434);
INSERT INTO conditions VALUES (22, 4, 25432, 0, 0, 9, 0, 11653, 0, 0, 0, 0, 0, '', 'Requires Quest Taken');
INSERT INTO conditions VALUES (22, 4, 25432, 0, 0, 1, 1, 45672, 0, 0, 0, 0, 0, '', 'Requires Specific Aura');
INSERT INTO conditions VALUES (22, 4, 25432, 0, 1, 9, 0, 11653, 0, 0, 0, 0, 0, '', 'Requires Quest Taken');
INSERT INTO conditions VALUES (22, 4, 25432, 0, 1, 1, 1, 45673, 0, 0, 0, 0, 0, '', 'Requires Specific Aura');
INSERT INTO conditions VALUES (22, 4, 25432, 0, 2, 9, 0, 11653, 0, 0, 0, 0, 0, '', 'Requires Quest Taken');
INSERT INTO conditions VALUES (22, 4, 25432, 0, 2, 1, 1, 45677, 0, 0, 0, 0, 0, '', 'Requires Specific Aura');
INSERT INTO conditions VALUES (22, 4, 25432, 0, 3, 9, 0, 11653, 0, 0, 0, 0, 0, '', 'Requires Quest Taken');
INSERT INTO conditions VALUES (22, 4, 25432, 0, 3, 1, 1, 45681, 0, 0, 0, 0, 0, '', 'Requires Specific Aura');
INSERT INTO conditions VALUES (22, 1, 25434, 0, 0, 9, 0, 11653, 0, 0, 0, 0, 0, '', 'Requires Quest Taken');
INSERT INTO conditions VALUES (22, 1, 25434, 0, 0, 1, 1, 45672, 0, 0, 0, 0, 0, '', 'Requires Specific Aura');
INSERT INTO conditions VALUES (22, 1, 25434, 0, 1, 9, 0, 11653, 0, 0, 0, 0, 0, '', 'Requires Quest Taken');
INSERT INTO conditions VALUES (22, 1, 25434, 0, 1, 1, 1, 45673, 0, 0, 0, 0, 0, '', 'Requires Specific Aura');
INSERT INTO conditions VALUES (22, 1, 25434, 0, 2, 9, 0, 11653, 0, 0, 0, 0, 0, '', 'Requires Quest Taken');
INSERT INTO conditions VALUES (22, 1, 25434, 0, 2, 1, 1, 45677, 0, 0, 0, 0, 0, '', 'Requires Specific Aura');
INSERT INTO conditions VALUES (22, 1, 25434, 0, 3, 9, 0, 11653, 0, 0, 0, 0, 0, '', 'Requires Quest Taken');
INSERT INTO conditions VALUES (22, 1, 25434, 0, 3, 1, 1, 45681, 0, 0, 0, 0, 0, '', 'Requires Specific Aura');
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry IN(25432, 25434);
DELETE FROM smart_scripts WHERE entryorguid IN(25432, 25434) AND source_type=0;
INSERT INTO smart_scripts VALUES (25432, 0, 0, 0, 2, 0, 100, 1, 0, 30, 0, 0, 11, 50420, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Mate of Magmothregar - Between 0-30% Health - Cast 'Enrage' (No Repeat)");
INSERT INTO smart_scripts VALUES (25432, 0, 1, 0, 2, 0, 100, 1, 0, 30, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Mate of Magmothregar - Between 0-30% Health - Say Line 0 (No Repeat)");
INSERT INTO smart_scripts VALUES (25432, 0, 2, 0, 6, 0, 100, 1, 0, 0, 0, 0, 11, 45691, 7, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Mate of Magmothregar - On Just Died - Cast 'Hah... : Magnataur On Death 1' (No Repeat)");
INSERT INTO smart_scripts VALUES (25432, 0, 3, 0, 6, 0, 100, 1, 0, 0, 0, 0, 33, 25505, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Mate of Magmothregar - On Just Died - Kill Credit");
INSERT INTO smart_scripts VALUES (25434, 0, 0, 0, 6, 0, 100, 1, 0, 0, 0, 0, 33, 25505, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Magmoth Crusher - On Just Died - Kill Credit");
-- Oh Noes, the Tadpoles! (11560)
DELETE FROM creature_addon WHERE guid IN(SELECT guid FROM creature WHERE id=25201);
DELETE FROM creature WHERE id=25201;
UPDATE gameobject_template SET AIName='', ScriptName='go_tadpole_cage' WHERE entry=187373;
-- Taken by the Scourge (11611)
UPDATE creature SET spawntimesecs=20 WHERE id=25284;
-- Drake Hunt (11919)
-- Drake Hunt (11940)
DELETE FROM conditions WHERE SourceTypeOrReferenceId=17 AND SourceEntry=46607;
INSERT INTO conditions VALUES (17, 0, 46607, 0, 0, 31, 1, 3, 26127, 0, 0, 0, 0, '', 'Requires Nexus Drake Hatchling');
INSERT INTO conditions VALUES (17, 0, 46607, 0, 0, 1, 1, 46620, 0, 0, 1, 0, 0, '', 'Does not have Red Dragonblood Aura');
INSERT INTO conditions VALUES (17, 0, 46607, 0, 0, 1, 1, 46675, 0, 0, 1, 0, 0, '', 'Does not have Subdued Aura');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=46704;
INSERT INTO conditions VALUES (13, 1, 46704, 0, 0, 31, 0, 3, 26127, 0, 0, 0, 0, '', 'Target Nexus Drake Hatchling');
DELETE FROM spell_script_names WHERE spell_id=46620;
INSERT INTO spell_script_names VALUES (46620, 'spell_q11919_q11940_drake_hunt');
UPDATE creature_template SET speed_walk=2, speed_run=2, AIName='SmartAI', ScriptName='' WHERE entry=26127;
DELETE FROM smart_scripts WHERE entryorguid=26127 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid=26127*100 AND source_type=9;
INSERT INTO smart_scripts VALUES (26127, 0, 0, 0, 0, 0, 100, 0, 12000, 15000, 25000, 35000, 11, 36631, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Nexus Drake Hatchling - In Combat - Cast Netherbreath');
INSERT INTO smart_scripts VALUES (26127, 0, 1, 0, 0, 0, 100, 0, 5000, 10000, 20000, 35000, 11, 36513, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Nexus Drake Hatchling - In Combat - Cast Intangible Presence');
INSERT INTO smart_scripts VALUES (26127, 0, 2, 3, 8, 0, 100, 0, 46607, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Nexus Drake Hatchling - On Spell Hit - Store Target');
INSERT INTO smart_scripts VALUES (26127, 0, 3, 4, 61, 0, 100, 0, 0, 0, 0, 0, 86, 46620, 2, 12, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Nexus Drake Hatchling - On Spell Hit - Cross Cast Spell Red Dragonblood');
INSERT INTO smart_scripts VALUES (26127, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Nexus Drake Hatchling - On Spell Hit - Attack Start');
INSERT INTO smart_scripts VALUES (26127, 0, 5, 0, 25, 0, 100, 0, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Nexus Drake Hatchling - On Reset - Remove Unit Flags');
INSERT INTO smart_scripts VALUES (26127, 0, 6, 0, 25, 0, 100, 0, 0, 0, 0, 0, 91, 255, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Nexus Drake Hatchling - On Reset - Remove Bytes 1');
INSERT INTO smart_scripts VALUES (26127, 0, 7, 0, 38, 0, 100, 1, 1, 26127, 0, 0, 80, 26127*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Nexus Drake Hatchling - On Data Set - Start Script');
INSERT INTO smart_scripts VALUES (26127, 0, 8, 9, 8, 0, 100, 1, 46704, 0, 0, 0, 11, 46703, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Nexus Drake Hatchling - On Spell Hit - Cast Complete Immolation');
INSERT INTO smart_scripts VALUES (26127, 0, 9, 10, 61, 0, 100, 0, 0, 0, 0, 0, 90, 7, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Nexus Drake Hatchling - On Spell Hit - Set Bytes 1');
INSERT INTO smart_scripts VALUES (26127, 0, 10, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 4000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Nexus Drake Hatchling - On Spell Hit - Despawn');
INSERT INTO smart_scripts VALUES (26127*100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 33, 26175, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Nexus Drake Hatchling - Script9 - Killed Monster Credit');
INSERT INTO smart_scripts VALUES (26127*100, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 28, 46607, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Nexus Drake Hatchling - Script9 - Remove Aura');
INSERT INTO smart_scripts VALUES (26127*100, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 69, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 3573.02, 6651.63, 195.20, 0, 'Nexus Drake Hatchling - Script9 - Move To Pos');
INSERT INTO smart_scripts VALUES (26127*100, 9, 3, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 19, 26117, 30, 0, 0, 0, 0, 0, 'Nexus Drake Hatchling - Script9 - Say Line 0 Target');
INSERT INTO smart_scripts VALUES (26127*100, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 86, 46704, 0, 19, 26117, 30, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Nexus Drake Hatchling - Script9 - Cross Cast Raelorasz Fireball');
-- Escape from the Winterfin Caverns (11570)
UPDATE gameobject_template SET data11=0 WHERE entry=187369;
-- The Plains of Nasam (11652)
UPDATE creature_template SET speed_run=2.5 WHERE entry=25334;
UPDATE creature SET curhealth=44910, curmana=15775 WHERE id=25334;
-- Abduction (11590)
DELETE FROM conditions WHERE SourceTypeOrReferenceId=17 AND SourceEntry=45611;
INSERT INTO conditions VALUES (17, 0, 45611, 0, 0, 31, 1, 3, 25316, 0, 0, 0, 0, '', 'Requires Beryl Sorcerer');
INSERT INTO conditions VALUES (17, 0, 45611, 0, 0, 38, 1, 25, 4, 0, 0, 0, 0, '', 'Health LEQ 25%');
-- Orabus the Helmsman (11661)
DELETE FROM creature_text WHERE entry IN(32576, 32577, 32578, 32579, 32580);
INSERT INTO creature_text VALUES (32577, 0, 0, 'Aye, captain!', 14, 0, 100, 0, 0, 0, 0, 'Kvaldir Crewman');
INSERT INTO creature_text VALUES (32578, 0, 0, 'Aye, captain!', 14, 0, 100, 0, 0, 0, 0, 'Kvaldir Crewman');
INSERT INTO creature_text VALUES (32579, 0, 0, 'Aye, captain!', 14, 0, 100, 0, 0, 0, 0, 'Kvaldir Crewman');
INSERT INTO creature_text VALUES (32580, 0, 0, 'Aye, captain!', 14, 0, 100, 0, 0, 0, 0, 'Kvaldir Crewman');
INSERT INTO creature_text VALUES (32576, 0, 0, 'The Helmsman comes for you!', 14, 0, 100, 0, 0, 0, 0, 'Orabus the Helmsman');
INSERT INTO creature_text VALUES (32576, 1, 0, 'A child has found a new toy! Crewman, take this infant''s toy away!', 14, 0, 100, 0, 0, 0, 0, 'Orabus the Helmsman');
INSERT INTO creature_text VALUES (32576, 1, 1, 'Crewman, show this ant the might of the Kvaldir!', 14, 0, 100, 0, 0, 0, 0, 'Orabus the Helmsman');
INSERT INTO creature_text VALUES (32576, 1, 2, 'Crewman, tear this land walker apart!', 14, 0, 100, 0, 0, 0, 0, 'Orabus the Helmsman');
INSERT INTO creature_text VALUES (32576, 2, 0, 'Now you face Orabus, fool!', 14, 0, 100, 0, 0, 0, 0, 'Orabus the Helmsman');
UPDATE creature_template SET faction=35, unit_flags=33554432|256|512, flags_extra=2, VehicleId=91, InhabitType=4, AIName='SmartAI', ScriptName='' WHERE entry=27939;
DELETE FROM npc_spellclick_spells WHERE npc_entry=27939;
INSERT INTO npc_spellclick_spells VALUES (27939, 67830, 1, 0);
DELETE FROM vehicle_template_accessory WHERE entry=27939;
INSERT INTO vehicle_template_accessory VALUES(27939, 32576, 0, 0, 'Orabus the Helmsman', 8, 0);
INSERT INTO vehicle_template_accessory VALUES(27939, 32577, 1, 0, 'Kvaldir Crewman', 8, 0);
INSERT INTO vehicle_template_accessory VALUES(27939, 32578, 2, 0, 'Kvaldir Crewman', 8, 0);
INSERT INTO vehicle_template_accessory VALUES(27939, 32579, 3, 0, 'Kvaldir Crewman', 8, 0);
INSERT INTO vehicle_template_accessory VALUES(27939, 32580, 4, 0, 'Kvaldir Crewman', 8, 0);
DELETE FROM event_scripts WHERE id=16889;
INSERT INTO event_scripts VALUES (16889, 0, 10, 27939, 900000, 0, 2946.24, 7152.2, 0, 3.3);
DELETE FROM conditions WHERE SourceTypeOrReferenceId=17 AND SourceEntry=45703;
INSERT INTO conditions VALUES(17, 0, 45703, 0, 0, 29, 0, 27939, 150, 0, 1, 22, 0, '', 'Require no Helsman Ship nearby');
DELETE FROM waypoints WHERE entry=27939;
INSERT INTO waypoints VALUES (27939, 1, 2946.24, 7152.2, 0, ''),(27939, 2, 2931.26, 7153.2, 0, ''),(27939, 3, 2916.46, 7152.34, 0, ''),(27939, 4, 2897.57, 7149.77, 0, ''),(27939, 5, 2878.1, 7145.18, 0, ''),(27939, 6, 2866.07, 7138.85, 0, ''),(27939, 7, 2852.79, 7128.81, 0, ''),(27939, 8, 2839.89, 7115.62, 0, ''),(27939, 9, 2828.82, 7100.94, 0, ''),(27939, 10, 2821.8, 7083.66, 0, ''),(27939, 11, 2817.54, 7067.62, 0, ''),(27939, 12, 2815.58, 7057.83, 0, '');
DELETE FROM smart_scripts WHERE entryorguid=27939 AND source_type=0;
INSERT INTO smart_scripts VALUES (27939, 0, 0, 0, 37, 0, 100, 0, 0, 0, 0, 0, 48, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'The Helsman''s Ship - On AI Init - Set Active');
INSERT INTO smart_scripts VALUES (27939, 0, 1, 0, 60, 0, 100, 257, 0, 0, 0, 0, 53, 1, 27939, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'The Helsman''s Ship - On Update - Start WP');
INSERT INTO smart_scripts VALUES (27939, 0, 2, 3, 60, 0, 100, 257, 600000, 600000, 0, 0, 41, 0, 0, 0, 0, 0, 0, 19, 32577, 100, 0, 0, 0, 0, 0, 'The Helsman''s Ship - On Update - Despawn Target');
INSERT INTO smart_scripts VALUES (27939, 0, 3, 4, 61, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 19, 32578, 100, 0, 0, 0, 0, 0, 'The Helsman''s Ship - On Update - Despawn Target');
INSERT INTO smart_scripts VALUES (27939, 0, 4, 5, 61, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 19, 32579, 100, 0, 0, 0, 0, 0, 'The Helsman''s Ship - On Update - Despawn Target');
INSERT INTO smart_scripts VALUES (27939, 0, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 19, 32580, 100, 0, 0, 0, 0, 0, 'The Helsman''s Ship - On Update - Despawn Target');
INSERT INTO smart_scripts VALUES (27939, 0, 6, 7, 61, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 19, 32576, 100, 0, 0, 0, 0, 0, 'The Helsman''s Ship - On Update - Despawn Target');
INSERT INTO smart_scripts VALUES (27939, 0, 7, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'The Helsman''s Ship - On Update - Despawn Self');
INSERT INTO smart_scripts VALUES (27939, 0, 8, 0, 40, 0, 100, 0, 4, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 19, 32576, 30, 0, 0, 0, 0, 0, 'The Helsman''s Ship - On WP Reached - Talk Target');
INSERT INTO smart_scripts VALUES (27939, 0, 9, 0, 40, 0, 100, 0, 12, 0, 0, 0, 45, 1, 0, 0, 0, 0, 0, 19, 32576, 30, 0, 0, 0, 0, 0, 'The Helsman''s Ship - On WP Reached - Set Data');
INSERT INTO smart_scripts VALUES (27939, 0, 10, 0, 38, 0, 100, 0, 3, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'The Helsman''s Ship - On Data Set - Despawn');
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=32576;
DELETE FROM smart_scripts WHERE entryorguid=32576 AND source_type=0;
INSERT INTO smart_scripts VALUES (32576, 0, 0, 1, 38, 0, 100, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Orabus the Helmsman - On Data Set - Say Line 1');
INSERT INTO smart_scripts VALUES (32576, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 45, 2, 2, 0, 0, 0, 0, 19, 32577, 50, 0, 0, 0, 0, 0, 'Orabus the Helmsman - On Data Set - Set Data');
INSERT INTO smart_scripts VALUES (32576, 0, 2, 3, 38, 0, 100, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Orabus the Helmsman - On Data Set - Say Line 1');
INSERT INTO smart_scripts VALUES (32576, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 45, 2, 2, 0, 0, 0, 0, 19, 32578, 50, 0, 0, 0, 0, 0, 'Orabus the Helmsman - On Data Set - Set Data');
INSERT INTO smart_scripts VALUES (32576, 0, 4, 5, 38, 0, 100, 0, 1, 2, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Orabus the Helmsman - On Data Set - Say Line 1');
INSERT INTO smart_scripts VALUES (32576, 0, 5, 0, 61, 0, 100, 0, 0, 0, 0, 0, 45, 2, 2, 0, 0, 0, 0, 19, 32579, 50, 0, 0, 0, 0, 0, 'Orabus the Helmsman - On Data Set - Set Data');
INSERT INTO smart_scripts VALUES (32576, 0, 6, 7, 38, 0, 100, 0, 1, 3, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Orabus the Helmsman - On Data Set - Say Line 1');
INSERT INTO smart_scripts VALUES (32576, 0, 7, 0, 61, 0, 100, 0, 0, 0, 0, 0, 45, 2, 2, 0, 0, 0, 0, 19, 32580, 50, 0, 0, 0, 0, 0, 'Orabus the Helmsman - On Data Set - Set Data');
INSERT INTO smart_scripts VALUES (32576, 0, 8, 0, 38, 0, 100, 0, 1, 4, 0, 0, 1, 2, 2000, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Orabus the Helmsman - On Data Set - Say Line 2');
INSERT INTO smart_scripts VALUES (32576, 0, 9, 10, 52, 0, 100, 0, 2, 32576, 0, 0, 101, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 2802.18, 7054.91, -0.6, 4.67, 'Orabus the Helmsman - On Text Over - Set Home Position');
INSERT INTO smart_scripts VALUES (32576, 0, 10, 11, 61, 0, 100, 0, 0, 0, 0, 0, 132, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Orabus the Helmsman - On Text Over - Exit Vehicle');
INSERT INTO smart_scripts VALUES (32576, 0, 11, 0, 61, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 40, 0, 0, 0, 0, 0, 0, 'Orabus the Helmsman - On Text Over - Attack Start');
INSERT INTO smart_scripts VALUES (32576, 0, 12, 0, 6, 0, 100, 0, 0, 0, 0, 0, 45, 3, 0, 0, 0, 0, 0, 19, 27939, 150, 0, 0, 0, 0, 0, 'Orabus the Helmsman - On Death - Set Data');
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry IN(32577, 32578, 32579, 32580);
DELETE FROM smart_scripts WHERE entryorguid IN(32577, 32578, 32579, 32580) AND source_type=0;
INSERT INTO smart_scripts VALUES (32577, 0, 0, 7, 38, 0, 100, 0, 2, 2, 0, 0, 1, 0, 2000, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Kvaldir Crewman - On Data Set - Say Line 0');
INSERT INTO smart_scripts VALUES (32577, 0, 7, 0, 61, 0, 100, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 2802.18, 7054.91, -0.6, 4.67, 'Kvaldir Crewman - On Data Set - Set Home Position');
INSERT INTO smart_scripts VALUES (32577, 0, 1, 2, 52, 0, 100, 0, 0, 0, 0, 0, 132, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Kvaldir Crewman - On Text Over - Exit Vehicle');
INSERT INTO smart_scripts VALUES (32577, 0, 2, 4, 61, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 40, 0, 0, 0, 0, 0, 0, 'Kvaldir Crewman - On Text Over - Attack Start');
INSERT INTO smart_scripts VALUES (32577, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Kvaldir Crewman - On Text Over - Set Emote State');
INSERT INTO smart_scripts VALUES (32577, 0, 5, 0, 6, 0, 100, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 19, 32576, 150, 0, 0, 0, 0, 0, 'Kvaldir Crewman - On Death - Set Data');
INSERT INTO smart_scripts VALUES (32577, 0, 6, 0, 60, 0, 100, 257, 0, 0, 0, 0, 17, 419, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Kvaldir Crewman - On Update - Set Emote State');
INSERT INTO smart_scripts VALUES (32578, 0, 0, 7, 38, 0, 100, 0, 2, 2, 0, 0, 1, 0, 2000, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Kvaldir Crewman - On Data Set - Say Line 0');
INSERT INTO smart_scripts VALUES (32578, 0, 7, 0, 61, 0, 100, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 2802.18, 7054.91, -0.6, 4.67, 'Kvaldir Crewman - On Data Set - Set Home Position');
INSERT INTO smart_scripts VALUES (32578, 0, 1, 2, 52, 0, 100, 0, 0, 0, 0, 0, 132, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Kvaldir Crewman - On Text Over - Exit Vehicle');
INSERT INTO smart_scripts VALUES (32578, 0, 2, 4, 61, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 40, 0, 0, 0, 0, 0, 0, 'Kvaldir Crewman - On Text Over - Attack Start');
INSERT INTO smart_scripts VALUES (32578, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Kvaldir Crewman - On Text Over - Set Emote State');
INSERT INTO smart_scripts VALUES (32578, 0, 5, 0, 6, 0, 100, 0, 0, 0, 0, 0, 45, 1, 2, 0, 0, 0, 0, 19, 32576, 150, 0, 0, 0, 0, 0, 'Kvaldir Crewman - On Death - Set Data');
INSERT INTO smart_scripts VALUES (32578, 0, 6, 0, 60, 0, 100, 257, 0, 0, 0, 0, 17, 419, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Kvaldir Crewman - On Update - Set Emote State');
INSERT INTO smart_scripts VALUES (32579, 0, 0, 7, 38, 0, 100, 0, 2, 2, 0, 0, 1, 0, 2000, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Kvaldir Crewman - On Data Set - Say Line 0');
INSERT INTO smart_scripts VALUES (32579, 0, 7, 0, 61, 0, 100, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 2802.18, 7054.91, -0.6, 4.67, 'Kvaldir Crewman - On Data Set - Set Home Position');
INSERT INTO smart_scripts VALUES (32579, 0, 1, 2, 52, 0, 100, 0, 0, 0, 0, 0, 132, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Kvaldir Crewman - On Text Over - Exit Vehicle');
INSERT INTO smart_scripts VALUES (32579, 0, 2, 4, 61, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 40, 0, 0, 0, 0, 0, 0, 'Kvaldir Crewman - On Text Over - Attack Start');
INSERT INTO smart_scripts VALUES (32579, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Kvaldir Crewman - On Text Over - Set Emote State');
INSERT INTO smart_scripts VALUES (32579, 0, 5, 0, 6, 0, 100, 0, 0, 0, 0, 0, 45, 1, 3, 0, 0, 0, 0, 19, 32576, 150, 0, 0, 0, 0, 0, 'Kvaldir Crewman - On Death - Set Data');
INSERT INTO smart_scripts VALUES (32579, 0, 6, 0, 60, 0, 100, 257, 0, 0, 0, 0, 17, 419, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Kvaldir Crewman - On Update - Set Emote State');
INSERT INTO smart_scripts VALUES (32580, 0, 0, 7, 38, 0, 100, 0, 2, 2, 0, 0, 1, 0, 2000, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Kvaldir Crewman - On Data Set - Say Line 0');
INSERT INTO smart_scripts VALUES (32580, 0, 7, 0, 61, 0, 100, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 2802.18, 7054.91, -0.6, 4.67, 'Kvaldir Crewman - On Data Set - Set Home Position');
INSERT INTO smart_scripts VALUES (32580, 0, 1, 2, 52, 0, 100, 0, 0, 0, 0, 0, 132, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Kvaldir Crewman - On Text Over - Exit Vehicle');
INSERT INTO smart_scripts VALUES (32580, 0, 2, 4, 61, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 40, 0, 0, 0, 0, 0, 0, 'Kvaldir Crewman - On Text Over - Attack Start');
INSERT INTO smart_scripts VALUES (32580, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Kvaldir Crewman - On Text Over - Set Emote State');
INSERT INTO smart_scripts VALUES (32580, 0, 5, 0, 6, 0, 100, 0, 0, 0, 0, 0, 45, 1, 4, 0, 0, 0, 0, 19, 32576, 150, 0, 0, 0, 0, 0, 'Kvaldir Crewman - On Death - Set Data');
INSERT INTO smart_scripts VALUES (32580, 0, 6, 0, 60, 0, 100, 257, 0, 0, 0, 0, 17, 419, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Kvaldir Crewman - On Update - Set Emote State');
-- Help Those That Cannot Help Themselves (11876)
UPDATE item_template SET ScriptName='' WHERE entry=35228;
DELETE FROM conditions WHERE SourceTypeOrReferenceId=17 AND SourceEntry=46201;
INSERT INTO conditions VALUES (17, 0, 46201, 0, 0, 30, 0, 188022, 4, 0, 0, 22, 0, '', 'Requires Trap Nearby');
INSERT INTO conditions VALUES (17, 0, 46201, 0, 0, 29, 0, 25850, 5, 0, 0, 22, 0, '', 'Requires Mammoth Calf Nearby');
UPDATE gameobject SET id=188022 WHERE id IN(188022, 188024, 188025, 188026, 188027, 188030, 188031, 188032, 188033, 188034, 188035, 188036, 188038, 188039, 188040, 188041, 188042, 188043, 188044, 188028, 188029, 188037);
UPDATE gameobject_template SET AIName='SmartGameObjectAI', ScriptName='' WHERE entry=188022;
DELETE FROM smart_scripts WHERE entryorguid=188022 AND source_type=1;
INSERT INTO smart_scripts VALUES(188022, 1, 0, 1, 64, 0, 100, 0, 1, 0, 0, 0, 67, 1, 2000, 2000, 0, 0, 100, 1, 0, 0, 0, 0, 0, 0, 0, 'Mammoth Trap - On Gossip Hello - Create Timed Event');
INSERT INTO smart_scripts VALUES(188022, 1, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 67, 3, 200, 200, 0, 0, 100, 1, 0, 0, 0, 0, 0, 0, 0, 'Mammoth Trap - On Gossip Hello - Create Timed Event');
INSERT INTO smart_scripts VALUES(188022, 1, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 33, 25850, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Mammoth Trap - On Gossip Hello - Kill Credit');
INSERT INTO smart_scripts VALUES(188022, 1, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 67, 2, 10000, 10000, 0, 0, 100, 1, 0, 0, 0, 0, 0, 0, 0, 'Mammoth Trap - On Gossip Hello - Create Timed Event');
INSERT INTO smart_scripts VALUES(188022, 1, 4, 0, 59, 0, 100, 0, 1, 0, 0, 0, 45, 1, 0, 0, 0, 0, 0, 19, 25850, 10, 0, 0, 0, 0, 0, 'Mammoth Trap - On Timed Event - Set Data');
INSERT INTO smart_scripts VALUES(188022, 1, 5, 0, 59, 0, 100, 0, 2, 0, 0, 0, 99, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Mammoth Trap - On Timed Event - Set Loot State');
INSERT INTO smart_scripts VALUES(188022, 1, 6, 0, 59, 0, 100, 0, 3, 0, 0, 0, 131, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Mammoth Trap - On Timed Event - Set Gameobject State');
DELETE FROM creature_text WHERE entry=25850;
INSERT INTO creature_text VALUES (25850, 0, 0, '%s trumpets in approval!', 16, 0, 100, 0, 0, 0, 0, 'Trapped Mammoth Calf');
UPDATE creature_template SET unit_flags=256|512, flags_extra=2, AIName='SmartAI', ScriptName='' WHERE entry=25850;
DELETE FROM smart_scripts WHERE entryorguid=25850 AND source_type=0;
INSERT INTO smart_scripts VALUES (25850, 0, 0, 1, 38, 0, 100, 0, 1, 0, 0, 0, 91, 7, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Trapped Mammoth Calf - On Data Set - Remove Bytes0');
INSERT INTO smart_scripts VALUES (25850, 0, 1, 2, 61, 0, 100, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Trapped Mammoth Calf - On Data Set - Say Line 0');
INSERT INTO smart_scripts VALUES (25850, 0, 2, 3, 61, 0, 100, 0, 1, 0, 0, 0, 89, 12, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Trapped Mammoth Calf - On Data Set - Set Move Random');
INSERT INTO smart_scripts VALUES (25850, 0, 3, 0, 61, 0, 100, 0, 1, 0, 0, 0, 41, 15000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Trapped Mammoth Calf - On Data Set - Despawn');
-- We Strike! (11592)
REPLACE INTO smart_scripts VALUES (2533500, 9, 10, 0, 0, 0, 100, 0, 0, 0, 0, 0, 53, 1, 25335, 0, 0, 0, 2, 12, 1, 0, 0, 0, 0, 0, 0, 'Longrunner Proudhoof - Script - Start WP');

View File

@@ -0,0 +1,886 @@
-- -------------------------------------------
-- DRAGONBLIGHT
-- -------------------------------------------
-- Conversing With the Depths (12032)
UPDATE creature_template SET AIName="", ScriptName="" WHERE entry=26648;
DELETE FROM smart_scripts WHERE entryorguid=26648 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid=2664800 AND source_type=9;
REPLACE INTO creature_template VALUES (70100, 0, 0, 0, 0, 0, 11686, 0, 0, 0, 'Conversing With the Depths Trigger', '', '', 0, 1, 1, 0, 35, 0, 1, 1.14286, 1, 0, 1, 1, 0, 0, 1, 0, 0, 1, 6, 2048, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 3, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 130, 'npc_conversing_with_the_depths_trigger', 1);
DELETE FROM creature WHERE id=70100;
INSERT INTO creature VALUES(NULL, 70100, 571, 1, 1, 0, 0, 2452.56, 1721.64, 61, 0, 300, 0, 0, 1, 0, 0, 0, 0, 0);
UPDATE gameobject_template SET data0=1691, data1=12032, data2=0, data14=0, ScriptName="go_the_pearl_of_the_depths" WHERE entry=188422;
DELETE FROM event_scripts WHERE id=17612;
UPDATE quest_template SET EndText='', ObjectiveText1='Oacha\'noa\'s compulsion obeyed' WHERE Id=12032;
-- The End of the Line (12110)
-- The End of the Line (12107)
DELETE FROM creature_addon WHERE guid IN(SELECT guid FROM creature WHERE id=26887);
DELETE FROM creature WHERE id=26887;
INSERT INTO creature VALUES (NULL, 26887, 571, 1, 1, 0, 0, 3056.53, 1400.98, 121.901, 3.79364, 300, 0, 0, 42, 0, 0, 0, 0, 0);
UPDATE creature_template SET AIName="SmartAI", InhabitType=7 WHERE entry=26887;
DELETE FROM smart_scripts WHERE entryorguid IN(26887) AND source_type=0;
INSERT INTO smart_scripts VALUES(26887, 0, 0, 0, 8, 0, 100, 0, 50548, 0, 0, 0, 33, 26887, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On Spell Hit - Kill Monster Credit");
DELETE FROM conditions WHERE SourceTypeOrReferenceId IN(13, 17) AND SourceEntry IN(47634, 50548);
INSERT INTO conditions VALUES(13, 1, 47634, 0, 0, 31, 0, 3, 26887, 0, 0, 0, 0, '', 'Ley Line Focus Control Ring');
INSERT INTO conditions VALUES(13, 1, 50548, 0, 0, 31, 0, 3, 26887, 0, 0, 0, 0, '', 'Ley Line Focus Control Ring');
UPDATE creature_template SET AIName="SmartAI" WHERE entry=26889;
DELETE FROM smart_scripts WHERE entryorguid IN(26889) AND source_type=0;
INSERT INTO smart_scripts VALUES(26889, 0, 0, 0, 60, 0, 100, 0, 0, 0, 8000, 8000, 33, 26889, 0, 0, 0, 0, 0, 18, 30, 0, 0, 0, 0, 0, 0, "On Update - Kill Monster Credit");
UPDATE quest_template SET OfferRewardText="WHAT?!$B$B<The image before you distorts for a moment as the archmage attempts to regain his composure.>$B$BOf course, we should have guessed that this was what they were up to all along. Quickly, there's no time to waste.$B$BWyrmrest must be warned!" WHERE Id IN(12107, 12110);
-- Atop the Woodlands (12084)
-- Atop the Woodlands (12083)
DELETE FROM creature_addon WHERE guid IN(SELECT guid FROM creature WHERE id=26831);
DELETE FROM creature WHERE id=26831;
INSERT INTO creature VALUES(NULL, 26831, 571, 1, 1, 0, 0, 2896.58, 1817.61, 135.334, 1.61517, 600, 0, 0, 1, 0, 0, 0, 0, 0);
UPDATE creature_template SET AIName="SmartAI", InhabitType=7 WHERE entry=26831;
DELETE FROM smart_scripts WHERE entryorguid IN(26831) AND source_type=0;
INSERT INTO smart_scripts VALUES(26831, 0, 0, 0, 8, 0, 100, 0, 50547, 0, 0, 0, 33, 26831, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On Spell Hit - Kill Monster Credit");
DELETE FROM conditions WHERE SourceTypeOrReferenceId IN(13, 17) AND SourceEntry IN(47469, 50547);
INSERT INTO conditions VALUES(13, 1, 47469, 0, 0, 31, 0, 3, 26831, 0, 0, 0, 0, '', 'Atop the woodlands');
INSERT INTO conditions VALUES(13, 1, 50547, 0, 0, 31, 0, 3, 26831, 0, 0, 0, 0, '', 'Atop the woodlands');
-- The Forgotten Tale (12291)
DELETE FROM spell_linked_spell WHERE spell_trigger IN(48143, -48143, 48814, -48814);
INSERT INTO spell_linked_spell VALUES(48143, 48814, 2, 'Forgottens aura');
DELETE FROM smart_scripts WHERE entryorguid IN(27226, 27225, 27224, 27229) AND id IN (0, 1) AND source_type=0;
UPDATE creature_template SET AIName='SmartAI' WHERE entry IN(27226, 27225, 27224, 27229);
INSERT INTO smart_scripts VALUES (27226, 0, 0, 1, 62, 0, 100, 0, 9541, 0, 0, 0, 33, 27472, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Forgotten Peasant - On Gossip Select - Give Kill Credit');
INSERT INTO smart_scripts VALUES (27226, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Forgotten Peasant - On Gossip Select - Close Gossip');
INSERT INTO smart_scripts VALUES (27225, 0, 0, 1, 62, 0, 100, 0, 9543, 0, 0, 0, 33, 27471, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Forgotten Rifleman - On Gossip Select - Give Kill Credit');
INSERT INTO smart_scripts VALUES (27225, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Forgotten Rifleman - On Gossip Select - Close Gossip');
INSERT INTO smart_scripts VALUES (27224, 0, 0, 1, 62, 0, 100, 0, 9544, 0, 0, 0, 33, 27473, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Forgotten Knight - On Gossip Select - Give Kill Credit');
INSERT INTO smart_scripts VALUES (27224, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Forgotten Knight - On Gossip Select - Close Gossip');
INSERT INTO smart_scripts VALUES (27229, 0, 0, 1, 62, 0, 100, 0, 9545, 0, 0, 0, 33, 27474, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Forgotten Footman - On Gossip Select - Give Kill Credit');
INSERT INTO smart_scripts VALUES (27229, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Forgotten Footman - On Gossip Select - Close Gossip');
-- The Truth Shall Set Us Free (12301)
DELETE FROM creature_text WHERE entry IN(27224, 27225);
INSERT INTO creature_text VALUES(27224, 0, 0, 'But why?', 12, 0, 100, 0, 0, 0, 0, 'Forgotten Knight');
INSERT INTO creature_text VALUES(27224, 0, 1, 'It was all lies...', 12, 0, 100, 0, 0, 0, 0, 'Forgotten Knight');
INSERT INTO creature_text VALUES(27224, 0, 2, 'You gave us your word, betrayer!', 12, 0, 100, 0, 0, 0, 0, 'Forgotten Knight');
INSERT INTO creature_text VALUES(27224, 0, 3, 'Our prince has forsaken us! All is lost!', 12, 0, 100, 0, 0, 0, 0, 'Forgotten Knight');
INSERT INTO creature_text VALUES(27224, 0, 4, 'You lying wretch, Arthas! You doomed us all!', 12, 0, 100, 0, 0, 0, 0, 'Forgotten Knight');
INSERT INTO creature_text VALUES(27224, 0, 5, 'Our lives were worth far more than your blood feud...', 12, 0, 100, 0, 0, 0, 0, 'Forgotten Knight');
INSERT INTO creature_text VALUES(27225, 0, 0, 'But why?', 12, 0, 100, 0, 0, 0, 0, 'Forgotten Rifleman');
INSERT INTO creature_text VALUES(27225, 0, 1, 'It was all lies...', 12, 0, 100, 0, 0, 0, 0, 'Forgotten Rifleman');
INSERT INTO creature_text VALUES(27225, 0, 2, 'You gave us your word, betrayer!', 12, 0, 100, 0, 0, 0, 0, 'Forgotten Rifleman');
INSERT INTO creature_text VALUES(27225, 0, 3, 'Our prince has forsaken us! All is lost!', 12, 0, 100, 0, 0, 0, 0, 'Forgotten Rifleman');
INSERT INTO creature_text VALUES(27225, 0, 4, 'You lying wretch, Arthas! You doomed us all!', 12, 0, 100, 0, 0, 0, 0, 'Forgotten Rifleman');
INSERT INTO creature_text VALUES(27225, 0, 5, 'Our lives were worth far more than your blood feud...', 12, 0, 100, 0, 0, 0, 0, 'Forgotten Rifleman');
-- captain luc: 27476
DELETE FROM creature_text WHERE entry=27476;
INSERT INTO creature_text VALUES(27476, 0, 0, "I apologize, emissary, but the prince is away on an errand. What brings you to this desolate place?", 12, 0, 100, 0, 0, 12719, 0, "Captain Luc Valonforth");
INSERT INTO creature_text VALUES(27476, 1, 0, "We're to just pick up and leave?", 12, 0, 100, 0, 0, 12720, 0, "Captain Luc Valonforth");
INSERT INTO creature_text VALUES(27476, 2, 0, "To hell with the undead! We'll cut our way through the woods, men!", 12, 0, 100, 0, 0, 12721, 0, "Captain Luc Valonforth");
INSERT INTO creature_text VALUES(27476, 3, 0, "Well, milord, your father had our troops recalled at Lord Uther's request.", 12, 0, 100, 0, 0, 12722, 0, "Captain Luc Valonforth");
-- emissary: 27492
DELETE FROM creature_text WHERE entry=27492;
INSERT INTO creature_text VALUES(27492, 0, 0, "By royal edict, you men are to return to Lordaeron immediately. Lord Uther has convinced the king to recall this expedition.", 12, 0, 100, 0, 0, 12723, 0, "Alliance Emissary");
INSERT INTO creature_text VALUES(27492, 1, 0, "That's correct. My men report that the roads from here to the shore are held by the undead. You'll need to find an alternate route back to your ships.", 12, 0, 100, 0, 0, 12724, 0, "Alliance Emissary");
-- prince arthas: 27455
DELETE FROM creature_text WHERE entry=27455 AND groupid<4;
INSERT INTO creature_text VALUES(27455, 0, 0, "Captain, why are the guards not at their posts?", 12, 0, 100, 0, 0, 12725, 0, "Prince Arthas");
INSERT INTO creature_text VALUES(27455, 1, 0, "Uther had my troops recalled? Damn it! If my warriors abandon me, I'll never defeat Mal'Ganis. The ships must be burned before the men reach the shore!", 12, 0, 100, 0, 0, 12726, 0, "Prince Arthas");
INSERT INTO creature_text VALUES(27455, 2, 0, "Burned down to their frames! No one goes home until our job here is done!", 12, 0, 100, 0, 0, 12727, 0, "Prince Arthas");
INSERT INTO creature_text VALUES(27455, 3, 0, "Spare me, Muradin. You weren't there to see what Mal'Ganis did to my homeland.", 12, 0, 100, 0, 0, 12728, 0, "Prince Arthas");
-- muradin: 27480
DELETE FROM creature_text WHERE entry=27480 AND groupid<2;
INSERT INTO creature_text VALUES(27480, 0, 0, "Isn't that a bit much, lad?", 12, 0, 100, 0, 0, 12733, 0, "Muradin");
INSERT INTO creature_text VALUES(27480, 1, 0, "You lied to your men and betrayed the mercenaries who fought for you. What's happening to you, Arthas? Is vengeance all that's important to you?", 12, 0, 100, 0, 0, 12734, 0, "Muradin");
REPLACE INTO creature_template_addon VALUES(27224, 0, 2410, 0, 0, 0, ""); -- knight mount
DELETE FROM event_scripts WHERE id=18014;
INSERT INTO event_scripts VALUES(18014, 0, 10, 27476, 600000, 1, 3098.40, -1253.4, 11.44, 2.21);
UPDATE creature_template SET AIName="SmartAI" WHERE entry=27476;
DELETE FROM smart_scripts WHERE entryorguid IN(27476) AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid IN(27476*100) AND source_type=9;
INSERT INTO smart_scripts VALUES(27476, 0, 0, 1, 25, 0, 100, 0, 0, 0, 0, 0, 12, 27229, 4, 600000, 0, 0, 0, 8, 0, 0, 0, 3085.27, -1240.3, 10.5, 0.1, "Run summon list on reset");
INSERT INTO smart_scripts VALUES(27476, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 12, 27229, 4, 600000, 0, 0, 0, 8, 0, 0, 0, 3085.27, -1243.3, 10.5, 0.1, "Spawn npc linked");
INSERT INTO smart_scripts VALUES(27476, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 12, 27229, 4, 600000, 0, 0, 0, 8, 0, 0, 0, 3085.27, -1246.3, 10.5, 0.1, "Spawn npc linked");
INSERT INTO smart_scripts VALUES(27476, 0, 3, 4, 61, 0, 100, 0, 0, 0, 0, 0, 12, 27229, 4, 600000, 0, 0, 0, 8, 0, 0, 0, 3085.27, -1249.3, 10.5, 0.1, "Spawn npc linked");
INSERT INTO smart_scripts VALUES(27476, 0, 4, 5, 61, 0, 100, 0, 0, 0, 0, 0, 12, 27229, 4, 600000, 0, 0, 0, 8, 0, 0, 0, 3085.27, -1252.3, 10.5, 0.1, "Spawn npc linked");
INSERT INTO smart_scripts VALUES(27476, 0, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 12, 27229, 4, 600000, 0, 0, 0, 8, 0, 0, 0, 3085.27, -1255.3, 10.5, 0.1, "Spawn npc linked");
INSERT INTO smart_scripts VALUES(27476, 0, 6, 7, 61, 0, 100, 0, 0, 0, 0, 0, 12, 27229, 4, 600000, 0, 0, 0, 8, 0, 0, 0, 3080.27, -1241.8, 10.5, 0.1, "Spawn npc linked");
INSERT INTO smart_scripts VALUES(27476, 0, 7, 8, 61, 0, 100, 0, 0, 0, 0, 0, 12, 27229, 4, 600000, 0, 0, 0, 8, 0, 0, 0, 3080.27, -1244.8, 10.5, 0.1, "Spawn npc linked");
INSERT INTO smart_scripts VALUES(27476, 0, 8, 9, 61, 0, 100, 0, 0, 0, 0, 0, 12, 27229, 4, 600000, 0, 0, 0, 8, 0, 0, 0, 3080.27, -1247.8, 10.5, 0.1, "Spawn npc linked");
INSERT INTO smart_scripts VALUES(27476, 0, 9, 10, 61, 0, 100, 0, 0, 0, 0, 0, 12, 27229, 4, 600000, 0, 0, 0, 8, 0, 0, 0, 3080.27, -1250.8, 10.5, 0.1, "Spawn npc linked");
INSERT INTO smart_scripts VALUES(27476, 0, 10, 11, 61, 0, 100, 0, 0, 0, 0, 0, 12, 27229, 4, 600000, 0, 0, 0, 8, 0, 0, 0, 3080.27, -1253.8, 10.5, 0.1, "Spawn npc linked");
INSERT INTO smart_scripts VALUES(27476, 0, 11, 12, 61, 0, 100, 0, 0, 0, 0, 0, 12, 27492, 4, 600000, 0, 0, 0, 8, 0, 0, 0, 3095.9, -1242.9, 10.48, 5.02, "Spawn npc linked");
INSERT INTO smart_scripts VALUES(27476, 0, 12, 13, 61, 0, 100, 0, 0, 0, 0, 0, 12, 27224, 4, 600000, 0, 0, 0, 8, 0, 0, 0, 3090.35, -1237.3, 10.4, 5.1, "Spawn npc linked");
INSERT INTO smart_scripts VALUES(27476, 0, 13, 14, 61, 0, 100, 0, 0, 0, 0, 0, 12, 27224, 4, 600000, 0, 0, 0, 8, 0, 0, 0, 3102.8, -1235.1, 10.47, 4.5, "Spawn npc linked");
INSERT INTO smart_scripts VALUES(27476, 0, 14, 15, 61, 0, 100, 0, 0, 0, 0, 0, 12, 27225, 4, 600000, 0, 0, 0, 8, 0, 0, 0, 3106.25, -1235.9, 10.92, 4.35, "Spawn npc linked");
INSERT INTO smart_scripts VALUES(27476, 0, 15, 16, 61, 0, 100, 0, 0, 0, 0, 0, 12, 27225, 4, 600000, 0, 0, 0, 8, 0, 0, 0, 3097.0, -1235.6, 10.1, 4.78, "Spawn npc linked");
INSERT INTO smart_scripts VALUES(27476, 0, 16, 0, 61, 0, 100, 0, 0, 0, 0, 0, 80, 27476*100, 0, 2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "run timed actionlist linked");
INSERT INTO smart_scripts VALUES(27476*100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "say text");
INSERT INTO smart_scripts VALUES(27476*100, 9, 1, 0, 0, 0, 100, 0, 6500, 6500, 0, 0, 1, 0, 0, 0, 0, 0, 0, 11, 27492, 20, 0, 0, 0, 0, 0, "say text");
INSERT INTO smart_scripts VALUES(27476*100, 9, 2, 0, 0, 0, 100, 0, 11000, 11000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "say text");
INSERT INTO smart_scripts VALUES(27476*100, 9, 3, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 11, 27492, 20, 0, 0, 0, 0, 0, "say text");
INSERT INTO smart_scripts VALUES(27476*100, 9, 4, 0, 0, 0, 100, 0, 11000, 11000, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "say text");
INSERT INTO smart_scripts VALUES(27476*100, 9, 5, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 41, 4000, 0, 0, 0, 0, 0, 11, 27492, 20, 0, 0, 0, 0, 0, "force despawn target");
INSERT INTO smart_scripts VALUES(27476*100, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 130, 0, 0, 0, 0, 0, 0, 11, 27492, 20, 0, 3090, -1212, 12.2, 0, "move to pos target");
INSERT INTO smart_scripts VALUES(27476*100, 9, 7, 0, 0, 0, 100, 0, 0, 0, 0, 0, 5, 66, 0, 0, 0, 0, 0, 11, 27229, 50, 0, 0, 0, 0, 0, "play emote");
INSERT INTO smart_scripts VALUES(27476*100, 9, 8, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 4000, 0, 0, 0, 0, 0, 11, 27229, 50, 0, 0, 0, 0, 0, "force despawn target");
INSERT INTO smart_scripts VALUES(27476*100, 9, 9, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 130, 1, 0, 0, 0, 0, 0, 11, 27229, 50, 0, 3053, -1249, 11.4, 0, "move to pos target");
INSERT INTO smart_scripts VALUES(27476*100, 9, 10, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 12, 27455, 4, 300000, 0, 0, 0, 8, 0, 0, 0, 3093.39, -1248.5, 10.74, 5.5, "summon npc");
INSERT INTO smart_scripts VALUES(27476*100, 9, 11, 0, 0, 0, 100, 0, 0, 0, 0, 0, 12, 27480, 4, 300000, 0, 0, 0, 8, 0, 0, 0, 3098.93, -1246.46, 10.88, 4.48, "summon npc");
INSERT INTO smart_scripts VALUES(27476*100, 9, 12, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 11, 27455, 20, 0, 0, 0, 0, 0, "say text");
INSERT INTO smart_scripts VALUES(27476*100, 9, 13, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "say text");
INSERT INTO smart_scripts VALUES(27476*100, 9, 14, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 11, 27455, 20, 0, 0, 0, 0, 0, "say text");
INSERT INTO smart_scripts VALUES(27476*100, 9, 15, 0, 0, 0, 100, 0, 14000, 14000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 11, 27480, 20, 0, 0, 0, 0, 0, "say text");
INSERT INTO smart_scripts VALUES(27476*100, 9, 16, 0, 0, 0, 100, 0, 3500, 3500, 0, 0, 1, 2, 0, 0, 0, 0, 0, 11, 27455, 20, 0, 0, 0, 0, 0, "say text");
INSERT INTO smart_scripts VALUES(27476*100, 9, 17, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 11, 27480, 20, 0, 0, 0, 0, 0, "say text");
INSERT INTO smart_scripts VALUES(27476*100, 9, 18, 0, 0, 0, 100, 0, 9000, 9000, 0, 0, 1, 3, 0, 0, 0, 0, 0, 11, 27455, 20, 0, 0, 0, 0, 0, "say text");
INSERT INTO smart_scripts VALUES(27476*100, 9, 19, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 86, 48882, 2, 19, 27455, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Cast Spirits Redeemed");
INSERT INTO smart_scripts VALUES(27476*100, 9, 20, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 10000, 0, 0, 0, 0, 0, 11, 27224, 50, 0, 0, 0, 0, 0, "force despawn target");
INSERT INTO smart_scripts VALUES(27476*100, 9, 21, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 10000, 0, 0, 0, 0, 0, 11, 27225, 50, 0, 0, 0, 0, 0, "force despawn target");
INSERT INTO smart_scripts VALUES(27476*100, 9, 22, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 6000, 0, 0, 0, 0, 0, 11, 27455, 50, 0, 0, 0, 0, 0, "force despawn target");
INSERT INTO smart_scripts VALUES(27476*100, 9, 23, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 6000, 0, 0, 0, 0, 0, 11, 27480, 50, 0, 0, 0, 0, 0, "force despawn target");
INSERT INTO smart_scripts VALUES(27476*100, 9, 24, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 19, 27224, 30, 0, 0, 0, 0, 0, "say text");
INSERT INTO smart_scripts VALUES(27476*100, 9, 25, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 19, 27225, 30, 0, 0, 0, 0, 0, "say text");
INSERT INTO smart_scripts VALUES(27476*100, 9, 26, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 3, 27465, 0, 0, 0, 0, 0, 11, 27224, 30, 0, 0, 0, 0, 0, "Morph");
INSERT INTO smart_scripts VALUES(27476*100, 9, 27, 0, 0, 0, 100, 0, 0, 0, 0, 0, 3, 27465, 0, 0, 0, 0, 0, 11, 27225, 30, 0, 0, 0, 0, 0, "Morph");
INSERT INTO smart_scripts VALUES(27476*100, 9, 28, 0, 0, 0, 100, 0, 0, 0, 0, 0, 43, 0, 0, 0, 0, 0, 0, 11, 27224, 30, 0, 0, 0, 0, 0, "Dismount");
INSERT INTO smart_scripts VALUES(27476*100, 9, 29, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "force despawn");
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=48882;
INSERT INTO conditions VALUES(13, 1, 48882, 0, 0, 31, 0, 3, 27476, 0, 0, 0, 0, '', 'Target Ghosts');
INSERT INTO conditions VALUES(13, 1, 48882, 0, 1, 31, 0, 3, 27224, 0, 0, 0, 0, '', 'Target Ghosts');
INSERT INTO conditions VALUES(13, 1, 48882, 0, 2, 31, 0, 3, 27225, 0, 0, 0, 0, '', 'Target Ghosts');
INSERT INTO conditions VALUES(13, 1, 48882, 0, 3, 31, 0, 3, 27480, 0, 0, 0, 0, '', 'Target Ghosts');
INSERT INTO conditions VALUES(13, 1, 48882, 0, 4, 31, 0, 3, 27455, 0, 0, 0, 0, '', 'Target Ghosts');
INSERT INTO conditions VALUES(13, 1, 48882, 0, 5, 31, 0, 3, 27226, 0, 0, 0, 0, '', 'Target Ghosts');
INSERT INTO conditions VALUES(13, 2, 48882, 0, 0, 31, 0, 4, 0, 0, 0, 0, 0, '', 'Target Players');
-- Slim Pickings (12075)
UPDATE creature_template SET IconName="LootAll", npcflag=1, AIName="SmartAI" WHERE entry=26809;
DELETE FROM smart_scripts WHERE entryorguid=26809 AND source_type=0;
INSERT INTO smart_scripts VALUES(26809, 0, 0, 0, 25, 0, 100, 0, 0, 0, 0, 0, 11, 31261, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Ravaged Crystalline Ice Giant - On Spawn - Cast Permanent Feign Death (Root) on self');
INSERT INTO smart_scripts VALUES(26809, 0, 1, 2, 64, 0, 100, 0, 0, 0, 0, 0, 56, 36765, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Ravaged Crystalline Ice Giant - On Gossip Hello - Add Item");
INSERT INTO smart_scripts VALUES(26809, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Ravaged Crystalline Ice Giant - On Gossip Hello - Close Gossip");
-- No Place To Run (12261)
UPDATE creature_template SET AIName="SmartAI" WHERE entry IN(33016, 33017);
DELETE FROM smart_scripts WHERE entryorguid IN(33016, 33017) AND source_type=0;
INSERT INTO smart_scripts VALUES (33016, 0, 0, 0, 4, 0, 100, 1, 0, 0, 0, 0, 11, 51437, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Smoldering Skeleton - On Aggro - Cast 'Smoldering Bones'");
INSERT INTO smart_scripts VALUES (33016, 0, 1, 0, 54, 0, 100, 1, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Smoldering Skeleton - On Summoned - Attack Start");
INSERT INTO smart_scripts VALUES (33017, 0, 0, 0, 0, 0, 100, 0, 4000, 9000, 14000, 17000, 11, 51439, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Smoldering Construct - In Combat - Cast 'Backlash'");
INSERT INTO smart_scripts VALUES (33017, 0, 1, 0, 54, 0, 100, 1, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Smoldering Construct - On Summoned - Attack Start");
UPDATE creature_template SET unit_flags=4, AIName="SmartAI" WHERE entry=27430;
DELETE FROM smart_scripts WHERE entryorguid=27430 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid=2743000 AND source_type=9;
INSERT INTO smart_scripts VALUES (27430, 0, 0, 0, 11, 0, 100, 0, 0, 0, 0, 0, 80, 2743000, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Destructive Ward - On Respawn - Run Script");
INSERT INTO smart_scripts VALUES (2743000, 9, 0, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 11, 48715, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Destructive Ward - On Script - Cast 'Summon Smoldering Skeleton'");
INSERT INTO smart_scripts VALUES (2743000, 9, 1, 0, 0, 0, 100, 0, 15000, 15000, 0, 0, 11, 48715, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Destructive Ward - On Script - Cast 'Summon Smoldering Skeleton'");
INSERT INTO smart_scripts VALUES (2743000, 9, 2, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 11, 48735, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Destructive Ward - On Script - Cast 'Destructive Ward Powerup'");
INSERT INTO smart_scripts VALUES (2743000, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Destructive Ward - On Script - Say Line 0");
INSERT INTO smart_scripts VALUES (2743000, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 48733, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Destructive Ward - On Script - Cast 'Destructive Pulse'");
INSERT INTO smart_scripts VALUES (2743000, 9, 5, 0, 0, 0, 100, 0, 15000, 15000, 0, 0, 11, 48718, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Destructive Ward - On Script - Cast 'Summon Smoldering Construct'");
INSERT INTO smart_scripts VALUES (2743000, 9, 6, 0, 0, 0, 100, 0, 15000, 15000, 0, 0, 11, 48718, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Destructive Ward - On Script - Cast 'Summon Smoldering Construct'");
INSERT INTO smart_scripts VALUES (2743000, 9, 7, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 11, 48735, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Destructive Ward - On Script - Cast 'Destructive Ward Powerup'");
INSERT INTO smart_scripts VALUES (2743000, 9, 8, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Destructive Ward - On Script - Say Line 0");
INSERT INTO smart_scripts VALUES (2743000, 9, 9, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 48733, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Destructive Ward - On Script - Cast 'Destructive Pulse'");
INSERT INTO smart_scripts VALUES (2743000, 9, 10, 0, 0, 0, 100, 0, 25000, 25000, 0, 0, 11, 48715, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Destructive Ward - On Script - Cast 'Summon Smoldering Skeleton'");
INSERT INTO smart_scripts VALUES (2743000, 9, 11, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 48715, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Destructive Ward - On Script - Cast 'Summon Smoldering Skeleton'");
INSERT INTO smart_scripts VALUES (2743000, 9, 12, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 48718, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Destructive Ward - On Script - Cast 'Summon Smoldering Construct'");
INSERT INTO smart_scripts VALUES (2743000, 9, 13, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 11, 48735, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Destructive Ward - On Script - Cast 'Destructive Ward Powerup'");
INSERT INTO smart_scripts VALUES (2743000, 9, 14, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Destructive Ward - On Script - Say Line 1");
INSERT INTO smart_scripts VALUES (2743000, 9, 15, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 48734, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Destructive Ward - On Script - Cast 'Destructive Barrage'");
INSERT INTO smart_scripts VALUES (2743000, 9, 16, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 11, 48734, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Destructive Ward - On Script - Cast 'Destructive Barrage'");
INSERT INTO smart_scripts VALUES (2743000, 9, 17, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 11, 48734, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Destructive Ward - On Script - Cast 'Destructive Barrage'");
INSERT INTO smart_scripts VALUES (2743000, 9, 18, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 52409, 2, 0, 0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, "Destructive Ward - Destructive Ward Kill Credit");
INSERT INTO smart_scripts VALUES (2743000, 9, 19, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 1000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Destructive Ward - Despawn");
-- Mystery of the Infinite (12470)
UPDATE creature_template SET minlevel=80, maxlevel=80, ScriptName="npc_hourglass_of_eternity", unit_flags=4 WHERE entry=27840;
UPDATE creature_template SET minlevel=80, maxlevel=80, faction=35, ScriptName="npc_future_you" WHERE entry=27899;
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=49889;
INSERT INTO conditions VALUES(13, 7, 49889, 0, 0, 31, 0, 3, 27899, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(13, 7, 49889, 0, 1, 31, 0, 3, 32331, 0, 0, 0, 0, '', ''); -- past you
UPDATE creature_template SET faction=2111 WHERE entry IN(27897, 27898, 27896, 27900);
-- Mystery of the Infinite, Redux (13343)
UPDATE creature_template SET minlevel=80, maxlevel=80, ScriptName="npc_hourglass_of_eternity", unit_flags=4 WHERE entry=32327;
UPDATE creature_template SET minlevel=80, maxlevel=80, faction=35, ScriptName="npc_future_you" WHERE entry=32331; -- past you, use same script
-- Defending Wyrmrest Temple (12372)
REPLACE INTO gossip_menu_option VALUES(9568, 0, 0, 'We need to get into the fight. Are you ready?', 1, 1, 0, 0, 0, 0, '');
DELETE FROM spell_script_names WHERE spell_id IN(49213, 49370);
UPDATE creature_template SET speed_run=3.5, faction=2067, unit_flags=0, HoverHeight=4, InhabitType=5, ScriptName='', AIName='SmartAI', spell1=49161, spell2=49243, spell3=49263, spell4=49264, spell5=49367 WHERE entry=27629; -- Wyrmrest Defender
REPLACE INTO creature_template_addon VALUES(27629, 0, 0, 50331648, 1, 0, ""); -- Wyrmrest Defender
UPDATE creature_template SET InhabitType=4, AIName="SmartAI" WHERE entry=27698;
DELETE FROM smart_scripts WHERE entryorguid IN(27698) AND source_type=0;
INSERT INTO smart_scripts VALUES (27698, 0, 0, 0, 8, 0, 100, 0, 49370, 0, 0, 0, 33, 27698, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Kill credit on spell hit');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry IN(49367, 49370);
INSERT INTO conditions VALUES(13, 1, 49367, 0, 0, 31, 0, 3, 27698, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(13, 1, 49370, 0, 0, 31, 0, 3, 27698, 0, 0, 0, 0, '', '');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=15 AND SourceGroup IN(9568);
INSERT INTO conditions VALUES(15, 9568, 0, 0, 0, 9, 0, 12372, 0, 0, 0, 0, 0, '', 'Show gossip option if player has quest');
DELETE FROM smart_scripts WHERE entryorguid IN(27629) AND source_type=0;
INSERT INTO smart_scripts VALUES (27629, 0, 0, 0, 25, 0, 100, 0, 0, 0, 0, 0, 60, 1, 350, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Reset - Set Flight');
INSERT INTO smart_scripts VALUES (27629, 0, 1, 2, 62, 0, 100, 0, 9568, 0, 0, 0, 85, 49207, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Gossip Select - Invoker cast');
INSERT INTO smart_scripts VALUES (27629, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Linked - Close gossip');
INSERT INTO smart_scripts VALUES (27629, 0, 3, 0, 29, 0, 100, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Set Combat Move On Charmed');
-- TC script remove
DELETE FROM spell_script_names WHERE spell_id=50287;
-- A Means to an End (12240)
DELETE FROM event_scripts WHERE id=17868;
UPDATE creature_template SET flags_extra=flags_extra|128 WHERE entry=27353;
UPDATE creature_template SET faction=67 WHERE entry=27238;
-- The Cleansing Of Jintha'kalar (12545)
UPDATE creature_template SET unit_flags=32768 WHERE entry=26965;
DELETE FROM creature_addon WHERE guid IN(SELECT guid FROM creature WHERE id IN(26943));
DELETE FROM creature WHERE id IN(26943);
INSERT INTO creature VALUES (NULL, 26943, 571, 1, 1, 0, 0, 4795.55, -1166.66, 170.544, 4.68933, 600, 0, 0, 10282, 0, 0, 0, 0, 0);
INSERT INTO creature VALUES (NULL, 26943, 571, 1, 1, 0, 0, 4519.6, -1377.45, 156.684, 6.27583, 600, 0, 0, 10282, 0, 0, 0, 0, 0);
INSERT INTO creature VALUES (NULL, 26943, 571, 1, 1, 0, 0, 4843.07, -1252.74, 168.051, 3.57407, 600, 0, 0, 10282, 0, 0, 0, 0, 0);
-- An End And A Beginning (12473)
UPDATE quest_template SET PrevQuestId=12472 WHERE Id=12473;
-- High Commander Halford Wyrmbane (12174)
UPDATE creature_template SET npcflag=8195, gossip_menu_id=30211 WHERE entry=26881;
REPLACE INTO gossip_menu_option VALUES(30211, 0, 2, 'Show me where I can fly.', 4, 8192, 0, 0, 0, 0, '');
REPLACE INTO gossip_menu_option VALUES(30211, 1, 0, "I Need a ride to Wintergarde keep.", 1, 1, 0, 0, 0, 0, "");
REPLACE INTO smart_scripts VALUES(26881, 0, 3, 0, 62, 0, 100, 0, 30211, 1, 0, 0, 11, 48013, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On Gossip Select - Cast at Invoker');
DELETE FROM conditions WHERE SourceGroup=30211 AND SourceTypeOrReferenceId=15;
INSERT INTO conditions VALUES(15, 30211, 1, 0, 0, 28, 0, 12174, 0, 0, 0, 0, 0, '', 'Show gossip option if player has quest');
-- The Chain Gun And You (12457)
UPDATE creature SET curhealth=8982 WHERE id=27714;
UPDATE creature_template SET unit_flags=2+4, spell1=49190, spell2=49550, AIName='NullCreatureAI', ScriptName='' WHERE entry=27714;
DELETE FROM creature WHERE id=27712;
INSERT INTO creature VALUES (133301, 27712, 571, 1, 1, 24993, 0, 3657.45, -1229.03, 98.3436, 2.25148, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133284, 27712, 571, 1, 1, 24993, 0, 3661.91, -1228.71, 98.0911, 2.87594, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133283, 27712, 571, 1, 1, 24994, 0, 3658.86, -1242.07, 98.0911, 1.67054, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133282, 27712, 571, 1, 1, 24993, 0, 3650.95, -1227.94, 98.26, 1.0164, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133281, 27712, 571, 1, 1, 24995, 0, 3662.97, -1233.61, 98.0911, 1.91605, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133280, 27712, 571, 1, 1, 24993, 0, 3691.74, -1169.81, 98.0913, 4.3188, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133279, 27712, 571, 1, 1, 24994, 0, 3640.73, -1226.3, 98.0911, 0.934767, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133278, 27712, 571, 1, 1, 24995, 0, 3639.22, -1232.48, 98.0911, 4.50294, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133277, 27712, 571, 1, 1, 24994, 0, 3662.98, -1230.15, 98.0911, 1.34507, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133276, 27712, 571, 1, 1, 24995, 0, 3641.21, -1248.71, 98.26, 0.858347, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133275, 27712, 571, 1, 1, 24995, 0, 3694.21, -1131.96, 97.6497, 1.28324, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133274, 27712, 571, 1, 1, 24993, 0, 3700.21, -1129.71, 97.6494, 4.65467, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133285, 27712, 571, 1, 1, 24992, 0, 3695.77, -1144.35, 97.6498, 1.29109, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133286, 27712, 571, 1, 1, 24993, 0, 3669.51, -1217.07, 98.9089, 0.659359, 8, 5, 0, 399, 0, 1, 0, 0, 0),
(133300, 27712, 571, 1, 1, 24995, 0, 3651.97, -1226.94, 98.3436, 4.36332, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133299, 27712, 571, 1, 1, 24995, 0, 3701.54, -1140.65, 97.6496, 4.33361, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133298, 27712, 571, 1, 1, 24993, 0, 3694.7, -1158.48, 97.733, 2.04204, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133297, 27712, 571, 1, 1, 24993, 0, 3676.08, -1161.85, 98.1747, 5.91667, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133295, 27712, 571, 1, 1, 24994, 0, 3662.68, -1220.91, 98.1747, 1.69297, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133294, 27712, 571, 1, 1, 24995, 0, 3664.91, -1226.92, 98.1747, 2.58309, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133293, 27712, 571, 1, 1, 24995, 0, 3681.92, -1166.77, 98.1747, 2.04204, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133291, 27712, 571, 1, 1, 24993, 0, 3684.38, -1159.51, 97.733, 3.00197, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133290, 27712, 571, 1, 1, 24992, 0, 3690.39, -1166.51, 98.1747, 3.33358, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133288, 27712, 571, 1, 1, 24994, 0, 3657.7, -1221.01, 98.2548, 4.11898, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133287, 27712, 571, 1, 1, 24995, 0, 3689.03, -1140.65, 97.6495, 4.33361, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133273, 27712, 571, 1, 1, 24992, 0, 3699.32, -1130.5, 97.6494, 1.13592, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133272, 27712, 571, 1, 1, 24993, 0, 3701.15, -1130.6, 97.6494, 1.79381, 8, 5, 0, 399, 0, 1, 0, 0, 0),
(133258, 27712, 571, 1, 1, 24994, 0, 3673.33, -1138.08, 98.0911, 2.29077, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133257, 27712, 571, 1, 1, 24992, 0, 3689.55, -1126.04, 98.0911, 4.35486, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133256, 27712, 571, 1, 1, 24994, 0, 3711.31, -1156.57, 98.0911, 6.22378, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133255, 27712, 571, 1, 1, 24992, 0, 3674.84, -1139.19, 98.0911, 2.37743, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133254, 27712, 571, 1, 1, 24993, 0, 3682.59, -1122.67, 98.0911, 3.01946, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133253, 27712, 571, 1, 1, 24994, 0, 3683.98, -1123.27, 98.0911, 2.94569, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133252, 27712, 571, 1, 1, 24993, 0, 3717.33, -1142.87, 98.0911, 3.63761, 8, 5, 0, 399, 0, 1, 0, 0, 0),(101977, 27712, 571, 1, 1, 24994, 0, 3655.57, -1216.23, 98.1747, 0.017453, 8, 5, 0, 399, 0, 1, 0, 0, 0),(101976, 27712, 571, 1, 1, 24995, 0, 3650.91, -1219.34, 98.1747, 0.349066, 8, 5, 0, 399, 0, 1, 0, 0, 0),(101975, 27712, 571, 1, 1, 24994, 0, 3649.39, -1213.72, 98.1747, 5.84685, 8, 5, 0, 399, 0, 1, 0, 0, 0),(101973, 27712, 571, 1, 1, 24993, 0, 3656.28, -1262.44, 98.0912, 1.12122, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133259, 27712, 571, 1, 1, 24992, 0, 3701.25, -1129.27, 97.8784, 0.590263, 8, 5, 0, 399, 0, 1, 0, 0, 0),
(133260, 27712, 571, 1, 1, 24993, 0, 3650.1, -1259.2, 98.0911, 2.80981, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133271, 27712, 571, 1, 1, 24993, 0, 3635.19, -1256.17, 98.0911, 4.22659, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133270, 27712, 571, 1, 1, 24993, 0, 3636.81, -1241.15, 98.0911, 4.84643, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133269, 27712, 571, 1, 1, 24993, 0, 3681.24, -1156.84, 97.6495, 4.27953, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133268, 27712, 571, 1, 1, 24993, 0, 3644.47, -1246.31, 98.26, 2.87991, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133267, 27712, 571, 1, 1, 24992, 0, 3699.48, -1157.94, 98.0914, 4.08621, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133266, 27712, 571, 1, 1, 24993, 0, 3637.64, -1254.92, 98.0911, 2.2441, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133265, 27712, 571, 1, 1, 24994, 0, 3640.11, -1239.35, 98.0911, 4.02738, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133264, 27712, 571, 1, 1, 24992, 0, 3698.48, -1153.14, 97.9028, 4.27953, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133263, 27712, 571, 1, 1, 24995, 0, 3651, -1260.85, 98.0911, 4.19283, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133262, 27712, 571, 1, 1, 24995, 0, 3658.88, -1249.62, 98.0911, 0.746046, 8, 5, 0, 399, 0, 1, 0, 0, 0),(133261, 27712, 571, 1, 1, 24992, 0, 3690.16, -1144.33, 97.6508, 4.33844, 8, 5, 0, 399, 0, 1, 0, 0, 0),(101972, 27712, 571, 1, 1, 24994, 0, 3653.13, -1262.09, 98.0912, 5.43792, 8, 5, 0, 399, 0, 1, 0, 0, 0);
UPDATE creature_template SET minlevel=70, maxlevel=70, AIName='', ScriptName='npc_mindless_ghoul' WHERE entry=27712;
UPDATE creature_template SET AIName='SmartAI' WHERE entry=27788;
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=49554;
INSERT INTO conditions VALUES (13, 1, 49554, 0, 0, 31, 0, 3, 27795, 0, 0, 0, 0, '', 'Summon Injured Soldier - Target summon point');
UPDATE creature_template SET speed_walk=1.8, speed_run=1.2, AIName='', ScriptName='npc_injured_7th_legion_soldier' WHERE entry=27788;
DELETE FROM creature_text WHERE entry=27788;
INSERT INTO creature_text VALUES(27788, 0, 0, "It's a good thing you came along, ally! We were done for!", 12, 0, 100, 0, 0, 0, 0, 'Injured 7th Legion Soldier');
INSERT INTO creature_text VALUES(27788, 0, 1, "I was almost ghoul bait! Thanks for the rescue!", 12, 0, 100, 0, 0, 0, 0, 'Injured 7th Legion Soldier');
INSERT INTO creature_text VALUES(27788, 0, 2, "Thanks for the cover fire! It's a MADHOUSE down there!", 12, 0, 100, 0, 0, 0, 0, 'Injured 7th Legion Soldier');
INSERT INTO creature_text VALUES(27788, 0, 3, "Wow, I thought I was a goner! Thanks, friend!", 12, 0, 100, 0, 0, 0, 0, 'Injured 7th Legion Soldier');
DELETE FROM waypoint_data WHERE id BETWEEN 277880 AND 277889;
INSERT INTO `waypoint_data` VALUES (277880, 1, 3650.24, -1257.28, 98.0921, 0, 0, 0, 0, 100, 0),(277880, 2, 3640.95, -1241.38, 98.0911, 0, 0, 0, 0, 100, 0),(277880, 3, 3644.72, -1235.74, 98.0911, 0, 0, 0, 0, 100, 0),(277880, 4, 3662.96, -1231.7, 98.0914, 0, 0, 0, 0, 100, 0),(277880, 5, 3666, -1224.47, 98.0914, 0, 0, 0, 0, 100, 0),(277880, 6, 3651.83, -1209.43, 98.0912, 0, 0, 0, 0, 100, 0),(277880, 7, 3654.49, -1204.83, 102.337, 0, 0, 0, 0, 100, 0),(277880, 8, 3656.83, -1200.76, 102.337, 0, 0, 0, 0, 100, 0),(277880, 9, 3666.77, -1203.91, 102.337, 0, 0, 0, 0, 100, 0),(277881, 1, 3639.36, -1253.07, 98.2604, 0, 0, 0, 0, 100, 0),(277881, 2, 3648.61, -1249.43, 98.2604, 0, 0, 0, 0, 100, 0),
(277881, 3, 3652.38, -1242.8, 98.1897, 0, 0, 0, 0, 100, 0),(277881, 4, 3645.7, -1230.41, 98.0914, 0, 0, 0, 0, 100, 0),(277881, 5, 3648.69, -1220.64, 98.0914, 0, 0, 0, 0, 100, 0),(277881, 6, 3662.47, -1222.67, 98.0912, 0, 0, 0, 0, 100, 0),(277881, 7, 3669.98, -1217.53, 98.2395, 0, 0, 0, 0, 100, 0),(277881, 8, 3672.45, -1213.6, 102.337, 0, 0, 0, 0, 100, 0),(277881, 9, 3668.84, -1203.87, 102.337, 0, 0, 0, 0, 100, 0),(277882, 1, 3640.23, -1252.51, 98.2602, 0, 0, 0, 0, 100, 0),(277882, 2, 3638.81, -1244.45, 98.0913, 0, 0, 0, 0, 100, 0),(277882, 3, 3652.51, -1245.33, 98.0916, 0, 0, 0, 0, 100, 0),(277882, 4, 3645.81, -1228.79, 98.0911, 0, 0, 0, 0, 100, 0),
(277882, 5, 3646.91, -1221.16, 98.0911, 0, 0, 0, 0, 100, 0),(277882, 6, 3651.19, -1208.85, 98.0912, 0, 0, 0, 0, 100, 0),(277882, 7, 3653.69, -1204.3, 102.337, 0, 0, 0, 0, 100, 0),(277882, 8, 3666.73, -1198.93, 102.337, 0, 0, 0, 0, 100, 0),(277882, 9, 3669.05, -1194.85, 102.337, 0, 0, 0, 0, 100, 0),(277883, 1, 3644.8, -1255.66, 98.2601, 0, 0, 0, 0, 100, 0),(277883, 2, 3653.37, -1252.38, 98.0913, 0, 0, 0, 0, 100, 0),(277883, 3, 3656.01, -1244.34, 98.0913, 0, 0, 0, 0, 100, 0),(277883, 4, 3648.36, -1239.15, 98.2601, 0, 0, 0, 0, 100, 0),(277883, 5, 3651.54, -1233.95, 98.2601, 0, 0, 0, 0, 100, 0),(277883, 6, 3659.05, -1231.06, 98.0912, 0, 0, 0, 0, 100, 0),(277883, 7, 3670, -1217.95, 98.0914, 0, 0, 0, 0, 100, 0),
(277883, 8, 3672.56, -1213.75, 102.337, 0, 0, 0, 0, 100, 0),(277883, 9, 3669.64, -1203.59, 102.337, 0, 0, 0, 0, 100, 0),(277884, 1, 3635.4, -1254.41, 98.0913, 0, 0, 0, 0, 100, 0),(277884, 2, 3640.49, -1250.57, 98.2604, 0, 0, 0, 0, 100, 0),(277884, 3, 3651.34, -1245.51, 98.1506, 0, 0, 0, 0, 100, 0),(277884, 4, 3658.83, -1234.1, 98.0914, 0, 0, 0, 0, 100, 0),(277884, 5, 3655.83, -1225.59, 98.2603, 0, 0, 0, 0, 100, 0),(277884, 6, 3649.74, -1220.32, 98.0913, 0, 0, 0, 0, 100, 0),(277884, 7, 3652.36, -1209.57, 98.0913, 0, 0, 0, 0, 100, 0),(277884, 8, 3654.66, -1204.91, 102.337, 0, 0, 0, 0, 100, 0),(277884, 9, 3662.08, -1199.17, 102.337, 0, 0, 0, 0, 100, 0),
(277885, 1, 3695.43, -1130.72, 97.6496, 0, 0, 0, 0, 100, 0),(277885, 2, 3704.19, -1139.78, 97.7463, 0, 0, 0, 0, 100, 0),(277885, 3, 3685.87, -1142.25, 98.0361, 0, 0, 0, 0, 100, 0),(277885, 4, 3678.45, -1153.53, 98.0913, 0, 0, 0, 0, 100, 0),(277885, 5, 3688.78, -1162.77, 97.6495, 0, 0, 0, 0, 100, 0),(277885, 6, 3690.45, -1174.84, 98.0913, 0, 0, 0, 0, 100, 0),(277885, 7, 3688.7, -1179.5, 102.337, 0, 0, 0, 0, 100, 0),(277885, 8, 3681.29, -1183, 102.337, 0, 0, 0, 0, 100, 0),(277885, 9, 3675.84, -1181.45, 102.337, 0, 0, 0, 0, 100, 0),(277886, 1, 3691.22, -1129.49, 98.0914, 0, 0, 0, 0, 100, 0),
(277886, 2, 3693.41, -1134.87, 97.6496, 0, 0, 0, 0, 100, 0),(277886, 3, 3685.94, -1137.45, 98.0913, 0, 0, 0, 0, 100, 0),(277886, 4, 3699.29, -1150.32, 97.7789, 0, 0, 0, 0, 100, 0),(277886, 5, 3698.13, -1161.11, 98.0913, 0, 0, 0, 0, 100, 0),(277886, 6, 3682.01, -1159.89, 97.6496, 0, 0, 0, 0, 100, 0),(277886, 7, 3671.81, -1166.09, 98.0914, 0, 0, 0, 0, 100, 0),(277886, 8, 3670.26, -1170.47, 102.337, 0, 0, 0, 0, 100, 0),(277886, 9, 3675.32, -1183.14, 102.337, 0, 0, 0, 0, 100, 0),(277887, 1, 3704.6, -1129.81, 98.0898, 0, 0, 0, 0, 100, 0),(277887, 2, 3704.27, -1136.94, 97.6496, 0, 0, 0, 0, 100, 0),(277887, 3, 3690.61, -1138.77, 97.6496, 0, 0, 0, 0, 100, 0),
(277887, 4, 3686.72, -1145.66, 97.6496, 0, 0, 0, 0, 100, 0),(277887, 5, 3694.59, -1157.06, 97.6496, 0, 0, 0, 0, 100, 0),(277887, 6, 3681.53, -1160.79, 97.6496, 0, 0, 0, 0, 100, 0),(277887, 7, 3672.6, -1166.6, 98.0935, 0, 0, 0, 0, 100, 0),(277887, 8, 3670.62, -1170.74, 102.337, 0, 0, 0, 0, 100, 0),(277887, 9, 3673.96, -1182.89, 102.337, 0, 0, 0, 0, 100, 0),(277888, 1, 3710.12, -1132.58, 98.0911, 0, 0, 0, 0, 100, 0),(277888, 2, 3706.55, -1139.87, 98.0911, 0, 0, 0, 0, 100, 0),(277888, 3, 3692.69, -1139.61, 97.6497, 0, 0, 0, 0, 100, 0),(277888, 4, 3691.47, -1147.42, 97.6497, 0, 0, 0, 0, 100, 0),(277888, 5, 3683.41, -1151.16, 97.7241, 0, 0, 0, 0, 100, 0),
(277888, 6, 3688.16, -1164.25, 97.6498, 0, 0, 0, 0, 100, 0),(277888, 7, 3691.1, -1175.42, 98.0946, 0, 0, 0, 0, 100, 0),(277888, 8, 3688.95, -1179.22, 102.336, 0, 0, 0, 0, 100, 0),(277888, 9, 3677.87, -1185.36, 102.336, 0, 0, 0, 0, 100, 0),(277889, 1, 3701.55, -1129.69, 97.7581, 0, 0, 0, 0, 100, 0),(277889, 2, 3696.77, -1136.25, 97.6496, 0, 0, 0, 0, 100, 0),(277889, 3, 3696.65, -1143.11, 97.6496, 0, 0, 0, 0, 100, 0),(277889, 4, 3688.99, -1148.67, 97.6496, 0, 0, 0, 0, 100, 0),(277889, 5, 3681.69, -1152.23, 97.8987, 0, 0, 0, 0, 100, 0),(277889, 6, 3687.9, -1160.7, 97.6496, 0, 0, 0, 0, 100, 0),
(277889, 7, 3690.91, -1175.33, 98.0913, 0, 0, 0, 0, 100, 0),(277889, 8, 3688.86, -1179.52, 102.337, 0, 0, 0, 0, 100, 0),(277889, 9, 3677.89, -1183.37, 102.337, 0, 0, 0, 0, 100, 0);
-- fix riflemans
DELETE FROM smart_scripts WHERE entryorguid=27791 AND source_type=0 AND event_type=4;
REPLACE INTO smart_scripts VALUES (27791, 0, 3, 0, 25, 0, 100, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Reset - Disable Combat Move');
-- Return to the Earth (12417)
-- Return to the Earth (12449)
DELETE FROM creature_addon WHERE guid IN(SELECT guid FROM creature WHERE id=27530 AND position_z > 100);
DELETE FROM creature WHERE id=27530 AND position_z > 100;
REPLACE INTO creature_template_addon VALUES (27530, 0, 0, 0, 0, 0, '49132 55795 61204 49334');
UPDATE creature_template SET AIName='SmartAI' WHERE entry=27530;
DELETE FROM smart_scripts WHERE entryorguid=27530 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid=27530*100 AND source_type=9;
INSERT INTO smart_scripts VALUES (27530, 0, 0, 1, 8, 0, 100, 0, 49349, 0, 0, 0, 11, 49364, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On spell hit - Cast Spell');
INSERT INTO smart_scripts VALUES (27530, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 41, 10000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Linked - Despawn');
INSERT INTO smart_scripts VALUES (27530, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 80, 27530*100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Linked - Script9');
INSERT INTO smart_scripts VALUES (27530, 0, 3, 0, 60, 0, 100, 0, 5000, 5000, 30000, 30000, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Update - Set Visible');
INSERT INTO smart_scripts VALUES (27530*100, 9, 0, 0, 0, 0, 100, 0, 8000, 8000, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - hide');
DELETE FROM conditions WHERE SourceEntry=49349 AND SourceTypeOrReferenceId IN(17);
INSERT INTO conditions VALUES(17, 0, 49349, 0, 0, 31, 1, 3, 27530, 0, 0, 0, 0, '', 'Target Ruby Keeper');
INSERT INTO conditions VALUES(17, 0, 49349, 0, 0, 1, 1, 49364, 0, 0, 1, 0, 0, '', 'Target without aura');
DELETE FROM creature_text WHERE entry=27539;
INSERT INTO creature_text VALUES(27539, 0, 0, "Every warrior that falls is one more for our mighty army. There is no victory against us.", 14, 0, 100, 0, 0, 0, 0, 'Frigid Necromancer');
INSERT INTO creature_text VALUES(27539, 0, 1, "Rise... rise and feast on their flesh!", 14, 0, 100, 0, 0, 0, 0, 'Frigid Necromancer');
INSERT INTO creature_text VALUES(27539, 0, 2, "The time of the dragons is over...", 14, 0, 100, 0, 0, 0, 0, 'Frigid Necromancer');
INSERT INTO creature_text VALUES(27539, 0, 3, "There is no hope. You will fail.", 14, 0, 100, 0, 0, 0, 0, 'Frigid Necromancer');
INSERT INTO creature_text VALUES(27539, 0, 4, "You will find no peace in death, wyrms!", 14, 0, 100, 0, 0, 0, 0, 'Frigid Necromancer');
INSERT INTO creature_text VALUES(27539, 0, 5, "Your struggle is meaningless. You will all fall before the endless Scourge!", 14, 0, 100, 0, 0, 0, 0, 'Frigid Necromancer');
UPDATE creature_template SET AIName='SmartAI' WHERE entry=27539;
DELETE FROM smart_scripts WHERE entryorguid=27539 AND source_type=0;
INSERT INTO smart_scripts VALUES (27539, 0, 0, 0, 0, 0, 100, 0, 0, 0, 3500, 3500, 11, 9613, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'On IC Update - Cast Shadow Bolt');
INSERT INTO smart_scripts VALUES (27539, 0, 1, 0, 0, 0, 100, 0, 10000, 10000, 60000, 60000, 11, 50324, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On IC Update - Cast Bone Armor');
INSERT INTO smart_scripts VALUES (27539, 0, 2, 0, 4, 0, 50, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Aggro - Say text 0');
INSERT INTO smart_scripts VALUES (27539, 0, 3, 0, 1, 0, 100, 1, 5000, 5000, 0, 0, 11, 49292, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On OOC Update - Cast Ruby Corrupt');
DELETE FROM conditions WHERE SourceEntry=49292 AND SourceTypeOrReferenceId=13;
INSERT INTO conditions VALUES(13, 1, 49292, 0, 0, 31, 0, 3, 27369, 0, 0, 0, 0, '', 'Target Necromantic Rune Bunny');
UPDATE creature_template SET flags_extra=130, InhabitType=4 WHERE entry=27369;
-- Chasing Icestorm: Thel'zan's Phylactery (12467)
UPDATE creature SET spawntimesecs=50 WHERE id=27843;
UPDATE creature SET curhealth=8982 WHERE id=27839;
UPDATE creature_template SET AIName='NullCreatureAI' WHERE entry=27839;
DELETE FROM creature_text WHERE entry=27843;
INSERT INTO creature_text VALUES(27843, 0, 0, "I'll flush her out, $N! You just be ready for her when she comes in!", 12, 0, 100, 0, 0, 0, 0, 'Wyrmbait');
DELETE FROM creature_text WHERE entry=27844;
INSERT INTO creature_text VALUES(27844, 0, 0, "FIRE! FIRE! BRING HER DOWN!", 14, 0, 100, 0, 0, 0, 0, 'Legion Commander Tyralion');
DELETE FROM creature_text WHERE entry=26287;
INSERT INTO creature_text VALUES(26287, 0, 0, "Thel'zan's Phylactery drops to the ground benath Icestorm.", 41, 0, 100, 0, 0, 0, 0, 'Icestorm');
DELETE FROM gossip_menu_option WHERE menu_id=9603;
INSERT INTO gossip_menu_option VALUES(9603, 0, 0, 'Wyrmbait, em? Help, go fetch in Icestorm!', 1, 1, 0, 0, 0, 0, '');
DELETE FROM conditions WHERE SourceGroup=9603 AND SourceTypeOrReferenceId=15;
INSERT INTO conditions VALUES(15, 9603, 0, 0, 0, 9, 0, 12467, 0, 0, 0, 0, 0, '', 'Show gossip option if player has quest active');
UPDATE creature_template SET InhabitType=5, AIName='SmartAI', ScriptName='' WHERE entry=27843;
DELETE FROM smart_scripts WHERE entryorguid=27843 AND source_type=0;
INSERT INTO smart_scripts VALUES (27843, 0, 0, 1, 62, 0, 100, 0, 9603, 0, 0, 0, 60, 1, 250, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Gossip Select - Set Fly');
INSERT INTO smart_scripts VALUES (27843, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On Gossip Select - Close Gossip');
INSERT INTO smart_scripts VALUES (27843, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 53, 1, 27843, 0, 0, 500, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'On Gossip Select - Start WP');
INSERT INTO smart_scripts VALUES (27843, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Gossip Select - Talk');
INSERT INTO smart_scripts VALUES (27843, 0, 4, 0, 40, 0, 100, 0, 5, 0, 0, 0, 12, 26287, 4, 60000, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On WP Reach - Summon Creature');
INSERT INTO smart_scripts VALUES (27843, 0, 5, 0, 40, 0, 100, 0, 11, 0, 0, 0, 60, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On WP Reach - Set Fly false');
INSERT INTO smart_scripts VALUES (27843, 0, 6, 0, 25, 0, 100, 0, 0, 0, 0, 0, 60, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Reset - Set Fly false');
DELETE FROM waypoints WHERE entry=27843;
INSERT INTO waypoints VALUES (27843, 1, 4545.27, 5.279, 75.2562, 'Wyrmbait'),(27843, 2, 4529.72, 21.8506, 88.5466, 'Wyrmbait'),(27843, 3, 4529.1, 48.2449, 104.161, 'Wyrmbait'),(27843, 4, 4528.12, 74.043, 103.328, 'Wyrmbait'),(27843, 5, 4535.11, 132.119, 106.071, 'Wyrmbait'),(27843, 6, 4541, 90.9399, 101.793, 'Wyrmbait'),(27843, 7, 4538.4, 49.1769, 95.3332, 'Wyrmbait'),
(27843, 8, 4537.15, 21.3384, 86.0038, 'Wyrmbait'),(27843, 9, 4532.23, 0.128148, 82.1963, 'Wyrmbait'),(27843, 10, 4546.23, -4.9997, 75.5355, 'Wyrmbait'),(27843, 11, 4548.17, 4.67055, 70.4695, 'Wyrmbait');
REPLACE INTO creature_template_addon VALUES(26287, 0, 0, 50331648, 0, 0, '');
UPDATE creature_template SET speed_run=2, unit_flags=768, InhabitType=5, AIName='SmartAI', ScriptName='' WHERE entry=26287;
DELETE FROM smart_scripts WHERE entryorguid=26287 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid=26287*100 AND source_type=9;
INSERT INTO smart_scripts VALUES (26287, 0, 0, 1, 37, 0, 100, 0, 0, 0, 0, 0, 53, 1, 26287, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On AI Init - WP Start');
INSERT INTO smart_scripts VALUES (26287, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 60, 1, 200, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On AI Init - Set Fly');
INSERT INTO smart_scripts VALUES (26287, 0, 2, 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 AI Init - Set React State');
INSERT INTO smart_scripts VALUES (26287, 0, 3, 4, 1, 0, 100, 0, 2000, 2000, 2000, 2000, 101, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Update - Set Home Pos');
INSERT INTO smart_scripts VALUES (26287, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 86, 49679, 0, 11, 27839, 50, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Update - Cross Cast');
INSERT INTO smart_scripts VALUES (26287, 0, 5, 6, 40, 0, 100, 0, 1, 0, 0, 0, 54, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On WP Reach - Pause WP');
INSERT INTO smart_scripts VALUES (26287, 0, 6, 7, 61, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 19, 27844, 80, 0, 0, 0, 0, 0, 'On WP Reach - Talk');
INSERT INTO smart_scripts VALUES (26287, 0, 7, 0, 61, 0, 100, 0, 0, 0, 0, 0, 60, 1, 200, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On WP Reach - Set Hover');
INSERT INTO smart_scripts VALUES (26287, 0, 8, 9, 40, 0, 100, 0, 2, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On WP Reach - Set Combat Movement');
INSERT INTO smart_scripts VALUES (26287, 0, 9, 10, 61, 0, 100, 0, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On WP Reach - Remove Unit Flag');
INSERT INTO smart_scripts VALUES (26287, 0, 10, 11, 61, 0, 100, 0, 0, 0, 0, 0, 8, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On WP Reach - Set React State');
INSERT INTO smart_scripts VALUES (26287, 0, 11, 12, 61, 0, 100, 0, 0, 0, 0, 0, 60, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On WP Reach - Set Fly false');
INSERT INTO smart_scripts VALUES (26287, 0, 12, 13, 61, 0, 100, 0, 0, 0, 0, 0, 91, 3, 3, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On WP Reach - Remove Byte 0');
INSERT INTO smart_scripts VALUES (26287, 0, 13, 14, 61, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 60, 0, 0, 0, 0, 0, 0, 'On WP Reach - Attack Start');
INSERT INTO smart_scripts VALUES (26287, 0, 14, 0, 61, 0, 100, 0, 0, 0, 0, 0, 130, 1, 0, 0, 0, 0, 0, 11, 26779, 60, 0, 4539, 45, 80.6, 0, 'On WP Reach - Move To Pos Target');
INSERT INTO smart_scripts VALUES (26287, 0, 15, 0, 0, 0, 100, 0, 3000, 3000, 8000, 8000, 11, 47425, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'OOC Update - Cast Spell');
INSERT INTO smart_scripts VALUES (26287, 0, 16, 17, 6, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Death - Talk');
INSERT INTO smart_scripts VALUES (26287, 0, 17, 0, 61, 0, 100, 0, 0, 0, 0, 0, 11, 49695, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Death - Cast Spell');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=49679 AND ElseGroup=1;
INSERT INTO conditions VALUES (13, 1, 49679, 0, 1, 31, 0, 3, 26287, 0, 0, 0, 0, '', 'Target icestorm');
DELETE FROM waypoints WHERE entry=26287;
INSERT INTO waypoints VALUES (26287, 1, 4539, 45, 100, 'Icestorm'),(26287, 2, 4539, 45, 80.6, 'Icestorm');
-- To Fordragon Hold! (12474)
-- Audience With The Dragon Queen (12495)
DELETE FROM creature_questender WHERE quest=12474;
INSERT INTO creature_questender VALUES(27872, 12474);
DELETE FROM creature_addon WHERE guid IN(SELECT guid FROM creature WHERE id=27872);
-- Return To Angrathar (12499)
-- Return To Angrathar (12500)
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry IN(27872, 25257);
DELETE FROM smart_scripts WHERE entryorguid IN(27872, 25257) AND source_type=0;
INSERT INTO smart_scripts VALUES (27872, 0, 0, 0, 20, 0, 100, 0, 12499, 0, 0, 0, 68, 14, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On Quest Rewarded - Send Movie');
INSERT INTO smart_scripts VALUES (25257, 0, 0, 0, 20, 0, 100, 0, 12500, 0, 0, 0, 68, 14, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On Quest Rewarded - Send Movie');
-- A Fall From Grace (12274)
DELETE FROM spell_script_names WHERE spell_id=48762;
INSERT INTO spell_script_names VALUES(48762, 'spell_q12274_a_fall_from_grace_costume');
UPDATE creature_template SET gossip_menu_id=9501, AIName='SmartAI' WHERE entry=27350;
DELETE FROM smart_scripts WHERE entryorguid=27350 AND source_type=0;
INSERT INTO smart_scripts VALUES (27350, 0, 0, 1, 62, 0, 100, 0, 9501, 0, 0, 0, 85, 48762, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Agent Skully - Offer cover renewal during A Fall from Grace');
INSERT INTO smart_scripts VALUES (27350, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Agent Skully - Close Gossip');
UPDATE gameobject_template SET AIName='SmartGameObjectAI', ScriptName='' WHERE entry=188713;
DELETE FROM smart_scripts WHERE entryorguid=188713 AND source_type=1;
INSERT INTO smart_scripts VALUES (188713, 1, 0, 1, 70, 0, 100, 0, 2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 10, 102082, 27202, 0, 0, 0, 0, 0, 'On Just Deactivated - Talk');
INSERT INTO smart_scripts VALUES (188713, 1, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 10, 106200, 27247, 0, 0, 0, 0, 0, 'On Just Deactivated - Set Data');
INSERT INTO smart_scripts VALUES (188713, 1, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 10, 106201, 27247, 0, 0, 0, 0, 0, 'On Just Deactivated - Set Data');
UPDATE creature_template SET speed_walk=1.7, AIName='SmartAI' WHERE entry=27247;
DELETE FROM smart_scripts WHERE entryorguid=27247 AND source_type=0;
INSERT INTO smart_scripts VALUES (27247, 0, 0, 0, 0, 0, 100, 0, 4000, 7000, 10000, 15000, 11, 38256, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Devout Bodyguard - Cast Piercing Howl');
INSERT INTO smart_scripts VALUES (27247, 0, 1, 0, 38, 0, 100, 0, 1, 1, 0, 0, 53, 0, 27247, 0, 0, 1000, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Devout Bodyguard - On data set - Start WP');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=15 AND SourceGroup=9532;
INSERT INTO conditions VALUES (15, 9532, 0, 0, 0, 29, 0, 27247, 10, 0, 1, 0, 0, '', 'A Fall from Grace - Show gossip if no guards around');
INSERT INTO conditions VALUES (15, 9532, 0, 0, 0, 1, 0, 48756, 0, 0, 1, 0, 0, '', 'A Fall from Grace - No Kiss Aura');
UPDATE creature_template SET gossip_menu_id=9532, AIName='SmartAI', ScriptName='' WHERE entry=27245;
DELETE FROM smart_scripts WHERE entryorguid=27245 AND source_type=0;
INSERT INTO smart_scripts VALUES (27245, 0, 0, 0, 62, 0, 100, 0, 9536, 0, 0, 0, 11, 48756, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On Gossip Select - Cast Spell');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=22 AND SourceEntry=27445;
INSERT INTO conditions VALUES (22, 1, 27445, 0, 0, 1, 0, 48756, 0, 0, 0, 0, 0, '', 'Unit must have aura 48756 to execute smart event');
DELETE FROM creature WHERE id=27445;
INSERT INTO creature VALUES(NULL, 27445, 571, 1, 1, 0, 0, 2827.53, -425.556, 119.887, 4.70432, 300, 0, 0, 42, 0, 0, 0, 0, 0);
UPDATE creature_template SET unit_flags=33554432|256|512, modelid1=17612, modelid2=0, AIName='SmartAI' WHERE entry=27445;
DELETE FROM smart_scripts WHERE entryorguid=27445 AND source_type=0;
INSERT INTO smart_scripts VALUES (27445, 0, 0, 1, 10, 0, 100, 0, 1, 5, 1000, 1000, 28, 48756, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On OOC Los - Remove aura');
INSERT INTO smart_scripts VALUES (27445, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 11, 48759, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On OOC Los - Cast Spell');
INSERT INTO smart_scripts VALUES (27445, 0, 2, 0, 25, 0, 100, 0, 0, 0, 0, 0, 8, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Reset - Set React State');
DELETE FROM creature_text WHERE entry=27439;
INSERT INTO creature_text VALUES(27439, 0, 0, 'I know a place nearby where we can speak in private, my child. Follow me.', 12, 0, 100, 0, 0, 0, 0, 'High Abbot Landgren');
INSERT INTO creature_text VALUES(27439, 1, 0, 'Did you think that I could not see through your flimsy disguise, $N?', 12, 0, 100, 0, 0, 0, 0, 'High Abbot Landgren');
INSERT INTO creature_text VALUES(27439, 2, 0, 'There is much that you do not understand, $r. The master sees all.', 12, 0, 100, 0, 0, 0, 0, 'High Abbot Landgren');
INSERT INTO creature_text VALUES(27439, 3, 0, "He told me that you would come for me. I won't die by your hand though. I have seen what you have done to my compatriots.", 12, 0, 100, 0, 0, 0, 0, 'High Abbot Landgren');
INSERT INTO creature_text VALUES(27439, 4, 0, "No. I will leave this world in a manner of my own choosing. And I will return, the grand admiral's will permitting.", 12, 0, 100, 0, 0, 0, 0, 'High Abbot Landgren');
INSERT INTO creature_text VALUES(27439, 5, 0, "AAAEEEEIIIiiiiiiiiiiiiiiiii.........................", 12, 0, 100, 0, 0, 0, 0, 'High Abbot Landgren');
UPDATE creature_template SET faction=35, exp=2, minlevel=74, maxlevel=74, speed_walk=2, AIName='SmartAI', ScriptName='' WHERE entry=27439;
DELETE FROM smart_scripts WHERE entryorguid=27439 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid=27439*100 AND source_type=9;
INSERT INTO smart_scripts VALUES (27439, 0, 0, 0, 60, 0, 100, 1, 1000, 1000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Update - Talk');
INSERT INTO smart_scripts VALUES (27439, 0, 1, 0, 60, 0, 100, 1, 4000, 4000, 0, 0, 53, 0, 27439, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Update - Start WP');
INSERT INTO smart_scripts VALUES (27439, 0, 2, 0, 40, 0, 100, 1, 13, 0, 0, 0, 80, 27439*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On WP Reach - Script9');
INSERT INTO smart_scripts VALUES (27439*100, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1.05, 'Script9 - Set Orientation');
INSERT INTO smart_scripts VALUES (27439*100, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 21, 30, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES (27439*100, 9, 2, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 1, 2, 0, 0, 0, 0, 0, 21, 30, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES (27439*100, 9, 3, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES (27439*100, 9, 4, 0, 0, 0, 100, 0, 8000, 8000, 0, 0, 1, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES (27439*100, 9, 5, 0, 0, 0, 100, 0, 7000, 7000, 0, 0, 1, 5, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES (27439*100, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 48771, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Cast Spell');
INSERT INTO smart_scripts VALUES (27439*100, 9, 7, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Despawn');
INSERT INTO smart_scripts VALUES (27439*100, 9, 8, 0, 0, 0, 100, 0, 0, 0, 0, 0, 97, 20, 20, 0, 0, 0, 0, 1, 0, 0, 0, 2711, -562, 15, 4.1, 'Script9 - Jump to pos');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=48771;
INSERT INTO conditions VALUES (13, 1, 48771, 0, 0, 31, 0, 4, 0, 0, 0, 0, 0, '', 'Quest 12274 Kill Credit');
DELETE FROM waypoints WHERE entry IN(27247, 27439);
INSERT INTO waypoints VALUES (27247, 1, 2791.19, -489.913, 119.618, 'Devout Bodyguard'),(27247, 2, 2790.89, -486.461, 119.618, 'Devout Bodyguard'),(27247, 3, 2795.3, -483.051, 119.79, 'Devout Bodyguard'),(27247, 4, 2802.81, -476.778, 119.617, 'Devout Bodyguard'),(27247, 5, 2810.49, -469.102, 119.617, 'Devout Bodyguard'),(27247, 6, 2815.06, -465.838, 119.616, 'Devout Bodyguard'),(27247, 7, 2818.89, -469.552, 119.842, 'Devout Bodyguard'),(27247, 8, 2823, -471.411, 124.312, 'Devout Bodyguard'),(27247, 9, 2827.5, -472.139, 128.524, 'Devout Bodyguard'),(27247, 10, 2830.89, -471.426, 131.574, 'Devout Bodyguard'),(27247, 11, 2834.82, -469.685, 135.201, 'Devout Bodyguard'),(27247, 12, 2839.76, -462.89, 135.363, 'Devout Bodyguard'),(27247, 13, 2838.14, -452.877, 135.363, 'Devout Bodyguard'),
(27247, 14, 2831.41, -448.48, 135.363, 'Devout Bodyguard'),(27247, 15, 2823.73, -448.069, 135.363, 'Devout Bodyguard'),(27247, 16, 2817.5, -453.122, 135.363, 'Devout Bodyguard'),(27247, 17, 2815.11, -460.489, 135.363, 'Devout Bodyguard'),(27247, 18, 2818.25, -470.07, 135.402, 'Devout Bodyguard'),(27247, 19, 2822.93, -471.575, 140.076, 'Devout Bodyguard'),(27247, 20, 2824.93, -472.218, 142.183, 'Devout Bodyguard'),(27247, 21, 2828.06, -472.535, 145.044, 'Devout Bodyguard'),(27247, 22, 2830.79, -471.943, 147.541, 'Devout Bodyguard'),(27247, 23, 2834.41, -470.538, 150.757, 'Devout Bodyguard'),(27247, 24, 2837.1, -467.819, 150.837, 'Devout Bodyguard'),(27247, 25, 2832.85, -462.689, 150.835, 'Devout Bodyguard');
INSERT INTO waypoints VALUES (27439, 1, 2827.21, -424.453, 119.893, 'High Abbot Landgren'),(27439, 2, 2827.16, -419.978, 118.196, 'High Abbot Landgren'),(27439, 3, 2828.83, -412.829, 118.196, 'High Abbot Landgren'),(27439, 4, 2812.67, -412.411, 118.196, 'High Abbot Landgren'),(27439, 5, 2800.29, -424.385, 118.196, 'High Abbot Landgren'),(27439, 6, 2785.86, -439.541, 118.196, 'High Abbot Landgren'),(27439, 7, 2782.81, -448.413, 118.196, 'High Abbot Landgren'),(27439, 8, 2776.84, -465.826, 116.141, 'High Abbot Landgren'),
(27439, 9, 2771.2, -482.246, 115.963, 'High Abbot Landgren'),(27439, 10, 2765.42, -489.182, 113.692, 'High Abbot Landgren'),(27439, 11, 2758.69, -497.246, 109.831, 'High Abbot Landgren'),(27439, 12, 2742.53, -515.063, 103.642, 'High Abbot Landgren'),(27439, 13, 2736.68, -524.16, 102.781, 'High Abbot Landgren');
-- Heated Battle (12416)
-- Heated Battle (12448)
UPDATE creature SET spawntimesecs=20 WHERE id IN(27531, 27685, 27686);
UPDATE creature_template SET spell1=40504, AIName='', ScriptName='npc_heated_battle', flags_extra = flags_extra|64 WHERE entry=27531;
UPDATE creature_template SET spell1=50361, AIName='', ScriptName='npc_heated_battle', flags_extra = flags_extra|64 WHERE entry=27685;
UPDATE creature_template SET AIName='', ScriptName='npc_heated_battle', flags_extra = flags_extra|64 WHERE entry=27686;
DELETE FROM smart_scripts WHERE entryorguid IN(27531, 27685, 27686) AND source_type=0;
-- Signs of Big Watery Trouble (12011)
UPDATE gameobject_template SET flags=0 WHERE entry=188364;
-- Frostmourne Cavern (12478)
DELETE FROM spell_script_names WHERE spell_id=49817;
INSERT INTO spell_script_names VALUES(49817, 'spell_q12478_frostmourne_cavern');
DELETE FROM gameobject WHERE id IN(201937, 190332, 190191, 192064, 192065, 192066);
INSERT INTO gameobject VALUES(NULL, 190332, 571, 1, 1, 4819.37, -583.699, 163.506, 1.50098, 0, 0, 0.681997, 0.731355, 180, 255, 1, 0);
INSERT INTO gameobject VALUES(NULL, 190191, 571, 1, 1, 4819.28, -583.566, 163.564, 1.3439, 0, 0, 0.622513, 0.782609, 180, 255, 1, 0);
INSERT INTO gameobject VALUES(NULL, 192064, 571, 1, 1, 4823.09, -581.729, 164.163, 2.40835, 0, 0, 0.933544, 0.358463, 180, 255, 1, 0);
INSERT INTO gameobject VALUES(NULL, 192065, 571, 1, 1, 4816.55, -581.285, 163.062, 1.04309, 0, 0, 0.49822, 0.86705, 180, 255, 1, 0);
INSERT INTO gameobject VALUES(NULL, 192066, 571, 1, 1, 4816.64, -582.227, 163.187, -1.24098, 0, 0, -0.581434, 0.813594, 180, 255, 1, 0);
DELETE FROM creature_text WHERE entry=27455 AND groupid>=4;
DELETE FROM creature_text WHERE entry=27480 AND groupid>=2;
INSERT INTO creature_text VALUES(27455, 4, 0, 'The walls of Frostmourne Cavern shudder and shake.', 41, 0, 100, 0, 0, 0, 0, 'Prince Arthas');
INSERT INTO creature_text VALUES(27455, 5, 0, 'Behold, Muradin, our salvation, Frostmourne.', 12, 0, 100, 25, 0, 12729, 0, 'Prince Arthas');
INSERT INTO creature_text VALUES(27455, 6, 0, 'I would gladly bear any curse to save my homeland.', 12, 0, 100, 0, 0, 12730, 0, 'Prince Arthas');
INSERT INTO creature_text VALUES(27455, 7, 0, 'Damn the men! Nothing shall prevent me from having my revenge, old friend. Not even you.', 12, 0, 100, 0, 0, 12731, 0, 'Prince Arthas');
INSERT INTO creature_text VALUES(27455, 8, 0, 'Now, I call out to the spirits of this place. I will give anything or pay any price, if only you will help me save my people.', 12, 0, 100, 0, 0, 12732, 0, 'Prince Arthas');
INSERT INTO creature_text VALUES(27480, 2, 0, "Hold, lad. There's an inscription on the dais. It's a warning. It says, \"Whomsoever takes up this blade shall wield power eternal. Just as the blade rends flesh, so must power scar the spirit.\" Oh, I should've known. The blade is cursed! Let's get the hell out of here!", 12, 0, 100, 0, 0, 12735, 0, 'Muradin');
INSERT INTO creature_text VALUES(27480, 3, 0, "Leave it be, Arthas. Forget this business and lead your men home.", 12, 0, 100, 0, 0, 12736, 0, 'Muradin');
INSERT INTO creature_text VALUES(27480, 4, 0, "O' my head... Wh... Where am I?", 12, 0, 100, 0, 0, 0, 0, 'Muradin');
INSERT INTO creature_text VALUES(27480, 5, 0, "Who... Who am I?", 12, 0, 100, 0, 0, 0, 0, 'Muradin');
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry IN(27455, 27480);
DELETE FROM conditions WHERE SourceTypeOrReferenceId=22 AND SourceEntry IN(27455, 27480);
INSERT INTO conditions VALUES (22, 1, 27455, 0, 0, 23, 1, 4192, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES (22, 1, 27480, 0, 0, 23, 1, 4192, 0, 0, 0, 0, 0, '', '');
DELETE FROM smart_scripts WHERE entryorguid IN(27455, 27480) AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid IN(27455*100, 27480*100) AND source_type=9;
INSERT INTO smart_scripts VALUES (27455, 0, 0, 1, 37, 0, 100, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On AI Init - Set Visible');
INSERT INTO smart_scripts VALUES (27455, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 80, 27455*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On AI Init - Script9');
INSERT INTO smart_scripts VALUES (27455*100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES (27455*100, 9, 1, 0, 0, 0, 100, 0, 7000, 7000, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Set Visible');
INSERT INTO smart_scripts VALUES (27455*100, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 131, 0, 0, 0, 0, 0, 0, 15, 190332, 20, 0, 0, 0, 0, 0, 'Script9 - Set GO State');
INSERT INTO smart_scripts VALUES (27455*100, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 12, 27480, 8, 0, 0, 0, 0, 8, 0, 0, 0, 4816.75, -580.34, 162.99, 5.37, 'Script9 - Summon Creature');
INSERT INTO smart_scripts VALUES (27455*100, 9, 4, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 1, 5, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES (27455*100, 9, 5, 0, 0, 0, 100, 0, 36000, 36000, 0, 0, 1, 6, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES (27455*100, 9, 6, 0, 0, 0, 100, 0, 16000, 16000, 0, 0, 1, 7, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES (27455*100, 9, 7, 0, 0, 0, 100, 0, 8000, 8000, 0, 0, 1, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES (27455*100, 9, 8, 0, 0, 0, 100, 0, 0, 0, 0, 0, 69, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 4820.36, -582.3, 163.8, 4.0, 'Script9 - Move Point');
INSERT INTO smart_scripts VALUES (27455*100, 9, 9, 0, 0, 0, 100, 0, 7000, 7000, 0, 0, 11, 49824, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Cast Spell');
INSERT INTO smart_scripts VALUES (27455*100, 9, 10, 0, 0, 0, 100, 0, 11000, 11000, 0, 0, 131, 1, 0, 0, 0, 0, 0, 15, 190332, 20, 0, 0, 0, 0, 0, 'Script9 - Set GO State');
INSERT INTO smart_scripts VALUES (27455*100, 9, 11, 0, 0, 0, 100, 0, 0, 0, 0, 0, 71, 0, 1, 36942, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Set Equip');
INSERT INTO smart_scripts VALUES (27455*100, 9, 12, 0, 0, 0, 100, 0, 500, 500, 0, 0, 5, 25, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Play Emote');
INSERT INTO smart_scripts VALUES (27455*100, 9, 13, 0, 0, 0, 100, 0, 0, 0, 0, 0, 59, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Set Run');
INSERT INTO smart_scripts VALUES (27455*100, 9, 14, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 69, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 4809.08, -574.8, 160.91, 2.9, 'Script9 - Move Point');
INSERT INTO smart_scripts VALUES (27455*100, 9, 15, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 5, 15, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Play Emote');
INSERT INTO smart_scripts VALUES (27455*100, 9, 16, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 69, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 4767, -567, 163, 3, 'Script9 - Move Point');
INSERT INTO smart_scripts VALUES (27455*100, 9, 17, 0, 0, 0, 100, 0, 7000, 7000, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Despawn');
INSERT INTO smart_scripts VALUES (27480, 0, 0, 0, 37, 0, 100, 0, 0, 0, 0, 0, 80, 27480*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On AI Init - Script9');
INSERT INTO smart_scripts VALUES (27480*100, 9, 0, 0, 0, 0, 100, 0, 8000, 8000, 0, 0, 69, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 4818.63, -582.84, 163.54, 5.2, 'Script9 - Move Point');
INSERT INTO smart_scripts VALUES (27480*100, 9, 1, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES (27480*100, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 68442, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Cast Spell');
INSERT INTO smart_scripts VALUES (27480*100, 9, 3, 0, 0, 0, 100, 0, 16000, 16000, 0, 0, 28, 68442, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Remove Aura');
INSERT INTO smart_scripts VALUES (27480*100, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0.7, 'Script9 - Set Orientation');
INSERT INTO smart_scripts VALUES (27480*100, 9, 5, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 5, 5, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Play Emote');
INSERT INTO smart_scripts VALUES (27480*100, 9, 6, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 69, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 4816.75, -580.34, 162.99, 5.37, 'Script9 - Move Point');
INSERT INTO smart_scripts VALUES (27480*100, 9, 7, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 6.13, 'Script9 - Set Orientation');
INSERT INTO smart_scripts VALUES (27480*100, 9, 8, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES (27480*100, 9, 9, 0, 0, 0, 100, 0, 35000, 35000, 0, 0, 90, 7, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Set Bytes0');
INSERT INTO smart_scripts VALUES (27480*100, 9, 11, 0, 0, 0, 100, 0, 20000, 20000, 0, 0, 91, 7, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Remove Bytes0');
INSERT INTO smart_scripts VALUES (27480*100, 9, 12, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 49829, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Cast Spell');
INSERT INTO smart_scripts VALUES (27480*100, 9, 13, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 18970, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Cast Spell');
INSERT INTO smart_scripts VALUES (27480*100, 9, 14, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 1, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES (27480*100, 9, 15, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 1, 5, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES (27480*100, 9, 16, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Despawn');
-- Fire Upon the Waters (12243)
REPLACE INTO smart_scripts VALUES (28013, 0, 1, 0, 8, 0, 100, 0, 48455, 0, 0, 0, 75, 48522, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - Add Aura');
DELETE FROM spell_script_names WHERE spell_id=48522;
INSERT INTO spell_script_names VALUES(48522, 'spell_q12243_fire_upon_the_waters');
-- Blood Oath of the Horde (11983)
DELETE FROM npc_text WHERE ID IN (12611, 12618, 12619, 12620);
INSERT INTO npc_text VALUES (12611, "There is nothing left for us here.", "There is nothing left for us here.", 1, 1, 0, 0, 0, 0, 0, 0, "My family was slaughtered without mercy. Even the young.", "My family was slaughtered without mercy. Even the young.", 1, 1, 0, 0, 0, 0, 0, 0, "May the Lich King burn in hellfire for what he has called down upon this land.", "May the Lich King burn in hellfire for what he has called down upon this land.", 1, 1, 0, 0, 0, 0, 0, 0, "We are a people without a home to call our own now.", "We are a people without a home to call our own now.", 1, 1, 0, 0, 0, 0, 0, 0, "The Scourge are a fearless machine set to bring about the end of all life on this world.", "The Scourge are a fearless machine set to bring about the end of all life on this world.", 1, 1, 0, 0, 0, 0, 0, 0, "The one that they call Hellscream might be our only hope.", "The one that they call Hellscream might be our only hope.", 1, 1, 0, 0, 0, 0, 0, 0, "Only the Horde can save us now.", "Only the Horde can save us now.", 1, 1, 0, 0, 0, 0, 0, 0, "", "", 0, 0, 0, 0, 0, 0, 0, 0, 12340);
INSERT INTO npc_text VALUES (12618, "Will the Horde grant me the chance to battle the Scourge?", "Will the Horde grant me the chance to battle the Scourge?", 0, 1, 0, 6, 0, 0, 0, 0, "", "", 0, 0, 0, 0, 0, 0, 0, 0, "", "", 0, 0, 0, 0, 0, 0, 0, 0, "", "", 0, 0, 0, 0, 0, 0, 0, 0, "", "", 0, 0, 0, 0, 0, 0, 0, 0, "", "", 0, 0, 0, 0, 0, 0, 0, 0, "", "", 0, 0, 0, 0, 0, 0, 0, 0, "", "", 0, 0, 0, 0, 0, 0, 0, 0, 12340);
INSERT INTO npc_text VALUES (12619, "To avenge my people, to drive out the blight that has engulfed our land - I will take your oath. I will pledge all that I have and all that I am to the Horde.", "To avenge my people, to drive out the blight that has engulfed our land - I will take your oath. I will pledge all that I have and all that I am to the Horde.", 0, 1, 0, 1, 0, 1, 0, 0, "", "", 0, 0, 0, 0, 0, 0, 0, 0, "", "", 0, 0, 0, 0, 0, 0, 0, 0, "", "", 0, 0, 0, 0, 0, 0, 0, 0, "", "", 0, 0, 0, 0, 0, 0, 0, 0, "", "", 0, 0, 0, 0, 0, 0, 0, 0, "", "", 0, 0, 0, 0, 0, 0, 0, 0, "", "", 0, 0, 0, 0, 0, 0, 0, 0, 12340);
INSERT INTO npc_text VALUES (12620, "Lok'tar ogar! Victory or death - it is these words that bind me to the Horde. For they are the most sacred and fundamental of truths to any warrior of the Horde.$B$BI give my flesh and blood freely to the Warchief. I am the instrument of my Warchief's desire. I am a weapon of my Warchief's command.$B$BFrom this moment until the end of days I live and die - FOR THE HORDE!", "Lok'tar ogar! Victory or death - it is these words that bind me to the Horde. For they are the most sacred and fundamental of truths to any warrior of the Horde.$B$BI give my flesh and blood freely to the Warchief. I am the instrument of my Warchief's desire. I am a weapon of my Warchief's command.$B$BFrom this moment until the end of days I live and die - FOR THE HORDE!", 1, 1, 0, 5, 0, 1, 0, 66, "", "", 0, 0, 0, 0, 0, 0, 0, 0, "", "", 0, 0, 0, 0, 0, 0, 0, 0, "", "", 0, 0, 0, 0, 0, 0, 0, 0, "", "", 0, 0, 0, 0, 0, 0, 0, 0, "", "", 0, 0, 0, 0, 0, 0, 0, 0, "", "", 0, 0, 0, 0, 0, 0, 0, 0, "", "", 0, 0, 0, 0, 0, 0, 0, 0, 12340);
DELETE FROM gossip_menu WHERE text_id IN (12611, 12618, 12619, 12620);
INSERT INTO gossip_menu VALUES (9302, 12611),(9305, 12618),(9304, 12619),(9303, 12620);
DELETE FROM gossip_menu_option WHERE menu_id IN (9302, 9305, 9304, 9303);
INSERT INTO gossip_menu_option VALUES (9302, 0, 0, "Worry no more, taunka. The Horde will save and protect you and your people, but first you must swear allegiance to the Warchief by taking the blood oath of the Horde.", 1, 1, 9305, 0, 0, 0, '');
INSERT INTO gossip_menu_option VALUES (9305, 0, 0, "Yes, taunka. Retribution is a given right of all members of the Horde.", 1, 1, 9304, 0, 0, 0, '');
INSERT INTO gossip_menu_option VALUES (9304, 0, 0, "Then repeat after me: Lok'tar ogar! Victory or death - it is these words that bind me to the Horde. For they are the most sacred and fundamental of truths to any warrior of the Horde. I give my flesh and blood freely to the Warchief. I am the instrument of my Warchief's desire. I am a weapon of my Warchief's command. From this moment until the end of days I live and die - For the Horde!", 1, 1, 9303, 0, 0, 0, '');
INSERT INTO gossip_menu_option VALUES (9303, 0, 0, "For the Horde! Arm yourself from the crates that surround us and report to Agmar's Hammer, east of here. Your first trial as a member of the Horde is to survive the journey. Lok'tar ogar!", 1, 1, 0, 0, 0, 0, '');
UPDATE creature_template SET AIName='SmartAI', gossip_menu_id=9302, npcflag=npcflag|1 WHERE entry IN (26179, 26184);
DELETE FROM smart_scripts WHERE entryorguid IN (26179, 26184) AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid IN (26179*100, 26184*100) AND source_type=9;
INSERT INTO smart_scripts VALUES (26179, 0, 0, 0, 62, 0, 100, 0, 9303, 0, 0, 0, 80, 26179*100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Taunka'le Refugee - on gossip select - start script");
INSERT INTO smart_scripts VALUES (26179*100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 81, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "turn off gossip & set npcflag 0");
INSERT INTO smart_scripts VALUES (26179*100, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 33, 26179, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "give kill credit");
INSERT INTO smart_scripts VALUES (26179*100, 9, 2, 0, 0, 0, 100, 0, 60000, 60000, 60000, 60000, 81, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "after 60sec - turn on gossip & set npcflag 1");
INSERT INTO smart_scripts VALUES (26184, 0, 0, 0, 62, 0, 100, 0, 9303, 0, 0, 0, 80, 26184*100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Taunka'le Refugee - on gossip select - start script");
INSERT INTO smart_scripts VALUES (26184*100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 81, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "turn off gossip & set npcflag 0");
INSERT INTO smart_scripts VALUES (26184*100, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 33, 26179, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "give kill credit");
INSERT INTO smart_scripts VALUES (26184*100, 9, 2, 0, 0, 0, 100, 0, 60000, 60000, 60000, 60000, 81, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "after 60sec - turn on gossip & set npcflag 1");
DELETE FROM conditions WHERE SourceTypeOrReferenceId=15 AND SourceGroup=9302;
INSERT INTO conditions VALUES (15, 9302, 0, 0, 0, 9, 0, 11983, 0, 0, 0, 0, 0, '', 'show gossip option if player has quest 11983 taken');
INSERT INTO conditions VALUES (15, 9302, 0, 0, 0, 2, 0, 35784, 1, 0, 0, 0, 0, '', 'show gossip option if player has Item: Blood Oath of the Horde');
-- Sarathstra, Scourge of the North (12097)
REPLACE INTO creature_text VALUES(26859, 0, 0, "Don't ya worry, man. Just leave it to Rokhan. She be comin'.", 12, 0, 100, 0, 0, 0, 0, "");
DELETE FROM conditions WHERE SourceGroup=9434 AND SourceTypeOrReferenceId=15;
INSERT INTO conditions VALUES(15, 9434, 0, 0, 0, 9, 0, 12097, 0, 0, 0, 0, 0, "", "Player must have quest active to see gossip");
DELETE FROM gossip_menu_option WHERE menu_id=9434;
INSERT INTO gossip_menu_option VALUES(9434, 0, 0, "This brings Frostwyrm to the ground and put an end to her.", 1, 1, 0, 0, 0, 0, '');
UPDATE creature_template SET AIName="SmartAI" WHERE entry=26859;
REPLACE INTO creature_template_addon VALUES(26858, 0, 0, 50331648, 0, 0, '');
UPDATE creature_template SET InhabitType=5, AIName="SmartAI" WHERE entry=26858;
DELETE FROM smart_scripts WHERE entryorguid IN(26858, 26859) AND source_type=0;
INSERT INTO smart_scripts VALUES(26859, 0, 0, 1, 62, 1, 100, 0, 9434, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On Gossip Select - Close Gossip");
INSERT INTO smart_scripts VALUES(26859, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On Gossip Select - Talk");
INSERT INTO smart_scripts VALUES(26859, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 12, 26858, 4, 60000, 0, 0, 0, 8, 0, 0, 0, 4413.97, 904.4, 125, 2.3, "On Gossip Select - Summon Creature");
INSERT INTO smart_scripts VALUES(26859, 0, 3, 4, 61, 0, 100, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 19, 26858, 150, 0, 0, 0, 0, 0, "On Gossip Select - Set Data");
INSERT INTO smart_scripts VALUES(26859, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 22, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On Gossip Select - Set Phase");
INSERT INTO smart_scripts VALUES(26859, 0, 5, 0, 25, 0, 100, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On Reset - Set Phase");
INSERT INTO smart_scripts VALUES(26859, 0, 6, 0, 60, 2, 100, 0, 60000, 60000, 60000, 60000, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On Update - Set Phase");
INSERT INTO smart_scripts VALUES(26858, 0, 0, 0, 38, 0, 100, 0, 1, 1, 0, 0, 69, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 4374.88, 943.2, 88.7, 0, "On Data Set - Move To Pos");
INSERT INTO smart_scripts VALUES(26858, 0, 1, 7, 34, 0, 100, 0, 8, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Movement Inform - Set Phase");
INSERT INTO smart_scripts VALUES(26858, 0, 2, 3, 60, 1, 100, 1, 0, 0, 0, 0, 60, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On Update - Set Fly false");
INSERT INTO smart_scripts VALUES(26858, 0, 3, 4, 61, 1, 100, 0, 0, 0, 0, 0, 91, 3, 3, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On Update - Remove Byte 0");
INSERT INTO smart_scripts VALUES(26858, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 100, 0, 0, 0, 0, 0, 0, "On Update - Attack Start");
INSERT INTO smart_scripts VALUES(26858, 0, 5, 6, 25, 0, 100, 0, 0, 0, 0, 0, 60, 1, 150, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On Reset - Set Fly true");
INSERT INTO smart_scripts VALUES(26858, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 90, 3, 3, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On Reset - Set Byte 0");
INSERT INTO smart_scripts VALUES(26858, 0, 7, 0, 61, 0, 100, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Movement Inform - Set Home Position");
-- Blightbeasts be Damned! (12072)
DELETE FROM conditions WHERE SourceTypeOrReferenceId=16 AND SourceEntry=26813;
INSERT INTO conditions VALUES (16, 0, 26813, 0, 0, 23, 0, 4163, 0, 0, 0, 0, 0, '', 'Dismount player when not in intended zone');
REPLACE INTO creature_template_addon VALUES (26607, 0, 0, 50331648, 0, 0, '');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry IN(47438, 47441);
INSERT INTO conditions VALUES (13, 1, 47438, 0, 0, 31, 0, 3, 26607, 0, 0, 0, 0, '', 'Target Anub''ar Blightbeast');
INSERT INTO conditions VALUES (13, 1, 47441, 0, 0, 31, 0, 3, 26607, 0, 0, 0, 0, '', 'Target Anub''ar Blightbeast');
-- Messy Business (12076)
DELETE FROM conditions WHERE SourceTypeOrReferenceId=17 AND SourceEntry=47435;
INSERT INTO conditions VALUES (17, 0, 47435, 0, 0, 1, 0, 47447, 1, 0, 0, 22, 0, '', 'Requires aura to cast spell');
DELETE FROM spell_linked_spell WHERE spell_trigger=47435;
REPLACE INTO spell_linked_spell VALUES(47435, -47447, 1, 'Messy Business - Remove Spit');
-- The Best of Intentions (12263)
DELETE FROM conditions WHERE SourceTypeOrReferenceId=15 AND SourceGroup=9537;
INSERT INTO conditions VALUES (15, 9537, 0, 0, 0, 9, 0, 12263, 0, 0, 0, 0, 0, '', 'show gossip option if player has quest 12263 taken');
UPDATE creature_template SET AIName="SmartAI" WHERE entry=26593;
DELETE FROM smart_scripts WHERE entryorguid=26593 AND source_type=0;
INSERT INTO smart_scripts VALUES (26593, 0, 0, 1, 62, 0, 100, 0, 9537, 0, 0, 0, 11, 48750, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On Gossip Select - Cast Spell Burning Depths Necrolyte");
INSERT INTO smart_scripts VALUES (26593, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On Gossip Select - Close gossip");
INSERT INTO smart_scripts VALUES (26593, 0, 2, 0, 19, 0, 100, 0, 12263, 0, 0, 0, 11, 48750, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On Quest Accept - Cast Spell Burning Depths Necrolyte");
-- The Forsaken Blight and You: How Not to Die (12188)
UPDATE quest_template SET ExclusiveGroup=0 WHERE NextQuestId=12188;
-- Hell Hath a Fury (12674)
DELETE FROM spell_script_names WHERE spell_id IN(52249, 52278);
INSERT INTO spell_script_names VALUES(52249, "spell_gen_visual_dummy_stun");
INSERT INTO spell_script_names VALUES(52278, "spell_gen_visual_dummy_stun");
DELETE FROM spell_linked_spell WHERE spell_trigger IN(-52249, 52249, -41909, 41909, -52278, 52278, -52279, 52279, -52287, 52287, -52303, 52303);
INSERT INTO spell_linked_spell VALUES (-52249, 41909, 0, 'Hell Hath a Fury: Hex of Air Knockback');
INSERT INTO spell_linked_spell VALUES (-52278, 52279, 0, 'Hell Hath a Fury: High Priestess Tua-Tua on Burn');
INSERT INTO spell_linked_spell VALUES (52279, 45254, 1, 'On spellhit Tua-Tua on Burn - Spellcast Suicide');
INSERT INTO spell_linked_spell VALUES (52303, 45254, 1, 'On spellhit Hawinni on Frozen - Spellcast Suicide');
DELETE FROM smart_scripts WHERE entryorguid IN(28752, 28754, 28756) AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid IN(28752*100, 28754*100, 28756*100) AND source_type=9;
INSERT INTO smart_scripts VALUES (28752, 0, 0, 2, 11, 0, 100, 0, 0, 0, 0, 0, 11, 51733, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'High Priest Mu''funu - On Respawn - Cast Shadow Channelling');
INSERT INTO smart_scripts VALUES (28752, 0, 1, 2, 21, 0, 100, 0, 0, 0, 0, 0, 11, 51733, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'High Priest Mu''funu - On Reached Home - Cast Shadow Channelling');
INSERT INTO smart_scripts VALUES (28752, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 42, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'High Priest Mu''funu - Linked - Reset Invincibility Hp');
INSERT INTO smart_scripts VALUES (28752, 0, 3, 0, 0, 0, 100, 0, 0, 0, 2500, 2500, 11, 20820, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'High Priest Mu''funu - In Combat - Cast Holy Smite');
INSERT INTO smart_scripts VALUES (28752, 0, 4, 0, 0, 0, 100, 0, 0, 0, 30000, 30000, 11, 11974, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'High Priest Mu''funu - In Combat - Cast Power Word: Shield');
INSERT INTO smart_scripts VALUES (28752, 0, 5, 0, 0, 0, 100, 0, 50, 50, 15000, 20000, 11, 11640, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'High Priest Mu''funu - In Combat - Cast Renew');
INSERT INTO smart_scripts VALUES (28752, 0, 6, 0, 8, 0, 100, 0, 52250, 0, 0, 0, 42, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'High Priest Mu''funu - On Spellhit Quetz''lun''s Hex - Set Invincibility Hp 1');
INSERT INTO smart_scripts VALUES (28752, 0, 7, 8, 2, 0, 100, 1, 0, 0, 0, 0, 33, 28753, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 'High Priest Mu''funu - Between 0-0% Health - Quest Credit Hell Hath a Fury');
INSERT INTO smart_scripts VALUES (28752, 0, 8, 9, 61, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'High Priest Mu''funu - Between 0-0% Health - Say Line 0');
INSERT INTO smart_scripts VALUES (28752, 0, 9, 10, 61, 0, 100, 0, 0, 0, 0, 0, 11, 52249, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'High Priest Mu''funu - Between 0-0% Health - Cast Quetz''lun''s Hex of Air');
INSERT INTO smart_scripts VALUES (28752, 0, 10, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 13500, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'High Priest Mu''funu - Between 0-0% Health - Despawn');
INSERT INTO smart_scripts VALUES (28754, 0, 0, 2, 11, 0, 100, 0, 0, 0, 0, 0, 11, 51733, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'High Priestess Tua-Tua - On Respawn - Cast Shadow Channelling');
INSERT INTO smart_scripts VALUES (28754, 0, 1, 2, 21, 0, 100, 0, 0, 0, 0, 0, 11, 51733, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'High Priestess Tua-Tua - On Reached Home - Cast Shadow Channelling');
INSERT INTO smart_scripts VALUES (28754, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 42, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'High Priestess Tua-Tua - Linked - Reset Invincibility Hp');
INSERT INTO smart_scripts VALUES (28754, 0, 3, 0, 4, 0, 100, 0, 0, 0, 0, 0, 11, 29406, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'High Priestess Tua-Tua - On Aggro - Cast Shadowform');
INSERT INTO smart_scripts VALUES (28754, 0, 4, 0, 0, 0, 100, 0, 2000, 3000, 15000, 20000, 11, 51818, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'High Priestess Tua-Tua - In Combat - Cast Shadow Word: Death');
INSERT INTO smart_scripts VALUES (28754, 0, 5, 0, 0, 0, 100, 0, 4000, 5000, 3000, 5000, 11, 13860, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'High Priestess Tua-Tua - In Combat - Cast Mind Blast');
INSERT INTO smart_scripts VALUES (28754, 0, 6, 0, 8, 0, 100, 0, 52250, 0, 0, 0, 42, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'High Priestess Tua-Tua - On Spellhit Quetz''lun''s Hex - Set Invincibility Hp 1');
INSERT INTO smart_scripts VALUES (28754, 0, 7, 8, 2, 0, 100, 1, 0, 0, 0, 0, 33, 28755, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 'High Priestess Tua-Tua - Between 0-0% Health - Quest Credit Hell Hath a Fury');
INSERT INTO smart_scripts VALUES (28754, 0, 8, 9, 61, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'High Priestess Tua-Tua - Between 0-0% Health - Say Line 0');
INSERT INTO smart_scripts VALUES (28754, 0, 9, 0, 61, 0, 100, 0, 0, 0, 0, 0, 11, 52278, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'High Priestess Tua-Tua - Between 0-0% Health - Cast Quetz''lun''s Hex of Fire');
INSERT INTO smart_scripts VALUES (28754, 0, 10, 0, 8, 0, 100, 0, 52279, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'High Priestess Tua-Tua - On Spellhit Hell Hath a Fury: High Priestess Tua-Tua on Burn - Say Line 1');
INSERT INTO smart_scripts VALUES (28756, 0, 0, 0, 25, 0, 100, 0, 0, 0, 0, 0, 42, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'High Priestess Tua-Tua - On Reset - Reset Invincibility Hp');
INSERT INTO smart_scripts VALUES (28756, 0, 1, 0, 0, 0, 100, 0, 2000, 3000, 10000, 15000, 11, 54603, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'High Priest Hawinni - In Combat - Cast Serpent''s Agility');
INSERT INTO smart_scripts VALUES (28756, 0, 2, 3, 2, 0, 100, 1, 0, 40, 0, 0, 11, 50420, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'High Priest Hawinni - Between 0-40% Health - Cast Enrage');
INSERT INTO smart_scripts VALUES (28756, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'High Priest Hawinni - Between 0-40% Health - Say Line 0');
INSERT INTO smart_scripts VALUES (28756, 0, 4, 0, 8, 0, 100, 0, 52250, 0, 0, 0, 42, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'High Priest Hawinni - On Spellhit Quetz''lun''s Hex - Set Invincibility Hp 1');
INSERT INTO smart_scripts VALUES (28756, 0, 5, 6, 2, 0, 100, 1, 0, 0, 0, 0, 33, 28757, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 'High Priest Hawinni - Between 0-0% Health - Quest Credit Hell Hath a Fury');
INSERT INTO smart_scripts VALUES (28756, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 80, 2875600, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'High Priest Hawinni - Between 0-0% Health - Run Script');
INSERT INTO smart_scripts VALUES (2875600, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 52287, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'High Priest Hawinni - On Script - Cast Quetz''lun''s Hex of Frost');
INSERT INTO smart_scripts VALUES (2875600, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'High Priest Hawinni - On Script - Say Line 1');
INSERT INTO smart_scripts VALUES (2875600, 9, 2, 0, 0, 0, 100, 0, 10000, 10000, 0, 0, 11, 42267, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'High Priest Hawinni - On Script - Cast Random Circumference Point Bone');
INSERT INTO smart_scripts VALUES (2875600, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 42274, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'High Priest Hawinni - On Script - Cast Random Circumference Point Bone 2');
INSERT INTO smart_scripts VALUES (2875600, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 42267, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'High Priest Hawinni - On Script - Cast Random Circumference Point Bone');
INSERT INTO smart_scripts VALUES (2875600, 9, 5, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 42274, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'High Priest Hawinni - On Script - Cast Random Circumference Point Bone 2');
INSERT INTO smart_scripts VALUES (2875600, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 52320, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'High Priest Hawinni - On Script - Cast Hell Hath a Fury: Random Circumference Point Ice Chunk');
INSERT INTO smart_scripts VALUES (2875600, 9, 7, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 42267, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'High Priest Hawinni - On Script - Cast Random Circumference Point Bone');
INSERT INTO smart_scripts VALUES (2875600, 9, 8, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 42274, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'High Priest Hawinni - On Script - Cast Random Circumference Point Bone 2');
INSERT INTO smart_scripts VALUES (2875600, 9, 9, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 52320, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'High Priest Hawinni - On Script - Cast Hell Hath a Fury: Random Circumference Point Ice Chunk');
INSERT INTO smart_scripts VALUES (2875600, 9, 10, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 52320, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'High Priest Hawinni - On Script - Cast Hell Hath a Fury: Random Circumference Point Ice Chunk');
INSERT INTO smart_scripts VALUES (2875600, 9, 11, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 52320, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'High Priest Hawinni - On Script - Cast Hell Hath a Fury: Random Circumference Point Ice Chunk');
INSERT INTO smart_scripts VALUES (2875600, 9, 12, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 52320, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'High Priest Hawinni - On Script - Cast Hell Hath a Fury: Random Circumference Point Ice Chunk');
INSERT INTO smart_scripts VALUES (2875600, 9, 13, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'High Priest Hawinni - On Script - Say Line 2');
INSERT INTO smart_scripts VALUES (2875600, 9, 14, 0, 0, 0, 100, 0, 50, 50, 0, 0, 11, 52303, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'High Priest Hawinni - On Script - Cast Hell Hath a Fury: High Priest Hawinni on Frozen');
-- The Kor'kron Vanguard! (12224)
DELETE FROM conditions WHERE SourceTypeOrReferenceId IN(19, 20) AND SourceEntry=12224;
INSERT INTO conditions VALUES (19, 0, 12224, 0, 0, 8, 0, 12008, 0, 0, 0, 0, 0, '', 'Requires quest rewarded');
INSERT INTO conditions VALUES (19, 0, 12224, 0, 0, 8, 0, 12072, 0, 0, 0, 0, 0, '', 'Requires quest rewarded');
INSERT INTO conditions VALUES (19, 0, 12224, 0, 0, 8, 0, 12140, 0, 0, 0, 0, 0, '', 'Requires quest rewarded');
INSERT INTO conditions VALUES (19, 0, 12224, 0, 0, 8, 0, 12221, 0, 0, 0, 0, 0, '', 'Requires quest rewarded');
INSERT INTO conditions VALUES (20, 0, 12224, 0, 0, 8, 0, 12008, 0, 0, 0, 0, 0, '', 'Requires quest rewarded');
INSERT INTO conditions VALUES (20, 0, 12224, 0, 0, 8, 0, 12072, 0, 0, 0, 0, 0, '', 'Requires quest rewarded');
INSERT INTO conditions VALUES (20, 0, 12224, 0, 0, 8, 0, 12140, 0, 0, 0, 0, 0, '', 'Requires quest rewarded');
INSERT INTO conditions VALUES (20, 0, 12224, 0, 0, 8, 0, 12221, 0, 0, 0, 0, 0, '', 'Requires quest rewarded');
-- Into the Fold (11978)
UPDATE quest_template SET PrevQuestId=0 WHERE Id=11978;
UPDATE quest_template SET NextQuestId=11978 WHERE Id IN(11977, 11979);
-- A Strange Device (12055)
-- A Strange Device (12059)
DELETE FROM conditions WHERE SourceTypeOrReferenceId=1 AND SourceEntry IN(36742, 36746);
INSERT INTO conditions VALUES (1, 26349, 36742, 0, 0, 14, 0, 12004, 0, 0, 1, 0, 0, '', 'Requires quest status');
INSERT INTO conditions VALUES (1, 26349, 36746, 0, 0, 14, 0, 12005, 0, 0, 1, 0, 0, '', 'Requires quest status');
-- Attunement to Dalaran (12172)
-- Attunement to Dalaran (12173)
UPDATE smart_scripts SET event_flags=0 WHERE entryorguid=27135 AND source_type=0;
-- Strengthen the Ancients (12092)
-- Strengthen the Ancients (12096)
UPDATE smart_scripts SET event_flags=0 WHERE entryorguid=26321 AND source_type=0;
-- Spiritual Insight (12028)
UPDATE creature_template SET flags_extra=130, AIName='', ScriptName='npc_spiritual_insight' WHERE entry=26594;
DELETE FROM spell_linked_spell WHERE spell_trigger=47190;
INSERT INTO spell_linked_spell VALUES(47190, 47189, 1, "Toalu'u's Spiritual Incense");
DELETE FROM event_scripts WHERE id IN(17604, 17605, 17606, 17607, 17608, 17609);
INSERT INTO event_scripts VALUES (17604, 0, 10, 26594, 1, 0, 2686, 934, 18, 0);
INSERT INTO event_scripts VALUES (17605, 0, 10, 26594, 1, 0, 3097, 1037, 128, 0);
INSERT INTO event_scripts VALUES (17606, 0, 10, 26594, 1, 0, 3014, 1321, 168, 0);
INSERT INTO event_scripts VALUES (17607, 0, 10, 26594, 1, 0, 2854, 1514, 167, 0);
INSERT INTO event_scripts VALUES (17608, 0, 10, 26594, 1, 0, 3129, 1556, 178, 0);
INSERT INTO event_scripts VALUES (17609, 0, 10, 26594, 1, 0, 3117, 1288, 173, 0);
INSERT INTO event_scripts VALUES (17609, 0, 7, 12028, 0, 0, 0, 0, 0, 0);
DELETE FROM creature_text WHERE entry=26594;
INSERT INTO creature_text VALUES(26594, 0, 0, "You've successfully freed your spirit! You can serve as my eyes. Together we'll get to the bottom of this.", 15, 0, 100, 0, 0, 0, 0, "Spiritual Insight");
INSERT INTO creature_text VALUES(26594, 1, 0, "You're coming up on the village now. Keep your eyes peeled.", 15, 0, 100, 0, 0, 0, 0, "Spiritual Insight");
INSERT INTO creature_text VALUES(26594, 2, 0, "What's happened to the lake bed? Strange power is pouring out of it.", 15, 0, 100, 0, 0, 0, 0, "Spiritual Insight");
INSERT INTO creature_text VALUES(26594, 3, 0, "No... no! My people are all dead spirits or deranged!", 15, 0, 100, 0, 0, 0, 0, "Spiritual Insight");
INSERT INTO creature_text VALUES(26594, 4, 0, "Elder Mana'loa, the statue there, sees you. This is a good sign!", 15, 0, 100, 0, 0, 0, 0, "Spiritual Insight");
INSERT INTO creature_text VALUES(26594, 5, 0, "Come back, $N. If you're out of your body for too long, you run the risk of not being able to return. We have much to discuss.", 15, 0, 100, 0, 0, 0, 0, "Spiritual Insight");
-- Rifle the Bodies (11999)
-- Rifle the Bodies (12000)
DELETE FROM conditions WHERE SourceTypeOrReferenceId=18 AND SourceGroup=26477;
INSERT INTO conditions VALUES (18, 26477, 61832, 0, 0, 9, 0, 11999, 0, 0, 0, 0, 0, '', 'Required quest active for spellclick');
INSERT INTO conditions VALUES (18, 26477, 61832, 0, 1, 9, 0, 12000, 0, 0, 0, 0, 0, '', 'Required quest active for spellclick');
UPDATE creature_template SET modelid2=0, flags_extra=2 WHERE entry=26477;
DELETE FROM npc_spellclick_spells WHERE npc_entry=26477;
INSERT INTO npc_spellclick_spells VALUES (26477, 61832, 1, 0);
DELETE FROM smart_scripts WHERE entryorguid=26477 AND source_type=0;
INSERT INTO smart_scripts VALUES (26477, 0, 0, 1, 8, 0, 100, 0, 61832, 0, 0, 0, 11, 47096, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Dead Mage Hunter - On Spellhit 'Rifle the Bodies: Create Magehunter Personal Effects Cover' - Cast Spell");
INSERT INTO smart_scripts VALUES (26477, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Dead Mage Hunter - On Spellhit 'Rifle the Bodies: Create Magehunter Personal Effects Cover' - Despawn Instant (No Repeat)");
-- That Which Creates Can Also Destroy (12459)
UPDATE creature_template SET InhabitType=4 WHERE entry=27821;
-- Containing the Rot (12100)
UPDATE creature_loot_template SET ChanceOrQuestChance=-15 WHERE item=36800;
-- The Twilight Destroyer (26034)
UPDATE quest_template SET OfferRewardText="<Krasus listens intently as you relate your battle with Halion, and then his eyes go wide at the mention of Deathwing.>$N$NWe owe you a debt of gratitude, mortal, for driving the invaders from the Sanctum. But this news of the Destroyer is troubling beyond words. I have much to discuss with the other members of the Accord.$N$NTake these as a token of my thanks, as you gird yourselves for the coming storm." WHERE Id=26034;
-- Perfect Dissemblance (12260)
DELETE FROM creature_text WHERE entry IN(27202, 27405, 27406);
INSERT INTO creature_text VALUES (27202, 0, 0, 'Abbendis will see you purged!', 12, 0, 100, 0, 0, 0, 0, 'Onslaught Raven Priest');
INSERT INTO creature_text VALUES (27202, 0, 1, 'You are impure!', 12, 0, 100, 0, 0, 0, 0, 'Onslaught Raven Priest');
INSERT INTO creature_text VALUES (27202, 0, 2, 'Gah! What are you doing?', 12, 0, 100, 5, 0, 7256, 0, 'Onslaught Raven Priest');
INSERT INTO creature_text VALUES (27202, 1, 0, 'I sense the taint of this land in you, footman. Report to the Bishop before the start of your next shift.', 12, 0, 100, 0, 0, 0, 0, 'Onslaught Raven Priest');
INSERT INTO creature_text VALUES (27202, 1, 1, 'Your protection is strong, child. Continue your work.', 12, 0, 100, 0, 0, 0, 0, 'Onslaught Raven Priest');
INSERT INTO creature_text VALUES (27202, 1, 2, 'The Grand Admiral himself has come to see to our dedication. If I see you slacking on your post again, I will gut you myself.', 12, 0, 100, 0, 0, 0, 0, 'Onslaught Raven Priest');
INSERT INTO creature_text VALUES (27202, 1, 3, 'You require the Bishop''s blessing. Go to him soon.', 12, 0, 100, 0, 0, 0, 0, 'Onslaught Raven Priest');
INSERT INTO creature_text VALUES (27202, 2, 0, 'HELP! HELP! THIS $g MAN : WOMAN; HAS STOLEN MY IMAGE!', 12, 0, 100, 0, 0, 0, 0, 'Onslaught Raven Priest');
INSERT INTO creature_text VALUES (27405, 0, 0, 'What''s going on here, sarge?', 12, 0, 100, 0, 0, 0, 0, 'Onslaught Footman');
INSERT INTO creature_text VALUES (27406, 0, 0, 'I don''t know. Better kill them both to be on the safe side!', 12, 0, 100, 0, 0, 0, 0, 'Onslaught Footman');
UPDATE creature_template SET AIName="SmartAI" WHERE entry IN (27202, 27405, 27406);
DELETE FROM smart_scripts WHERE entryorguid IN (27202, 27405, 27406) AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid IN (2740500, 2740600) AND source_type=9;
INSERT INTO smart_scripts VALUES (27202, 0, 0, 0, 0, 0, 100, 0, 500, 1000, 3000, 3500, 11, 50740, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Onslaught Raven Priest - In Combat - Cast Raven Flock');
INSERT INTO smart_scripts VALUES (27202, 0, 1, 0, 2, 0, 100, 0, 0, 30, 14000, 18000, 11, 50750, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Onslaught Raven Priest - Between 0-30% Health - Cast Raven Heal');
INSERT INTO smart_scripts VALUES (27202, 0, 2, 3, 8, 0, 100, 0, 48679, 0, 0, 0, 85, 48762, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Onslaught Raven Priest - On Spellhit Banshee''s Magic Mirror - Cast A Fall from Grace: Scarlet Raven Priest Image - Master');
INSERT INTO smart_scripts VALUES (27202, 0, 3, 4, 61, 0, 100, 0, 0, 0, 0, 0, 11, 48648, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Onslaught Raven Priest - On Spellhit Banshee''s Magic Mirror - Cast The Perfect Dissemblance: Summon Player''s Footman & Credit Credit');
INSERT INTO smart_scripts VALUES (27202, 0, 4, 5, 61, 0, 100, 0, 0, 0, 0, 0, 85, 48654, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Onslaught Raven Priest - On Spellhit Banshee''s Magic Mirror - Cast The Perfect Dissemblance: Summon Priest''s Footman');
INSERT INTO smart_scripts VALUES (27202, 0, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Onslaught Raven Priest - On Spellhit Banshee''s Magic Mirror - Say Line 2');
INSERT INTO smart_scripts VALUES (27202, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 2, 14, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Onslaught Raven Priest - On Spellhit Banshee''s Magic Mirror - Set Faction');
INSERT INTO smart_scripts VALUES (27405, 0, 0, 0, 54, 0, 100, 0, 0, 0, 0, 0, 80, 2740500, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Onslaught Footman - On just summoned - Action list');
INSERT INTO smart_scripts VALUES (2740500, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 2, 14, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Onslaught Footman - Action list - Set faction');
INSERT INTO smart_scripts VALUES (2740500, 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, 'Onslaught Footman - Action list - Talk text1');
INSERT INTO smart_scripts VALUES (2740500, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 40, 0, 0, 0, 0, 0, 0, 'Onslaught Footman - Action list - Start attack');
INSERT INTO smart_scripts VALUES (27405, 0, 1, 0, 0, 0, 100, 0, 2000, 2000, 28000, 28000, 11, 50713, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Onslaught Footman - IC - Unrelenting Onslaught');
INSERT INTO smart_scripts VALUES (27406, 0, 0, 0, 54, 0, 100, 0, 0, 0, 0, 0, 80, 2740600, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Onslaught Footman - On just summoned - Action list');
INSERT INTO smart_scripts VALUES (2740600, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 2, 14, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Onslaught Footman - Action list - Set faction');
INSERT INTO smart_scripts VALUES (2740600, 9, 1, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Onslaught Footman - Action list - Talk text1');
INSERT INTO smart_scripts VALUES (2740600, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 40, 0, 0, 0, 0, 0, 0, 'Onslaught Footman - Action list - Start attack');
INSERT INTO smart_scripts VALUES (27406, 0, 1, 0, 0, 0, 100, 0, 2000, 2000, 28000, 28000, 11, 50713, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Onslaught Footman - IC - Unrelenting Onslaught');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=22 AND SourceEntry=27202;
-- Return of the High Chief (12069)
UPDATE creature_template SET AIName='SmartAI' WHERE entry IN(26772, 26654, 26656, 26608);
REPLACE INTO creature_template_addon VALUES (26772, 0, 0, 0, 1, 0, '');
REPLACE INTO creature_template_addon VALUES (26608, 0, 0, 0, 1, 0, '');
REPLACE INTO creature_template_addon VALUES (26656, 0, 0, 0, 1, 0, '');
REPLACE INTO creature_template_addon VALUES (26654, 0, 0, 0, 1, 0, '');
UPDATE gameobject_template SET AIName='SmartGameObjectAI' WHERE entry=188463;
DELETE FROM smart_scripts WHERE entryorguid=188463 AND source_type=1;
INSERT INTO smart_scripts VALUES (188463, 1, 0, 1, 70, 0, 100, 0, 2, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 19, 26654, 50, 0, 0, 0, 0, 0, 'Anub ar Mechanism - On State Changed - Set Data on Roanauk Icemist');
INSERT INTO smart_scripts VALUES (188463, 1, 1, 0, 61, 0, 100, 0, 2, 0, 0, 0, 70, 600, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Anub ar Mechanism - On State Changed - Despawn GO');
DELETE FROM smart_scripts WHERE entryorguid=26656 AND source_type=0;
INSERT INTO smart_scripts VALUES (26656, 0, 0, 0, 38, 0, 100, 0, 1, 1, 0, 0, 11, 47272, 0, 0, 0, 0, 0, 9, 26656, 10, 20, 0, 0, 0, 0, 'Anub''ar Prison - On Data Set 1 1 - Cast Anub''ar Prison');
INSERT INTO smart_scripts VALUES (26656, 0, 1, 0, 38, 0, 100, 0, 2, 2, 0, 0, 28, 47272, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Anub''ar Prison - On Data Set 2 2 - Remove Anub''ar Prison');
DELETE FROM smart_scripts WHERE entryorguid=26772 AND source_type=0;
INSERT INTO smart_scripts VALUES (26772, 0, 0, 0, 11, 0, 100, 0, 0, 0, 0, 0, 11, 29266, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Icemist Warrior - On Spawn - Cast Permament Feign Death');
INSERT INTO smart_scripts VALUES (26772, 0, 1, 0, 8, 0, 100, 0, 47378, 0, 0, 0, 28, 29266, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Icemist Warrior - On On Spell Hit (Glory of the Ancestors) - Remove Aura Permament Feign Death');
INSERT INTO smart_scripts VALUES (26772, 0, 2, 0, 38, 0, 100, 0, 1, 1, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Icemist Warrior - On Data Set - Despawn');
DELETE FROM smart_scripts WHERE entryorguid=26654 AND source_type=0;
INSERT INTO smart_scripts VALUES (26654, 0, 0, 1, 11, 0, 100, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 11, 26656, 10, 0, 0, 0, 0, 0, 'Roanauk Icemist - On Spawn - Set Data 1 1 on Anub''ar Prison');
INSERT INTO smart_scripts VALUES (26654, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Roanauk Icemist - On Spawn - Set Phase 1');
INSERT INTO smart_scripts VALUES (26654, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 11, 47273, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Roanauk Icemist - On Spawn - Cast Icemist''s Prison');
INSERT INTO smart_scripts VALUES (26654, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Roanauk Icemist - On Spawn - Set Passive');
INSERT INTO smart_scripts VALUES (26654, 0, 4, 0, 1, 1, 100, 0, 5000, 30000, 120000, 150000, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Roanauk Icemist - OOC (Phase 1) - Say Line 0');
INSERT INTO smart_scripts VALUES (26654, 0, 5, 0, 38, 0, 100, 1, 1, 1, 0, 0, 80, 2665400, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Roanauk Icemist - On Data Set 1 1 - Run Script');
INSERT INTO smart_scripts VALUES (26654, 0, 6, 0, 40, 0, 100, 0, 1, 0, 0, 0, 80, 2665401, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Roanauk Icemist - On Reached WP1 - Run Script');
INSERT INTO smart_scripts VALUES (26654, 0, 7, 0, 38, 0, 100, 0, 2, 2, 0, 0, 80, 2665402, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Roanauk Icemist - On Data Set - Run Script');
DELETE FROM smart_scripts WHERE entryorguid=26608 AND source_type=0;
INSERT INTO smart_scripts VALUES (26608, 0, 0, 1, 38, 0, 100, 0, 1, 1, 0, 0, 97, 15, 60, 0, 0, 0, 0, 1, 0, 0, 0, 4088.679932, 2219.449951, 150.304993, 0, 'Under-King Anub''et''kan - On Data Set - Jump to Position');
INSERT INTO smart_scripts VALUES (26608, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 67, 1, 6000, 6000, 0, 0, 100, 1, 0, 0, 0, 0, 0, 0, 0, 'Under-King Anub''et''kan - On Data Set - Create Timed Event');
INSERT INTO smart_scripts VALUES (26608, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 8, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Under-King Anub''et''kan - On Data Set - Set Agressive');
INSERT INTO smart_scripts VALUES (26608, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Under-King Anub''et''kan - On Data Set - Set Unit Flags');
INSERT INTO smart_scripts VALUES (26608, 0, 4, 0, 1, 0, 100, 0, 0, 0, 25000, 45000, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Under-King Anub''et''kan - OOC - Say Line 0');
INSERT INTO smart_scripts VALUES (26608, 0, 5, 6, 6, 0, 100, 0, 0, 0, 0, 0, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Under-King Anub''et''kan - On Death - Say Line 3');
INSERT INTO smart_scripts VALUES (26608, 0, 6, 7, 61, 0, 100, 0, 0, 0, 0, 0, 1, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Under-King Anub''et''kan - On Death - Say Line 4');
INSERT INTO smart_scripts VALUES (26608, 0, 7, 8, 61, 0, 100, 0, 0, 0, 0, 0, 11, 47400, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Under-King Anub''et''kan - On Death - Cast Summon Husk');
INSERT INTO smart_scripts VALUES (26608, 0, 8, 9, 61, 0, 100, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 11, 26772, 100, 0, 0, 0, 0, 0, 'Under-King Anub''et''kan - On Death - Set Data on Icemist');
INSERT INTO smart_scripts VALUES (26608, 0, 9, 10, 61, 0, 100, 0, 0, 0, 0, 0, 41, 10000, 0, 0, 0, 0, 0, 19, 26654, 0, 0, 0, 0, 0, 0, 'Under-King Anub''et''kan - On Death - Set Data on Roanauk Icemist');
INSERT INTO smart_scripts VALUES (26608, 0, 10, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Under-King Anub''et''kan - On Death - Despawn');
INSERT INTO smart_scripts VALUES (26608, 0, 11, 0, 59, 0, 100, 0, 1, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Under-King Anub''et''kan - Timed Event - Set Home Position');
INSERT INTO smart_scripts VALUES (26608, 0, 12, 0, 7, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Under-King Anub''et''kan - On Evade - Despawn');
INSERT INTO smart_scripts VALUES (26608, 0, 13, 0, 11, 0, 100, 0, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Under-King Anub''et''kan - On Spawn - Set Unit Flags');
DELETE FROM smart_scripts WHERE entryorguid IN(2665400, 2665401, 2665402, 2660800) AND source_type=9;
INSERT INTO smart_scripts VALUES (2665400, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 28, 47273, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Roanauk Icemist - Script - Remove Aura Icemist''s Prison');
INSERT INTO smart_scripts VALUES (2665400, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 45, 2, 2, 0, 0, 0, 0, 9, 26656, 0, 200, 0, 0, 0, 0, 'Roanauk Icemist - Script - Set Data 2 2 on Anub''ar Prison');
INSERT INTO smart_scripts VALUES (2665400, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 22, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Roanauk Icemist - Script - Set Phase 2');
INSERT INTO smart_scripts VALUES (2665400, 9, 3, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Roanauk Icemist - Script - Say Line 1');
INSERT INTO smart_scripts VALUES (2665400, 9, 4, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 53, 0, 26654, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Roanauk Icemist - Script - Start WP');
INSERT INTO smart_scripts VALUES (2665401, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Roanauk Icemist - Script 2 - Say Line 2');
INSERT INTO smart_scripts VALUES (2665401, 9, 1, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Roanauk Icemist - Script 2 - Say Line 3');
INSERT INTO smart_scripts VALUES (2665401, 9, 2, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 19, 26608, 100, 0, 0, 0, 0, 0, 'Roanauk Icemist - Script 2 - Say Line 1 on Under-King Anub''et''kan');
INSERT INTO smart_scripts VALUES (2665401, 9, 3, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 11, 47378, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Roanauk Icemist - Script 2 - Cast Glory of the Ancestors');
INSERT INTO smart_scripts VALUES (2665401, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Roanauk Icemist - Script 2 - Say Line 4');
INSERT INTO smart_scripts VALUES (2665401, 9, 5, 0, 0, 0, 100, 0, 7000, 7000, 0, 0, 11, 47379, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Roanauk Icemist - Script 2 - Cast Icemist''s Blessing');
INSERT INTO smart_scripts VALUES (2665401, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 5, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Roanauk Icemist - Script 2 - Say Line 5');
INSERT INTO smart_scripts VALUES (2665401, 9, 7, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 1, 6, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Roanauk Icemist - Script 2 - Say Line 6');
INSERT INTO smart_scripts VALUES (2665401, 9, 8, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 1, 2, 0, 0, 0, 0, 0, 19, 26608, 100, 0, 0, 0, 0, 0, 'Roanauk Icemist - Script 2 - Say Line 2 on Under-King Anub''et''kan');
INSERT INTO smart_scripts VALUES (2665401, 9, 9, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 1, 7, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Roanauk Icemist - Script 2 - Say Line 7');
INSERT INTO smart_scripts VALUES (2665401, 9, 10, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 45, 1, 1, 0, 0, 0, 0, 19, 26608, 100, 0, 0, 0, 0, 0, 'Roanauk Icemist - Script 2 - Say Line 7');
INSERT INTO smart_scripts VALUES (2665401, 9, 11, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Roanauk Icemist - Script 2 - Set Unit Flags');
INSERT INTO smart_scripts VALUES (2665401, 9, 12, 0, 0, 0, 100, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Roanauk Icemist - Script 2 - Set Home Position');
INSERT INTO smart_scripts VALUES (2665401, 9, 13, 0, 0, 0, 100, 0, 0, 0, 0, 0, 8, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Roanauk Icemist - Script 2 - Set Agressive');
INSERT INTO smart_scripts VALUES (2665401, 9, 14, 0, 0, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 19, 26608, 0, 0, 0, 0, 0, 0, 'Roanauk Icemist - Script 2 - Attack');
-- All Hail Roanauk! (12140)
DELETE FROM smart_scripts WHERE entryorguid=26379 AND source_type=0;
INSERT INTO smart_scripts VALUES (26379, 0, 0, 1, 19, 0, 100, 0, 12140, 0, 0, 0, 48, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Overlord Agmar - On Quest Accept (All Hail Roanauk!) - Set Active on');
INSERT INTO smart_scripts VALUES (26379, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 81, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Overlord Agmar - On Quest Accept (All Hail Roanauk!) - Set Npc Flags');
INSERT INTO smart_scripts VALUES (26379, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 91, 255, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Overlord Agmar - On Quest Accept (All Hail Roanauk!) - Remove Bytes 1');
INSERT INTO smart_scripts VALUES (26379, 0, 3, 4, 61, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Overlord Agmar - On Quest Accept (All Hail Roanauk!) - Say Line 1');
INSERT INTO smart_scripts VALUES (26379, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 53, 0, 26379, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Overlord Agmar - On Quest Accept (All Hail Roanauk!) - Start WP');
INSERT INTO smart_scripts VALUES (26379, 0, 5, 0, 40, 0, 100, 0, 10, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 19, 26810, 0, 0, 0, 0, 0, 0, 'Overlord Agmar - On reached WP10 - Set Orientation');
INSERT INTO smart_scripts VALUES (26379, 0, 6, 7, 38, 0, 100, 0, 1, 1, 0, 0, 101, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Overlord Agmar - On Data Set - Set Home Pos (Respawn)');
INSERT INTO smart_scripts VALUES (26379, 0, 7, 0, 61, 0, 100, 0, 0, 0, 0, 0, 24, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Overlord Agmar - On Data Set - Evade');
INSERT INTO smart_scripts VALUES (26379, 0, 8, 9, 21, 0, 100, 0, 0, 0, 0, 0, 81, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Overlord Agmar - On Reached Home - Set Unit Flags');
INSERT INTO smart_scripts VALUES (26379, 0, 9, 0, 61, 0, 100, 0, 0, 0, 0, 0, 48, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Overlord Agmar - On Reached Home - Set Active off');
-- On Ruby Wings (12498)
DELETE FROM creature_text WHERE entry=28006;
INSERT INTO creature_text VALUES (28006, 0, 0, 'You think you''ve won, mortal? Face the unbridled power of Antiok!', 14, 0, 100, 0, 0, 0, 0, 'Antiok Yell1');
INSERT INTO creature_text VALUES (28006, 1, 0, 'Behold! The Scythe of Antiok!', 14, 0, 100, 0, 0, 0, 0, 'Antiok Yell2');
INSERT INTO creature_text VALUES (28006, 2, 0, 'Soon, the bones of Galakrond will rise from their eternal slumber and wreak havoc upon this world!', 14, 0, 100, 0, 0, 0, 0, 'Antiok Yell3');
INSERT INTO creature_text VALUES (28006, 2, 1, 'The Lich King demands more frost wyrms be sent to Angrathar! Meet his demands or face my wrath!', 14, 0, 100, 0, 0, 0, 0, 'Antiok Yell4');
INSERT INTO creature_text VALUES (28006, 2, 2, 'Faster, dogs! We mustn''t relent in our assault against the interlopers!', 14, 0, 100, 0, 0, 0, 0, 'Antiok Yell5');
INSERT INTO creature_text VALUES (28006, 2, 3, 'Attackers are upon us! Let none through to this ancient grave!', 14, 0, 100, 0, 0, 0, 0, 'Antiok Yell6');
INSERT INTO creature_text VALUES (28006, 2, 4, 'Hear me, minions! Hear your lord, Antiok! Double your efforts or pay the consequences of failure!', 14, 0, 100, 0, 0, 0, 0, 'Antiok Yell7');
UPDATE creature_template SET unit_flags=4 WHERE entry=28006;
DELETE FROM vehicle_template_accessory WHERE entry=28018;
INSERT INTO vehicle_template_accessory VALUES (28018, 28006, 0, 0, 'Thiassi the Light Bringer', 8, 0);
DELETE FROM smart_scripts WHERE entryorguid IN(28006, 28018) AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid=28006*100 AND source_type=9;
INSERT INTO smart_scripts VALUES (28018, 0, 0, 0, 0, 0, 100, 0, 5000, 5000, 12000, 14000, 11, 50456, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Thiassi the Lightning Bringer - In Combat - Cast Thiassi''s Stormbolt');
INSERT INTO smart_scripts VALUES (28018, 0, 1, 0, 0, 0, 100, 0, 9000, 9000, 15000, 19000, 11, 15593, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Thiassi the Lightning Bringer - In Combat - Cast War Stomp');
INSERT INTO smart_scripts VALUES (28018, 0, 2, 0, 6, 0, 100, 0, 0, 0, 0, 0, 45, 1, 0, 0, 0, 0, 0, 19, 28006, 10, 0, 0, 0, 0, 0, 'Thiassi the Lightning Bringer - On Death - remove unitflag from target');
INSERT INTO smart_scripts VALUES (28006, 0, 0, 0, 0, 0, 100, 0, 7000, 7000, 18000, 18000, 11, 32863, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Grand Necrolord Antiok - In Combat - Cast Seed of Corruption');
INSERT INTO smart_scripts VALUES (28006, 0, 1, 0, 0, 0, 100, 0, 1100, 1100, 2000, 3000, 11, 50455, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Grand Necrolord Antiok - In Combat - Cast Shadow Bolt');
INSERT INTO smart_scripts VALUES (28006, 0, 2, 0, 1, 0, 100, 0, 10000, 10000, 40000, 40000, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Grand Necrolord Antiok - Out of Combat - Say Line 2');
INSERT INTO smart_scripts VALUES (28006, 0, 3, 0, 2, 0, 100, 1, 0, 25, 0, 0, 11, 50497, 1, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Grand Necrolord Antiok - Between 0-25% Health - Cast Scream of Chaos');
INSERT INTO smart_scripts VALUES (28006, 0, 4, 0, 6, 0, 100, 0, 0, 0, 0, 0, 11, 50472, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Grand Necrolord Antiok - On Just Died - Cast Drop Scythe of Antiok');
INSERT INTO smart_scripts VALUES (28006, 0, 5, 0, 25, 0, 100, 0, 0, 0, 0, 0, 11, 50494, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Grand Necrolord Antiok - On Reset - Cast Shroud of Lightning');
INSERT INTO smart_scripts VALUES (28006, 0, 6, 0, 38, 0, 100, 0, 1, 0, 0, 0, 80, 28006*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Grand Necrolord Antiok - On Data Set - Run Script');
INSERT INTO smart_scripts VALUES (28006, 0, 7, 0, 7, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Grand Necrolord Antiok - On Evade - Despawn');
INSERT INTO smart_scripts VALUES (28006*100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Grand Necrolord Antiok - Script9 - Say Line 0');
INSERT INTO smart_scripts VALUES (28006*100, 9, 1, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Grand Necrolord Antiok - Script9 - Say Line 1');
INSERT INTO smart_scripts VALUES (28006*100, 9, 2, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 11, 50501, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Grand Necrolord Antiok - Script9 - Cast Flesh Harvest');
INSERT INTO smart_scripts VALUES (28006*100, 9, 3, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 28, 50494, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Grand Necrolord Antiok - Script9 - Remove Aura Shroud of Lightning');
INSERT INTO smart_scripts VALUES (28006*100, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 19, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Grand Necrolord Antiok - Script9 - Remove Unit Flags');
INSERT INTO smart_scripts VALUES (28006*100, 9, 5, 0, 0, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 30, 0, 0, 0, 0, 0, 0, 'Grand Necrolord Antiok - Script9 - Attack Start');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=50501;
INSERT INTO conditions VALUES (13, 3, 50501, 0, 0, 31, 0, 3, 27996, 0, 0, 0, 0, '', 'Target Wyrmrest Vanquisher');
-- The Might of the Horde (12053)
UPDATE creature_template SET unit_flags=4, AIName='SmartAI', ScriptName='' WHERE entry=26678;
DELETE FROM smart_scripts WHERE entryorguid=26678 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid=26678*100 AND source_type=9;
INSERT INTO smart_scripts VALUES (26678, 0, 0, 0, 60, 0, 100, 1, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Warsong Battle Standard - On Update - Set React State Passive');
INSERT INTO smart_scripts VALUES (26678, 0, 1, 0, 6, 0, 100, 0, 0, 0, 0, 0, 6, 12053, 0, 0, 0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, 'Warsong Battle Standard - On Just Died - Fail Quest The Might of the Horde');
INSERT INTO smart_scripts VALUES (26678, 0, 2, 0, 54, 0, 100, 0, 0, 0, 0, 0, 80, 26678*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Warsong Battle Standard - On Just Summoned - Run Script');
INSERT INTO smart_scripts VALUES (26678*100, 9, 0, 0, 0, 0, 100, 0, 5000, 15000, 0, 0, 11, 47303, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Warsong Battle Standard - On Script - Cast Summon Anub''ar Invader');
INSERT INTO smart_scripts VALUES (26678*100, 9, 1, 0, 0, 0, 100, 0, 8000, 15000, 0, 0, 11, 47303, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Warsong Battle Standard - On Script - Cast Summon Anub''ar Invader');
INSERT INTO smart_scripts VALUES (26678*100, 9, 2, 0, 0, 0, 100, 0, 8000, 15000, 0, 0, 11, 47303, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Warsong Battle Standard - On Script - Cast Summon Anub''ar Invader');
INSERT INTO smart_scripts VALUES (26678*100, 9, 3, 0, 0, 0, 100, 0, 8000, 15000, 0, 0, 11, 47303, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Warsong Battle Standard - On Script - Cast Summon Anub''ar Invader');
INSERT INTO smart_scripts VALUES (26678*100, 9, 4, 0, 0, 0, 100, 0, 8000, 15000, 0, 0, 11, 47303, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Warsong Battle Standard - On Script - Cast Summon Anub''ar Invader');
INSERT INTO smart_scripts VALUES (26678*100, 9, 5, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 15, 12053, 0, 0, 0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, 'Warsong Battle Standard - On Script - Quest Credit The Might of the Horde');
INSERT INTO smart_scripts VALUES (26678*100, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Warsong Battle Standard - On Script - Despawn');

View File

@@ -0,0 +1,469 @@
-- -------------------------------------------
-- GRIZZLY HILLS
-- -------------------------------------------
-- Subject to Interpretation (11991)
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=47110;
INSERT INTO conditions VALUES (13, 1, 47110, 0, 0, 31, 1, 4, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES (13, 1, 47110, 0, 0, 36, 1, 0, 0, 0, 0, 0, 0, '', '');
UPDATE quest_template SET SpecialFlags=2 WHERE Id=11991;
REPLACE INTO creature_template_addon VALUES(26500, 0, 0, 0, 65536, 0, "43167 47119");
DELETE FROM creature WHERE id IN(26500);
INSERT INTO creature VALUES (NULL, 26500, 571, 1, 1, 0, 0, 3386.21, -1805.46, 115.058, 4.96401, 600, 0, 0, 6986, 0, 0, 0, 0, 0);
DELETE FROM spell_script_names WHERE spell_id IN(47110);
INSERT INTO spell_script_names VALUES(47110, "spell_image_of_drakuru_reagent_check");
UPDATE creature_loot_template SET ChanceOrQuestChance = ABS(ChanceORQuestChance) WHERE item=35799;
-- Sacrifices Must Be Made (12007)
REPLACE INTO creature_template_addon VALUES(26543, 0, 0, 0, 65536, 0, "43167 47119");
DELETE FROM creature WHERE id IN(26543);
INSERT INTO creature VALUES (NULL, 26543, 571, 1, 1, 0, 0, 4244.1, -2025, 238.25, 1.39, 600, 0, 0, 6986, 0, 0, 0, 0, 0);
UPDATE creature_questender SET id=26543 WHERE quest=12007;
UPDATE creature_queststarter SET id=26500 WHERE quest=12007;
UPDATE creature_queststarter SET id=26543 WHERE quest=12042; -- for next quest
UPDATE gameobject_template SET ScriptName="go_seer_of_zebhalak" WHERE entry=188458;
UPDATE creature_template SET npcflag=2 WHERE entry=26543;
UPDATE creature_loot_template SET ChanceOrQuestChance = ABS(ChanceORQuestChance) WHERE item=35836;
-- My Heart is in Your Hands (12802)
UPDATE quest_template SET SpecialFlags=2 WHERE Id=12802;
REPLACE INTO creature_template_addon VALUES(26701, 0, 0, 0, 65536, 0, "43167 47119");
DELETE FROM creature WHERE id=26701;
INSERT INTO creature VALUES (NULL, 26701, 571, 1, 1, 0, 0, 4524.31, -3472.71, 228.132, 0.776044, 600, 0, 0, 6986, 0, 0, 0, 0, 0);
UPDATE creature_questender SET id=26701 WHERE quest=12802;
UPDATE creature_template SET npcflag=2 WHERE entry=26701;
UPDATE creature_loot_template SET ChanceOrQuestChance = ABS(ChanceORQuestChance) WHERE item=36743;
-- Voices From the Dust (12068)
REPLACE INTO creature_template_addon VALUES(26787, 0, 0, 0, 65536, 0, "43167 47119");
UPDATE creature_questender SET id=26787 WHERE quest=12068;
UPDATE creature_queststarter SET id=26701 WHERE quest=12068;
UPDATE creature_template SET npcflag=2, AIName='' WHERE entry=26787;
DELETE FROM smart_scripts WHERE entryorguid=26787 AND source_type=0;
UPDATE creature_loot_template SET ChanceOrQuestChance = ABS(ChanceORQuestChance) WHERE item=36758;
-- Steady as a Rock? (12014)
DELETE FROM spell_script_names WHERE spell_id IN(47130);
INSERT INTO spell_script_names VALUES(47130, "spell_q12014_steady_as_a_rock");
-- Riding the Red Rocket (12432)
-- Riding the Red Rocket (12437)
UPDATE creature SET curhealth=4920 WHERE id=27593;
DELETE FROM conditions WHERE SourceTypeOrReferenceId=18 AND SourceGroup IN(27593); -- GROUP NOT ENTRY!
INSERT INTO conditions VALUES(18, 27593, 49177, 0, 0, 2, 0, 37664, 1, 0, 0, 0, 0, '', '');
UPDATE creature_template SET AIName="", ScriptName="npc_riding_the_red_rocket" WHERE entry=27593;
-- A Dark Influence (12220)
UPDATE creature_template SET flags_extra=130, AIName='SmartAI' WHERE entry IN(27263, 27264, 27265);
DELETE FROM smart_scripts WHERE entryorguid IN(27263, 27264, 27265) AND source_type=0;
INSERT INTO smart_scripts VALUES (27263, 0, 0, 0, 8, 0, 100, 0, 48218, 0, 0, 0, 33, 27263, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'kill credit on spell hit');
INSERT INTO smart_scripts VALUES (27264, 0, 0, 0, 8, 0, 100, 0, 48218, 0, 0, 0, 33, 27264, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'kill credit on spell hit');
INSERT INTO smart_scripts VALUES (27265, 0, 0, 0, 8, 0, 100, 0, 48218, 0, 0, 0, 33, 27265, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'kill credit on spell hit');
-- In the Name of Loken (12204), fix for Softening the Blow (11998)
UPDATE smart_scripts SET action_param1=643 WHERE entryorguid=2648400 AND source_type=9 AND id=6;
-- Seared Scourge (12029)
DELETE FROM spell_script_names WHERE spell_id IN(47214);
-- Runes of Compulsion (12093)
UPDATE creature_template SET faction=1954, AIName='SmartAI' WHERE entry IN(26920, 26921, 26922, 26923);
DELETE FROM smart_scripts WHERE entryorguid=26820 AND source_type=0;
INSERT INTO smart_scripts VALUES (26820, 0, 0, 0, 1, 0, 100, 1, 1000, 1000, 1000, 1000, 11, 47463, 2, 0, 0, 0, 0, 11, 26785, 30, 0, 0, 0, 0, 0, 'Iron Rune-Weaver - On spawn & reset - Channel Rune-Weaver Channel on Directional Rune');
INSERT INTO smart_scripts VALUES (26820, 0, 1, 0, 0, 0, 100, 0, 4000, 7000, 10000, 16000, 11, 52713, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Iron Rune-Weaver - Combat - Cast Rune Weaving on victim');
UPDATE creature_template SET flags_extra=130, AIName='SmartAI' WHERE entry=26785;
DELETE FROM smart_scripts WHERE entryorguid IN(-111145, -111146, -111147, -202405) AND source_type=0;
INSERT INTO smart_scripts VALUES (-111145, 0, 0, 0, 60, 0, 100, 0, 5000, 5000, 300000, 300000, 12, 26920, 4, 30000, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Directional Rune - On Update OOC in Phase 4 - Summon Overseer Durval');
INSERT INTO smart_scripts VALUES (-111146, 0, 0, 0, 60, 0, 100, 0, 5000, 5000, 300000, 300000, 12, 26921, 4, 30000, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Directional Rune - On Update OOC in Phase 4 - Summon Overseer Korgen');
INSERT INTO smart_scripts VALUES (-111147, 0, 0, 0, 60, 0, 100, 0, 5000, 5000, 300000, 300000, 12, 26922, 4, 30000, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Directional Rune - On Update OOC in Phase 4 - Summon Overseer Lochli');
INSERT INTO smart_scripts VALUES (-202405, 0, 0, 0, 60, 0, 100, 0, 5000, 5000, 300000, 300000, 12, 26923, 4, 30000, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Directional Rune - On Update OOC in Phase 4 - Summon Overseer Brunon');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=22 AND SourceEntry IN(-111145, -111146, -111147, -202405);
INSERT INTO conditions VALUES(22, 1, -111145, 0, 0, 29, 1, 26820, 30, 0, 1, 0, 0, '', 'no npc near');
INSERT INTO conditions VALUES(22, 1, -111146, 0, 0, 29, 1, 26820, 30, 0, 1, 0, 0, '', 'no npc near');
INSERT INTO conditions VALUES(22, 1, -111147, 0, 0, 29, 1, 26820, 30, 0, 1, 0, 0, '', 'no npc near');
INSERT INTO conditions VALUES(22, 1, -202405, 0, 0, 29, 1, 26820, 30, 0, 1, 0, 0, '', 'no npc near');
DELETE FROM smart_scripts WHERE entryorguid IN(26920, 26921, 26922, 26923) AND source_type=0;
INSERT INTO smart_scripts VALUES (26920, 0, 0, 1, 54, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Overseer Durval - On Just Summoned - Say');
INSERT INTO smart_scripts VALUES (26920, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 11, 47693, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Overseer Durval - On Link - Cast Spawn - Blue Lightning');
INSERT INTO smart_scripts VALUES (26920, 0, 2, 0, 0, 0, 100, 0, 5000, 9000, 8000, 11000, 11, 52715, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Overseer Durval - In Combat - Cast Rune of Destruction');
INSERT INTO smart_scripts VALUES (26921, 0, 0, 1, 54, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Overseer Korgan - On Just Summoned - Say');
INSERT INTO smart_scripts VALUES (26921, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 11, 47693, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Overseer Korgan - On Link - Cast Spawn - Blue Lightning');
INSERT INTO smart_scripts VALUES (26921, 0, 2, 0, 0, 0, 100, 0, 3000, 5000, 7000, 9000, 11, 32018, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Overseer Korgan - In Combat - Cast Call Lightning');
INSERT INTO smart_scripts VALUES (26921, 0, 3, 0, 2, 0, 100, 0, 0, 30, 12000, 16000, 11, 52714, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Overseer Korgan - Between 0-30% Health - Cast Revitalizing Rune');
INSERT INTO smart_scripts VALUES (26922, 0, 0, 1, 54, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Overseer Lochli - On Just Summoned - Say');
INSERT INTO smart_scripts VALUES (26922, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 11, 47693, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Overseer Lochli - On Link - Cast Spawn - Blue Lightning');
INSERT INTO smart_scripts VALUES (26922, 0, 2, 0, 0, 0, 100, 0, 8000, 12000, 11000, 15000, 11, 52717, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Overseer Lochli - In Combat - Cast Thunderstorm');
INSERT INTO smart_scripts VALUES (26923, 0, 0, 1, 54, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Overseer Brunon - On Just Summoned - Say');
INSERT INTO smart_scripts VALUES (26923, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 11, 47693, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Overseer Brunon - On Link - Cast Spawn - Blue Lightning');
DELETE FROM creature_text WHERE entry IN (26920, 26921, 26922, 26923);
INSERT INTO creature_text VALUES (26920, 0, 0, 'You''ll pay for this!', 12, 0, 100, 25, 0, 0, 0, 'Overseer Durval');
INSERT INTO creature_text VALUES (26920, 0, 1, 'Fool! You''ll never get away with this!', 12, 0, 100, 25, 0, 0, 0, 'Overseer Durval');
INSERT INTO creature_text VALUES (26920, 0, 2, 'You dare to defy the sons of iron?', 12, 0, 100, 25, 0, 0, 0, 'Overseer Durval');
INSERT INTO creature_text VALUES (26920, 0, 3, 'What do you think you''re doing?', 12, 0, 100, 25, 0, 0, 0, 'Overseer Durval');
INSERT INTO creature_text VALUES (26921, 0, 0, 'You''ll pay for this!', 12, 0, 100, 25, 0, 0, 0, 'Overseer Korgan');
INSERT INTO creature_text VALUES (26921, 0, 1, 'Fool! You''ll never get away with this!', 12, 0, 100, 25, 0, 0, 0, 'Overseer Korgan');
INSERT INTO creature_text VALUES (26921, 0, 2, 'You dare to defy the sons of iron?', 12, 0, 100, 25, 0, 0, 0, 'Overseer Korgan');
INSERT INTO creature_text VALUES (26921, 0, 3, 'What do you think you''re doing?', 12, 0, 100, 25, 0, 0, 0, 'Overseer Korgan');
INSERT INTO creature_text VALUES (26922, 0, 0, 'You''ll pay for this!', 12, 0, 100, 25, 0, 0, 0, 'Overseer Lochli');
INSERT INTO creature_text VALUES (26922, 0, 1, 'Fool! You''ll never get away with this!', 12, 0, 100, 25, 0, 0, 0, 'Overseer Lochli');
INSERT INTO creature_text VALUES (26922, 0, 2, 'You dare to defy the sons of iron?', 12, 0, 100, 25, 0, 0, 0, 'Overseer Lochli');
INSERT INTO creature_text VALUES (26922, 0, 3, 'What do you think you''re doing?', 12, 0, 100, 25, 0, 0, 0, 'Overseer Lochli');
INSERT INTO creature_text VALUES (26923, 0, 0, 'You''ll pay for this!', 12, 0, 100, 25, 0, 0, 0, 'Overseer Brunon');
INSERT INTO creature_text VALUES (26923, 0, 1, 'Fool! You''ll never get away with this!', 12, 0, 100, 25, 0, 0, 0, 'Overseer Brunon');
INSERT INTO creature_text VALUES (26923, 0, 2, 'You dare to defy the sons of iron?', 12, 0, 100, 25, 0, 0, 0, 'Overseer Brunon');
INSERT INTO creature_text VALUES (26923, 0, 3, 'What do you think you''re doing?', 12, 0, 100, 25, 0, 0, 0, 'Overseer Brunon');
-- Free At Last (12099)
DELETE FROM creature_text WHERE entry=26783;
INSERT INTO creature_text VALUES(26783, 0, 0, 'I thought I was doomed. Thank you for freeing me.', 12, 0, 100, 0, 0, 0, 0, 'Free At Last (12099)');
INSERT INTO creature_text VALUES(26783, 0, 1, 'You have my gratitude.', 12, 0, 100, 0, 0, 0, 0, 'Free At Last (12099)');
INSERT INTO creature_text VALUES(26783, 0, 2, "I never thought I'd be free from that terrible spell!", 12, 0, 100, 0, 0, 0, 0, 'Free At Last (12099)');
INSERT INTO creature_text VALUES(26783, 0, 3, 'Thank you, small one.', 12, 0, 100, 0, 0, 0, 0, 'Free At Last (12099)');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=17 AND SourceEntry=47604;
INSERT INTO conditions VALUES (17, 0, 47604, 0, 0, 31, 1, 3, 26417, 0, 0, 0, 0, '', 'Requires Runed Giant');
INSERT INTO conditions VALUES (17, 0, 47604, 0, 1, 31, 1, 3, 26872, 0, 0, 0, 0, '', 'Requires Weakened Giant');
UPDATE creature_template SET AIName='SmartAI' WHERE entry=26417;
UPDATE creature_template SET minlevel=74, maxlevel=74, faction=1771 WHERE entry=26872;
DELETE FROM smart_scripts WHERE entryorguid=26417 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid IN(26417*100, 26417*100+1) AND source_type=9;
INSERT INTO smart_scripts VALUES (26417, 0, 0, 0, 25, 0, 100, 0, 0, 0, 0, 0, 11, 47329, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Reset - Cast Spell');
INSERT INTO smart_scripts VALUES (26417, 0, 1, 0, 8, 0, 100, 0, 47604, 0, 0, 0, 87, 26417*100, 26417*100+1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - Run random timed list');
INSERT INTO smart_scripts VALUES (26417, 0, 2, 0, 0, 0, 100, 1, 10000, 10000, 0, 0, 11, 49717, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'IC - cast spell');
INSERT INTO smart_scripts VALUES (26417, 0, 3, 0, 0, 0, 100, 0, 5000, 6000, 15000, 16000, 11, 55196, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'IC - cast spell');
INSERT INTO smart_scripts VALUES (26417*100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 36, 26783, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Update Entry');
INSERT INTO smart_scripts VALUES (26417*100, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 33, 26783, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Kill credit');
INSERT INTO smart_scripts VALUES (26417*100, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk');
INSERT INTO smart_scripts VALUES (26417*100, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Despawn');
INSERT INTO smart_scripts VALUES (26417*100+1, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 36, 26872, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Update Entry');
-- Filling the Cages (11984)
DELETE FROM conditions WHERE SourceTypeOrReferenceId=17 AND SourceEntry=47042;
INSERT INTO conditions VALUES (17, 0, 47042, 0, 0, 31, 1, 3, 26425, 0, 0, 0, 0, '', 'Spell Assemble Cage can only be cast on Drakkari Warrior');
INSERT INTO conditions VALUES (17, 0, 47042, 0, 1, 31, 1, 3, 26447, 0, 0, 0, 0, '', 'Spell Assemble Cage can only be cast on Drakkari Shaman');
INSERT INTO conditions VALUES (17, 0, 47042, 0, 0, 29, 0, 32663, 30, 0, 0, 0, 0, '', 'Spell Assemble Cage requires Budd nearby');
INSERT INTO conditions VALUES (17, 0, 47042, 0, 1, 29, 0, 32663, 30, 0, 0, 0, 0, '', 'Spell Assemble Cage requires Budd nearby');
UPDATE creature_template SET AIName='SmartAI' WHERE entry IN(26425, 26447);
DELETE FROM smart_scripts WHERE entryorguid IN(26425, 26447) AND source_type=0;
INSERT INTO smart_scripts VALUES(26425, 0, 0, 0, 2, 0, 100, 1, 0, 30, 0, 0, 11, 52309, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On HP Update - Cast Spell');
INSERT INTO smart_scripts VALUES(26425, 0, 1, 2, 8, 0, 100, 1, 47042, 0, 0, 0, 11, 48342, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - Cast Spell');
INSERT INTO smart_scripts VALUES(26425, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 11, 47045, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - Cast Spell');
INSERT INTO smart_scripts VALUES(26425, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - Despawn');
INSERT INTO smart_scripts VALUES(26447, 0, 0, 0, 0, 0, 100, 0, 1000, 2000, 4000, 5000, 11, 9532, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'On IC Update - Cast Spell');
INSERT INTO smart_scripts VALUES(26447, 0, 1, 2, 8, 0, 100, 1, 47042, 0, 0, 0, 11, 48342, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - Cast Spell');
INSERT INTO smart_scripts VALUES(26447, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 11, 47045, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - Cast Spell');
INSERT INTO smart_scripts VALUES(26447, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - Despawn');
DELETE FROM smart_scripts WHERE entryorguid=32663 AND source_type=0;
INSERT INTO smart_scripts VALUES(32663, 0, 0, 1, 54, 0, 100, 0, 0, 0, 0, 0, 11, 47014, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Budd pet - On summon - Spellcast');
INSERT INTO smart_scripts VALUES(32663, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 11, 47025, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Budd pet - On summon - Spellcast');
INSERT INTO smart_scripts VALUES(32663, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 8, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Budd pet - On summon - Set react defensive');
INSERT INTO smart_scripts VALUES(32663, 0, 3, 4, 61, 0, 100, 0, 0, 0, 0, 0, 29, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Budd pet - On summon - Follow');
INSERT INTO smart_scripts VALUES(32663, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 600000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Budd pet - On summon - Despawn timed');
INSERT INTO smart_scripts VALUES(32663, 0, 5, 0, 60, 0, 100, 0, 5000, 5000, 15000, 15000, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Budd pet - Frequently - Say random line');
-- The Horse Hollerer (12415)
-- Mounting Up (12414)
UPDATE creature_template SET spell1=49285, AIName='SmartAI' WHERE entry=26472;
DELETE FROM smart_scripts WHERE entryorguid=26472 AND source_type=0;
INSERT INTO smart_scripts VALUES (26472, 0, 0, 1, 8, 0, 100, 0, 49319, 0, 0, 0, 11, 49323, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - cast at invoker');
INSERT INTO smart_scripts VALUES (26472, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - despawn');
INSERT INTO smart_scripts VALUES (26472, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 25, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - flee');
INSERT INTO smart_scripts VALUES (26472, 0, 3, 0, 29, 0, 100, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Set Combat Move On Charmed');
INSERT INTO smart_scripts VALUES (26472, 0, 4, 0, 31, 0, 100, 0, 49285, 0, 2000, 2000, 41, 1000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Despawn on spell hit target');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=17 AND SourceEntry=49266;
INSERT INTO conditions VALUES (17, 0, 49266, 0, 0, 31, 1, 3, 26472, 0, 0, 0, 0, '', 'Spell Dangle Wild Carrot can be casted only on Highland Mustang');
DELETE FROM spell_linked_spell WHERE spell_trigger=49266;
INSERT INTO spell_linked_spell VALUES(49266, 49282, 1, 'Ride Highland Mustang');
-- Life or Death (12296)
REPLACE INTO smart_scripts VALUES (27482, 0, 7, 0, 25, 0, 100, 0, 0, 0, 0, 0, 19, 128, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Reset - Remove Unit Flag');
-- Ursoc, the Bear God (12236)
-- Ursoc, the Bear God (12249)
UPDATE quest_template SET NextQuestIdChain=0 WHERE Id=12249;
DELETE FROM creature_text WHERE entry=27328;
INSERT INTO creature_text VALUES (27328, 0, 0, "Ursoc, brother of Ursol and guardian to the furbolg tribes! Show yourself!", 12, 0, 100, 0, 0, 0, 0, 'Tur Ragepaw - say 0');
INSERT INTO creature_text VALUES (27328, 1, 0, "Stay behind me, $N. I will do my best to protect you.", 12, 0, 100, 0, 0, 0, 0, 'Tur Ragepaw - say 1');
INSERT INTO creature_text VALUES (27328, 2, 0, 'Urychlim konec tohoto besneni, $N.', 12, 0, 100, 0, 0, 0, 0, 'Tur Ragepaw - say 2');
INSERT INTO creature_text VALUES (27328, 3, 0, "I will watch over you and your allies, $N.", 12, 0, 100, 0, 0, 0, 0, 'Tur Ragepaw - say 3');
INSERT INTO creature_text VALUES (27328, 4, 0, 'Reset', 14, 0, 100, 0, 0, 0, 0, 'Tur Ragepaw - DEBUG 1');
DELETE FROM gossip_menu WHERE entry IN (9496, 9496+1);
INSERT INTO gossip_menu VALUES (9496, 12785),(9496+1, 12785+2);
DELETE FROM gossip_menu_option WHERE menu_id IN (9496, 9496+1);
INSERT INTO gossip_menu_option VALUES (9496, 0, 0, "We have the purified ashes of Vordrassil's sapling. If we can subdue Ursoc, we might be able to heal his soul.", 1, 1, 9496+1, 0, 0, 0, '');
INSERT INTO gossip_menu_option VALUES (9496+1, 0, 0, "Assume your druidic bear form, Tur.", 1, 1, 0, 0, 0, 0, '');
INSERT INTO gossip_menu_option VALUES (9496+1, 1, 0, "Help us subdue him.", 1, 1, 0, 0, 0, 0, '');
INSERT INTO gossip_menu_option VALUES (9496+1, 2, 0, "We could use a healer.", 1, 1, 0, 0, 0, 0, '');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=15 AND SourceGroup=9496;
INSERT INTO conditions VALUES (15, 9496, 0, 0, 0, 9, 0, 12249, 0, 0, 0, 0, 0, '', 'Ursoc, medvedi buh - check for accepted quest');
INSERT INTO conditions VALUES (15, 9496, 0, 0, 1, 9, 0, 12236, 0, 0, 0, 0, 0, '', 'Ursoc, medvedi buh - check for accepted quest');
INSERT INTO conditions VALUES (15, 9496, 0, 0, 0, 2, 0, 37307, 1, 0, 0, 0, 0, '', "Don't show gossip unless player have Purified Ashes of Vordrassil");
INSERT INTO conditions VALUES (15, 9496, 0, 0, 1, 2, 0, 37307, 1, 0, 0, 0, 0, '', "Don't show gossip unless player have Purified Ashes of Vordrassil");
DELETE FROM creature_addon WHERE guid IN(SELECT guid FROM creature WHERE id=26633);
DELETE FROM creature WHERE id=26633;
UPDATE creature SET phaseMask=1 WHERE id=27328;
UPDATE creature_template SET faction=1771, AIName='SmartAI' WHERE entry=26633;
UPDATE creature_template SET faction=2068 WHERE entry=26633;
DELETE FROM smart_scripts WHERE source_type=0 AND entryorguid=26633;
INSERT INTO smart_scripts VALUES
(26633, 0, 0, 0, 0, 0, 100, 0, 15000, 20000, 50000, 60000, 11, 52560, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Ursoc - IC - Cast Summon Blood of the Old God'),
(26633, 0, 1, 0, 0, 0, 100, 0, 10000, 13000, 21000, 25000, 11, 52583, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Ursoc - IC - Cast Old Gods Influence'),
(26633, 0, 2, 0, 0, 0, 100, 0, 3000, 6000, 9000, 12000, 11, 52581, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Ursoc - IC - Cast Crunch Armor'),
(26633, 0, 3, 4, 8, 0, 100, 0, 48549, 0, 0, 0, 12, 27373, 3, 25000, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Ursoc - On Spellhit - Summon Spirit of Ursoc'),
(26633, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Ursoc - Link - Despawn Self'),
(26633, 0, 5, 0, 6, 0, 100, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 10, 114077, 27328, 0, 0, 0, 0, 0, 'Ursoc - On Death - Set Data 1 1 to Tur'),
(26633, 0, 7, 0, 38, 0, 100, 0, 1, 1, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Ursoc - On Set Data 1 1 - Despawn Self');
UPDATE creature_template SET gossip_menu_id=9496, faction=35, unit_flags=0, AIName='SmartAI', speed_run=1 WHERE entry=27328;
DELETE FROM smart_scripts WHERE source_type=0 AND entryorguid=27328;
DELETE FROM smart_scripts WHERE source_type=9 AND entryorguid BETWEEN 27328*100 AND 27328*100+4;
INSERT INTO smart_scripts VALUES
(27328, 0, 0, 0, 1, 0, 100, 1, 2000, 2000, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - On OOC Update - Set Passive'),
(27328, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - On Link - Close Gossip'),
(27328, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 120, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - On Link - Despawn Self'),
(27328, 0, 3, 1, 62, 0, 100, 0, 9496+1, 0, 0, 0, 80, 27328*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - On Gossip Select - Run Script 0'),
(27328, 0, 4, 1, 62, 0, 100, 0, 9496+1, 1, 0, 0, 80, 27328*100+1, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - On Gossip Select - Run Script 1'),
(27328, 0, 5, 1, 62, 0, 100, 0, 9496+1, 2, 0, 0, 80, 27328*100+2, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - On Gossip Select - Run Script 2'),
(27328, 0, 6, 0, 40, 0, 100, 0, 17, 27328, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - On WP Reached - Say Text 0'),
(27328, 0, 7, 13, 40, 0, 100, 0, 18, 27328, 0, 0, 8, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - On AI Init - Set Aggressive'),
(27328, 0, 8, 2, 6, 0, 100, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 11, 26633, 200, 0, 0, 0, 0, 0, 'Tur Ragepaw - On Death - Set Data 1 1 to Ursoc'),
(27328, 0, 11, 0, 38, 0, 100, 0, 1, 1, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - OOC - Despawn on ursoc data'),
(27328, 0, 13, 0, 61, 0, 100, 0, 0, 0, 0, 0, 12, 26633, 4, 30000, 0, 1, 0, 8, 0, 0, 0, 4891.94, -3843.95, 337.55, 2.97, 'Tur Ragepaw - On WP Reached - Spawn Ursoc'),
(27328, 0, 14, 0, 1, 0, 100, 0, 2000, 2000, 0, 0, 80, 27328*100+3, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - OOC - Run Script 3'),
-- bear
(27328, 0, 23, 0, 0, 1, 100, 0, 1000, 1000, 4000, 4000, 11, 52504, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - IC - Cast Lacerate'),
(27328, 0, 24, 0, 0, 1, 100, 0, 3000, 3000, 4000, 4000, 11, 52506, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - IC - Cast Maul'),
(27328, 0, 25, 0, 0, 1, 100, 0, 0, 0, 20000, 20000, 11, 6795, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - IC - Cast Growl'),
(27328, 0, 26, 0, 2, 1, 100, 0, 0, 50, 20000, 20000, 80, 27328*100+4, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - on %HP - time event 4'),
(27328*100+4, 9, 1, 0, 0, 0, 100, 1, 0, 0, 0, 0, 28, 48368, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - time event 4 - remove bear form on self'),
(27328*100+4, 9, 2, 0, 0, 0, 100, 1, 100, 100, 0, 0, 11, 52551, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - time event 4 - cast lifebloom on self'),
(27328*100+4, 9, 3, 0, 0, 0, 100, 1, 1000, 1000, 0, 0, 11, 52551, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - time event 4 - cast lifebloom on self'),
(27328*100+4, 9, 4, 0, 0, 0, 100, 1, 1000, 1000, 0, 0, 11, 52551, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - time event 4 - cast lifebloom on self'),
(27328*100+4, 9, 5, 0, 0, 0, 100, 1, 500, 500, 0, 0, 11, 48368, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - time event 4 - cast bear form on self'),
(27328*100+4, 9, 6, 0, 0, 0, 100, 1, 100, 100, 0, 0, 11, 52507, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - time event 4 - cast bear form buff on self'),
-- moonkin
-- (27328, 0, 34, 0, 0, 2, 100, 0, 1000, 1000, 1500, 1500, 11, 52501, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - IC - Cast Wrath'),
(27328, 0, 35, 0, 0, 2, 100, 0, 0, 0, 13000, 13000, 11, 52502, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - IC - Cast Moonfire'),
(27328, 0, 37, 38, 9, 2, 100, 0, 0, 30, 1500, 2000, 11, 52501, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - IC - Cast Wrath on target'),
(27328, 0, 38, 0, 61, 2, 100, 0, 0, 0, 0, 0, 40, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - linked - sheat weapon on self'),
(27328, 0, 44, 45, 3, 2, 100, 0, 0, 15, 0, 0, 11, 29166, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - on %mana - cast innervate on self'),
(27328, 0, 45, 0, 61, 2, 100, 0, 0, 0, 0, 0, 40, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - linked - sheat weapon on self'),
-- tree
-- (27328, 0, 53, 0, 0, 4, 100, 0, 1000, 1000, 2500, 3000, 11, 52554, 0, 0, 0, 0, 0, 21, 40, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - IC - Cast Nourish'),
(27328, 0, 54, 0, 0, 4, 100, 0, 0, 0, 4000, 6000, 11, 52551, 0, 0, 0, 0, 0, 21, 40, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - IC - Cast Lifebloom'),
(27328, 0, 56, 57, 9, 4, 100, 0, 0, 30, 2500, 3000, 11, 52554, 0, 0, 0, 0, 0, 21, 40, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - IC - Cast Nourish on target'),
(27328, 0, 57, 0, 61, 4, 100, 0, 0, 0, 0, 0, 40, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - linked - sheat weapon on self'),
(27328, 0, 63, 64, 3, 4, 100, 0, 0, 15, 10000, 10000, 11, 29166, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - on %mana - cast innervate on self'),
(27328, 0, 64, 0, 61, 4, 100, 0, 0, 0, 0, 0, 40, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - linked - sheat weapon on self'),
-- script bear
(27328*100, 9, 0, 0, 1, 0, 100, 0, 0, 0, 0, 0, 11, 48368, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Tur - On Script - Cast Bear Form"),
(27328*100, 9, 1, 0, 1, 0, 100, 0, 0, 0, 0, 0, 11, 52507, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Tur - On Script - Cast Ragepaw's Presence"),
(27328*100, 9, 2, 0, 1, 0, 100, 0, 2000, 2000, 0, 0, 1, 3, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Tur - On Script - Say text 3"),
(27328*100, 9, 3, 0, 1, 0, 100, 0, 0, 0, 0, 0, 2, 1770, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - On Script - Set Faction'),
-- (27328*100, 9, 4, 0, 1, 0, 100, 0, 0, 0, 0, 0, 71, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - On Script - Set Weapon'),
(27328*100, 9, 5, 0, 1, 0, 100, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - On Script - Set Phase 1'),
(27328*100, 9, 6, 0, 1, 0, 100, 0, 0, 0, 0, 0, 83, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - On Script - Remove Gossip Flag'),
(27328*100, 9, 7, 0, 1, 0, 100, 0, 8000, 8000, 0, 0, 53, 1, 27328, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - On Script - Start WP Movement'),
(27328*100, 9, 8, 0, 1, 0, 100, 0, 0, 0, 0, 0, 41, 600000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - On Script - Despawn Self in time'),
-- script moonkin
(27328*100+1, 9, 0, 0, 1, 0, 100, 0, 0, 0, 0, 0, 11, 48369, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Tur - On Script - Cast mondkin"),
(27328*100+1, 9, 1, 0, 1, 0, 100, 0, 0, 0, 0, 0, 11, 52503, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Tur - On Script - Cast Empowered Moonkin Aura"),
(27328*100+1, 9, 2, 0, 1, 0, 100, 0, 2000, 2000, 0, 0, 1, 2, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Tur - On Script - Say text 2"),
(27328*100+1, 9, 3, 0, 1, 0, 100, 0, 0, 0, 0, 0, 2, 1770, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - On Script - Set Faction'),
-- (27328*100+1, 9, 4, 0, 1, 0, 100, 0, 0, 0, 0, 0, 71, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - On Script - Set Weapon'),
(27328*100+1, 9, 5, 0, 1, 0, 100, 0, 0, 0, 0, 0, 22, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - On Script - Set Phase 2'),
(27328*100+1, 9, 6, 0, 1, 0, 100, 0, 0, 0, 0, 0, 83, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - On Script - Remove Gossip Flag'),
(27328*100+1, 9, 7, 0, 1, 0, 100, 0, 8000, 8000, 0, 0, 53, 1, 27328, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - On Script - Start WP Movement'),
(27328*100+1, 9, 8, 0, 1, 0, 100, 0, 0, 0, 0, 0, 41, 600000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - On Script - Despawn Self in time'),
-- script tree
(27328*100+2, 9, 0, 0, 1, 0, 100, 0, 0, 0, 0, 0, 11, 48371, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Tur - On Script - Cast Tree of Life"),
(27328*100+2, 9, 1, 0, 1, 0, 100, 0, 0, 0, 0, 0, 28, 34123, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Tur - Remove Aura Tree of Life"),
(27328*100+2, 9, 2, 0, 1, 0, 100, 0, 0, 0, 0, 0, 11, 52553, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Tur - On Script - Cast Empowered Tree of Life"),
(27328*100+2, 9, 3, 0, 1, 0, 100, 0, 2000, 2000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Tur - On Script - Say text 1"),
(27328*100+2, 9, 4, 0, 1, 0, 100, 0, 0, 0, 0, 0, 2, 1770, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - On Script - Set Faction'),
-- (27328*100+2, 9, 5, 0, 1, 0, 100, 0, 0, 0, 0, 0, 71, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - On Script - Set Weapon'),
(27328*100+2, 9, 6, 0, 1, 0, 100, 0, 0, 0, 0, 0, 22, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - On Script - Set Phase 3'),
(27328*100+2, 9, 7, 0, 1, 0, 100, 0, 0, 0, 0, 0, 83, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - On Script - Remove Gossip Flag'),
(27328*100+2, 9, 8, 0, 1, 0, 100, 0, 8000, 8000, 0, 0, 53, 1, 27328, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - On Script - Start WP Movement'),
(27328*100+2, 9, 9, 0, 1, 0, 100, 0, 0, 0, 0, 0, 41, 600000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - On Script - Despawn Self in time'),
-- script respawn
(27328*100+3, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 28, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - On Script - Remove Aura All Auras'),
(27328*100+3, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 82, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tur Ragepaw - On Script - Add Gossip Flag');
DELETE FROM waypoints WHERE entry=27328;
INSERT INTO waypoints VALUES (27328, 1, 4674.4, -3873.15, 330.561, 'Tur Ragepaw'),(27328, 2, 4674.46, -3866.89, 329.246, 'Tur Ragepaw'),(27328, 3, 4673.88, -3866.08, 329.222, 'Tur Ragepaw'),(27328, 4, 4672.47, -3865.6, 328.498, 'Tur Ragepaw'),(27328, 5, 4672.15, -3865.48, 328.646, 'Tur Ragepaw'),(27328, 6, 4672.61, -3863.96, 328.316, 'Tur Ragepaw'),(27328, 7, 4673.65, -3862.96, 328.13, 'Tur Ragepaw'),(27328, 8, 4684.61, -3858.28, 327.406, 'Tur Ragepaw'),(27328, 9, 4708.5, -3848.28, 327.683, 'Tur Ragepaw'),(27328, 10, 4725.16, -3847.27, 330.066, 'Tur Ragepaw'),(27328, 11, 4737.86, -3846.77, 331.398, 'Tur Ragepaw'),
(27328, 12, 4751.12, -3846.35, 333.464, 'Tur Ragepaw'),(27328, 13, 4768.89, -3845.35, 333.872, 'Tur Ragepaw'),(27328, 14, 4787.34, -3843.56, 333.92, 'Tur Ragepaw'),(27328, 15, 4808.69, -3836.07, 336.295, 'Tur Ragepaw'),(27328, 16, 4828.49, -3834.72, 337.858, 'Tur Ragepaw'),(27328, 17, 4845.89, -3835.52, 338.634, 'Tur Ragepaw'),(27328, 18, 4859.34, -3842.23, 338.559, 'Tur Ragepaw'),(27328, 19, 4887.68, -3843.54, 337.535, 'Tur Ragepaw');
-- Anatoly Will Talk (12330)
DELETE FROM smart_scripts WHERE entryorguid IN(27626, 27627) AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid=27626*100 AND source_type=9;
INSERT INTO smart_scripts VALUES
(27626, 0, 0, 0, 11, 0, 100, 0, 0, 0, 0, 0, 28, 49138, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tatjana''s Horse - On spawn - Remove aura Mount Tatjana''s Horse'),
(27626, 0, 1, 2, 8, 0, 100, 0, 49135, 0, 0, 0, 2, 1812, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tatjana''s Horse - On spellhit Tatjana Ping - Set faction'),
(27626, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tatjana''s Horse - On spellhit Tatjana Ping - Stop autoattack'),
(27626, 0, 4, 0, 8, 0, 100, 0, 49138, 0, 0, 0, 80, 27626*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tatjana''s Horse - On spellhit Mount Tatjana''s Horse (phase 1) - Run script'),
(27626, 0, 5, 6, 40, 0, 100, 0, 19, 0, 0, 0, 28, 49138, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tatjana''s Horse - On WP 19 reached - Remove aura Mount Tatjana''s Horse'),
(27626, 0, 6, 7, 61, 0, 100, 0, 0, 0, 0, 0, 15, 12330, 0, 0, 0, 0, 0, 21, 2, 0, 0, 0, 0, 0, 0, 'Tatjana''s Horse - On WP 19 reached - Quest credit'),
(27626, 0, 7, 8, 61, 0, 100, 0, 0, 0, 0, 0, 45, 0, 1, 0, 0, 0, 0, 9, 26971, 0, 30, 0, 0, 0, 0, 'Tatjana''s Horse - On WP 19 reached - Set data 0 1'),
(27626, 0, 8, 9, 61, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tatjana''s Horse - On WP 19 reached - Despawn'),
(27626, 0, 9, 0, 61, 0, 100, 0, 0, 0, 0, 0, 45, 0, 2, 0, 0, 0, 0, 9, 27627, 0, 30, 0, 0, 0, 0, 'Tatjana''s Horse - On WP 19 reached - Set data 0 1'),
(27627, 0, 0, 0, 11, 0, 100, 0, 0, 0, 0, 0, 11, 43671, 0, 0, 0, 0, 0, 9, 27626, 0, 5, 0, 0, 0, 0, 'Tatjana - On respawn - Spellcast Ride Vehicle'),
(27627, 0, 1, 2, 8, 0, 100, 0, 49134, 0, 0, 0, 11, 49135, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tatjana - On spellhit Tranquilizer Dart - Spellcast Tatjana Ping'),
(27627, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 18, 256+512+131072+262144, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tatjana - On spellhit Tranquilizer Dart - Set unit_flags'),
(27627, 0, 3, 0, 0, 0, 100, 0, 2000, 6000, 9000, 12000, 11, 32009, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Tatjana - On update IC - Spellcast Cutdown'),
(27627, 0, 4, 0, 38, 0, 100, 0, 0, 1, 0, 0, 41, 15000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tatjana - On data set 0 1 - Despawn after 15 seconds'),
(27627, 0, 5, 0, 38, 0, 100, 0, 0, 2, 0, 0, 101, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tatjana - On data set 0 2 - Set home position'),
(27626*100, 9, 0, 0, 0, 0, 100, 0, 500, 500, 0, 0, 53, 1, 27626, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tatjana''s Horse script - Start WP movement'),
(27626*100, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 2, 35, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tatjana''s Horse script - Set faction');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=22 AND SourceEntry=27626;
INSERT INTO conditions VALUES (22, 5, 27626, 0, 0, 31, 0, 4, 0, 0, 0, 0, 0, '', 'Run action if invoker is player');
-- The Captive Prospectors (12180)
UPDATE gameobject_template SET data2=30000 WHERE entry=188554;
-- Escape from Silverbrook (12308)
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=48682;
INSERT INTO conditions VALUES (13, 2, 48682, 0, 0, 31, 0, 3, 27417, 0, 0, 0, 0, '', 'Target Silverbrook Worgen');
DELETE FROM smart_scripts WHERE entryorguid=27409 AND source_type=0;
INSERT INTO smart_scripts VALUES (27409, 0, 0, 1, 27, 0, 100, 0, 0, 0, 0, 0, 80, 2740900, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Ducal's Horse - On Passenger Boarded - Run Script");
INSERT INTO smart_scripts VALUES (27409, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Ducal's Horse - On Passenger Boarded - Set Reactstate Passive");
INSERT INTO smart_scripts VALUES (27409, 0, 2, 5, 40, 0, 100, 0, 103, 0, 0, 0, 86, 50473, 2, 21, 10, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Ducal's Horse - On Waypoint 103 Reached - Cross Cast 'Escape from Silverbrook Credit'");
INSERT INTO smart_scripts VALUES (27409, 0, 3, 0, 40, 0, 100, 0, 37, 0, 0, 0, 97, 25, 10, 0, 0, 0, 0, 1, 0, 0, 0, 4063.24, -2261.99, 215.989, 0, "Ducal's Horse - On Waypoint 37 Reached - Jump To Pos");
INSERT INTO smart_scripts VALUES (27409, 0, 4, 0, 40, 0, 100, 0, 75, 0, 0, 0, 97, 25, 10, 0, 0, 0, 0, 1, 0, 0, 0, 3900.4, -2743.33, 219.152, 0, "Ducal's Horse - On Waypoint 75 Reached - Jump To Pos");
INSERT INTO smart_scripts VALUES (27409, 0, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 28, 48678, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Ducal's Horse - On Waypoint 103 Reached - Remove Aura 'Mount Ducal's Horse'");
INSERT INTO smart_scripts VALUES (27409, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Ducal's Horse - On Waypoint 103 Reached - Despawn In 5000 ms");
INSERT INTO smart_scripts VALUES (27409, 0, 7, 0, 28, 0, 100, 0, 0, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Ducal's Horse - On Passenger Removed - Force Despawn");
DELETE FROM smart_scripts WHERE entryorguid=27417 AND source_type=0;
INSERT INTO smart_scripts VALUES (27417, 0, 0, 0, 54, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 19, 27409, 60, 0, 0, 0, 0, 0, 'Silverbrook Worgen - On Just Summoned - Start Attacking');
INSERT INTO smart_scripts VALUES (27417, 0, 1, 0, 4, 0, 100, 0, 0, 0, 0, 0, 11, 36589, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Silverbrook Worgen - On Aggro - Cast Dash');
INSERT INTO smart_scripts VALUES (27417, 0, 2, 0, 7, 0, 100, 0, 0, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Silverbrook Worgen - On Evade - Despawn');
-- Blackout (12154)
UPDATE creature_template SET AIName='SmartAI' WHERE entry=27075;
DELETE FROM smart_scripts WHERE entryorguid=27075 AND source_type=0;
INSERT INTO smart_scripts VALUES (27075, 0, 0, 0, 8, 0, 100, 0, 47935, 0, 0, 0, 33, 27075, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - Kill Monster Credit');
-- See You on the Other Side (12121)
DELETE FROM smart_scripts WHERE entryorguid=27199 AND source_type=0;
INSERT INTO smart_scripts VALUES (27199, 0, 0, 0, 54, 0, 100, 1, 0, 0, 0, 0, 44, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Warlord Jin'arrak - On Just Summoned - Set Phase 3");
INSERT INTO smart_scripts VALUES (27199, 0, 1, 3, 38, 0, 100, 0, 0, 2, 0, 0, 80, 2719901, 0, 2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Warlord Jin'arrak - On Data Set 0 2 - Run Script");
INSERT INTO smart_scripts VALUES (27199, 0, 2, 3, 38, 0, 100, 0, 0, 1, 0, 0, 80, 2719900, 0, 2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Warlord Jin'arrak - On Data Set 0 1 - Run Script");
INSERT INTO smart_scripts VALUES (27199, 0, 3, 4, 61, 0, 100, 0, 0, 0, 0, 0, 5, 15, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Warlord Jin'arrak - On Data Set - Play Emote 15");
INSERT INTO smart_scripts VALUES (27199, 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, "Warlord Jin'arrak - On Data Set - Set React Passive");
-- Always Seeking Solvent (12434)
-- Always Seeking Solvent (12446)
DELETE FROM creature_queststarter WHERE quest IN(12434, 12446);
INSERT INTO creature_queststarter VALUES (27565, 12434);
INSERT INTO creature_queststarter VALUES (27495, 12446);
DELETE FROM creature_questender WHERE quest IN(12434, 12446);
INSERT INTO creature_questender VALUES (27565, 12434);
INSERT INTO creature_questender VALUES (27495, 12446);
UPDATE quest_template SET PrevQuestId=12433, RequiredRaces=690 WHERE Id=12434;
UPDATE quest_template SET PrevQuestId=12443, RequiredRaces=1101 WHERE Id=12446;
-- Dun-da-Dun-tah! (12082)
UPDATE gameobject_template SET flags=34 WHERE entry IN(188465, 188487);
DELETE FROM smart_scripts WHERE entryorguid IN (24405, 26814, 26865, 26867, 26871) AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid=26812 AND source_type=0 AND id BETWEEN 9 AND 18;
DELETE FROM smart_scripts WHERE entryorguid IN (24405*100, 26814*100, 26814*100+1, 26814*100+2, 26814*100+3, 26814*100+4, 26865*100) AND source_type=9;
INSERT INTO smart_scripts VALUES (24405, 0, 0, 0, 38, 0, 100, 0, 0, 1, 0, 0, 80, 24405*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Adarrah - On Data Set 0 1 - Run script');
INSERT INTO smart_scripts VALUES (24405, 0, 1, 0, 40, 0, 100, 0, 6, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Adarrah - On WP Reached - Despawn');
INSERT INTO smart_scripts VALUES (24405*100, 9, 0, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 5, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Adarrah script - Play emote');
INSERT INTO smart_scripts VALUES (24405*100, 9, 1, 0, 0, 0, 100, 0, 1900, 1900, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Adarrah script - Say line');
INSERT INTO smart_scripts VALUES (24405*100, 9, 2, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 53, 1, 24405, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Adarrah script - Start WP movement');
INSERT INTO smart_scripts VALUES (26812, 0, 9, 0, 0, 0, 100, 0, 0, 0, 3400, 4800, 11, 9734, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Ancient Drakkari Soothsayer - In Combat - Cast Holy Smite');
INSERT INTO smart_scripts VALUES (26814, 0, 0, 1, 11, 0, 100, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones - On Respawn - Reset Faction');
INSERT INTO smart_scripts VALUES (26814, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 145, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones - On Respawn - No Event Phase Reset');
INSERT INTO smart_scripts VALUES (26814, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 71, 0, 3, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones - On Respawn - Remove Equip');
INSERT INTO smart_scripts VALUES (26814, 0, 3, 4, 19, 0, 100, 0, 12082, 0, 0, 0, 80, 26814*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones - On Quest Accept - Run Script 0');
INSERT INTO smart_scripts VALUES (26814, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones - On Quest Accept - Store Target');
INSERT INTO smart_scripts VALUES (26814, 0, 5, 6, 40, 0, 100, 0, 7, 26814, 0, 0, 54, 8500, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones - On WP 7 Reached - Pause WP movement 8.5 seconds');
INSERT INTO smart_scripts VALUES (26814, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 1, 1, 6000, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones - On WP 7 Reached - Say Line 1');
INSERT INTO smart_scripts VALUES (26814, 0, 7, 0, 52, 0, 100, 0, 1, 26814, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones - On Text Over - Say Line 2');
INSERT INTO smart_scripts VALUES (26814, 0, 8, 9, 40, 0, 100, 0, 9, 26814, 0, 0, 54, 12000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones - On WP 9 reached - Pause WP movement 12 seconds');
INSERT INTO smart_scripts VALUES (26814, 0, 9, 0, 61, 0, 100, 0, 0, 0, 0, 0, 80, 26814*100+1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones - On WP 9 reached - Run script 1');
INSERT INTO smart_scripts VALUES (26814, 0, 10, 11, 40, 0, 100, 0, 11, 26814, 0, 0, 54, 18000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones - On WP 11 reached - Pause WP movement 18 seconds');
INSERT INTO smart_scripts VALUES (26814, 0, 11, 0, 61, 0, 100, 0, 0, 0, 0, 0, 80, 26814*100+2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones - On WP 11 reached - Run script 2');
INSERT INTO smart_scripts VALUES (26814, 0, 12, 13, 40, 0, 100, 0, 13, 26814, 0, 0, 54, 4600, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones - On WP 13 reached - Pause WP movement 4.5 seconds');
INSERT INTO smart_scripts VALUES (26814, 0, 13, 0, 61, 0, 100, 0, 0, 0, 0, 0, 1, 4, 4600, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones - On WP 13 reached - Say line');
INSERT INTO smart_scripts VALUES (26814, 0, 14, 0, 52, 0, 100, 0, 4, 26814, 0, 0, 1, 5, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones - On text over - Say line');
INSERT INTO smart_scripts VALUES (26814, 0, 15, 0, 40, 0, 100, 0, 16, 26814, 0, 0, 131, 1, 0, 0, 0, 0, 0, 20, 188480, 50, 0, 0, 0, 0, 0, 'Harrison Jones - On WP 16 reached - Set Gameobject State Grizzly Hills - FireDoor01');
INSERT INTO smart_scripts VALUES (26814, 0, 16, 17, 40, 0, 100, 0, 17, 26814, 0, 0, 54, 500, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones - On WP 17 reached - Say line');
INSERT INTO smart_scripts VALUES (26814, 0, 17, 0, 61, 0, 100, 0, 0, 0, 0, 0, 12, 26865, 4, 40000, 0, 0, 0, 8, 0, 0, 0, 4906.587, -4818.92, 32.63929, 2.530727, 'Harrison Jones - On WP 17 reached - Summon Tecahuna');
INSERT INTO smart_scripts VALUES (26814, 0, 18, 0, 40, 0, 100, 0, 18, 26814, 0, 0, 80, 26814*100+3, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones - On WP 18 reached - Run script');
INSERT INTO smart_scripts VALUES (26814, 0, 19, 20, 6, 0, 100, 0, 0, 0, 0, 0, 131, 0, 0, 0, 0, 0, 0, 20, 188480, 50, 0, 0, 0, 0, 0, 'Harrison Jones - On Death - Set Gameobject State Grizzly Hills - FireDoor01');
INSERT INTO smart_scripts VALUES (26814, 0, 20, 0, 61, 0, 100, 0, 0, 0, 0, 0, 6, 12082, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Harrison Jones - On Death - Fail quest');
INSERT INTO smart_scripts VALUES (26814, 0, 22, 23, 56, 0, 100, 0, 17, 26814, 0, 0, 1, 6, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones - On WP 17 resumed - Say line');
INSERT INTO smart_scripts VALUES (26814, 0, 23, 0, 61, 0, 100, 0, 0, 0, 0, 0, 59, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones - On WP 17 resumed - Set run');
INSERT INTO smart_scripts VALUES (26814, 0, 24, 0, 38, 0, 100, 0, 0, 1, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones - On data set 0 1 - Set event phase 1');
INSERT INTO smart_scripts VALUES (26814, 0, 25, 0, 1, 1, 100, 1, 1000, 1000, 0, 0, 80, 26814*100+4, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones - Out of Combat (phase 1) - Run script');
INSERT INTO smart_scripts VALUES (26814, 0, 26, 27, 40, 0, 100, 0, 21, 26814*10, 0, 0, 54, 6000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones - On WP 21 reached - Pause WP movement 6 seconds');
INSERT INTO smart_scripts VALUES (26814, 0, 27, 0, 61, 0, 100, 0, 0, 0, 0, 0, 1, 9, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones - On WP 21 reached - Say line');
INSERT INTO smart_scripts VALUES (26814, 0, 28, 29, 56, 0, 100, 0, 21, 26814*10, 0, 0, 59, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones - On WP 21 resumed - Set run');
INSERT INTO smart_scripts VALUES (26814, 0, 29, 0, 61, 0, 100, 0, 0, 0, 0, 0, 15, 12082, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Harrison Jones - On WP 21 resumed - Quest credit');
INSERT INTO smart_scripts VALUES (26814, 0, 30, 0, 40, 0, 100, 0, 25, 26814*10, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones - On WP 25 reached - Despawn');
INSERT INTO smart_scripts VALUES (26814, 0, 31, 0, 4, 0, 100, 0, 0, 0, 0, 0, 8, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones - On aggro - Set reaction hostile');
INSERT INTO smart_scripts VALUES (26865, 0, 0, 0, 54, 0, 100, 0, 0, 0, 0, 0, 80, 26865*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tecahuna - Just summoned - Run script');
INSERT INTO smart_scripts VALUES (26865, 0, 1, 2, 6, 0, 100, 0, 0, 0, 0, 0, 131, 0, 0, 0, 0, 0, 0, 20, 188480, 100, 0, 0, 0, 0, 0, 'Tecahuna - On Death - Set Gameobject State Grizzly Hills - FireDoor01');
INSERT INTO smart_scripts VALUES (26865, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 45, 0, 1, 0, 0, 0, 0, 19, 26814, 100, 0, 0, 0, 0, 0, 'Tecahuna - On Death - Set data 0 1 Harrison Jones');
INSERT INTO smart_scripts VALUES (26865, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 11, 26867, 100, 0, 0, 0, 0, 0, 'Tecahuna - On Death/Evade - Despawn Target');
INSERT INTO smart_scripts VALUES (26865, 0, 4, 3, 7, 0, 100, 0, 0, 0, 0, 0, 41, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tecahuna - On Evade - Despawn');
INSERT INTO smart_scripts VALUES (26865, 0, 5, 0, 0, 0, 100, 0, 20000, 20000, 25000, 25000, 11, 47601, 0, 2, 0, 0, 0, 11, 26867, 60, 0, 0, 0, 0, 0, 'Tecahuna - In Combat - Cast Cosmetic - Tecahuna Spirit Beam');
INSERT INTO smart_scripts VALUES (26865, 0, 7, 0, 0, 0, 100, 0, 0, 0, 8000, 9000, 11, 47629, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Tecahuna - In Combat - Cast Tecahuna Venom Spit');
INSERT INTO smart_scripts VALUES (26865*100, 9, 0, 0, 0, 0, 100, 0, 15300, 15300, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Tecahuna Script - Remove unit_flags IMMUNE_TO_PC, IMMUNE_TO_NPC');
INSERT INTO smart_scripts VALUES (26865*100, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 19, 26814, 30, 0, 0, 0, 0, 0, 'Tecahuna Script - Attack Start');
INSERT INTO smart_scripts VALUES (26867, 0, 0, 1, 8, 0, 100, 0, 47601, 0, 0, 0, 67, 1, 3000, 3000, 0, 0, 100, 1, 0, 0, 0, 0, 0, 0, 0, 'Mummy Effect Bunny - On spellhit Cosmetic - Create Timed Event');
INSERT INTO smart_scripts VALUES (26867, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 4000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Mummy Effect Bunny - On spellhit Cosmetic - Despawn');
INSERT INTO smart_scripts VALUES (26867, 0, 2, 0, 59, 0, 100, 0, 1, 0, 0, 0, 11, 47602, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Mummy Effect Bunny - On Timed Event - Tecahuna Spirit Beam - Spellcast Summon Ancient Drakkari King');
INSERT INTO smart_scripts VALUES (26871, 0, 0, 0, 0, 0, 100, 0, 3000, 5000, 5000, 7000, 11, 52466, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Ancient Drakkari King - In Combat - Cast Drakkari Curse');
INSERT INTO smart_scripts VALUES (26871, 0, 1, 0, 54, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 50, 0, 0, 0, 0, 0, 0, 'Ancient Drakkari King - Is Summoned - Attack Start');
INSERT INTO smart_scripts VALUES (26814*100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones script 0 - Say line');
INSERT INTO smart_scripts VALUES (26814*100, 9, 1, 0, 0, 0, 100, 0, 500, 500, 0, 0, 9, 0, 0, 0, 0, 0, 0, 20, 188465, 5, 0, 0, 0, 0, 0, 'Harrison Jones script 0 - Activate Harrison''s Cage');
INSERT INTO smart_scripts VALUES (26814*100, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 2, 250, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones script 0 - Set faction');
INSERT INTO smart_scripts VALUES (26814*100, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 71, 0, 2, 0, 2081, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones script 0 - Equip');
INSERT INTO smart_scripts VALUES (26814*100, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 83, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones script 0 - Remove npcflag gossip');
INSERT INTO smart_scripts VALUES (26814*100, 9, 5, 0, 0, 0, 100, 0, 2500, 2500, 0, 0, 53, 0, 26814, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Harrison Jones script 0 - Start WP movement');
INSERT INTO smart_scripts VALUES (26814*100+1, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 17, 133, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones script 1 - Play emote');
INSERT INTO smart_scripts VALUES (26814*100+1, 9, 1, 0, 0, 0, 100, 0, 2500, 2500, 0, 0, 17, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones script 1 - Stop emote');
INSERT INTO smart_scripts VALUES (26814*100+1, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones script 1 - Say line');
INSERT INTO smart_scripts VALUES (26814*100+1, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 20, 188487, 5, 0, 0, 0, 0, 0, 'Harrison Jones script 1 - Activate Adarra''s Cage');
INSERT INTO smart_scripts VALUES (26814*100+1, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 45, 0, 1, 0, 0, 0, 0, 19, 24405, 5, 0, 0, 0, 0, 0, 'Harrison Jones script 1 - Set data 0 1 Adarra');
INSERT INTO smart_scripts VALUES (26814*100+2, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 6.143559, 'Harrison Jones script 2 - Set orientation');
INSERT INTO smart_scripts VALUES (26814*100+2, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 90, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones script 2 - Set unit_field_bytes1 (kneel)');
INSERT INTO smart_scripts VALUES (26814*100+2, 9, 2, 0, 0, 0, 100, 0, 2400, 2400, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 4.677482, 'Harrison Jones script 2 - Set orientation');
INSERT INTO smart_scripts VALUES (26814*100+2, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 91, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones script 2 - Remove unit_field_bytes1 (kneel)');
INSERT INTO smart_scripts VALUES (26814*100+2, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 71, 0, 1, 32246, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones script 2 - Equip');
INSERT INTO smart_scripts VALUES (26814*100+2, 9, 5, 0, 0, 0, 100, 0, 2500, 2500, 0, 0, 5, 36, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones script 2 - Play emote');
INSERT INTO smart_scripts VALUES (26814*100+2, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 4, 12827, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones script 2 - Play sound');
INSERT INTO smart_scripts VALUES (26814*100+2, 9, 7, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 47533, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones script 2 - Spellcast Camera Shake');
INSERT INTO smart_scripts VALUES (26814*100+2, 9, 8, 0, 0, 0, 100, 0, 2500, 2500, 0, 0, 5, 36, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones script 2 - Play emote');
INSERT INTO smart_scripts VALUES (26814*100+2, 9, 9, 0, 0, 0, 100, 0, 0, 0, 0, 0, 4, 12827, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones script 2 - Play sound');
INSERT INTO smart_scripts VALUES (26814*100+2, 9, 10, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 47533, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones script 2 - Spellcast Camera Shake');
INSERT INTO smart_scripts VALUES (26814*100+2, 9, 11, 0, 0, 0, 100, 0, 2500, 2500, 0, 0, 5, 36, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones script 2 - Play emote');
INSERT INTO smart_scripts VALUES (26814*100+2, 9, 12, 0, 0, 0, 100, 0, 0, 0, 0, 0, 4, 12827, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones script 2 - Play sound');
INSERT INTO smart_scripts VALUES (26814*100+2, 9, 13, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 47533, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones script 2 - Spellcast Camera Shake');
INSERT INTO smart_scripts VALUES (26814*100+2, 9, 14, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 12, 26867, 2, 300000, 0, 0, 0, 8, 0, 0, 0, 4902.228, -4827.556, 32.61251, 2.443461, 'Harrison Jones script 2 - Summon Mummy Effect Bunny');
INSERT INTO smart_scripts VALUES (26814*100+2, 9, 15, 0, 0, 0, 100, 0, 0, 0, 0, 0, 12, 26867, 2, 300000, 0, 0, 0, 8, 0, 0, 0, 4876.608, -4805.581, 32.58254, 6.178465, 'Harrison Jones script 2 - Summon Mummy Effect Bunny');
INSERT INTO smart_scripts VALUES (26814*100+2, 9, 16, 0, 0, 0, 100, 0, 0, 0, 0, 0, 12, 26867, 2, 300000, 0, 0, 0, 8, 0, 0, 0, 4877.39, -4815.752, 32.58345, 0.1570796, 'Harrison Jones script 2 - Summon Mummy Effect Bunny');
INSERT INTO smart_scripts VALUES (26814*100+2, 9, 17, 0, 0, 0, 100, 0, 0, 0, 0, 0, 12, 26867, 2, 300000, 0, 0, 0, 8, 0, 0, 0, 4883.104, -4823.975, 32.58836, 0.8726646, 'Harrison Jones script 2 - Summon Mummy Effect Bunny');
INSERT INTO smart_scripts VALUES (26814*100+2, 9, 18, 0, 0, 0, 100, 0, 0, 0, 0, 0, 12, 26867, 2, 300000, 0, 0, 0, 8, 0, 0, 0, 4892.313, -4828.58, 32.59582, 1.570796, 'Harrison Jones script 2 - Summon Mummy Effect Bunny');
INSERT INTO smart_scripts VALUES (26814*100+2, 9, 19, 0, 0, 0, 100, 0, 0, 0, 0, 0, 12, 26867, 2, 300000, 0, 0, 0, 8, 0, 0, 0, 4908.681, -4794.352, 32.67061, 3.979351, 'Harrison Jones script 2 - Summon Mummy Effect Bunny');
INSERT INTO smart_scripts VALUES (26814*100+2, 9, 20, 0, 0, 0, 100, 0, 0, 0, 0, 0, 12, 26867, 2, 300000, 0, 0, 0, 8, 0, 0, 0, 4899.539, -4789.862, 32.59812, 4.764749, 'Harrison Jones script 2 - Summon Mummy Effect Bunny');
INSERT INTO smart_scripts VALUES (26814*100+2, 9, 21, 0, 0, 0, 100, 0, 0, 0, 0, 0, 12, 26867, 2, 300000, 0, 0, 0, 8, 0, 0, 0, 4889.959, -4790.646, 32.59848, 5.201081, 'Harrison Jones script 2 - Summon Mummy Effect Bunny');
INSERT INTO smart_scripts VALUES (26814*100+2, 9, 22, 0, 0, 0, 100, 0, 0, 0, 0, 0, 12, 26867, 2, 300000, 0, 0, 0, 8, 0, 0, 0, 4914.76, -4813.242, 32.58661, 3.01942, 'Harrison Jones script 2 - Summon Mummy Effect Bunny');
INSERT INTO smart_scripts VALUES (26814*100+2, 9, 23, 0, 0, 0, 100, 0, 0, 0, 0, 0, 12, 26867, 2, 300000, 0, 0, 0, 8, 0, 0, 0, 4914.13, -4802.799, 32.66964, 3.420845, 'Harrison Jones script 2 - Summon Mummy Effect Bunny');
INSERT INTO smart_scripts VALUES (26814*100+3, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 7, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones script 3 - Say line');
INSERT INTO smart_scripts VALUES (26814*100+3, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones script 3 - Set homeposition');
INSERT INTO smart_scripts VALUES (26814*100+3, 9, 2, 0, 0, 0, 100, 0, 7200, 7200, 0, 0, 1, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones script 3 - Say line');
INSERT INTO smart_scripts VALUES (26814*100+3, 9, 3, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 8, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones script 3 - Start attack');
INSERT INTO smart_scripts VALUES (26814*100+4, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Harrison Jones script 4 - Set event phase 0');
INSERT INTO smart_scripts VALUES (26814*100+4, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 53, 1, 26814*10, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Harrison Jones script 4 - Start WP movement');
-- Souls at Unrest (12159)
UPDATE creature_template SET AIName='SmartAI' WHERE entry=26891;
DELETE FROM smart_scripts WHERE entryorguid=26891 AND source_type=0;
INSERT INTO smart_scripts VALUES (26891, 0, 0, 0, 9, 0, 100, 0, 0, 5, 8000, 11000, 11, 48374, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Undead Miner - Within 0-5 Range - Cast Puncture Wound');
INSERT INTO smart_scripts VALUES (26891, 0, 1, 0, 0, 0, 100, 0, 5000, 7000, 6000, 9000, 11, 52608, 0, 0, 0, 0, 0, 5, 30, 0, 0, 0, 0, 0, 0, 'Undead Miner - In Combat - Cast Throw Lantern');
INSERT INTO smart_scripts VALUES (26891, 0, 2, 0, 8, 0, 100, 0, 48974, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Undead Miner - On Spell Hit - Despawn');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=17 AND SourceEntry=48974;
INSERT INTO conditions VALUES (17, 0, 48974, 0, 0, 31, 1, 3, 26891, 0, 0, 0, 0, '', 'Requires Undead Miner');
INSERT INTO conditions VALUES (17, 0, 48974, 0, 0, 36, 1, 0, 0, 0, 1, 0, 0, '', 'Requires Dead Target');

View File

@@ -0,0 +1,728 @@
-- -------------------------------------------
-- HOWLING FJORD
-- -------------------------------------------
-- The Way to His Heart... (11472)
UPDATE quest_template SET RewardFactionValueId1=7 WHERE Id IN(11472); -- 500 rep
DELETE FROM spell_script_names WHERE spell_id IN(21014, -21014, 44454, -44454);
DELETE FROM spell_scripts WHERE id IN(21014, -21014, 44454, -44454);
DELETE FROM spell_linked_spell WHERE spell_trigger IN(21014, -21014, 44454, -44454) OR spell_effect IN(21014, -21014, 44454, -44454);
INSERT INTO spell_scripts VALUES (21014, 0, 0, 17, 34127, 3, 0, 0, 0, 0, 0);
DELETE FROM conditions WHERE SourceTypeOrReferenceId=17 AND SourceEntry=44454;
INSERT INTO conditions VALUES (17, 0, 44454, 0, 0, 31, 1, 3, 24786, 0, 0, 0, 0, '', "Tasty Reef Fish spell conditon");
INSERT INTO conditions VALUES (17, 0, 44454, 0, 1, 31, 1, 3, 24804, 0, 0, 0, 0, '', "Tasty Reef Fish spell conditon");
INSERT INTO conditions VALUES (17, 0, 44454, 0, 0, 36, 1, 0, 0, 0, 0, 0, 0, '', "Tasty Reef Fish spell conditon");
INSERT INTO conditions VALUES (17, 0, 44454, 0, 1, 36, 1, 0, 0, 0, 0, 0, 0, '', "Tasty Reef Fish spell conditon");
UPDATE creature_template SET AIName="SmartAI", ScriptName="" WHERE entry IN(24786);
UPDATE creature_template SET AIName="", InhabitType=7, ScriptName="npc_attracted_reef_bull" WHERE entry IN(24804);
DELETE FROM smart_scripts WHERE entryorguid IN(24786,24804) AND source_type=0;
INSERT INTO smart_scripts VALUES (24786, 0, 0, 1, 8, 0, 100, 0, 44454, 0, 0, 0, 85, 44456, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'summon attracted reef bull (player summons), link to forced despawn');
INSERT INTO smart_scripts VALUES (24786, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'forced despawn');
-- Stunning Defeat at the Ring (11300)
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=24216;
DELETE FROM smart_scripts WHERE entryorguid=24216 AND source_type=0;
REPLACE INTO smart_scripts VALUES (24216, 0, 0, 0, 1, 0, 100, 0, 5000, 15000, 10000, 30000, 11, 43291, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Dragonflyer Berserker - On OOC Update - Cast Spell');
DELETE FROM conditions WHERE SourceEntry=43291 AND SourceTypeOrReferenceId=13;
INSERT INTO conditions VALUES(13, 1, 43291, 0, 0, 31, 0, 3, 24221, 0, 0, 0, 0, '', 'Target Dragonflyer Berserker Target');
DELETE FROM creature WHERE id IN(24253, 24254, 24255);
INSERT INTO creature VALUES (113775, 24253, 571, 1, 1, 0, 0, 831.667, -4729.13, -96.2364, 2.22215, 1, 0, 0, 1223, 2846, 0, 0, 0, 0);
INSERT INTO creature VALUES (113776, 24253, 571, 1, 1, 0, 0, 768.236, -4706.83, -96.2364, 1.5737, 1, 0, 0, 1223, 2846, 0, 0, 0, 0);
INSERT INTO creature VALUES (113812, 24253, 571, 1, 1, 0, 0, 767.984, -4716.78, -96.0611, 5.98648, 1, 0, 0, 1223, 2846, 0, 0, 0, 0);
INSERT INTO creature VALUES (113813, 24253, 571, 1, 1, 0, 0, 829.38, -4721.4, -96.1446, 3.03, 1, 0, 0, 1223, 2846, 0, 0, 0, 0);
INSERT INTO creature VALUES (113814, 24253, 571, 1, 1, 0, 0, 822.87, -4742.58, -96.1446, 2.46, 1, 0, 0, 1223, 2846, 0, 0, 0, 0);
INSERT INTO creature VALUES (113815, 24253, 571, 1, 1, 0, 0, 807.48, -4695.77, -96.1446, 4.62, 1, 0, 0, 1223, 2846, 0, 0, 0, 0);
INSERT INTO creature VALUES (113844, 24254, 571, 1, 1, 0, 0, 830.378, -4729.32, -96.2364, 3.11986, 1, 0, 0, 1223, 2846, 0, 0, 0, 0);
INSERT INTO creature VALUES (113845, 24254, 571, 1, 1, 0, 0, 830.876, -4730.2, -96.2364, 1.10181, 1, 0, 0, 1223, 2846, 0, 0, 0, 0);
INSERT INTO creature VALUES (113847, 24254, 571, 1, 1, 0, 0, 768.522, -4705.58, -96.2364, 6.18619, 1, 0, 0, 1223, 2846, 0, 0, 0, 0);
INSERT INTO creature VALUES (113848, 24254, 571, 1, 1, 0, 0, 768.308, -4708.33, -96.2364, 4.74813, 1, 0, 0, 1223, 2846, 0, 0, 0, 0);
INSERT INTO creature VALUES (113849, 24254, 571, 1, 1, 0, 0, 769.815, -4705.82, -96.2364, 0.978859, 1, 0, 0, 1223, 2846, 0, 0, 0, 0);
INSERT INTO creature VALUES (113870, 24254, 571, 1, 1, 0, 0, 775.74, -4746.32, -96.1446, 0.76, 1, 0, 0, 1223, 2846, 0, 0, 0, 0);
INSERT INTO creature VALUES (113871, 24254, 571, 1, 1, 0, 0, 813.44, -4697.44, -96.1446, 4.35, 1, 0, 0, 1223, 2846, 0, 0, 0, 0);
INSERT INTO creature VALUES (113887, 24255, 571, 1, 1, 0, 0, 831.409, -4727.82, -96.2364, 2.28073, 1, 0, 0, 1223, 2846, 0, 0, 0, 0);
INSERT INTO creature VALUES (113890, 24255, 571, 1, 1, 0, 0, 768.052, -4707.01, -96.2364, 0.659595, 1, 0, 0, 1223, 2846, 0, 0, 0, 0);
INSERT INTO creature VALUES (113900, 24255, 571, 1, 1, 0, 0, 780.11, -4750.07, -96.1446, 0.96, 1, 0, 0, 1223, 2846, 0, 0, 0, 0);
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=24151;
DELETE FROM smart_scripts WHERE entryorguid=24151 AND source_type=0;
INSERT INTO smart_scripts VALUES (24151, 0, 0, 0, 25, 0, 100, 0, 0, 0, 0, 0, 81, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Daegarn - On Reset - Set NPC Flag');
INSERT INTO smart_scripts VALUES (24151, 0, 1, 2, 19, 0, 100, 0, 11300, 0, 0, 0, 12, 24213, 4, 60000, 0, 0, 0, 8, 0, 0, 0, 838.81, -4678.06, -94.182, 4.04, 'Daegarn - On Quest Accept - Summon Creature');
INSERT INTO smart_scripts VALUES (24151, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 81, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Daegarn - On Quest Accept - Set NPC Flag');
INSERT INTO smart_scripts VALUES (24151, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Daegarn - On Quest Accept - Set Event Phase');
INSERT INTO smart_scripts VALUES (24151, 0, 4, 5, 60, 0, 100, 0, 600000, 600000, 600000, 600000, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Daegarn - On Update - Set Event Phase');
INSERT INTO smart_scripts VALUES (24151, 0, 5, 0, 61, 0, 100, 0, 0, 0, 0, 0, 81, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Daegarn - On Update - Set NPC Flag');
INSERT INTO smart_scripts VALUES (24151, 0, 6, 0, 38, 0, 100, 0, 1, 1, 0, 0, 81, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Daegarn - On Data Set - Set NPC Flag');
UPDATE gameobject SET id=186641 WHERE id IN(186641, 186642, 186643, 186644, 186645, 186646, 186647);
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry IN(24253, 24254, 24255);
DELETE FROM smart_scripts WHERE entryorguid IN(24253, 24254, 24255) AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid IN(24253*100, 24253*100+1, 24253*100+2, 24253*100+3, 24253*100+4, 24253*100+5) AND source_type=9;
INSERT INTO smart_scripts VALUES (24253*100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, 798.32, -4729.38, -96.23, 0, 'Dragonflyer Prisoner - Script9 - Move To Pos');
INSERT INTO smart_scripts VALUES (24253*100+1, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, 789.1, -4726.35, -96.23, 0, 'Dragonflyer Prisoner - Script9 - Move To Pos');
INSERT INTO smart_scripts VALUES (24253*100+2, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, 788.04, -4716.94, -96.23, 0, 'Dragonflyer Prisoner - Script9 - Move To Pos');
INSERT INTO smart_scripts VALUES (24253*100+3, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, 794.88, -4711.5, -96.23, 0, 'Dragonflyer Prisoner - Script9 - Move To Pos');
INSERT INTO smart_scripts VALUES (24253*100+4, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, 805.42, -4717, -96.23, 0, 'Dragonflyer Prisoner - Script9 - Move To Pos');
INSERT INTO smart_scripts VALUES (24253*100+5, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, 807.04, -4731.29, -96.23, 0, 'Dragonflyer Prisoner - Script9 - Move To Pos');
INSERT INTO smart_scripts VALUES (24253, 0, 0, 0, 11, 0, 100, 0, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Dragonflyer Prisoner - On Respawn - Set Unit Flag');
INSERT INTO smart_scripts VALUES (24253, 0, 1, 2, 38, 0, 100, 1, 5, 5, 0, 0, 9, 0, 0, 0, 0, 0, 0, 20, 186641, 5, 0, 0, 0, 0, 0, 'Dragonflyer Prisoner - On Data Set - Activate Gameobjec');
INSERT INTO smart_scripts VALUES (24253, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Dragonflyer Prisoner - On Data Set - Set Event Phase');
INSERT INTO smart_scripts VALUES (24253, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 88, 24253*100, 24253*100+5, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Dragonflyer Prisoner - On Data Set - Call Random Range Script');
INSERT INTO smart_scripts VALUES (24253, 0, 4, 5, 60, 1, 100, 1, 4000, 4000, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Dragonflyer Prisoner - On Update - Remove Unit Flag');
INSERT INTO smart_scripts VALUES (24253, 0, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 89, 5, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Dragonflyer Prisoner - On Upate - Move Random');
INSERT INTO smart_scripts VALUES (24253, 0, 6, 0, 61, 1, 100, 0, 0, 0, 0, 0, 41, 60000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Dragonflyer Prisoner - On Update - Despawn');
INSERT INTO smart_scripts VALUES (24253, 0, 7, 0, 7, 1, 100, 0, 0, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Dragonflyer Prisoner - On Evade - Despawn');
INSERT INTO smart_scripts VALUES (24254, 0, 0, 0, 11, 0, 100, 0, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Dragonflyer Prisoner - On Respawn - Set Unit Flag');
INSERT INTO smart_scripts VALUES (24254, 0, 1, 2, 38, 0, 100, 1, 5, 5, 0, 0, 9, 0, 0, 0, 0, 0, 0, 20, 186641, 5, 0, 0, 0, 0, 0, 'Dragonflyer Prisoner - On Data Set - Activate Gameobjec');
INSERT INTO smart_scripts VALUES (24254, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Dragonflyer Prisoner - On Data Set - Set Event Phase');
INSERT INTO smart_scripts VALUES (24254, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 88, 24253*100, 24253*100+5, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Dragonflyer Prisoner - On Data Set - Call Random Range Script');
INSERT INTO smart_scripts VALUES (24254, 0, 4, 5, 60, 1, 100, 1, 4000, 4000, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Dragonflyer Prisoner - On Update - Remove Unit Flag');
INSERT INTO smart_scripts VALUES (24254, 0, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 89, 5, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Dragonflyer Prisoner - On Upate - Move Random');
INSERT INTO smart_scripts VALUES (24254, 0, 6, 0, 61, 1, 100, 0, 0, 0, 0, 0, 41, 60000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Dragonflyer Prisoner - On Update - Despawn');
INSERT INTO smart_scripts VALUES (24254, 0, 7, 0, 7, 1, 100, 0, 0, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Dragonflyer Prisoner - On Evade - Despawn');
INSERT INTO smart_scripts VALUES (24255, 0, 0, 0, 11, 0, 100, 0, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Dragonflyer Prisoner - On Respawn - Set Unit Flag');
INSERT INTO smart_scripts VALUES (24255, 0, 1, 2, 38, 0, 100, 1, 5, 5, 0, 0, 9, 0, 0, 0, 0, 0, 0, 20, 186641, 5, 0, 0, 0, 0, 0, 'Dragonflyer Prisoner - On Data Set - Activate Gameobjec');
INSERT INTO smart_scripts VALUES (24255, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Dragonflyer Prisoner - On Data Set - Set Event Phase');
INSERT INTO smart_scripts VALUES (24255, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 88, 24253*100, 24253*100+5, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Dragonflyer Prisoner - On Data Set - Call Random Range Script');
INSERT INTO smart_scripts VALUES (24255, 0, 4, 5, 60, 1, 100, 1, 4000, 4000, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Dragonflyer Prisoner - On Update - Remove Unit Flag');
INSERT INTO smart_scripts VALUES (24255, 0, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 89, 5, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Dragonflyer Prisoner - On Upate - Move Random');
INSERT INTO smart_scripts VALUES (24255, 0, 6, 0, 61, 1, 100, 0, 0, 0, 0, 0, 41, 60000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Dragonflyer Prisoner - On Update - Despawn');
INSERT INTO smart_scripts VALUES (24255, 0, 7, 0, 7, 1, 100, 0, 0, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Dragonflyer Prisoner - On Evade - Despawn');
DELETE FROM conditions WHERE SourceEntry IN(24253, 24254, 24255) AND SourceTypeOrReferenceId=22;
INSERT INTO conditions VALUES(22, 2, 24253, 0, 0, 30, 1, 186641, 5, 0, 0, 0, 0, '', 'Target RoJ Cage');
INSERT INTO conditions VALUES(22, 2, 24254, 0, 0, 30, 1, 186641, 5, 0, 0, 0, 0, '', 'Target RoJ Cage');
INSERT INTO conditions VALUES(22, 2, 24255, 0, 0, 30, 1, 186641, 5, 0, 0, 0, 0, '', 'Target RoJ Cage');
REPLACE INTO creature_text VALUES(24213, 0, 0, "More souls for the Lich King! Come, little ones! Come!", 14, 0, 100, 0, 0, 0, 0, "Firjus the Soul Crusher");
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=24213;
DELETE FROM smart_scripts WHERE entryorguid=24213 AND source_type=0;
INSERT INTO smart_scripts VALUES (24213, 0, 0, 1, 11, 0, 100, 0, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, 796.55, -4722.46, -96.145, 0, 'Firjus the Soul Crusher - On Respawn - Move To Point');
INSERT INTO smart_scripts VALUES (24213, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 45, 5, 5, 0, 0, 0, 0, 11, 0, 100, 0, 0, 0, 0, 0, 'Firjus the Soul Crusher - On Respawn - Set Data For All npcs in range');
INSERT INTO smart_scripts VALUES (24213, 0, 2, 1, 4, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Firjus the Soul Crusher - On Aggro - Talk');
INSERT INTO smart_scripts VALUES (24213, 0, 3, 0, 0, 0, 100, 0, 3000, 6000, 12000, 15000, 11, 15284, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Firjus the Soul Crusher - In Combat - Cast Cleave');
INSERT INTO smart_scripts VALUES (24213, 0, 4, 0, 0, 0, 100, 0, 10000, 10000, 10000, 10000, 11, 43348, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Firjus the Soul Crusher - In Combat - Cast Head Crush');
INSERT INTO smart_scripts VALUES (24213, 0, 5, 0, 6, 0, 100, 1, 0, 0, 0, 0, 12, 24215, 4, 60000, 0, 0, 0, 8, 0, 0, 0, 838.81, -4678.06, -94.182, 4.04, 'Firjus the Soul Crusher - On Just Died - Summon Creature Jlarborn the Strategist');
REPLACE INTO creature_text VALUES(24215, 0, 0, "Firjus was unworthy! Test your battle progress against a true soldier of the Lich King!", 14, 0, 100, 0, 0, 0, 0, "Jlarborn the Strategist");
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=24215;
DELETE FROM smart_scripts WHERE entryorguid=24215 AND source_type=0;
INSERT INTO smart_scripts VALUES (24215, 0, 0, 1, 11, 0, 100, 0, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, 796.55, -4722.46, -96.145, 0, 'Jlarborn the Strategist - On Respawn - Move To Point');
INSERT INTO smart_scripts VALUES (24215, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 45, 5, 5, 0, 0, 0, 0, 11, 0, 100, 0, 0, 0, 0, 0, 'Jlarborn the Strategist - On Respawn - Set Data For All npcs in range');
INSERT INTO smart_scripts VALUES (24215, 0, 2, 1, 4, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Jlarborn the Strategist - On Aggro - Talk');
INSERT INTO smart_scripts VALUES (24215, 0, 3, 0, 0, 0, 100, 0, 4000, 5000, 15000, 16000, 11, 12169, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Jlarborn the Strategist - In Combat - Cast Shield Block');
INSERT INTO smart_scripts VALUES (24215, 0, 4, 0, 0, 0, 100, 0, 7000, 8000, 18000, 19000, 11, 38233, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Jlarborn the Strategist - In Combat - Cast Shield Bash');
INSERT INTO smart_scripts VALUES (24215, 0, 5, 0, 0, 0, 100, 0, 10000, 10000, 10000, 10000, 11, 8374, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Jlarborn the Strategist - In Combat - Cast Arcing Smash');
INSERT INTO smart_scripts VALUES (24215, 0, 6, 0, 6, 0, 100, 1, 0, 0, 0, 0, 12, 24214, 4, 60000, 0, 0, 0, 8, 0, 0, 0, 838.81, -4678.06, -94.182, 4.04, 'Jlarborn the Strategist - On Just Died - Summon Creature Yorus the Flesh Harvester');
REPLACE INTO creature_text VALUES(24214, 0, 0, "Good... More flesh for the harvest...", 14, 0, 100, 0, 0, 0, 0, "Yorus the Flesh Harvester");
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=24214;
DELETE FROM smart_scripts WHERE entryorguid=24214 AND source_type=0;
INSERT INTO smart_scripts VALUES (24214, 0, 0, 1, 11, 0, 100, 0, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, 796.55, -4722.46, -96.145, 0, 'Yorus the Flesh Harvester - On Respawn - Move To Point');
INSERT INTO smart_scripts VALUES (24214, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 45, 5, 5, 0, 0, 0, 0, 11, 0, 100, 0, 0, 0, 0, 0, 'Yorus the Flesh Harvester - On Respawn - Set Data For All npcs in range');
INSERT INTO smart_scripts VALUES (24214, 0, 2, 1, 4, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Yorus the Flesh Harvester - On Aggro - Talk');
INSERT INTO smart_scripts VALUES (24214, 0, 3, 0, 0, 0, 100, 0, 4000, 5000, 15000, 16000, 11, 12169, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Yorus the Flesh Harvester - In Combat - Cast Shield Block');
INSERT INTO smart_scripts VALUES (24214, 0, 4, 0, 0, 0, 100, 0, 7000, 8000, 18000, 19000, 11, 38233, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Yorus the Flesh Harvester - In Combat - Cast Shield Bash');
INSERT INTO smart_scripts VALUES (24214, 0, 5, 0, 0, 0, 100, 0, 10000, 10000, 10000, 10000, 11, 8374, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Yorus the Flesh Harvester - In Combat - Cast Arcing Smash');
INSERT INTO smart_scripts VALUES (24214, 0, 6, 0, 6, 0, 100, 1, 0, 0, 0, 0, 12, 23931, 4, 60000, 0, 0, 0, 8, 0, 0, 0, 838.81, -4678.06, -94.182, 4.04, 'Yorus the Flesh Harvester - On Just Died - Summon Creature Oluf the Violent');
REPLACE INTO creature_text VALUES(23931, 0, 0, "The ring will overflow with the blood of the interlopers! Oluf has come!", 14, 0, 100, 0, 0, 0, 0, "Oluf the Violent");
REPLACE INTO creature_text VALUES(23931, 1, 0, "The ancient cipher falls to the ground.", 41, 0, 100, 0, 0, 0, 0, "Oluf the Violent");
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=23931;
DELETE FROM smart_scripts WHERE entryorguid=23931 AND source_type=0;
INSERT INTO smart_scripts VALUES (23931, 0, 0, 1, 11, 0, 100, 0, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, 796.55, -4722.46, -96.145, 0, 'Oluf the Violent - On Respawn - Move To Point');
INSERT INTO smart_scripts VALUES (23931, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 45, 5, 5, 0, 0, 0, 0, 11, 0, 100, 0, 0, 0, 0, 0, 'Oluf the Violent - On Respawn - Set Data For All npcs in range');
INSERT INTO smart_scripts VALUES (23931, 0, 2, 1, 4, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Oluf the Violent - On Aggro - Talk');
INSERT INTO smart_scripts VALUES (23931, 0, 3, 0, 0, 0, 100, 0, 3000, 6000, 12000, 15000, 11, 15284, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Oluf the Violent - In Combat - Cast Cleave');
INSERT INTO smart_scripts VALUES (23931, 0, 4, 0, 0, 0, 100, 0, 8000, 9000, 28000, 29000, 11, 13730, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Oluf the Violent - In Combat - Cast Demoralizing Shout');
INSERT INTO smart_scripts VALUES (23931, 0, 5, 0, 0, 0, 100, 0, 7000, 7000, 21000, 21000, 11, 6533, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Oluf the Violent - In Combat - Cast Net');
INSERT INTO smart_scripts VALUES (23931, 0, 6, 0, 0, 0, 100, 1, 1000, 1000, 0, 0, 11, 42870, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Oluf the Violent - In Combat - Cast Throw Dragonflayer Harpoon');
INSERT INTO smart_scripts VALUES (23931, 0, 7, 0, 0, 0, 100, 0, 10000, 10000, 10000, 10000, 11, 41057, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Oluf the Violent - In Combat - Cast Whirlwind');
INSERT INTO smart_scripts VALUES (23931, 0, 8, 9, 6, 0, 100, 1, 0, 0, 0, 0, 50, 186640, 90000, 1, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Oluf the Violent - On Death - Summon Ancient Cipher');
INSERT INTO smart_scripts VALUES (23931, 0, 9, 10, 61, 0, 100, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Oluf the Violent - On Death - Talk');
INSERT INTO smart_scripts VALUES (23931, 0, 10, 0, 61, 0, 100, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 19, 24151, 100, 0, 0, 0, 0, 0, 'Oluf the Violent - On Death - Set Data');
-- Guided by Honor (11289)
DELETE FROM smart_scripts WHERE entryorguid IN(24189) AND source_type=0 AND id=1;
INSERT INTO smart_scripts VALUES (24189, 0, 1, 0, 19, 0, 100, 0, 11289, 0, 0, 0, 15, 11289, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Ares - On target quest accepted 11289 - Complete');
UPDATE quest_template SET SpecialFlags=2 WHERE Id=11289;
-- A Carver and a Croaker (11476)
UPDATE creature_template SET npcflag=16777216, AIName="SmartAI", IconName="Pickup" WHERE entry=26503;
-- War is Hell (11270)
UPDATE creature SET spawntimesecs=60 WHERE id IN (24010,24009);
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry IN (24009, 24010);
DELETE FROM smart_scripts WHERE source_type=0 AND entryorguid IN (24009,24010);
INSERT INTO smart_scripts VALUES(24009, 0, 0, 1, 8, 0, 100, 0, 42793, 0, 20000, 20000, 33, 24008, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Alliance Corpse - On Burn Body Hit - Give Kill Credit');
INSERT INTO smart_scripts VALUES(24009, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 20000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Alliance Corpse - On Burn Body Hit - Despawn after 20 secs');
INSERT INTO smart_scripts VALUES(24010, 0, 0, 1, 8, 0, 100, 0, 42793, 0, 20000, 20000, 33, 24008, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Forsaken Corpse - On Burn Body Hit - Give Kill Credit');
INSERT INTO smart_scripts VALUES(24010, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 20000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Forsaken Corpse - On Burn Body Hit - Despawn after 20 secs');
DELETE FROM conditions WHERE SourceEntry=42793 AND SourceTypeOrReferenceId IN(13, 17);
INSERT INTO conditions VALUES(17, 0, 42793, 0, 0, 31, 1, 3, 24009, 0, 0, 0, 0, '', 'Item burning torch only targets Alliance Corpse');
INSERT INTO conditions VALUES(17, 0, 42793, 0, 1, 31, 1, 3, 24010, 0, 0, 0, 0, '', 'Item burning torch only targets Horde Corpse');
INSERT INTO conditions VALUES(13, 1, 42793, 0, 0, 31, 1, 3, 24009, 0, 0, 0, 0, '', 'Item burning torch only targets Alliance Corpse');
INSERT INTO conditions VALUES(13, 1, 42793, 0, 1, 31, 1, 3, 24010, 0, 0, 0, 0, '', 'Item burning torch only targets Horde Corpse');
-- The Cleansing (11322)
-- The Cleansing (11317)
DELETE FROM gameobject WHERE id=186649;
INSERT INTO gameobject VALUES(NULL, 186649, 571, 1, 1, 3035.8, -5092.26, 722.618, 5.31334, 0, 0, 0.46614, -0.884711, 250, 100, 1, 0);
UPDATE gameobject_template SET data10=43351, ScriptName='' WHERE entry=186649;
UPDATE creature_template SET ScriptName="npc_your_inner_turmoil" WHERE entry=27959;
DELETE FROM spell_script_names WHERE spell_id=43351;
INSERT INTO spell_script_names VALUES(43351, "spell_q11322_q11317_the_cleansing");
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=50218;
INSERT INTO conditions VALUES (13, 7, 50218, 0, 0, 31, 0, 3, 27959, 0, 0, 0, 0, '', '');
-- The Fallen Sisters (11314)
DELETE FROM smart_scripts WHERE entryorguid IN (23678,2367800);
INSERT INTO smart_scripts VALUES
(23678, 0, 0, 0, 2, 0, 100, 1, 0, 30, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Chill Nymph - On health 30% - Do text emote '),
(23678, 0, 1, 0, 0, 0, 75, 0, 2000, 3000, 2000, 2000, 11, 9739, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Chill Nymph - In Combat - Cast Wrath on victim'),
(23678, 0, 2, 3, 8, 0, 100, 0, 43340, 0, 30000, 30000, 66, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Chill Nymph - On Spell hit 43340 - Face invoker'),
(23678, 0, 3, 4, 61, 0, 100, 0, 0, 0, 0, 0, 33, 24117, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Chill Nymph - On Spell hit 43340 - Give Quest credit'),
(23678, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 80, 2367800, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Chill Nymph - On Spell hit 43340 - Load script'),
(23678, 0, 5, 0, 40, 0, 100, 0, 1, 23678, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Chill Nymph - On reach waypoint 1 - Despawn'),
(2367800, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Chill Nymph - Script 1 - Stop combat movement'),
(2367800, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 24, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Chill Nymph - Script 2 - Evade'),
(2367800, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 2, 35, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Chill Nymph - Script 3 - Set faction 35'),
(2367800, 9, 3, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Chill Nymph - Script 4 - Say text 1'),
(2367800, 9, 4, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 53, 1, 23678, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Chill Nymph - Script 5 - Start waypoint movement');
-- Mission: Eternal Flame (11202)
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=42564;
INSERT INTO conditions VALUES(13, 1, 42564, 0, 0, 31, 0, 3, 23921, 0, 0, 0, 0, '', "Ever-Burning Torch target entry");
INSERT INTO conditions VALUES(13, 1, 42564, 0, 1, 31, 0, 3, 23922, 0, 0, 0, 0, '', "Ever-Burning Torch target entry");
INSERT INTO conditions VALUES(13, 1, 42564, 0, 2, 31, 0, 3, 23923, 0, 0, 0, 0, '', "Ever-Burning Torch target entry");
INSERT INTO conditions VALUES(13, 1, 42564, 0, 3, 31, 0, 3, 23924, 0, 0, 0, 0, '', "Ever-Burning Torch target entry");
UPDATE creature_template SET scale=2, flags_extra=130, AIName="SmartAI" WHERE entry IN(23921, 23922, 23923, 23924);
DELETE FROM smart_scripts WHERE entryorguid IN(23921, 23922, 23923, 23924) AND source_type=0;
INSERT INTO smart_scripts VALUES (23921, 0, 0, 1, 8, 0, 100, 0, 42564, 0, 0, 0, 33, 23921, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Kill credit on spell cast');
INSERT INTO smart_scripts VALUES (23921, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 11, 59216, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Linked spell cast');
INSERT INTO smart_scripts VALUES (23921, 0, 2, 0, 60, 0, 100, 0, 0, 0, 20000, 20000, 28, 59216, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Remove aura on update');
INSERT INTO smart_scripts VALUES (23922, 0, 0, 1, 8, 0, 100, 0, 42564, 0, 0, 0, 33, 23922, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Kill credit on spell cast');
INSERT INTO smart_scripts VALUES (23922, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 11, 59216, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Linked spell cast');
INSERT INTO smart_scripts VALUES (23922, 0, 2, 0, 60, 0, 100, 0, 0, 0, 20000, 20000, 28, 59216, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Remove aura on update');
INSERT INTO smart_scripts VALUES (23923, 0, 0, 1, 8, 0, 100, 0, 42564, 0, 0, 0, 33, 23923, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Kill credit on spell cast');
INSERT INTO smart_scripts VALUES (23923, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 11, 59216, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Linked spell cast');
INSERT INTO smart_scripts VALUES (23923, 0, 2, 0, 60, 0, 100, 0, 0, 0, 20000, 20000, 28, 59216, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Remove aura on update');
INSERT INTO smart_scripts VALUES (23924, 0, 0, 1, 8, 0, 100, 0, 42564, 0, 0, 0, 33, 23924, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Kill credit on spell cast');
INSERT INTO smart_scripts VALUES (23924, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 11, 59216, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Linked spell cast');
INSERT INTO smart_scripts VALUES (23924, 0, 2, 0, 60, 0, 100, 0, 0, 0, 20000, 20000, 28, 59216, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Remove aura on update');
-- Of Keys and Cages (11231)
UPDATE gameobject_template SET data2=300000 WHERE name="Gjalerbron Cage" AND type=1 AND data1=1738;
-- The Frost Wyrm and its Master (11267)
-- The Frost Wyrm and its Master (11238)
DELETE FROM gameobject WHERE id=186487;
INSERT INTO gameobject VALUES (NULL, 186487, 571, 1, 1, 2821.75, -3603.67, 245.555, 3.49556, 0, 0, 0.984379, -0.176061, 300, 0, 1, 0);
DELETE FROM event_scripts WHERE id=15578;
INSERT INTO event_scripts VALUES(15578, 0, 10, 24019, 180000, 0, 2827, -3680, 307, 1.6);
UPDATE creature_template SET AIName="SmartAI", InhabitType=7 WHERE entry=24019;
DELETE FROM smart_scripts WHERE entryorguid IN(24019) AND source_type=0;
INSERT INTO smart_scripts VALUES(24019, 0, 0, 1, 60, 0, 100, 1, 500, 500, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, 2823, -3620, 247, 0, "Move to pos on reset");
INSERT INTO smart_scripts VALUES(24019, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 133, 1024, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "set movementflags linked");
INSERT INTO smart_scripts VALUES(24019, 0, 2, 0, 34, 0, 100, 1, 0, 0, 0, 0, 133, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "set movementflags on movementinform");
INSERT INTO smart_scripts VALUES(24019, 0, 3, 0, 0, 0, 100, 0, 3000, 4000, 8000, 9000, 11, 43562, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "IC spell cast");
INSERT INTO smart_scripts VALUES(24019, 0, 4, 0, 0, 0, 100, 0, 7000, 7000, 14000, 15000, 11, 11264, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "IC spell cast");
-- Jack Likes His Drink (11466)
REPLACE INTO smart_scripts VALUES(24788, 0, 8, 9, 60, 0, 100, 1, 1000, 1000, 0, 0, 28, 29266, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Remove feign death on respawn");
REPLACE INTO smart_scripts VALUES(24788, 0, 9, 10, 61, 0, 100, 0, 0, 0, 0, 0, 81, 1, 0, 0, 0, 0, 0, 19, 24639, 30, 0, 0, 0, 0, 0, "Restore gossip flag on respawn");
REPLACE INTO smart_scripts VALUES(24788, 0, 10, 11, 61, 0, 100, 0, 0, 0, 0, 0, 94, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Remove dynflag");
REPLACE INTO smart_scripts VALUES(24788, 0, 11, 0, 61, 0, 100, 0, 0, 0, 0, 0, 90, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Set standstate stand");
UPDATE creature_template SET faction=35 WHERE entry=24788;
-- Drop It then Rock It! (11429)
UPDATE creature_template SET unit_flags=4|131072, AIName="SmartAI" WHERE entry=24640;
DELETE FROM smart_scripts WHERE entryorguid=24640 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid=24640*100 AND source_type=9;
INSERT INTO smart_scripts VALUES(24640, 0, 0, 0, 37, 0, 100, 1, 0, 0, 0, 0, 80, 24640*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Run script");
INSERT INTO smart_scripts VALUES(24640*100, 9, 0, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 12, 24015, 4, 30000, 0, 1, 0, 8, 0, 0, 0, 1485, -5331, 195, 0, "Summon first npc");
INSERT INTO smart_scripts VALUES(24640*100, 9, 1, 0, 0, 0, 100, 0, 12000, 12000, 0, 0, 12, 24015, 4, 30000, 0, 1, 0, 8, 0, 0, 0, 1529, -5303, 198.5, 3.5, "Summon second npc");
INSERT INTO smart_scripts VALUES(24640*100, 9, 2, 0, 0, 0, 100, 0, 12000, 12000, 0, 0, 12, 24015, 4, 30000, 0, 1, 0, 8, 0, 0, 0, 1486, -5304, 197, 5.5, "Summon third npc");
INSERT INTO smart_scripts VALUES(24640*100, 9, 3, 0, 0, 0, 100, 0, 20000, 20000, 0, 0, 26, 11429, 0, 0, 0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, "Group event happens for owner");
INSERT INTO smart_scripts VALUES(24640*100, 9, 4, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 41, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "forced despawn");
DELETE FROM creature_text WHERE entry=24015;
INSERT INTO creature_text VALUES(24015, 0, 0, "You dare challenge Winterskorn!? I will impale you on your puny flag!", 12, 0, 100, 0, 0, 0, 0, "Winterskorn_Defender");
INSERT INTO creature_text VALUES(24015, 0, 1, "Your remains will be fed to the sharks of Daggercap.", 12, 0, 100, 0, 0, 0, 0, "Winterskorn_Defender");
INSERT INTO creature_text VALUES(24015, 0, 2, "The sacrifices now bring themselves to us? Have you no sense!?", 12, 0, 100, 0, 0, 0, 0, "Winterskorn_Defender");
UPDATE creature_template SET AIName="SmartAI" WHERE entry=24015;
DELETE FROM smart_scripts WHERE entryorguid=24015 AND source_type=0;
INSERT INTO smart_scripts VALUES(24015, 0, 0, 0, 11, 0, 100, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On Respawn - Talk");
-- The One That Got Away (11410)
DELETE FROM event_scripts WHERE id=16103;
INSERT INTO event_scripts VALUES(16103, 0, 10, 24500, 300000, 1, 2321.083740, -5260.119629, 221.108795, 0.248830);
UPDATE creature_template SET InhabitType=2, AIName="SmartAI" WHERE entry=24500;
DELETE FROM smart_scripts WHERE source_type=0 AND entryorguid=24500;
INSERT INTO smart_scripts VALUES(24500, 0, 0, 0, 0, 0, 100, 0, 2000, 3000, 5000, 8000, 11, 48287, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'IC - Cast Powerful Bite');
-- Orfus of Kamagua (11573)
DELETE FROM creature WHERE id=25233;
INSERT INTO creature VALUES(NULL, 25233, 571, 1, 1, 0, 0, 1247.05, -3341.22, 199.881, 2.98407, 600, 0, 0, 9291, 0, 0, 0, 0, 0);
-- Eyes of the Eagle (11416)
-- Eyes of the Eagle (11417)
DELETE FROM gameobject WHERE id IN(190284, 190283, 186814, 186813);
INSERT INTO gameobject VALUES(NULL, 190284, 571, 1, 1, 1595.69, -3905.33, 79.7439, 0.610864, 0, 0, 0, 0, 5, 0, 1, 0);
INSERT INTO gameobject VALUES(NULL, 190283, 571, 1, 1, 1597.4, -3903.79, 79.702, 0, 0, 0, 0, 0, 60, 100, 1, 0);
INSERT INTO gameobject VALUES(NULL, 186814, 571, 1, 1, 1597.4, -3903.79, 79.702, 0, 0, 0, 0, 0, 60, 100, 1, 0);
INSERT INTO gameobject VALUES(NULL, 186813, 571, 1, 1, 1596.3, -3904.79, 79.5351, -2.67035, 0, 0, 0, 0, 5, 0, 1, 0);
UPDATE gameobject_template SET AIName="SmartGameObjectAI" WHERE entry IN(186814, 190283);
DELETE FROM smart_scripts WHERE entryorguid IN(186814, 190283) AND source_type=1;
INSERT INTO smart_scripts VALUES(186814, 1, 0, 0, 70, 0, 100, 0, 2, 0, 0, 0, 45, 0, 1, 0, 0, 0, 0, 11, 24518, 200, 0, 0.0, 0.0, 0.0, 0.0, "ON egg USE notify Talonshrike");
INSERT INTO smart_scripts VALUES(190283, 1, 0, 0, 70, 0, 100, 0, 2, 0, 0, 0, 45, 0, 1, 0, 0, 0, 0, 11, 24518, 200, 0, 0.0, 0.0, 0.0, 0.0, "ON egg USE notify Talonshrike");
UPDATE creature_template SET speed_run=3, AIName="SmartAI" WHERE entry=24518;
DELETE FROM smart_scripts WHERE entryorguid=24518 AND source_type=0;
INSERT INTO smart_scripts VALUES(24518, 0, 0, 1, 38, 0, 100, 0, 0, 1, 0, 0, 69, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 1597.4, -3903.79, 79.702, 0.0, "ON notification fly TO nest");
INSERT INTO smart_scripts VALUES(24518, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 19, 256, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0.0, "Remove flags linked");
INSERT INTO smart_scripts VALUES(24518, 0, 2, 0, 0, 0, 100, 0, 5000, 5000, 10000, 12000, 11, 49865, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0.0, 0.0, 0.0, 0.0, " USE Eye Peck");
INSERT INTO smart_scripts VALUES(24518, 0, 3, 0, 0, 0, 100, 0, 3000, 3000, 5000, 7000, 11, 32909, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0.0, 0.0, 0.0, 0.0, " USE Talon Strike");
-- Alpha Worg (11324)
DELETE FROM creature WHERE id=24277;
INSERT INTO creature VALUES(NULL, 24277, 571, 1, 1, 0, 0, 2725.23, -3046.39, 99.6441, 1.31682, 300, 0, 0, 13937, 0, 0, 0, 0, 0);
UPDATE creature_template SET faction=1924 WHERE entry=24277;
-- The Slumbering King (11453)
UPDATE creature_template SET faction=14 WHERE entry=24023;
-- Field Test (11307)
DELETE FROM creature_text WHERE entry IN(24198);
INSERT INTO creature_text VALUES(24198, 0, 0, "%s loses all self control and begins to attack friend or foe alike!", 16, 0, 100, 0, 0, 0, 0, "Plagued Dragonflayer Handler");
UPDATE creature_template SET exp=2, AIName="SmartAI" WHERE entry IN(23564, 24198, 24199);
DELETE FROM smart_scripts WHERE entryorguid IN(23564, 24198, 24199) AND source_type=0;
INSERT INTO smart_scripts VALUES(23564, 0, 0, 0, 25, 0, 100, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "set eventphase on reset");
INSERT INTO smart_scripts VALUES(23564, 0, 1, 2, 8, 1, 100, 0, 43381, 0, 0, 0, 33, 24281, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "call killmostercredit on spellhit");
INSERT INTO smart_scripts VALUES(23564, 0, 2, 3, 61, 1, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 40, 0, 0, 0, 0, 0, 0, "attack start linked");
INSERT INTO smart_scripts VALUES(23564, 0, 3, 4, 61, 1, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "say text linked");
INSERT INTO smart_scripts VALUES(23564, 0, 4, 0, 61, 1, 100, 0, 0, 0, 0, 0, 22, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "set eventphase linked");
INSERT INTO smart_scripts VALUES(24198, 0, 0, 0, 25, 0, 100, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "set eventphase on reset");
INSERT INTO smart_scripts VALUES(24198, 0, 1, 2, 8, 1, 100, 0, 43381, 0, 0, 0, 33, 24281, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "call killmostercredit on spellhit");
INSERT INTO smart_scripts VALUES(24198, 0, 2, 3, 61, 1, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 40, 0, 0, 0, 0, 0, 0, "attack start linked");
INSERT INTO smart_scripts VALUES(24198, 0, 3, 4, 61, 1, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "say text linked");
INSERT INTO smart_scripts VALUES(24198, 0, 4, 0, 61, 1, 100, 0, 0, 0, 0, 0, 22, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "set eventphase linked");
INSERT INTO smart_scripts VALUES(24199, 0, 0, 0, 25, 0, 100, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "set eventphase on reset");
INSERT INTO smart_scripts VALUES(24199, 0, 1, 2, 8, 1, 100, 0, 43381, 0, 0, 0, 33, 24281, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "call killmostercredit on spellhit");
INSERT INTO smart_scripts VALUES(24199, 0, 2, 3, 61, 1, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 40, 0, 0, 0, 0, 0, 0, "attack start linked");
INSERT INTO smart_scripts VALUES(24199, 0, 3, 4, 61, 1, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "say text linked");
INSERT INTO smart_scripts VALUES(24199, 0, 4, 0, 61, 1, 100, 0, 0, 0, 0, 0, 22, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "set eventphase linked");
-- Warning: Some Assembly Required (11310), ADDITION FOR Field Test (11307)
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry IN(42168, 42166);
INSERT INTO conditions VALUES (13, 1, 42168, 0, 0, 31, 0, 3, 23575, 0, 0, 0, 0, '', 'Control Mindless abomination');
INSERT INTO conditions VALUES (13, 1, 42166, 0, 0, 31, 0, 3, 23564, 0, 0, 0, 0, '', 'Target Plagued Vrykul');
INSERT INTO conditions VALUES (13, 1, 42166, 0, 1, 31, 0, 3, 24198, 0, 0, 0, 0, '', 'Target Plagued Vrykul');
INSERT INTO conditions VALUES (13, 1, 42166, 0, 2, 31, 0, 3, 24199, 0, 0, 0, 0, '', 'Target Plagued Vrykul');
UPDATE creature_template SET spell1=61359, spell2=42166, AIName='', ScriptName='' WHERE entry=23575;
DELETE FROM smart_scripts WHERE entryorguid IN(23564, 24198, 24199) AND source_type=0 AND id IN(5, 6);
INSERT INTO smart_scripts VALUES(23564, 0, 5, 6, 8, 0, 100, 0, 42166, 0, 0, 0, 11, 43399, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Cast spell with invoker cast on spell hit");
INSERT INTO smart_scripts VALUES(23564, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 37, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Linked die action");
INSERT INTO smart_scripts VALUES(24198, 0, 5, 6, 8, 0, 100, 0, 42166, 0, 0, 0, 11, 43399, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Cast spell with invoker cast on spell hit");
INSERT INTO smart_scripts VALUES(24198, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 37, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Linked die action");
INSERT INTO smart_scripts VALUES(24199, 0, 5, 6, 8, 0, 100, 0, 42166, 0, 0, 0, 11, 43399, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Cast spell with invoker cast on spell hit");
INSERT INTO smart_scripts VALUES(24199, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 37, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Linked die action");
DELETE FROM spell_linked_spell WHERE spell_trigger IN(43392, 42166);
INSERT INTO spell_linked_spell VALUES(43392, 42168, 0, 'Mindless abomination control');
INSERT INTO spell_linked_spell VALUES(42166, 43401, 1, 'Mindless abomination explosion, trigger blood');
DELETE FROM spell_script_names WHERE spell_id IN(42268);
INSERT INTO spell_script_names VALUES(42268, "spell_gen_despawn_self");
-- Send Them Packing (11224)
UPDATE creature_template SET AIName='SmartAI' WHERE entry=23977;
DELETE FROM smart_scripts WHERE entryorguid IN(23977) AND source_type=0;
INSERT INTO smart_scripts VALUES(23977, 0, 0, 1, 22, 0, 100, 0, 125, 3000, 3000, 0, 33, 23977, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "kill credit on emote");
INSERT INTO smart_scripts VALUES(23977, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 2000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "linked forcedespawn");
-- Scare the Guano Out of Them (11154)
UPDATE creature_template SET unit_flags=4|768|262144, AIName='SmartAI', flags_extra=flags_extra|128 WHERE entry=24230;
DELETE FROM smart_scripts WHERE entryorguid=24230 AND source_type=0;
INSERT INTO smart_scripts VALUES (24230, 0, 0, 0, 54, 0, 100, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 19, 23959, 50, 0, 0, 0, 0, 0, "Feknut's Firecrackers Bunny - On spawn - Set data");
UPDATE creature_template SET AIName='SmartAI', InhabitType=4 WHERE entry=23959;
REPLACE INTO creature_template_addon VALUES(23959, 0, 0, 50331648, 1, 0, '');
DELETE FROM smart_scripts WHERE entryorguid=23959 AND source_type=0;
INSERT INTO smart_scripts VALUES (23959, 0, 0, 1, 38, 0, 100, 0, 1, 1, 0, 0, 69, 0, 0, 0, 0, 0, 0, 19, 24230, 50, 0, 0, 0, 0, 0, "Darkclaw Bat - On data - Move to pos");
INSERT INTO smart_scripts VALUES (23959, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 11, 62068, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Darkclaw Bat - On link - Cast spell");
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=43307;
INSERT INTO conditions VALUES (13, 1, 43307, 0, 0, 31, 0, 3, 24230, 0, 0, 0, 0, '', 'Summon Darkclaw Guano targets Firecracker Bunny');
DELETE FROM spell_linked_spell WHERE spell_trigger=62068;
INSERT INTO spell_linked_spell VALUES (62068, 43307, 1, '');
-- There Exists No Honor Among Birds (11470)
REPLACE INTO creature_template_addon VALUES(24783, 0, 0, 50331648, 0, 0, '');
UPDATE creature_template SET spell1=44422, spell2=44423, spell3=44424, InhabitType=5 WHERE entry=24783;
DELETE FROM conditions WHERE SourceTypeOrReferenceId=17 AND SourceEntry IN(44424, 44422);
INSERT INTO conditions VALUES (17, 0, 44424, 0, 0, 31, 1, 3, 24787, 0, 0, 0, 0, '', 'Escape, target matriarch only');
INSERT INTO conditions VALUES (17, 0, 44422, 0, 0, 30, 0, 186946, 5, 0, 0, 0, 0, '', 'Scavenge, requires egg');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry IN(44422);
INSERT INTO conditions VALUES (13, 1, 44422, 0, 0, 31, 0, 5, 186946, 0, 0, 0, 0, '', 'Scavenge, requires egg');
UPDATE gameobject_template SET AIName='SmartGameObjectAI' WHERE entry=186946;
DELETE FROM smart_scripts WHERE entryorguid=186946 AND source_type=1;
INSERT INTO smart_scripts VALUES (186946, 1, 0, 0, 64, 0, 100, 0, 0, 0, 0, 0, 99, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On gossip hello - set loot state");
-- High Commander Halford Wyrmbane (12298)
-- Mission: Plague This! (11332)
DELETE FROM gossip_menu_option WHERE menu_id=9546;
INSERT INTO gossip_menu_option VALUES (9546, 0, 2, 'Where would you like to fly to?', 4, 8192, 0, 0, 0, 0, '');
INSERT INTO gossip_menu_option VALUES (9546, 1, 0, 'I need to Borrow a Gryphon.', 1, 1, 0, 0, 0, 0, '');
INSERT INTO gossip_menu_option VALUES (9546, 2, 0, 'I Need a ride to Wintergarde keep.', 1, 1, 0, 0, 0, 0, '');
UPDATE creature_template SET gossip_menu_id=9546, AIName='SmartAI' WHERE entry=23859;
DELETE FROM smart_scripts WHERE entryorguid=23859 AND source_type=0;
INSERT INTO smart_scripts VALUES(23859, 0, 0, 0, 4, 0, 100, 0, 0, 0, 0, 0, 80, 2385900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Greer Orehammer - On aggro - Run Script');
INSERT INTO smart_scripts VALUES(23859, 0, 1, 2, 62, 0, 100, 0, 9546, 1, 0, 0, 56, 33634, 10, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Greer Orehammer - On Gossip Select - give player 10 Orehammer's Precision Bombs");
INSERT INTO smart_scripts VALUES(23859, 0, 2, 4, 61, 0, 100, 0, 0, 0, 0, 0, 52, 745, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Greer Orehammer - On Gossip Select - Activate Taxi");
INSERT INTO smart_scripts VALUES(23859, 0, 3, 4, 62, 0, 100, 0, 9546, 2, 0, 0, 11, 48862, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Greer Orehammer - On Gossip Select - Cast Spell');
INSERT INTO smart_scripts VALUES(23859, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Greer Orehammer - Linked - Close Gossip');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=15 AND SourceGroup=9546;
INSERT INTO conditions VALUES (15, 9546, 1, 0, 0, 9, 0, 11332, 0, 0, 0, 0, 0, '', 'Mission Plague This is Active');
INSERT INTO conditions VALUES (15, 9546, 2, 0, 0, 28, 0, 12298, 0, 0, 0, 0, 0, '', 'Show gossip option if player has quest');
UPDATE creature_template SET flags_extra=130, AIName='SmartAI' WHERE entry=24290;
DELETE FROM smart_scripts WHERE entryorguid=24290 AND source_type=0;
INSERT INTO smart_scripts VALUES(24290, 0, 0, 0, 8, 0, 100, 0, 43404, 0, 0, 0, 33, 24290, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - kill credit');
-- It Goes to 11... (11421)
REPLACE INTO creature_text VALUES(27992, 0, 0, 'The longhouse is destroyed! Alarms can be heard in the distance.', 41, 0, 100, 0, 0, 0, 0, 'It Goes to 11...');
REPLACE INTO creature_text VALUES(27992, 1, 0, 'Direct hit on the Dockhouse! Dragonflyer Defenders have been alerted!', 41, 0, 100, 0, 0, 0, 0, 'It Goes to 11...');
REPLACE INTO creature_text VALUES(27992, 2, 0, 'The Vrykul Storage facility is up in flames! Dragonflyer Defenders have been alerted!', 41, 0, 100, 0, 0, 0, 0, 'It Goes to 11...');
UPDATE creature SET spawndist=0, MovementType=0 WHERE id=24701;
DELETE FROM creature_addon WHERE guid IN(SELECT guid FROM creature WHERE id IN(27992, 27993));
DELETE FROM creature WHERE id IN(27992, 27993);
INSERT INTO creature VALUES(NULL, 27992, 571, 1, 1, 0, 0, 994.286, -5312, 175.674, 1.18682, 300, 0, 0, 26946, 0, 0, 0, 0, 0);
INSERT INTO creature VALUES(NULL, 27992, 571, 1, 1, 0, 0, 925.647, -5299.53, 175.687, 1.90241, 300, 0, 0, 26946, 0, 0, 0, 0, 0);
UPDATE creature_template SET unit_flags=4, spell1=43986, spell2=43997, AIName='SmartAI' WHERE entry IN(27992, 27993);
DELETE FROM smart_scripts WHERE entryorguid=27992 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid=27992*100 AND source_type=9;
INSERT INTO smart_scripts VALUES(27992, 0, 0, 1, 25, 0, 100, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Reset - Set Auto Attack');
INSERT INTO smart_scripts VALUES(27992, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Reset - Set Combat Movement');
INSERT INTO smart_scripts VALUES(27992, 0, 2, 5, 38, 0, 100, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Data Set - Talk');
INSERT INTO smart_scripts VALUES(27992, 0, 3, 5, 38, 0, 100, 0, 1, 2, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Data Set - Talk');
INSERT INTO smart_scripts VALUES(27992, 0, 4, 5, 38, 0, 100, 0, 1, 3, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Data Set - Talk');
INSERT INTO smart_scripts VALUES(27992, 0, 5, 0, 61, 0, 100, 0, 0, 0, 0, 0, 80, 27992*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Data Set - Script9');
INSERT INTO smart_scripts VALUES(27992, 0, 6, 0, 31, 0, 100, 0, 43997, 0, 0, 0, 11, 43998, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit Target - Cast Spell');
INSERT INTO smart_scripts VALUES(27992*100, 9, 0, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 12, 24533, 4, 60000, 0, 1, 0, 8, 0, 0, 0, 970, -5250, 195, 4.5, 'Script9 - Summon Creature');
INSERT INTO smart_scripts VALUES(27992*100, 9, 1, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 12, 24533, 4, 60000, 0, 1, 0, 8, 0, 0, 0, 978, -5272, 204, 4.5, 'Script9 - Summon Creature');
INSERT INTO smart_scripts VALUES(27992*100, 9, 2, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 12, 24533, 4, 60000, 0, 1, 0, 8, 0, 0, 0, 956, -5267, 198, 4.5, 'Script9 - Summon Creature');
INSERT INTO smart_scripts VALUES(27992*100, 9, 3, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 12, 24533, 4, 60000, 0, 1, 0, 8, 0, 0, 0, 965, -5241, 189, 4.5, 'Script9 - Summon Creature');
UPDATE creature_template SET InhabitType=5, AIName='SmartAI' WHERE entry=24533;
REPLACE INTO creature_template_addon VALUES(24533, 0, 22657, 50331648, 1, 0, '');
DELETE FROM smart_scripts WHERE entryorguid IN(24533) AND source_type=0;
INSERT INTO smart_scripts VALUES(24533, 0, 0, 0, 0, 0, 100, 0, 500, 500, 1500, 1500, 11, 44188, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'IC Update - Cast Spell');
INSERT INTO smart_scripts VALUES(24533, 0, 1, 0, 8, 0, 100, 0, 43997, 0, 0, 0, 37, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'IC Spell Hit - Die');
DELETE FROM creature WHERE id=24533;
UPDATE creature_template SET flags_extra=130, AIName='SmartAI' WHERE entry IN(24538, 24646, 24647);
DELETE FROM smart_scripts WHERE entryorguid IN(24538, 24646, 24647) AND source_type=0;
INSERT INTO smart_scripts VALUES(24538, 0, 0, 1, 8, 0, 100, 0, 43990, 0, 0, 0, 33, 24538, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - kill credit');
INSERT INTO smart_scripts VALUES(24646, 0, 0, 1, 8, 0, 100, 0, 43990, 0, 0, 0, 33, 24646, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - kill credit');
INSERT INTO smart_scripts VALUES(24647, 0, 0, 1, 8, 0, 100, 0, 43990, 0, 0, 0, 33, 24647, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - kill credit');
INSERT INTO smart_scripts VALUES(24538, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - Set Data');
INSERT INTO smart_scripts VALUES(24646, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 45, 1, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - Set Data');
INSERT INTO smart_scripts VALUES(24647, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 45, 1, 3, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - Set Data');
INSERT INTO smart_scripts VALUES(24538, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 11, 57931, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - cast spell (fire)');
INSERT INTO smart_scripts VALUES(24646, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 11, 57931, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - cast spell (fire)');
INSERT INTO smart_scripts VALUES(24647, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 11, 57931, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - cast spell (fire)');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry IN(43986, 43990);
INSERT INTO conditions VALUES (13, 1, 43986, 0, 0, 31, 0, 3, 24538, 0, 0, 0, 0, '', 'Target Quest Trigger');
INSERT INTO conditions VALUES (13, 1, 43986, 0, 1, 31, 0, 3, 24646, 0, 0, 0, 0, '', 'Target Quest Trigger');
INSERT INTO conditions VALUES (13, 1, 43986, 0, 2, 31, 0, 3, 24647, 0, 0, 0, 0, '', 'Target Quest Trigger');
INSERT INTO conditions VALUES (13, 1, 43990, 0, 0, 31, 0, 3, 24538, 0, 0, 0, 0, '', 'Target Quest Trigger');
INSERT INTO conditions VALUES (13, 1, 43990, 0, 1, 31, 0, 3, 24646, 0, 0, 0, 0, '', 'Target Quest Trigger');
INSERT INTO conditions VALUES (13, 1, 43990, 0, 2, 31, 0, 3, 24647, 0, 0, 0, 0, '', 'Target Quest Trigger');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry IN(50331);
INSERT INTO conditions VALUES (13, 1, 50331, 0, 0, 31, 0, 3, 27992, 0, 0, 0, 0, '', 'Target Valkry Harpoon Gun');
INSERT INTO conditions VALUES (13, 1, 50331, 0, 1, 31, 0, 3, 27993, 0, 0, 0, 0, '', 'Target Valkry Harpoon Gun');
-- We Call Him Steelfeather (11418)
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=24514;
DELETE FROM smart_scripts WHERE entryorguid=24514 AND source_type=0;
INSERT INTO smart_scripts VALUES(24514, 0, 0, 1, 8, 0, 100, 0, 43969, 0, 0, 0, 19, 524288, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - Evade Hack');
INSERT INTO smart_scripts VALUES(24514, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 60, 1, 300, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - Set Fly');
INSERT INTO smart_scripts VALUES(24514, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - Store Target');
INSERT INTO smart_scripts VALUES(24514, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 53, 1, 24514, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - Start WP');
INSERT INTO smart_scripts VALUES(24514, 0, 4, 5, 40, 0, 100, 0, 5, 0, 0, 0, 33, 24515, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'On WP Reach - Kill Credit');
INSERT INTO smart_scripts VALUES(24514, 0, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 28, 43969, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'On WP Reach - Remove Aura');
INSERT INTO smart_scripts VALUES(24514, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 2000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On WP Reach - Despawn');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=17 AND SourceEntry=43969;
INSERT INTO conditions VALUES (17, 0, 43969, 0, 0, 31, 1, 3, 24514, 0, 0, 0, 0, '', 'Requires Steelfeather');
DELETE FROM waypoints WHERE entry=24514;
INSERT INTO waypoints VALUES (24514, 1, 2613, -5086.51, 398.899, 'Steelfeather'),(24514, 2, 2640.59, -5144.9, 427.292, 'Steelfeather'),(24514, 3, 2611.1, -5253.76, 419.437, 'Steelfeather'),(24514, 4, 2575.39, -5252.23, 382.764, 'Steelfeather'),(24514, 5, 2570.71, -5228.31, 376.612, 'Steelfeather');
DELETE FROM creature_text WHERE entry IN(24139, 24131);
INSERT INTO creature_text VALUES(24139, 0, 0, "Y'hear that, Jethan? You're not getting that Steelfeather trophy now that we know she's a mother.", 12, 0, 100, 0, 0, 0, 0, 'Gil Grisert');
INSERT INTO creature_text VALUES(24139, 1, 0, "Jethan!", 12, 0, 100, 0, 0, 0, 0, 'Gil Grisert');
INSERT INTO creature_text VALUES(24131, 0, 0, "Why not? Just think how much better it'll look with the hatchlings to either side --", 12, 0, 100, 0, 0, 0, 0, 'Trapper Jethan');
INSERT INTO creature_text VALUES(24131, 1, 0, "What? I'm just sayin' that's how we do things in Grizzly Hills.", 12, 0, 100, 0, 0, 0, 0, 'Trapper Jethan');
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=24139;
DELETE FROM smart_scripts WHERE entryorguid=24139 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid=24139*100 AND source_type=9;
INSERT INTO smart_scripts VALUES (24139, 0, 0, 0, 20, 0, 100, 0, 11418, 0, 0, 0, 80, 24139*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Quest Rewarded - Script9');
INSERT INTO smart_scripts VALUES (24139*100, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Script 9 - Talk');
INSERT INTO smart_scripts VALUES (24139*100, 9, 1, 0, 0, 0, 100, 0, 8000, 8000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 19, 24131, 0, 0, 0, 0, 0, 0, 'Script 9 - Talk');
INSERT INTO smart_scripts VALUES (24139*100, 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, 'Script 9 - Talk');
INSERT INTO smart_scripts VALUES (24139*100, 9, 3, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 19, 24131, 0, 0, 0, 0, 0, 0, 'Script 9 - Talk');
-- I've Got a Flying Machine! (11390)
-- Steel Gate Patrol (11391)
DELETE FROM npc_spellclick_spells WHERE npc_entry=24418;
INSERT INTO npc_spellclick_spells VALUES(24418, 43768, 3, 0);
DELETE FROM conditions WHERE SourceTypeOrReferenceId=18 AND SourceGroup=24418;
INSERT INTO conditions VALUES (18, 24418, 43768, 0, 0, 9, 0, 11390, 0, 0, 0, 0, 0, '', 'Show spell if player has quest 11390');
INSERT INTO conditions VALUES (18, 24418, 43768, 0, 1, 9, 0, 11391, 0, 0, 0, 0, 0, '', 'Show spell if player has quest 11391');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=22 AND SourceEntry=24418;
INSERT INTO conditions VALUES(22, 3, 24418, 0, 0, 31, 0, 4, 0, 0, 0, 0, 0, '', 'Run if unit is player');
INSERT INTO conditions VALUES(22, 4, 24418, 0, 0, 31, 0, 3, 0, 0, 0, 0, 0, '', 'Run if unit is npc');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=16 AND SourceEntry=24418;
INSERT INTO conditions VALUES (16, 0, 24418, 0, 0, 23, 0, 3999, 0, 0, 0, 0, 0, '', 'Vehicle must be in area 3999');
UPDATE creature SET spawndist=0, MovementType=0 WHERE id=24418;
DELETE FROM creature_addon WHERE guid IN(SELECT guid FROM creature WHERE id=24418);
REPLACE INTO creature_template_addon VALUES(24418, 0, 0, 33554432, 1, 0, '');
UPDATE creature_template SET speed_run=3, spell1=43770, spell2=44009, spell3=43799, spell4=43769, AIName='SmartAI', InhabitType=4 WHERE entry=24418;
DELETE FROM smart_scripts WHERE entryorguid=24418 AND source_type=0;
INSERT INTO smart_scripts VALUES (24418, 0, 0, 0, 25, 0, 100, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Charmed - Set Combat Movement');
INSERT INTO smart_scripts VALUES (24418, 0, 1, 0, 29, 0, 100, 0, 0, 0, 0, 0, 60, 1, 300, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Charmed - Set Flight');
INSERT INTO smart_scripts VALUES (24418, 0, 2, 0, 28, 0, 100, 0, 0, 0, 0, 0, 41, 1000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Passenger Removed - Despawn');
INSERT INTO smart_scripts VALUES (24418, 0, 3, 0, 28, 0, 100, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On Passenger Removed - Set Data');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=21 AND SourceGroup=24418;
INSERT INTO conditions VALUES (21, 24418, 43770, 0, 0, 9, 0, 11390, 0, 0, 0, 0, 0, '', 'Show spell if player has quest 11390');
INSERT INTO conditions VALUES (21, 24418, 44009, 0, 0, 9, 0, 11391, 0, 0, 0, 0, 0, '', 'Show spell if player has quest 11391');
INSERT INTO conditions VALUES (21, 24418, 43799, 0, 0, 9, 0, 11391, 0, 0, 0, 0, 0, '', 'Show spell if player has quest 11391');
INSERT INTO conditions VALUES (21, 24418, 43769, 0, 0, 9, 0, 11391, 0, 0, 0, 0, 0, '', 'Show spell if player has quest 11391');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=43770;
INSERT INTO conditions VALUES (13, 1, 43770, 0, 0, 31, 0, 3, 24439, 0, 0, 0, 0, '', 'Target Sack of Relics');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=22 AND SourceEntry=24439;
INSERT INTO conditions VALUES(22, 6, 24439, 0, 0, 29, 1, 24438, 10, 0, 0, 0, 0, '', 'Requires Npc Nearby');
UPDATE creature_template SET faction=35, unit_flags=33554432, AIName='SmartAI' WHERE entry=24439;
DELETE FROM smart_scripts WHERE entryorguid=24439 AND source_type=0;
INSERT INTO smart_scripts VALUES (24439, 0, 0, 0, 25, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Reset - Set Passive');
INSERT INTO smart_scripts VALUES (24439, 0, 1, 0, 25, 0, 100, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Reset - Set Phase');
INSERT INTO smart_scripts VALUES (24439, 0, 2, 0, 8, 1, 100, 0, 43770, 0, 0, 0, 11, 46598, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - Cast Spell');
INSERT INTO smart_scripts VALUES (24439, 0, 3, 0, 23, 0, 100, 0, 46598, 1, 1000, 1000, 22, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Aura - Set Phase');
INSERT INTO smart_scripts VALUES (24439, 0, 4, 0, 8, 2, 100, 0, 43770, 0, 0, 0, 28, 46598, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - Remove Vehicle Aura');
INSERT INTO smart_scripts VALUES (24439, 0, 5, 6, 8, 0, 100, 0, 43770, 0, 0, 0, 33, 24439, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - Kill Credit');
INSERT INTO smart_scripts VALUES (24439, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - Despawn');
INSERT INTO smart_scripts VALUES (24439, 0, 7, 0, 38, 0, 100, 0, 1, 1, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Data Set - Set Phase');
UPDATE creature_template SET modelid1=11686, modelid2=0, scale=4 WHERE entry=24438;
REPLACE INTO creature_template_addon VALUES(24438, 0, 0, 0, 0, 0, '40790');
DELETE FROM creature WHERE id=24438;
INSERT INTO creature VALUES (NULL, 24438, 571, 1, 1, 0, 0, 2091.63, -3245.17, 161.225, 0.148704, 300, 0, 0, 42, 0, 0, 0, 0, 0);
INSERT INTO creature VALUES (NULL, 24438, 571, 1, 1, 0, 0, 1997.35, -3256.87, 149.697, 2.88974, 300, 0, 0, 42, 0, 0, 0, 0, 0);
-- Green Eggs and Whelps (11279)
UPDATE creature_template SET AIName='SmartAI' WHERE entry=23777;
DELETE FROM smart_scripts WHERE entryorguid=23777 AND source_type=0;
INSERT INTO smart_scripts VALUES (23777, 0, 0, 1, 25, 0, 100, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Reset - Set Combat Movement');
INSERT INTO smart_scripts VALUES (23777, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Reset - Set Passive');
INSERT INTO smart_scripts VALUES (23777, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Reset - Set Phase');
INSERT INTO smart_scripts VALUES (23777, 0, 3, 0, 6, 1, 100, 0, 0, 0, 0, 0, 12, 23688, 4, 30000, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Death - Summon');
INSERT INTO smart_scripts VALUES (23777, 0, 4, 0, 6, 2, 100, 0, 0, 0, 0, 0, 12, 24160, 4, 30000, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Death - Summon');
INSERT INTO smart_scripts VALUES (23777, 0, 5, 6, 8, 0, 100, 0, 46606, 0, 0, 0, 22, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - Set Phase');
INSERT INTO smart_scripts VALUES (23777, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 37, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - Die');
-- Let's Go Surfing Now (11436)
UPDATE creature SET spawndist=0, MovementType=0 WHERE id=24701;
REPLACE INTO creature_template_addon VALUES(27924, 0, 0, 50331648, 0, 0, '');
UPDATE creature_template SET speed_run=5, InhabitType=4, AIName='SmartAI' WHERE entry=27924;
DELETE FROM smart_scripts WHERE entryorguid=27924 AND source_type=0;
INSERT INTO smart_scripts VALUES (27924, 0, 0, 0, 60, 0, 100, 1, 0, 0, 0, 0, 60, 1, 500, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Update - Set Fly');
INSERT INTO smart_scripts VALUES (27924, 0, 1, 0, 60, 0, 100, 1, 1000, 1000, 0, 0, 53, 1, 27924, 0, 11436, 1000, 0, 21, 10, 0, 0, 0, 0, 0, 0, 'On Update - Start WP');
INSERT INTO smart_scripts VALUES (27924, 0, 2, 3, 40, 0, 100, 0, 1, 0, 0, 0, 15, 11436, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On WP Reach - Quest Complete');
INSERT INTO smart_scripts VALUES (27924, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 28, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On WP Reach - Remova All Auras');
REPLACE INTO spell_target_position VALUES(50007, 0, 571, 806.631, -5343.88, 194.0, 2.02458);
DELETE FROM waypoints WHERE entry=27924;
INSERT INTO waypoints VALUES(27924, 1, 626.36, -5030.54, 3.35296, 'Dragonflayer Harpoon');
-- To Venomspite! (12182)
DELETE FROM smart_scripts WHERE entryorguid=24155 AND source_type=0 AND id=3;
INSERT INTO smart_scripts VALUES (24155, 0, 3, 0, 19, 0, 100, 0, 12182, 0, 0, 0, 52, 837, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On Quest Accept - Activate Taxi Path');
-- Falcon Versus Hawk (11468)
DELETE FROM smart_scripts WHERE entryorguid=24747 AND source_type=0;
INSERT INTO smart_scripts VALUES (24747, 0, 0, 1, 8, 0, 100, 0, 44407, 0, 0, 0, 11, 44408, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Fjord Hawk - On Spellhit - Cast spell on invoker');
INSERT INTO smart_scripts VALUES (24747, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 85, 44408, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Fjord Hawk - On Spellhit - Invoker Cast');
INSERT INTO smart_scripts VALUES (24747, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Fjord Hawk - On Spellhit - Despawn');
-- The Ransacked Caravan (11465)
DELETE FROM smart_scripts WHERE entryorguid=24746 AND source_type=0;
INSERT INTO smart_scripts VALUES (24746, 0, 0, 0, 6, 0, 100, 1, 0, 0, 0, 0, 85, 25281, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Fjord Turkey - Cast Marker on death');
INSERT INTO smart_scripts VALUES (24746, 0, 1, 2, 8, 0, 100, 0, 44323, 0, 0, 0, 11, 44327, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Fjord Turkey - On Spellhit - Cast spell on invoker');
INSERT INTO smart_scripts VALUES (24746, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Fjord Turkey - On Spellhit - Set Visible false');
INSERT INTO smart_scripts VALUES (24746, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 6000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Fjord Turkey - On Spellhit - Despawn');
INSERT INTO smart_scripts VALUES (24746, 0, 4, 0, 25, 0, 100, 0, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Fjord Turkey - On Reset - Set Visible true');
-- The Yeti Next Door (11284)
DELETE FROM conditions WHERE SourceTypeOrReferenceId IN(13, 17) AND SourceEntry=43209;
INSERT INTO conditions VALUES (17, 0, 43209, 0, 0, 29, 0, 24178, 10, 0, 0, 60, 0, '', 'Place Ram Meat can only be used Near npc');
INSERT INTO conditions VALUES (13, 1, 43209, 0, 0, 31, 0, 3, 24178, 0, 0, 0, 0, '', 'Target entry 24178');
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=24178;
DELETE FROM smart_scripts WHERE entryorguid=24178 AND source_type=0;
INSERT INTO smart_scripts VALUES (24178, 0, 0, 0, 4, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Shatterhorn - On Aggro - Say Line 0");
INSERT INTO smart_scripts VALUES (24178, 0, 1, 0, 0, 0, 100, 0, 3000, 5000, 12000, 13000, 11, 12734, 1, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "Shatterhorn - In Combat - Cast 'Ground Smash'");
INSERT INTO smart_scripts VALUES (24178, 0, 2, 0, 6, 0, 100, 0, 0, 0, 0, 0, 41, 8000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Shatterhorn - On Just Died - Despawn In 8000 ms");
INSERT INTO smart_scripts VALUES (24178, 0, 3, 0, 8, 0, 0, 0, 43209, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Shatterhorn - On Spellhit 'Place Ram Meat' - Remove Flags Immune To Players & Immune To NPC's");
INSERT INTO smart_scripts VALUES (24178, 0, 4, 0, 8, 0, 0, 0, 43209, 0, 0, 0, 28, 6606, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Shatterhorn - On Spellhit 'Place Ram Meat' - Remove Aura 'Self Visual - Sleep Until Cancelled (DND)'");
INSERT INTO smart_scripts VALUES (24178, 0, 5, 0, 8, 0, 0, 0, 43209, 0, 0, 0, 91, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Shatterhorn - On Spellhit 'Place Ram Meat' - Remove Flag Standstate Sleep");
-- Absholutely... Thish Will Work! (11330)
UPDATE gameobject_template SET data0=0 WHERE entry=190192;
UPDATE gameobject SET state=1 WHERE id=190192;
DELETE FROM conditions WHERE SourceTypeOrReferenceId IN(13, 17) AND SourceEntry=43386;
INSERT INTO conditions VALUES (13, 1, 43386, 0, 0, 31, 0, 3, 24284, 0, 0, 0, 0, '', 'Target entry 24284');
INSERT INTO conditions VALUES (13, 1, 43386, 0, 0, 1, 0, 42871, 0, 0, 1, 0, 0, '', 'Requires no aura');
INSERT INTO conditions VALUES (13, 1, 43386, 0, 0, 1, 0, 43167, 0, 0, 1, 0, 0, '', 'Requires no aura');
DELETE FROM creature_text WHERE entry IN(23842, 24284);
INSERT INTO creature_text VALUES(24284, 0, 0, "%s clutches at his throat as he begins to gag and thrash about.", 16, 0, 100, 0, 0, 0, 0, 'vrykul prisoner');
INSERT INTO creature_text VALUES(23842, 0, 0, "Yikes.", 12, 0, 100, 0, 0, 0, 0, 'Westguard Defender');
INSERT INTO creature_text VALUES(23842, 0, 1, "This isn't going to end well.", 12, 0, 100, 0, 0, 0, 0, 'Westguard Defender');
INSERT INTO creature_text VALUES(23842, 1, 0, "That did NOT just happen!", 12, 0, 100, 0, 0, 0, 0, 'Westguard Defender');
INSERT INTO creature_text VALUES(23842, 1, 1, "Heh, cool!", 12, 0, 100, 0, 0, 0, 0, 'Westguard Defender');
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=24284;
DELETE FROM smart_scripts WHERE entryorguid=24284 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid=24284*100 AND source_type=9;
INSERT INTO smart_scripts VALUES (24284, 0, 0, 1, 8, 0, 100, 0, 43386, 0, 0, 0, 33, 24284, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On Spell Hit - Kill Credit");
INSERT INTO smart_scripts VALUES (24284, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 80, 24284*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On Spell Hit - Start Script");
INSERT INTO smart_scripts VALUES (24284*100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 42871, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Script9 - Cast Spell Drink");
INSERT INTO smart_scripts VALUES (24284*100, 9, 1, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 11, 43401, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Script9 - Cast Spell Explosion");
INSERT INTO smart_scripts VALUES (24284*100, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 43167, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Script9 - Cast Spell Spirit Particles Green");
INSERT INTO smart_scripts VALUES (24284*100, 9, 3, 0, 0, 0, 100, 0, 500, 500, 0, 0, 91, 255, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Script9 - Remove Byte1 flag sit");
INSERT INTO smart_scripts VALUES (24284*100, 9, 4, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 5, 53, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Script9 - Play Emote Battle Roar");
INSERT INTO smart_scripts VALUES (24284*100, 9, 5, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Script9 - Say text 0");
INSERT INTO smart_scripts VALUES (24284*100, 9, 6, 0, 0, 0, 100, 0, 500, 500, 0, 0, 1, 0, 0, 0, 0, 0, 0, 11, 23842, 7, 0, 0, 0, 0, 0, "Script9 - Say text 0");
INSERT INTO smart_scripts VALUES (24284*100, 9, 7, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 69, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 1370.47, -3174.79, 153.58, 0, "Script9 - Say text 0");
INSERT INTO smart_scripts VALUES (24284*100, 9, 8, 0, 0, 0, 100, 0, 1500, 1500, 0, 0, 69, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 1366.57, -3180.71, 153.58, 0, "Script9 - Say text 0");
INSERT INTO smart_scripts VALUES (24284*100, 9, 9, 0, 0, 0, 100, 0, 1500, 1500, 0, 0, 69, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 1364.21, -3178.55, 153.58, 0, "Script9 - Say text 0");
INSERT INTO smart_scripts VALUES (24284*100, 9, 10, 0, 0, 0, 100, 0, 1500, 1500, 0, 0, 69, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 1367.49, -3180.0, 153.58, 0, "Script9 - Say text 0");
INSERT INTO smart_scripts VALUES (24284*100, 9, 11, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 3, 0, 11137, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Script9 - Morph to model");
INSERT INTO smart_scripts VALUES (24284*100, 9, 12, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 43401, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Script9 - Cast Spell Explosion");
INSERT INTO smart_scripts VALUES (24284*100, 9, 13, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 37, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Script9 - Die");
INSERT INTO smart_scripts VALUES (24284*100, 9, 14, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 11, 23842, 7, 0, 0, 0, 0, 0, "Script9 - Say text 1");
INSERT INTO smart_scripts VALUES (24284*100, 9, 15, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Script9 - Despawn");
-- A Return to Resting (11568)
UPDATE creature SET MovementType=0, spawndist=0 WHERE id IN(24883, 24889, 25231, 24887);
UPDATE creature_template SET flags_extra=130 WHERE entry IN(24883, 24889, 25231, 24887);
UPDATE smart_scripts SET event_flags=0 WHERE entryorguid IN(24874, 24875, 24876, 24877) AND source_type=0;
-- Rescuing the Rescuers (11244)
UPDATE gameobject_template SET data3=0, data5=1 WHERE entry=186565;
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=42968;
INSERT INTO conditions VALUES (13, 1, 42968, 0, 0, 31, 0, 3, 24077, 0, 0, 0, 0, '', 'Target entry 24077');
DELETE FROM creature_text WHERE entry=24077;
INSERT INTO creature_text VALUES(24077, 0, 0, "Don't let my death go unavenged, stranger... give ... them... hell...", 12, 0, 100, 0, 0, 0, 0, 'Impaled Valgarde Scout');
INSERT INTO creature_text VALUES(24077, 0, 1, "I'm done for... too much blood lost... Forget about me, tell Keller... People still alive inside...", 12, 0, 100, 0, 0, 0, 0, 'Impaled Valgarde Scout');
INSERT INTO creature_text VALUES(24077, 0, 2, "Not... no... Our people... Wrymskull... some live...", 12, 0, 100, 0, 0, 0, 0, 'Impaled Valgarde Scout');
INSERT INTO creature_text VALUES(24077, 0, 3, "My injuries are too great. I won't make it... Our citizenry held in cages... ritual...", 12, 0, 100, 0, 0, 0, 0, 'Impaled Valgarde Scout');
INSERT INTO creature_text VALUES(24077, 0, 4, "They left us here impaled as a warning to the others... Several still alive... prisoners of...", 12, 0, 100, 0, 0, 0, 0, 'Impaled Valgarde Scout');
INSERT INTO creature_text VALUES(24077, 0, 5, "My family must know... I... for them... always for them...", 12, 0, 100, 0, 0, 0, 0, 'Impaled Valgarde Scout');
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=24077;
DELETE FROM smart_scripts WHERE entryorguid=24077 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid=24077*100 AND source_type=9;
INSERT INTO smart_scripts VALUES (24077, 0, 0, 1, 8, 0, 100, 0, 42968, 0, 0, 0, 80, 24077*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On Spell Hit - Start Script");
INSERT INTO smart_scripts VALUES (24077*100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 99, 3, 0, 0, 0, 0, 0, 20, 186565, 10, 0, 0, 0, 0, 0, "Script9 - Set loot state");
INSERT INTO smart_scripts VALUES (24077*100, 9, 1, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 91, 255, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Script9 - Remove Bytes 1");
INSERT INTO smart_scripts VALUES (24077*100, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 90, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Script9 - Set Bytes 1");
INSERT INTO smart_scripts VALUES (24077*100, 9, 3, 0, 0, 0, 100, 0, 1500, 1500, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Script9 - Talk 0");
INSERT INTO smart_scripts VALUES (24077*100, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 3000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Script9 - Despawn");
-- The Shining Light (11288)
DELETE FROM conditions WHERE SourceTypeOrReferenceId IN(13, 17) AND SourceEntry=43203;
INSERT INTO conditions VALUES (13, 1, 43203, 0, 0, 31, 0, 3, 24177, 0, 0, 0, 0, '', 'Shinning Light can only hit Decomposing Ghouls');
INSERT INTO conditions VALUES (17, 0, 43203, 0, 0, 9, 0, 11288, 0, 0, 0, 0, 0, '', 'Shinning Light can only hit targets on the quest');
INSERT INTO conditions VALUES (17, 0, 43203, 0, 1, 28, 0, 11288, 0, 0, 0, 0, 0, '', 'Shinning Light can only hit targets on the quest');
-- Gambling Debt (11464)
DELETE FROM smart_scripts WHERE entryorguid=24539 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid IN(2453900, 2453901) AND source_type=9;
INSERT INTO smart_scripts VALUES (24539, 0, 0, 1, 62, 0, 100, 0, 9010, 0, 0, 0, 2, 14, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "'Silvermoon' Harry - On Gossip Option 0 Selected - Set Faction 14");
INSERT INTO smart_scripts VALUES (24539, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "'Silvermoon' Harry - On Gossip Option 0 Selected - Close Gossip");
INSERT INTO smart_scripts VALUES (24539, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "'Silvermoon' Harry - On Gossip Option 0 Selected - Say Line 0");
INSERT INTO smart_scripts VALUES (24539, 0, 3, 4, 61, 0, 100, 0, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "'Silvermoon' Harry - On Gossip Option 0 Selected - Store Target");
INSERT INTO smart_scripts VALUES (24539, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "'Silvermoon' Harry - On Gossip Option 0 Selected - Set Event Phase 1");
INSERT INTO smart_scripts VALUES (24539, 0, 5, 0, 2, 1, 100, 1, 1, 50, 60000, 60000, 80, 2453900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "'Silvermoon' Harry - Between 1-50% Health - Run Script");
INSERT INTO smart_scripts VALUES (24539, 0, 6, 0, 64, 2, 100, 0, 0, 0, 0, 0, 98, 9011, 12175, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "'Silvermoon' Harry - On Gossip Hello - Send Gossip");
INSERT INTO smart_scripts VALUES (24539, 0, 8, 0, 62, 2, 100, 0, 9011, 0, 0, 0, 80, 2453901, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "'Silvermoon' Harry - On Gossip Option 0 Selected - Run Script");
INSERT INTO smart_scripts VALUES (24539, 0, 9, 0, 0, 0, 100, 0, 3000, 6000, 15000, 22000, 11, 15091, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "'Silvermoon' Harry - In Combat - Cast 'Blast Wave'");
INSERT INTO smart_scripts VALUES (24539, 0, 10, 0, 0, 0, 100, 0, 2500, 4000, 4000, 5000, 11, 50183, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "'Silvermoon' Harry - In Combat - Cast 'Scorch'");
INSERT INTO smart_scripts VALUES (2453900, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "'Silvermoon' Harry - On Script - Say Line 1");
INSERT INTO smart_scripts VALUES (2453900, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 102, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "'Silvermoon' Harry - On Script - Set Health Regeneration Off");
INSERT INTO smart_scripts VALUES (2453900, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "'Silvermoon' Harry - On Script - Set Home Position");
INSERT INTO smart_scripts VALUES (2453900, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 2, 1080, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "'Silvermoon' Harry - On Script - Set Faction 1080");
INSERT INTO smart_scripts VALUES (2453900, 9, 4, 0, 0, 0, 100, 0, 300, 300, 0, 0, 22, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "'Silvermoon' Harry - On Script - Set Event Phase 2");
INSERT INTO smart_scripts VALUES (2453901, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, "'Silvermoon' Harry - On Script - Close Gossip");
INSERT INTO smart_scripts VALUES (2453901, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 56, 34115, 1, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, "'Silvermoon' Harry - On Script - Add Item 'Silvermoon Harry's Debt' 1 Time");
INSERT INTO smart_scripts VALUES (2453901, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 102, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "'Silvermoon' Harry - On Script - Set Health Regeneration On");
INSERT INTO smart_scripts VALUES (2453901, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "'Silvermoon' Harry - On Script - Despawn In 10000 ms");
INSERT INTO smart_scripts VALUES (2453901, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "'Silvermoon' Harry - On Script - Set Event Phase 0");
-- Test at Sea (11170)
DELETE FROM smart_scripts WHERE entryorguid=24120 AND source_type=0;
INSERT INTO smart_scripts VALUES (24120, 0, 0, 1, 8, 0, 100, 0, 43115, 0, 25000, 25000, 33, 24121, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "North Fleet Reservist - On Spellhit 'Plague Vial' - Cast 'North Fleet Reservist Kill Credit'");
INSERT INTO smart_scripts VALUES (24120, 0, 1, 0, 61, 0, 80, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "North Fleet Reservist - Out of Combat - Say Line 0");
-- The Ancient Armor of the Kvaldir (11567)
DELETE FROM waypoints WHERE entry=27932;
INSERT INTO waypoints VALUES (27932, 1, -175.691, -3607.79, 3.11728, 'Harrys Bomber'),(27932, 2, -206.463, -3665.6, 15.0589, 'Harrys Bomber'),(27932, 3, -239.03, -3764.17, 30.8325, 'Harrys Bomber'),(27932, 4, -265.967, -3864.41, 46.1623, 'Harrys Bomber'),(27932, 5, -288.66, -3965.76, 61.6018, 'Harrys Bomber'),(27932, 6, -331.795, -4169.33, 89.4518, 'Harrys Bomber'),(27932, 7, -360.964, -4269.67, 99.505, 'Harrys Bomber'),(27932, 8, -427.98, -4468.51, 107.407, 'Harrys Bomber'),(27932, 9, -447.289, -4539.38, 108.093, 'Harrys Bomber'),(27932, 10, -464.281, -4642.94, 106.37, 'Harrys Bomber'),(27932, 11, -470.02, -4849.05, 102.018, 'Harrys Bomber'),(27932, 12, -459.217, -4953.46, 101.422, 'Harrys Bomber'),
(27932, 13, -445.035, -5057.49, 100.982, 'Harrys Bomber'),(27932, 14, -438.343, -5162.25, 102.09, 'Harrys Bomber'),(27932, 15, -434.105, -5298.58, 105.691, 'Harrys Bomber'),(27932, 16, -419.599, -5384.9, 105.929, 'Harrys Bomber'),(27932, 17, -357.894, -5566.67, 97.4177, 'Harrys Bomber'),(27932, 18, -314.508, -5650.04, 90.5208, 'Harrys Bomber'),(27932, 19, -256.829, -5737.46, 83.3688, 'Harrys Bomber'),(27932, 20, -198.537, -5816.05, 76.8175, 'Harrys Bomber'),(27932, 21, -135.293, -5899.46, 68.626, 'Harrys Bomber'),(27932, 22, -73.1853, -5983.66, 59.8672, 'Harrys Bomber'),(27932, 23, 5.48475, -6107.25, 47.0541, 'Harrys Bomber'),(27932, 24, 46.9081, -6217.25, 32.1459, 'Harrys Bomber'),
(27932, 25, 56.1702, -6264.36, 21.6775, 'Harrys Bomber'),(27932, 26, 67.601, -6310.05, 8.39593, 'Harrys Bomber');
UPDATE creature_template SET speed_run=4, InhabitType=4, AIName='SmartAI', ScriptName='' WHERE entry=27932;
DELETE FROM smart_scripts WHERE entryorguid=27932 AND source_type=0;
INSERT INTO smart_scripts VALUES (27932, 0, 0, 1, 60, 0, 100, 1, 1000, 1000, 0, 0, 86, 52391, 0, 23, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Harry's Bomber - On Respawned - Cross Cast");
INSERT INTO smart_scripts VALUES (27932, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 53, 1, 27932, 0, 0, 500, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Harry's Bomber - On Respawned - Start WP");
DELETE FROM waypoints WHERE entry=32682;
INSERT INTO waypoints VALUES (32682, 1, 67.601, -6310.05, 8.39593, 'Harrys Bomber'),(32682, 2, 56.1702, -6264.36, 21.6775, 'Harrys Bomber'),(32682, 3, 46.9081, -6217.25, 32.1459, 'Harrys Bomber'),(32682, 4, 5.48475, -6107.25, 47.0541, 'Harrys Bomber'),(32682, 5, -73.1853, -5983.66, 59.8672, 'Harrys Bomber'),(32682, 6, -135.293, -5899.46, 68.626, 'Harrys Bomber'),(32682, 7, -198.537, -5816.05, 76.8175, 'Harrys Bomber'),(32682, 8, -256.829, -5737.46, 83.3688, 'Harrys Bomber'),(32682, 9, -314.508, -5650.04, 90.5208, 'Harrys Bomber'),(32682, 10, -357.894, -5566.67, 97.4177, 'Harrys Bomber'),(32682, 11, -419.599, -5384.9, 105.929, 'Harrys Bomber'),
(32682, 12, -434.105, -5298.58, 105.691, 'Harrys Bomber'),(32682, 13, -438.343, -5162.25, 102.09, 'Harrys Bomber'),(32682, 14, -445.035, -5057.49, 100.982, 'Harrys Bomber'),(32682, 15, -459.217, -4953.46, 101.422, 'Harrys Bomber'),(32682, 16, -470.02, -4849.05, 102.018, 'Harrys Bomber'),(32682, 17, -464.281, -4642.94, 106.37, 'Harrys Bomber'),(32682, 18, -447.289, -4539.38, 108.093, 'Harrys Bomber'),(32682, 19, -427.98, -4468.51, 107.407, 'Harrys Bomber'),(32682, 20, -360.964, -4269.67, 99.505, 'Harrys Bomber'),(32682, 21, -331.795, -4169.33, 89.4518, 'Harrys Bomber'),(32682, 22, -288.66, -3965.76, 61.6018, 'Harrys Bomber'),(32682, 23, -265.967, -3864.41, 46.1623, 'Harrys Bomber'),(32682, 24, -239.03, -3764.17, 30.8325, 'Harrys Bomber'),
(32682, 25, -206.463, -3665.6, 15.0589, 'Harrys Bomber'),(32682, 26, -175.691, -3607.79, 3.11728, 'Harrys Bomber'),(32682, 27, -163.84, -3570.53, 6.74, 'Harrys Bomber');
UPDATE creature_template SET speed_run=4, InhabitType=4, AIName='SmartAI', ScriptName='' WHERE entry=32682;
DELETE FROM smart_scripts WHERE entryorguid=32682 AND source_type=0;
INSERT INTO smart_scripts VALUES (32682, 0, 0, 1, 60, 0, 100, 1, 1000, 1000, 0, 0, 86, 52391, 0, 23, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Harry's Bomber - On Respawned - Cross Cast");
INSERT INTO smart_scripts VALUES (32682, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 53, 1, 32682, 0, 0, 500, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Harry's Bomber - On Respawned - Start WP");
DELETE FROM creature WHERE guid=106836 AND id=28277;
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=28277;
DELETE FROM smart_scripts WHERE entryorguid=28277 AND source_type=0;
INSERT INTO smart_scripts VALUES (28277, 0, 0, 1, 62, 0, 100, 0, 10218, 0, 0, 0, 11, 61604, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Harry's Bomber - On Gossip Option 0 Selected - Cast 'Harry's Bomber'");
INSERT INTO smart_scripts VALUES (28277, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Harry's Bomber - On Gossip Option 0 Selected - Close Gossip");
DELETE FROM conditions WHERE SourceTypeOrReferenceId=15 AND SourceGroup=10218;
INSERT INTO conditions VALUES (15, 10218, 0, 0, 0, 28, 0, 11567, 0, 0, 0, 0, 0, '', "Harry's Bomber - Show gossip option if player has taken quest 11567");
-- The Conqueror of Skorn! (11261)
UPDATE quest_template SET NextQuestIdChain=11261 WHERE Id IN(11257, 11258, 11259);
UPDATE quest_template SET PrevQuestId=0 WHERE Id=11261;
-- Iron Rune Constructs and You: Rocket Jumping (11485)
UPDATE creature_template SET InhabitType=3 WHERE entry=24806;
-- Iron Rune Constructs and You: Collecting Data (11489)
UPDATE creature_template SET InhabitType=3 WHERE entry=24821;
DELETE FROM conditions WHERE SourceTypeOrReferenceId IN(13, 17) AND SourceEntry=44550;
INSERT INTO conditions VALUES (13, 1, 44550, 0, 0, 31, 0, 3, 24820, 0, 0, 0, 0, '', 'Collect Data target');
-- Iron Rune Constructs and You: The Bluff (11491)
UPDATE creature_template SET InhabitType=3 WHERE entry=24823;
DELETE FROM conditions WHERE SourceTypeOrReferenceId=22 AND SourceGroup=1 AND SourceEntry=24718;
INSERT INTO conditions VALUES (22, 1, 24718, 0, 0, 31, 0, 3, 24823, 0, 0, 0, 0, '', 'event require npc 24823');
DELETE FROM conditions WHERE SourceTypeOrReferenceId IN(13, 17) AND SourceEntry=44562;
INSERT INTO conditions VALUES (13, 1, 44562, 0, 0, 31, 0, 3, 24718, 0, 0, 0, 0, '', 'Bluff target');
DELETE FROM creature_text WHERE entry=24718 AND groupid IN (1, 2);
INSERT INTO creature_text VALUES (24718, 1, 0, "What do you think you're doing, man? Lebronski does NOT appreciate you dragging your loose metal parts all over his rug.", 12, 7, 100, 0, 0, 0, 0, 'Lebronski');
INSERT INTO creature_text VALUES (24718, 2, 0, "Far out, man. This bucket of bolts might make it after all...", 12, 7, 100, 0, 0, 0, 0, 'Lebronski');
-- Lightning Infused Relics (11494)
UPDATE creature_template SET InhabitType=3 WHERE entry=24825;
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry IN(44610, 44611);
INSERT INTO conditions VALUES (13, 1, 44610, 0, 0, 31, 0, 3, 24824, 0, 0, 0, 0, '', 'Collect Data target');
INSERT INTO conditions VALUES (13, 2, 44611, 0, 0, 31, 0, 3, 24824, 0, 0, 0, 0, '', 'Collect Data target');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=17 AND SourceEntry=44610;
DELETE FROM smart_scripts WHERE entryorguid=24824 AND source_type=0;
INSERT INTO smart_scripts VALUES (24824, 0, 0, 0, 8, 0, 100, 0, 44611, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Relict - SpellHit - Despawn');
-- Adding Injury to Insult (12481)
UPDATE creature_template SET speed_run=2.2, InhabitType=3, HoverHeight=7.5 WHERE entry=24238;
DELETE FROM creature_template_addon WHERE entry=24238;
DELETE FROM smart_scripts WHERE entryorguid=24238 AND source_type=0;
INSERT INTO smart_scripts VALUES (24238, 0, 0, 0, 1, 0, 100, 0, 10000, 15000, 45000, 60000, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Bjorn Halgurdsson - On update OOC - Say text 2');
INSERT INTO smart_scripts VALUES (24238, 0, 1, 2, 8, 0, 100, 0, 43315, 0, 0, 0, 84, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Bjorn Halgurdsson - On spellhit Vrykul Insult - Invoker say text 0');
INSERT INTO smart_scripts VALUES (24238, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Bjorn Halgurdsson - On spellhit Vrykul Insult - Say text 1');
INSERT INTO smart_scripts VALUES (24238, 0, 3, 4, 61, 0, 100, 0, 0, 0, 0, 0, 43, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Bjorn Halgurdsson - On spellhit Vrykul Insult - Unmount');
INSERT INTO smart_scripts VALUES (24238, 0, 4, 6, 61, 0, 100, 0, 0, 0, 0, 0, 141, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Bjorn Halgurdsson - On spellhit Vrykul Insult - Remove Hover');
INSERT INTO smart_scripts VALUES (24238, 0, 6, 7, 61, 0, 100, 0, 0, 0, 0, 0, 8, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Bjorn Halgurdsson - On spellhit Vrykul Insult - Set Aggressive');
INSERT INTO smart_scripts VALUES (24238, 0, 7, 8, 61, 0, 100, 0, 0, 0, 0, 0, 19, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Bjorn Halgurdsson - On spellhit Vrykul Insult - Remove Unit Flags');
INSERT INTO smart_scripts VALUES (24238, 0, 8, 0, 61, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Bjorn Halgurdsson - On spellhit Vrykul Insult - Attack Start');
INSERT INTO smart_scripts VALUES (24238, 0, 10, 0, 6, 0, 100, 0, 0, 0, 0, 0, 11, 43371, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Bjorn Halgurdsson - On death - Spellcast Bjorn Kill Credit');
INSERT INTO smart_scripts VALUES (24238, 0, 11, 0, 0, 0, 100, 0, 5000, 10000, 10000, 15000, 11, 32736, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Bjorn Halgurdsson - On update IC - Spellcast Mortal Strike');
INSERT INTO smart_scripts VALUES (24238, 0, 12, 0, 0, 0, 100, 0, 0, 5000, 10000, 15000, 11, 33661, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Bjorn Halgurdsson - On update IC - Spellcast Crush Armor');
INSERT INTO smart_scripts VALUES (24238, 0, 13, 15, 11, 0, 100, 0, 0, 0, 0, 0, 43, 0, 22657, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Bjorn Halgurdsson - On spawn - Mount');
INSERT INTO smart_scripts VALUES (24238, 0, 14, 15, 7, 0, 100, 0, 0, 0, 0, 0, 43, 0, 22657, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Bjorn Halgurdsson - On evade - Mount');
INSERT INTO smart_scripts VALUES (24238, 0, 15, 16, 61, 0, 100, 0, 0, 0, 0, 0, 141, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Bjorn Halgurdsson - On evade - Set Hover');
INSERT INTO smart_scripts VALUES (24238, 0, 16, 18, 61, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Bjorn Halgurdsson - On evade - Set Passive');
INSERT INTO smart_scripts VALUES (24238, 0, 18, 0, 61, 0, 100, 0, 0, 0, 0, 0, 18, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Bjorn Halgurdsson - On evade - Set Unit Flags');

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,330 @@
-- -------------------------------------------
-- SHOLAZAR BASIN
-- -------------------------------------------
-- Gods like Shiny Things (12572)
-- Appeasing the Great Rain Stone (12704)
DELETE FROM creature WHERE id=28362;
INSERT INTO creature VALUES
(NULL, 28362, 571, 1, 1, 0, 0, 5826.18, 4610.77, -134.161, 3.56047, 300, 0, 0, 42, 0, 0, 0, 0, 0), (NULL, 28362, 571, 1, 1, 0, 0, 5616.78, 4507.51, -136.235, 2.79253, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5634.23, 4725.39, -136.565, 4.67748, 300, 0, 0, 42, 0, 0, 0, 0, 0), (NULL, 28362, 571, 1, 1, 0, 0, 5523.42, 4590.13, -133.389, 1.37881, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5738.6, 4740.34, -132.397, 1.36136, 300, 0, 0, 42, 0, 0, 0, 0, 0), (NULL, 28362, 571, 1, 1, 0, 0, 5752.65, 4496.54, -132.448, 4.88692, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5786.58, 4751.95, -133.623, 0.767945, 300, 0, 0, 42, 0, 0, 0, 0, 0),
(NULL, 28362, 571, 1, 1, 0, 0, 5606.67, 4545.54, -136.037, 4.95674, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5861.11, 4827.21, -131.635, 5.55015, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5652.97, 4494.59, -136.668, 2.60054, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5868.02, 4498.96, -133.209, 3.52556, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5760.65, 4690.13, -134.465, 5.58505, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5801.27, 4529.37, -134.282, 3.22886, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5794.37, 4567.62, -134.406, 4.59022, 300, 0, 0, 42, 0, 0, 0, 0, 0),
(NULL, 28362, 571, 1, 1, 0, 0, 5776.42, 4713.71, -132.204, 4.15388, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5806.82, 4481.87, -131.864, 4.60767, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5736.98, 4459.44, -134.957, 1.29154, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5863.84, 4759.62, -131.907, 5.16617, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5773.98, 4439.41, -137.158, 4.17134, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5594.8, 4733.19, -134.289, 0.10472, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5731.34, 4688.48, -134.257, 3.4383, 300, 0, 0, 42, 0, 0, 0, 0, 0),
(NULL, 28362, 571, 1, 1, 0, 0, 5865.93, 4563.6, -133.301, 3.52556, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5607.36, 4355.13, -134.915, 4.45059, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5578.79, 4703.9, -132.344, 0.715585, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5700.94, 4711.59, -136.028, 4.04916, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5531.43, 4402.83, -135.817, 3.36848, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5847.39, 4599.29, -136.059, 5.53269, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5705.06, 4435.87, -141.029, 5.98648, 300, 0, 0, 42, 0, 0, 0, 0, 0),
(NULL, 28362, 571, 1, 1, 0, 0, 5525.25, 4436.55, -140.675, 1.95477, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5726.52, 4535.19, -138.999, 1.25664, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5693.35, 4629.68, -138.322, 4.92183, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5726.51, 4370.49, -138.519, 3.10669, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5906.66, 4612.75, -132.042, 2.60054, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5534.53, 4324.63, -131.82, 5.41052, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5579.44, 4388.16, -138.089, 3.80482, 300, 0, 0, 42, 0, 0, 0, 0, 0),
(NULL, 28362, 571, 1, 1, 0, 0, 5682.9, 4479.21, -135.683, 4.81711, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5544.33, 4436.61, -137.136, 4.24115, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5917.02, 4735.48, -137.81, 1.43117, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5704.71, 4763.64, -137.022, 5.0091, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5470.7, 4678.43, -132.203, 3.89208, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5507.06, 4662.85, -130.272, 2.44346, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5677.12, 4725.34, -135.566, 3.57792, 300, 0, 0, 42, 0, 0, 0, 0, 0),
(NULL, 28362, 571, 1, 1, 0, 0, 5586.07, 4504.85, -139.296, 0.820305, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5539.42, 4358.89, -136.533, 2.07694, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5663.73, 4370.93, -137.657, 4.72984, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5626.6, 4317.26, -133.309, 1.90241, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5743.72, 4645.34, -135.131, 3.07178, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5586.24, 4668.07, -134.59, 1.78024, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5494.54, 4597.56, -138.846, 3.05433, 300, 0, 0, 42, 0, 0, 0, 0, 0),
(NULL, 28362, 571, 1, 1, 0, 0, 5608.23, 4691.19, -136.457, 2.6529, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5551.06, 4750.33, -133.777, 1.81514, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5789.39, 4640.83, -135.591, 5.53269, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5586.91, 4715.22, -132.39, 0.942478, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5733.78, 4598.79, -134.907, 0.802851, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5566.85, 4608.07, -140.005, 0.087266, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5479.12, 4363.98, -138.379, 4.17134, 300, 0, 0, 42, 0, 0, 0, 0, 0),
(NULL, 28362, 571, 1, 1, 0, 0, 5488.86, 4306.88, -130.141, 2.00713, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5432.09, 4315.3, -137.512, 4.67748, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5822.07, 4726.69, -132.864, 6.19592, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5551.06, 4750.33, -133.777, 1.81514, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5607.36, 4355.13, -134.915, 4.45059, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5726.51, 4370.49, -138.519, 3.10669, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5606.67, 4545.54, -136.037, 4.95674, 300, 0, 0, 42, 0, 0, 0, 0, 0),
(NULL, 28362, 571, 1, 1, 0, 0, 5693.35, 4629.68, -138.322, 4.92183, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5523.1, 4547.95, -139.252, 0.034907, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5656.22, 4645.32, -136.027, 2.9147, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5807.02, 4767.91, -134.886, 3.56047, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5579.51, 4442.72, -139.873, 5.5676, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5656.49, 4679.36, -132.475, 0.855211, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5548.25, 4563.07, -136.596, 0.244346, 300, 0, 0, 42, 0, 0, 0, 0, 0),
(NULL, 28362, 571, 1, 1, 0, 0, 5751.76, 4767.77, -134.935, 3.97935, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5539.76, 4518.49, -134.643, 5.89921, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5538.02, 4635.59, -136.865, 1.0472, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5842.54, 4682.01, -134.929, 4.67748, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5768.06, 4605.94, -137.685, 3.87463, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5651.16, 4450.16, -137.938, 5.96903, 300, 0, 0, 42, 0, 0, 0, 0, 0),(NULL, 28362, 571, 1, 1, 0, 0, 5699.09, 4671.95, -135.473, 5.98648, 300, 0, 0, 42, 0, 0, 0, 0, 0),
(NULL, 28362, 571, 1, 1, 0, 0, 5484.12, 4632.12, -136.877, 2.23402, 300, 0, 0, 42, 0, 0, 0, 0, 0);
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=51420;
INSERT INTO conditions VALUES (13, 1, 51420, 0, 0, 31, 0, 3, 28362, 0, 0, 0, 0, '', 'Target Glinting Dirt');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=22 AND SourceEntry IN(28362, 28120, 28121, 28122);
INSERT INTO conditions VALUES (22, 12, 28120, 0, 0, 23, 1, 4291, 0, 0, 1, 0, 0, '', 'Lafoo dont execute sai in rainspeaker canopy');
INSERT INTO conditions VALUES (22, 14, 28121, 0, 0, 23, 1, 4291, 0, 0, 1, 0, 0, '', 'Jaloot dont execute sai in rainspeaker canopy');
INSERT INTO conditions VALUES (22, 14, 28121, 0, 0, 23, 1, 4308, 0, 0, 1, 0, 0, '', 'Jaloot dont execute sai in spearborn encampment');
INSERT INTO conditions VALUES (22, 15, 28122, 0, 0, 23, 1, 4297, 0, 0, 1, 0, 0, '', 'Moodle dont execute SAI in Mosswalker Village');
INSERT INTO conditions VALUES (22, 15, 28122, 0, 0, 23, 1, 4291, 0, 0, 1, 0, 0, '', 'Moodle dont execute sai in rainspeaker canopy');
DELETE FROM smart_scripts WHERE entryorguid IN(28371, 28372, 28362, 28120, 28121, 28122) AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid IN(2836201, 2836202, 2836203, 2836204, 2836205, 2836206, 2836207, 2836208, 2812000) AND source_type=9;
INSERT INTO smart_scripts VALUES (28371, 0, 0, 0, 54, 0, 100, 0, 0, 0, 0, 0, 89, 10, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Sparkling Hare - Is Summoned - Move Random');
INSERT INTO smart_scripts VALUES (28371, 0, 1, 0, 6, 0, 100, 0, 0, 0, 0, 0, 11, 51442, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Sparkling Hare - On Just Died - Cast Blessing of the Sparkling Hare');
INSERT INTO smart_scripts VALUES (28372, 0, 0, 0, 54, 0, 100, 0, 0, 0, 0, 0, 89, 10, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Glinting Bug - Is Summoned - Move Random');
INSERT INTO smart_scripts VALUES (28362, 0, 0, 0, 8, 0, 100, 0, 51420, 0, 10000, 10000, 45, 28362, 0, 0, 0, 0, 0, 11, 0, 20, 1, 0, 0, 0, 0, 'Glinting Dirt - On Spell Hit - Set Data');
INSERT INTO smart_scripts VALUES (28362, 0, 1, 0, 38, 0, 100, 1, 1, 1, 0, 0, 88, 2836201, 2836208, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Glinting Dirt - On Data Set - Run Random Script');
INSERT INTO smart_scripts VALUES (28362, 0, 2, 0, 11, 0, 100, 0, 0, 0, 0, 0, 11, 52213, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Glinting Dirt - On Respawn - Cast Rainspeaker Treasures: Invisibility');
INSERT INTO smart_scripts VALUES (2836201, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 51441, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Glinting Dirt - On Script - Cast Dig Up Sparkling Hare');
INSERT INTO smart_scripts VALUES (2836201, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Glinting Dirt - On Script - Despawn Instant');
INSERT INTO smart_scripts VALUES (2836202, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 51397, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Glinting Dirt - On Script - Cast Dig Up Shining Crystal');
INSERT INTO smart_scripts VALUES (2836202, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Glinting Dirt - On Script - Despawn Instant');
INSERT INTO smart_scripts VALUES (2836203, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 51398, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Glinting Dirt - On Script - Cast Dig Up Glinting Armor');
INSERT INTO smart_scripts VALUES (2836203, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Glinting Dirt - On Script - Despawn Instant');
INSERT INTO smart_scripts VALUES (2836204, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 51400, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Glinting Dirt - On Script - Cast Dig Up Glowing Gem');
INSERT INTO smart_scripts VALUES (2836204, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Glinting Dirt - On Script - Despawn Instant');
INSERT INTO smart_scripts VALUES (2836205, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 51401, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Glinting Dirt - On Script - Cast Dig Up Polished Platter');
INSERT INTO smart_scripts VALUES (2836205, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Glinting Dirt - On Script - Despawn Instant');
INSERT INTO smart_scripts VALUES (2836206, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 51402, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Glinting Dirt - On Script - Cast Dig Up Sparkling Treasure');
INSERT INTO smart_scripts VALUES (2836206, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Glinting Dirt - On Script - Despawn Instant');
INSERT INTO smart_scripts VALUES (2836207, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 51443, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Glinting Dirt - On Script - Cast Dig Up Glinting Bug');
INSERT INTO smart_scripts VALUES (2836207, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Glinting Dirt - On Script - Despawn Instant');
INSERT INTO smart_scripts VALUES (2836208, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 51443, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Glinting Dirt - On Script - Cast Dig Up Glinting Bug');
INSERT INTO smart_scripts VALUES (2836208, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 51443, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Glinting Dirt - On Script - Cast Dig Up Glinting Bug');
INSERT INTO smart_scripts VALUES (2836208, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Glinting Dirt - On Script - Despawn Instant');
INSERT INTO smart_scripts VALUES (28120, 0, 0, 1, 38, 2, 100, 0, 28362, 0, 10000, 10000, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Lafoo - On Data Set - Say Line 0');
INSERT INTO smart_scripts VALUES (28120, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 0, 19, 28362, 20, 0, 0, 0, 0, 0, 'Lafoo - On Data Set - Move To Point');
INSERT INTO smart_scripts VALUES (28120, 0, 2, 0, 34, 0, 100, 0, 8, 1, 0, 0, 80, 2812000, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Lafoo - Movement Inform - Run Script');
INSERT INTO smart_scripts VALUES (28120, 0, 3, 0, 25, 0, 100, 0, 0, 0, 0, 0, 11, 51793, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Lafoo - On Reset - Cast Gorloc Location Periodic');
INSERT INTO smart_scripts VALUES (28120, 0, 4, 0, 25, 0, 100, 0, 0, 0, 0, 0, 11, 51623, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Lafoo - On Reset - Cast Sholazar Guardian Heartbeat');
INSERT INTO smart_scripts VALUES (28120, 0, 5, 0, 25, 0, 100, 0, 0, 0, 0, 0, 11, 51407, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Lafoo - On Reset - Cast Digging for Treasure Aura');
INSERT INTO smart_scripts VALUES (28120, 0, 6, 0, 38, 0, 100, 0, 1, 1, 0, 0, 1, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Lafoo - On Data Set 1 1 - Say Line 4');
INSERT INTO smart_scripts VALUES (28120, 0, 7, 0, 0, 0, 100, 0, 0, 5000, 10000, 12000, 11, 52931, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Lafoo - In Combat - Cast Toxic Spit');
INSERT INTO smart_scripts VALUES (28120, 0, 8, 0, 2, 0, 100, 0, 0, 50, 60000, 60000, 11, 52940, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Lafoo - Between 0-50% Health - Cast Sleepy Time!');
INSERT INTO smart_scripts VALUES (28120, 0, 9, 0, 11, 0, 100, 0, 0, 0, 0, 0, 8, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Lafoo - On Respawn - Set Reactstate Defensive');
INSERT INTO smart_scripts VALUES (28120, 0, 10, 0, 5, 0, 100, 0, 5000, 5000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Lafoo - On Killed Unit - Say Line 1');
INSERT INTO smart_scripts VALUES (28120, 0, 11, 0, 1, 2, 100, 0, 20000, 40000, 45000, 90000, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Lafoo - Out of Combat - Say Line 2');
INSERT INTO smart_scripts VALUES (28120, 0, 12, 0, 8, 0, 100, 0, 51639, 0, 45000, 70000, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Lafoo - On Spellhit Rainspeaker Canopy Aura - Say Line 3');
INSERT INTO smart_scripts VALUES (28120, 0, 13, 0, 8, 0, 100, 0, 53163, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Lafoo - On Spellhit Dessawn Retainer - Despawn Instant');
INSERT INTO smart_scripts VALUES (28120, 0, 14, 0, 19, 0, 100, 0, 12572, 0, 0, 0, 85, 52214, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Lafoo - On Quest Gods like Shiny Things Taken - Invoker Cast Rainspeaker Treasures: See Invisibility');
INSERT INTO smart_scripts VALUES (28120, 0, 15, 0, 1, 0, 100, 1, 0, 0, 0, 0, 22, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Lafoo - Out of Combat - Set Event Phase 2');
INSERT INTO smart_scripts VALUES (28120, 0, 16, 0, 4, 0, 100, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Lafoo - On Aggro - Set Event Phase 0');
INSERT INTO smart_scripts VALUES (2812000, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 51405, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Lafoo - On Script - Cast Digging for Treasure');
INSERT INTO smart_scripts VALUES (2812000, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 17, 233, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Lafoo - On Script - Set Emote State');
INSERT INTO smart_scripts VALUES (2812000, 9, 2, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 45, 1, 1, 0, 0, 0, 0, 19, 28362, 10, 0, 0, 0, 0, 0, 'Lafoo - On Script - Set Data 1 1');
INSERT INTO smart_scripts VALUES (2812000, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Lafoo - On Script - Set Emote State');
INSERT INTO smart_scripts VALUES (2812000, 9, 4, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 24, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Lafoo - On Script - Evade');
INSERT INTO smart_scripts VALUES (28121, 0, 0, 1, 38, 2, 100, 0, 28362, 0, 10000, 10000, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Jaloot - On Data Set - Say Line 0');
INSERT INTO smart_scripts VALUES (28121, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 0, 19, 28362, 20, 0, 0, 0, 0, 0, 'Jaloot - On Data Set - Move To Point');
INSERT INTO smart_scripts VALUES (28121, 0, 2, 0, 34, 0, 100, 0, 8, 1, 0, 0, 80, 2812000, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Jaloot - Movement Inform - Run Script');
INSERT INTO smart_scripts VALUES (28121, 0, 3, 0, 25, 0, 100, 0, 0, 0, 0, 0, 11, 51793, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Jaloot - On Reset - Cast Gorloc Location Periodic');
INSERT INTO smart_scripts VALUES (28121, 0, 4, 0, 25, 0, 100, 0, 0, 0, 0, 0, 11, 51623, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Jaloot - On Reset - Cast Sholazar Guardian Heartbeat');
INSERT INTO smart_scripts VALUES (28121, 0, 5, 0, 25, 0, 100, 0, 0, 0, 0, 0, 11, 51407, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Jaloot - On Reset - Cast Digging for Treasure Aura');
INSERT INTO smart_scripts VALUES (28121, 0, 6, 0, 38, 0, 100, 0, 1, 1, 0, 0, 1, 5, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Jaloot - On Data Set 1 1 - Say Line 5');
INSERT INTO smart_scripts VALUES (28121, 0, 7, 0, 0, 0, 100, 0, 9000, 15000, 20000, 25000, 11, 52943, 2, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 'Jaloot - In Combat - Cast Lightning Whirl');
INSERT INTO smart_scripts VALUES (28121, 0, 8, 0, 0, 0, 100, 0, 5000, 8000, 15000, 18000, 11, 52944, 2, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 'Jaloot - In Combat - Cast Lightning Strike');
INSERT INTO smart_scripts VALUES (28121, 0, 9, 0, 0, 0, 100, 0, 7000, 15000, 20000, 25000, 11, 52964, 2, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 'Jaloot - In Combat - Cast Spark Frenzy');
INSERT INTO smart_scripts VALUES (28121, 0, 10, 0, 2, 0, 100, 0, 0, 30, 30000, 45000, 11, 52969, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Jaloot - Between 0-30% Health - Cast Energy Siphon');
INSERT INTO smart_scripts VALUES (28121, 0, 11, 0, 11, 0, 100, 0, 0, 0, 0, 0, 8, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Jaloot - On Respawn - Set Reactstate Defensive');
INSERT INTO smart_scripts VALUES (28121, 0, 12, 0, 5, 0, 100, 0, 5000, 5000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Jaloot - On Killed Unit - Say Line 1');
INSERT INTO smart_scripts VALUES (28121, 0, 13, 0, 1, 2, 100, 0, 10000, 40000, 45000, 90000, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Jaloot - Out of Combat - Say Line 2');
INSERT INTO smart_scripts VALUES (28121, 0, 14, 0, 8, 2, 100, 0, 51639, 0, 45000, 70000, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Jaloot - On Spellhit Rainspeaker Canopy Aura - Say Line 3');
INSERT INTO smart_scripts VALUES (28121, 0, 15, 0, 1, 0, 100, 0, 3000, 3000, 3000, 3000, 11, 52119, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Jaloot - On Respawn - Cast Jaloot''s Intensity');
INSERT INTO smart_scripts VALUES (28121, 0, 16, 0, 8, 0, 100, 0, 53163, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Jaloot - On Spellhit Dessawn Retainer - Despawn Instant');
INSERT INTO smart_scripts VALUES (28121, 0, 17, 0, 8, 2, 100, 0, 51642, 0, 40000, 70000, 1, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Jaloot - On Spellhit Spearborn Encampment Aura - Say Line 4');
INSERT INTO smart_scripts VALUES (28121, 0, 18, 0, 1, 0, 100, 1, 0, 0, 0, 0, 22, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Jaloot - Out of Combat - Set Event Phase 2');
INSERT INTO smart_scripts VALUES (28121, 0, 19, 0, 4, 0, 100, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Jaloot - On Aggro - Set Event Phase 0');
INSERT INTO smart_scripts VALUES (28122, 0, 0, 1, 38, 2, 100, 0, 28362, 0, 10000, 10000, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Moodle - On Data Set - Say Line 0');
INSERT INTO smart_scripts VALUES (28122, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 0, 19, 28362, 20, 0, 0, 0, 0, 0, 'Moodle - On Data Set - Move To Point');
INSERT INTO smart_scripts VALUES (28122, 0, 2, 0, 34, 0, 100, 0, 8, 1, 0, 0, 80, 2812000, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Moodle - Movement Inform - Run Script');
INSERT INTO smart_scripts VALUES (28122, 0, 3, 0, 25, 0, 100, 0, 0, 0, 0, 0, 11, 51793, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Moodle - On Reset - Cast Gorloc Location Periodic');
INSERT INTO smart_scripts VALUES (28122, 0, 4, 0, 25, 0, 100, 0, 0, 0, 0, 0, 11, 51623, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Moodle - On Reset - Cast Sholazar Guardian Heartbeat');
INSERT INTO smart_scripts VALUES (28122, 0, 5, 0, 25, 0, 100, 0, 0, 0, 0, 0, 11, 51407, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Moodle - On Reset - Cast Digging for Treasure Aura');
INSERT INTO smart_scripts VALUES (28122, 0, 6, 0, 0, 0, 100, 0, 0, 5000, 20000, 30000, 11, 52974, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Moodle - In Combat - Cast Vicious Roar');
INSERT INTO smart_scripts VALUES (28122, 0, 7, 0, 20, 0, 100, 0, 12580, 0, 0, 0, 1, 6, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Moodle - On Quest The Mosswalker Savior Finished - Say Line 6');
INSERT INTO smart_scripts VALUES (28122, 0, 8, 0, 0, 0, 100, 0, 0, 5000, 20000, 24000, 11, 52973, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Moodle - In Combat - Cast Frost Breath');
INSERT INTO smart_scripts VALUES (28122, 0, 9, 0, 0, 0, 100, 0, 9000, 15000, 20000, 25000, 11, 52979, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 'Moodle - In Combat - Cast Frigid Absorbtion');
INSERT INTO smart_scripts VALUES (28122, 0, 10, 0, 0, 0, 100, 0, 2000, 10000, 40000, 50000, 11, 52972, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Moodle - In Combat - Cast Dispersal');
INSERT INTO smart_scripts VALUES (28122, 0, 11, 0, 2, 0, 100, 0, 0, 50, 60000, 60000, 11, 52979, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Moodle - Between 0-50% Health - Cast Frigid Absorbtion');
INSERT INTO smart_scripts VALUES (28122, 0, 12, 0, 11, 0, 100, 0, 0, 0, 0, 0, 8, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Moodle - On Respawn - Set Reactstate Defensive');
INSERT INTO smart_scripts VALUES (28122, 0, 13, 0, 5, 0, 100, 0, 5000, 5000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Moodle - On Killed Unit - Say Line 1');
INSERT INTO smart_scripts VALUES (28122, 0, 14, 0, 1, 2, 100, 0, 10000, 40000, 45000, 90000, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Moodle - Out of Combat - Say Line 2');
INSERT INTO smart_scripts VALUES (28122, 0, 15, 0, 8, 2, 100, 0, 51639, 0, 45000, 70000, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Moodle - On Spellhit Rainspeaker Canopy Aura - Say Line 3');
INSERT INTO smart_scripts VALUES (28122, 0, 16, 0, 8, 0, 100, 1, 53163, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Moodle - On Spellhit Dessawn Retainer - Despawn Instant');
INSERT INTO smart_scripts VALUES (28122, 0, 17, 0, 8, 2, 100, 0, 51644, 0, 40000, 70000, 1, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Moodle - On Spellhit Mosswalker Village Aura - Say Line 4');
INSERT INTO smart_scripts VALUES (28122, 0, 18, 0, 61, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Moodle - On Spellhit Digging for Treasure Ping - Set Reactstate Passive');
INSERT INTO smart_scripts VALUES (28122, 0, 19, 0, 19, 0, 100, 0, 12581, 0, 0, 0, 1, 5, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Moodle - On Quest A Hero''s Burden Taken - Say Line 5');
INSERT INTO smart_scripts VALUES (28122, 0, 20, 0, 1, 0, 100, 1, 0, 0, 0, 0, 22, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Moodle - Out of Combat - Set Event Phase 2');
INSERT INTO smart_scripts VALUES (28122, 0, 21, 0, 4, 0, 100, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Moodle - On Aggro - Set Event Phase 0');
-- Song of Wind and Water (12726)
UPDATE creature_template SET VehicleID=42, spell1=61375, spell2=61376, spell3=52862, spell4=52869, ScriptName='' WHERE entry=28999;
UPDATE creature_template SET minlevel=80, maxlevel=80, exp=2, mindmg=417, maxdmg=582, attackpower=608, unit_class=2, VehicleID=42, spell1=61374, spell2=52870, spell3=52864, spell4=52869, ScriptName='' WHERE entry=28985;
DELETE FROM spell_script_names WHERE spell_id IN(52862, 52864);
INSERT INTO spell_script_names VALUES(52862, "spell_q12726_song_of_wind_and_water");
INSERT INTO spell_script_names VALUES(52864, "spell_q12726_song_of_wind_and_water");
DELETE FROM conditions WHERE SourceTypeOrReferenceId=17 AND SourceEntry IN(52862, 52864);
INSERT INTO conditions VALUES(17, 0, 52862, 0, 0, 31, 1, 3, 28858, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 52864, 0, 1, 31, 1, 3, 28862, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 52862, 0, 0, 36, 1, 0, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 52864, 0, 1, 36, 1, 0, 0, 0, 0, 0, 0, '', '');
-- Lightning Definitely Strikes Twice (12537)
DELETE FROM event_scripts WHERE id=18475;
INSERT INTO event_scripts VALUES(18475, 0, 7, 12537, 0, 0, 0, 0, 0, 0);
-- The Lost Mistwhisper Treasure (12575)
UPDATE gameobject_template SET AIName="", ScriptName="go_mistwhisper_treasure" WHERE entry=190578;
UPDATE creature_template SET faction=2060 WHERE entry=28105;
-- Reclamation (12546)
UPDATE creature_template SET dmg_multiplier=7.5 WHERE entry IN(28103, 28208, 28212);
-- Rejek: First Blood (12734)
DELETE FROM conditions WHERE SourceTypeOrReferenceId=17 AND SourceEntry=52992;
REPLACE INTO conditions VALUES(17, 0, 52992, 0, 0, 31, 1, 3, 28086, 0, 0, 0, 0, '', '');
REPLACE INTO conditions VALUES(17, 0, 52992, 0, 1, 31, 1, 3, 28096, 0, 0, 0, 0, '', '');
REPLACE INTO conditions VALUES(17, 0, 52992, 0, 2, 31, 1, 3, 28110, 0, 0, 0, 0, '', '');
REPLACE INTO conditions VALUES(17, 0, 52992, 0, 3, 31, 1, 3, 28109, 0, 0, 0, 0, '', '');
REPLACE INTO conditions VALUES(17, 0, 52992, 0, 0, 36, 1, 0, 0, 0, 1, 0, 0, '', '');
REPLACE INTO conditions VALUES(17, 0, 52992, 0, 1, 36, 1, 0, 0, 0, 1, 0, 0, '', '');
REPLACE INTO conditions VALUES(17, 0, 52992, 0, 2, 36, 1, 0, 0, 0, 1, 0, 0, '', '');
REPLACE INTO conditions VALUES(17, 0, 52992, 0, 3, 36, 1, 0, 0, 0, 1, 0, 0, '', '');
UPDATE creature_template SET AIName="SmartAI" WHERE entry IN(28086, 28096, 28109, 28110);
DELETE FROM smart_scripts WHERE entryorguid IN(28086, 28096, 28109, 28110) AND source_type=0;
INSERT INTO smart_scripts VALUES(28086, 0, 0, 0, 2, 0, 100, 0, 0, 30, 0, 0, 11, 34392, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "cast spell on health update");
INSERT INTO smart_scripts VALUES(28086, 0, 1, 0, 8, 0, 100, 0, 52992, 0, 0, 0, 33, 28040, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "cast kill monster credit");
INSERT INTO smart_scripts VALUES(28096, 0, 0, 0, 9, 0, 100, 0, 10, 30, 0, 0, 11, 49758, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "cast spell on range update");
INSERT INTO smart_scripts VALUES(28096, 0, 1, 0, 8, 0, 100, 0, 52992, 0, 0, 0, 33, 36189, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "cast kill monster credit");
INSERT INTO smart_scripts VALUES(28109, 0, 0, 0, 0, 0, 100, 0, 2000, 4000, 6000, 7000, 11, 50533, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "cast spell on ic update");
INSERT INTO smart_scripts VALUES(28109, 0, 1, 0, 8, 0, 100, 0, 52992, 0, 0, 0, 33, 29043, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "cast kill monster credit");
INSERT INTO smart_scripts VALUES(28110, 0, 0, 0, 4, 0, 100, 0, 0, 0, 0, 0, 11, 54921, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "cast spell on aggro");
INSERT INTO smart_scripts VALUES(28110, 0, 1, 0, 8, 0, 100, 0, 52992, 0, 0, 0, 33, 29043, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "cast kill monster credit");
-- A Hero's Burden (12581)
DELETE FROM creature_queststarter WHERE quest IN(12582, 12692, 12689, 12695);
INSERT INTO creature_queststarter VALUES(28667, 12689),(28667, 12695),(28668, 12582),(28668, 12692);
DELETE FROM creature_questender WHERE quest IN(12582, 12689);
INSERT INTO creature_questender VALUES(28667, 12689),(28668, 12582);
UPDATE quest_template SET Method=0, ExclusiveGroup=0 WHERE Id IN(12689, 12582);
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=52185;
INSERT INTO conditions VALUES (13, 1, 52185, 0, 0, 31, 0, 3, 28667, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES (13, 1, 52185, 0, 1, 31, 0, 3, 28668, 0, 0, 0, 0, '', '');
UPDATE creature_template SET AIName="", ScriptName="npc_artruis_the_hearthless" WHERE entry=28659;
DELETE FROM smart_scripts WHERE entryorguid=28659 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid=2865900 AND source_type=9;
DELETE FROM creature_addon WHERE guid IN(202969, 202970);
DELETE FROM creature WHERE guid IN(202969, 202970);
UPDATE creature_template SET AIName="SmartAI" WHERE entry IN(28667, 28668);
DELETE FROM smart_scripts WHERE entryorguid IN(28667, 28668) AND source_type=0;
-- Jaloot
INSERT INTO smart_scripts VALUES (28667, 0, 0, 0, 0, 0, 100, 0, 5000, 7000, 20000, 25000, 11, 52964, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Jaloot - Spark Frenzy IC cast');
INSERT INTO smart_scripts VALUES (28667, 0, 1, 0, 0, 0, 100, 0, 1000, 1000, 4000, 5000, 11, 52943, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Jaloot - Lightning whirl IC cast');
INSERT INTO smart_scripts VALUES (28667, 0, 2, 0, 0, 0, 100, 0, 2000, 4000, 9000, 11000, 11, 52944, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Jaloot - Lightning Strike IC cast');
-- Zapik
INSERT INTO smart_scripts VALUES (28668, 0, 0, 0, 0, 0, 100, 0, 5000, 7000, 20000, 25000, 11, 52761, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 'Zepik - Barbed Net IC cast');
INSERT INTO smart_scripts VALUES (28668, 0, 1, 0, 0, 0, 100, 0, 1000, 1000, 15000, 22000, 11, 52873, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Zepik - Open Wound IC cast');
INSERT INTO smart_scripts VALUES (28668, 0, 2, 0, 0, 0, 100, 0, 2000, 4000, 35000, 40000, 11, 52886, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Zepik - Spike Trap IC cast');
INSERT INTO smart_scripts VALUES (28668, 0, 3, 0, 0, 0, 100, 0, 9000, 11000, 15000, 20000, 11, 52895, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Zepik - Bandage IC cast');
-- A Hero's Headgear (12758)
DELETE FROM conditions WHERE SourceTypeOrReferenceId=17 AND SourceEntry=53145;
REPLACE INTO conditions VALUES(17, 0, 53145, 0, 0, 31, 1, 3, 28877, 0, 0, 0, 0, '', '');
REPLACE INTO conditions VALUES(17, 0, 53145, 0, 0, 36, 1, 0, 0, 0, 1, 0, 0, '', '');
UPDATE creature_template SET AIName="SmartAI" WHERE entry=28877;
DELETE FROM smart_scripts WHERE entryorguid=28877 AND source_type=0;
INSERT INTO smart_scripts VALUES(28877, 0, 0, 0, 0, 0, 100, 0, 3000, 5000, 3000, 5000, 11, 32018, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "cast spell on ic update");
INSERT INTO smart_scripts VALUES(28877, 0, 1, 2, 8, 0, 100, 0, 53145, 0, 0, 0, 50, 191179, 180000, 1, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "summon go on death");
INSERT INTO smart_scripts VALUES(28877, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 500, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "force despawn linked");
-- Crocolisk Mastery: The Ambush (12569)
DELETE FROM gameobject WHERE id=190545;
INSERT INTO gameobject VALUES (NULL, 190545, 571, 1, 1, 5444.95, 4905.01, -190.871, 4.67862, 0, 0, 0.718946, -0.695066, 300, 0, 1, 0);
DELETE FROM event_scripts WHERE id=18503;
INSERT INTO event_scripts VALUES(18503, 12, 10, 28317, 360000, 0, 5443.6, 4874.97, -199.83, 1.5);
-- Song of Reflection (12736)
DELETE FROM creature_addon WHERE guid IN(SELECT guid FROM creature WHERE id IN(29056, 29057, 29058, 29069));
DELETE FROM creature WHERE id IN(29056, 29057, 29058, 29069);
INSERT INTO creature VALUES(200007, 29056, 571, 1, 1, 0, 0, 6201.76, 4764.45, 229.84, 3.19395, 120, 0, 0, 1, 0, 0, 0, 0, 0);
INSERT INTO creature VALUES(200008, 29057, 571, 1, 1, 0, 0, 5102.72, 5343.44, 224.11, 0, 120, 0, 0, 6722, 0, 0, 0, 0, 0);
INSERT INTO creature VALUES(200009, 29058, 571, 1, 1, 0, 0, 5766.85, 5475.87, 211.614, 0, 120, 0, 0, 6722, 0, 0, 0, 0, 0);
INSERT INTO creature VALUES(200010, 29069, 571, 1, 1, 0, 0, 4979.46, 4592.82, 157.565, 0, 120, 0, 0, 6722, 0, 0, 0, 0, 0);
UPDATE creature_template SET AIName="SmartAI" WHERE entry IN(29056, 29057, 29058, 29069);
DELETE FROM smart_scripts WHERE entryorguid IN(29056, 29057, 29058, 29069) AND source_type=0;
INSERT INTO smart_scripts VALUES (29056, 0, 0, 0, 8, 0, 100, 0, 53038, 0, 0, 0, 33, 29056, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Kill credit on spell hit');
INSERT INTO smart_scripts VALUES (29057, 0, 0, 0, 8, 0, 100, 0, 53038, 0, 0, 0, 33, 29057, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Kill credit on spell hit');
INSERT INTO smart_scripts VALUES (29058, 0, 0, 0, 8, 0, 100, 0, 53038, 0, 0, 0, 33, 29058, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Kill credit on spell hit');
INSERT INTO smart_scripts VALUES (29069, 0, 0, 0, 8, 0, 100, 0, 53038, 0, 0, 0, 33, 29069, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Kill credit on spell hit');
-- Still At It (12644)
UPDATE creature_template SET AIName="", ScriptName="npc_still_at_it_trigger" WHERE entry=28537;
DELETE FROM smart_scripts WHERE entryorguid=28537 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid=2853700 AND source_type=9;
DELETE FROM creature WHERE id=28537;
INSERT INTO creature VALUES(NULL, 28537, 571, 1, 1, 0, 0, 5549.76, 5768.46, -74.374, 0, 300, 0, 0, 1, 0, 0, 0, 0, 0);
UPDATE creature_template SET ScriptName="npc_mcmanus" WHERE entry=28566;
UPDATE gameobject_template SET AIName="", ScriptName="go_pressure_valve" WHERE entry=190635;
UPDATE gameobject_template SET AIName="", ScriptName="go_brazier" WHERE entry=190636;
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry IN(51931, 51932, 51933);
INSERT INTO conditions VALUES(13, 1, 51931, 0, 0, 31, 0, 3, 28537, 0, 0, 0, 0, "", "Still At It Quest");
INSERT INTO conditions VALUES(13, 1, 51932, 0, 0, 31, 0, 3, 28537, 0, 0, 0, 0, "", "Still At It Quest");
INSERT INTO conditions VALUES(13, 1, 51933, 0, 0, 31, 0, 3, 28537, 0, 0, 0, 0, "", "Still At It Quest");
-- Flown the Coop! (12532)
-- Chicken Party! (12702)
REPLACE INTO spell_area VALUES(50735, 4292, 12532, 12532, 0, 0, 2, 1, 74, 11);
REPLACE INTO spell_area VALUES(50735, 4292, 12702, 12702, 0, 0, 2, 1, 74, 11);
REPLACE INTO spell_area VALUES(50735, 3711, 12532, 12532, 0, 0, 2, 1, 74, 11);
REPLACE INTO spell_area VALUES(50735, 3711, 12702, 12702, 0, 0, 2, 1, 74, 11);
-- Back So Soon?(12574)
REPLACE INTO spell_area VALUES(52217, 4306, 12574, 12577, 0, 0, 2, 1, 74, 11);
-- Just Following Orders (12540)
DELETE FROM creature_addon WHERE guid IN(SELECT guid FROM creature WHERE id=28325);
DELETE FROM creature WHERE id=28325;
-- Weapons of Destruction (12660)
UPDATE gameobject_template SET data3=60000 WHERE entry=190590;
DELETE FROM gameobject WHERE id=194955;
INSERT INTO gameobject VALUES (NULL, 194955, 571, 1, 1, 6102.15, 4497.03, -81.3401, -2.63544, 0, 0, 0, 1, 300, 100, 1, 0);
INSERT INTO gameobject VALUES (NULL, 194955, 571, 1, 1, 5988.04, 4473.78, -87.3617, 1.74533, 0, 0, 0, 1, 300, 100, 1, 0);
INSERT INTO gameobject VALUES (NULL, 194955, 571, 1, 1, 6012.03, 4517.3, -86.8614, 0.872664, 0, 0, 0, 1, 300, 100, 1, 0);
INSERT INTO gameobject VALUES (NULL, 194955, 571, 1, 1, 6075.99, 4523.62, -81.0092, 0.698132, 0, 0, 0, 1, 300, 100, 1, 0);
INSERT INTO gameobject VALUES (NULL, 194955, 571, 1, 1, 6073.83, 4463.66, -84.9872, -0.820303, 0, 0, 0, 1, 300, 100, 1, 0);
INSERT INTO gameobject VALUES (NULL, 194955, 571, 1, 1, 6130.8, 4462.61, -84.544, 2.75761, 0, 0, 0, 1, 300, 100, 1, 0);
INSERT INTO gameobject VALUES (NULL, 194955, 571, 1, 1, 6092.64, 4425.49, -83.9704, -2.72271, 0, 0, 0, 1, 300, 100, 1, 0);
-- Mending Fences (12915)
UPDATE quest_template SET RewardFactionValueIdOverride1=2860000 WHERE Id=0;
DELETE FROM conditions WHERE SourceTypeOrReferenceId=17 AND SourceEntry=55818;
INSERT INTO conditions VALUES (17, 0, 55818, 0, 0, 31, 1, 3, 29375, 0, 0, 0, 0, '', 'Requires Stormforged Iron Giant');
DELETE FROM spell_script_names WHERE spell_id=55818;
INSERT INTO spell_script_names VALUES(55818, "spell_q12915_mending_fences");
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=29927;
DELETE FROM smart_scripts WHERE entryorguid=29927 AND source_type=0;
INSERT INTO smart_scripts VALUES (29927, 0, 0, 0, 54, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 19, 29375, 30, 0, 0, 0, 0, 0, 'Earthen Ironbane - Is Summoned - Attack Start');
-- Song of Fecundity (12737)
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=53020;
INSERT INTO conditions VALUES(13, 1, 53020, 0, 0, 31, 0, 5, 191136, 0, 0, 0, 0, "", "Song of Fecundity Quest");
UPDATE gameobject_template SET AIName='SmartGameObjectAI' WHERE entry=191136;
DELETE FROM smart_scripts WHERE entryorguid=191136 AND source_type=1;
INSERT INTO smart_scripts VALUES (191136, 1, 0, 0, 8, 0, 100, 0, 53020, 0, 0, 0, 99, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On Spell Hit - Set Loot State Just Deactivated");
-- Reconnaissance Flight (12671)
UPDATE creature_template SET speed_run=1, InhabitType=4 WHERE entry=28710; -- Prevents strange movements (flying npc)
-- The Bones of Nozronn (12544)
UPDATE smart_scripts SET target_type=1 WHERE entryorguid=28256 AND source_type=0 AND id=0;
UPDATE smart_scripts SET target_type=21, target_param1=20 WHERE entryorguid=2825600 AND source_type=9 AND id=5;
-- The Angry Gorloc (12578)
DELETE FROM spell_area WHERE spell=54057;
INSERT INTO spell_area VALUES(54057, 4297, 12578, 0, 0, 0, 2, 1, 8, 0);
-- Kartak's Rampage (12703)
UPDATE creature_template SET speed_run=1.8, spell1=52316, spell2=52271, spell3=52311, spell4=52272, spell5=0, spell6=52274, VehicleId=132 WHERE entry=28116;
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=52316;
INSERT INTO conditions VALUES(13, 3, 52316, 0, 0, 31, 0, 3, 28111, 0, 0, 0, 0, '', 'Target Sparktouched Warrior');
INSERT INTO conditions VALUES(13, 3, 52316, 0, 1, 31, 0, 3, 28112, 0, 0, 0, 0, '', 'Target Sparktouched Oracle');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=52271;
INSERT INTO conditions VALUES(13, 7, 52271, 0, 0, 31, 0, 3, 28111, 0, 0, 0, 0, '', 'Target Sparktouched Warrior');
INSERT INTO conditions VALUES(13, 7, 52271, 0, 1, 31, 0, 3, 28112, 0, 0, 0, 0, '', 'Target Sparktouched Oracle');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=52305;
INSERT INTO conditions VALUES(13, 3, 52305, 0, 0, 31, 0, 3, 28111, 0, 0, 0, 0, '', 'Target Sparktouched Warrior');
INSERT INTO conditions VALUES(13, 3, 52305, 0, 1, 31, 0, 3, 28112, 0, 0, 0, 0, '', 'Target Sparktouched Oracle');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=52272;
INSERT INTO conditions VALUES(13, 3, 52272, 0, 0, 31, 0, 3, 28111, 0, 0, 0, 0, '', 'Target Sparktouched Warrior');
INSERT INTO conditions VALUES(13, 3, 52272, 0, 1, 31, 0, 3, 28112, 0, 0, 0, 0, '', 'Target Sparktouched Oracle');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=52274;
INSERT INTO conditions VALUES(13, 2, 52274, 0, 0, 31, 0, 3, 28111, 0, 0, 0, 0, '', 'Target Sparktouched Warrior');
INSERT INTO conditions VALUES(13, 2, 52274, 0, 1, 31, 0, 3, 28112, 0, 0, 0, 0, '', 'Target Sparktouched Oracle');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=17 AND SourceEntry=52274;
INSERT INTO conditions VALUES(17, 0, 52274, 0, 0, 29, 0, 28111, 7, 1, 0, 22, 0, '', 'Require dead Sparktouched Warrior');
INSERT INTO conditions VALUES(17, 0, 52274, 0, 1, 29, 0, 28112, 7, 1, 0, 22, 0, '', 'Require dead Sparktouched Oracle');
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=28111;
DELETE FROM smart_scripts WHERE entryorguid=28111 AND source_type=0;
INSERT INTO smart_scripts VALUES (28111, 0, 0, 0, 0, 0, 100, 0, 4000, 11000, 7000, 11000, 11, 54429, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Sparktouched Warrior - In Combat - Cast Lightning Whirl');
INSERT INTO smart_scripts VALUES (28111, 0, 1, 0, 0, 0, 100, 0, 8000, 20000, 15000, 31000, 11, 18501, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Sparktouched Warrior - In Combat - Cast Enrage');
INSERT INTO smart_scripts VALUES (28111, 0, 2, 0, 8, 0, 100, 0, 52274, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Sparktouched Warrior - On Spell Hit - Despawn');
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=28112;
DELETE FROM smart_scripts WHERE entryorguid=28112 AND source_type=0;
INSERT INTO smart_scripts VALUES (28112, 0, 0, 0, 0, 0, 100, 0, 0, 2000, 3000, 5000, 11, 12549, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Sparktouched Oracle - In Combat - Cast Forked Lightning');
INSERT INTO smart_scripts VALUES (28112, 0, 1, 0, 0, 0, 100, 0, 3000, 7000, 6000, 10000, 11, 54916, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Sparktouched Oracle - In Combat - Cast Lightning Burst');
INSERT INTO smart_scripts VALUES (28112, 0, 2, 0, 8, 0, 100, 0, 52274, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Sparktouched Oracle - On Spell Hit - Despawn');
-- Will of the Titans (12705)
UPDATE creature_template SET speed_run=1.8 WHERE entry=28115;
DELETE FROM npc_spellclick_spells WHERE npc_entry=28115;
INSERT INTO npc_spellclick_spells VALUES (28115, 46598, 1, 0);
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=52331;
INSERT INTO conditions VALUES(13, 1, 52331, 0, 0, 31, 0, 3, 28078, 0, 0, 0, 0, '', 'Target Frenzyheart Ravager');
INSERT INTO conditions VALUES(13, 1, 52331, 0, 1, 31, 0, 3, 28079, 0, 0, 0, 0, '', 'Target Frenzyheart Hunter');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=17 AND SourceEntry=52327;
INSERT INTO conditions VALUES(17, 0, 52327, 0, 0, 31, 1, 3, 28078, 0, 0, 0, 0, '', 'Require Frenzyheart Ravager');
INSERT INTO conditions VALUES(17, 0, 52327, 0, 1, 31, 1, 3, 28079, 0, 0, 0, 0, '', 'Require Frenzyheart Hunter');
DELETE FROM spell_script_names WHERE spell_id IN(53032);
INSERT INTO spell_script_names VALUES(53032, 'spell_gen_flurry_of_claws');

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,484 @@
-- -------------------------------------------
-- ZUL'DRAK
-- -------------------------------------------
-- Lab Work (12557)
UPDATE gameobject_loot_template SET ChanceOrQuestChance=100 WHERE item IN(38386, 38339, 38340, 38346);
DELETE FROM spell_script_names WHERE spell_id IN(51060, 51068, 51088, 51094);
INSERT INTO spell_script_names VALUES(51060, "spell_gen_have_item_auras");
INSERT INTO spell_script_names VALUES(51068, "spell_gen_have_item_auras");
INSERT INTO spell_script_names VALUES(51088, "spell_gen_have_item_auras");
INSERT INTO spell_script_names VALUES(51094, "spell_gen_have_item_auras");
-- So Far, So Bad (12669)
UPDATE gameobject_template SET data1=15 WHERE entry=190731;
-- It Rolls Downhill (12673)
DELETE FROM creature_text WHERE entry=28750;
INSERT INTO creature_text VALUES (28750, 0, 0, 'Mphmm rmphhimm rrhumghph?', 12, 0, 100, 1, 0, 0, 0, 'Blight Geist');
INSERT INTO creature_text VALUES (28750, 0, 1, 'Mhrrumph rummrhum phurr!', 12, 0, 100, 1, 0, 0, 0, 'Blight Geist');
REPLACE INTO creature_template_addon VALUES (28750, 0, 0, 0, 1, 0, '');
UPDATE creature_template SET spell1=52245, AIName='SmartAI' WHERE entry=28750;
DELETE FROM smart_scripts WHERE entryorguid=28750 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid=28750*100 AND source_type=9;
INSERT INTO smart_scripts VALUES (28750, 0, 0, 3, 8, 0, 100, 0, 52245, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 20, 190716, 25, 0, 2, 0, 0, 0, 'Blight Geist - On Spellhit - Store Target');
INSERT INTO smart_scripts VALUES (28750, 0, 1, 3, 8, 0, 100, 0, 52245, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 20, 190939, 25, 0, 2, 0, 0, 0, 'Blight Geist - On Spellhit - Store Target');
INSERT INTO smart_scripts VALUES (28750, 0, 2, 3, 8, 0, 100, 0, 52245, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 20, 190940, 25, 0, 2, 0, 0, 0, 'Blight Geist - On Spellhit - Store Target');
INSERT INTO smart_scripts VALUES (28750, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 0, 12, 1, 0, 0, 2, 0, 0, 0, 'Blight Geist - On Spell Hit - Move To Position');
INSERT INTO smart_scripts VALUES (28750, 0, 4, 0, 34, 0, 100, 0, 8, 1, 0, 0, 80, 28750*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Blight Geist - Movement Inform - Run Script');
INSERT INTO smart_scripts VALUES (28750, 0, 5, 0, 8, 0, 100, 0, 52244, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Blight Geist - On Spellhit - Say Line 0');
INSERT INTO smart_scripts VALUES (28750, 0, 6, 0, 8, 0, 100, 0, 52252, 0, 0, 0, 11, 52243, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Blight Geist - On Spellhit - Cast Orange Radiation, Small');
INSERT INTO smart_scripts VALUES (28750, 0, 7, 8, 34, 0, 100, 0, 8, 2, 0, 0, 11, 61456, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Blight Geist - Movement Inform - Cast Evil Teleport Visual Only');
INSERT INTO smart_scripts VALUES (28750, 0, 8, 9, 61, 0, 100, 0, 0, 0, 0, 0, 11, 52248, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Blight Geist - Movement Inform - Cast Kill Credit - Blighted Geist');
INSERT INTO smart_scripts VALUES (28750, 0, 9, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 2000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Blight Geist - Movement Inform - Despawn');
INSERT INTO smart_scripts VALUES (28750*100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Blight Geist - On Script - Set Orientation');
INSERT INTO smart_scripts VALUES (28750*100, 9, 1, 0, 0, 0, 100, 0, 500, 500, 0, 0, 5, 35, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Blight Geist - On Script - Play Emote');
INSERT INTO smart_scripts VALUES (28750*100, 9, 2, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 99, 3, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Blight Geist - On Script - Set Loot State');
INSERT INTO smart_scripts VALUES (28750*100, 9, 3, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 69, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6174.282, -2017.246, 245.1156, 0, 'Blight Geist - On Script - Move To Position');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=22 AND SourceEntry=28750;
DELETE FROM conditions WHERE SourceTypeOrReferenceId=17 AND SourceEntry=52245;
INSERT INTO conditions VALUES (17, 0, 52245, 0, 0, 30, 0, 190716, 20, 0, 0, 0, 0, '', 'Allow Cast if Gameobject in Range');
INSERT INTO conditions VALUES (17, 0, 52245, 0, 1, 30, 0, 190939, 20, 0, 0, 0, 0, '', 'Allow Cast if Gameobject in Range');
INSERT INTO conditions VALUES (17, 0, 52245, 0, 2, 30, 0, 190940, 20, 0, 0, 0, 0, '', 'Allow Cast if Gameobject in Range');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=52247;
INSERT INTO conditions VALUES (13, 1, 52247, 0, 0, 31, 0, 5, 190716, 0, 0, 0, 0, '', 'Target Blight Crystal');
INSERT INTO conditions VALUES (13, 1, 52247, 0, 1, 31, 0, 5, 190939, 0, 0, 0, 0, '', 'Target Blight Crystal');
INSERT INTO conditions VALUES (13, 1, 52247, 0, 2, 31, 0, 5, 190940, 0, 0, 0, 0, '', 'Target Blight Crystal');
-- Congratulations! (12604)
UPDATE quest_template SET RewardSpellCast=53707, SourceSpellId=51573 WHERE Id=12501; -- Troll Patrol quest
DELETE FROM spell_linked_spell WHERE spell_trigger=51573;
INSERT INTO spell_linked_spell VALUES(51573, 53712, 1, 'On patrol - trigger clear spell');
INSERT INTO spell_linked_spell VALUES(51573, 53713, 1, 'On patrol - trigger clear spell');
INSERT INTO spell_linked_spell VALUES(51573, 53715, 1, 'On patrol - trigger clear spell');
INSERT INTO spell_linked_spell VALUES(51573, 53716, 1, 'On patrol - trigger clear spell');
DELETE FROM conditions WHERE SourceEntry IN(12604) AND SourceTypeOrReferenceId IN(19, 20);
INSERT INTO conditions VALUES(19, 0, 12604, 0, 0, 1, 0, 51573, 0, 0, 0, 0, 0, "", 'Congratulations quest, requires on patrol aura');
INSERT INTO conditions VALUES(19, 0, 12604, 0, 0, 1, 0, 53707, 0, 0, 0, 0, 0, "", 'Congratulations quest, requires additional dummy aura');
INSERT INTO conditions VALUES(20, 0, 12604, 0, 0, 1, 0, 51573, 0, 0, 0, 0, 0, "", 'Congratulations quest, requires on patrol aura');
INSERT INTO conditions VALUES(20, 0, 12604, 0, 0, 1, 0, 53707, 0, 0, 0, 0, 0, "", 'Congratulations quest, requires additional dummy aura');
-- Pa'Troll (12596), set correct set of quests
UPDATE quest_template SET PrevQuestId=-12596, NextQuestId=0, ExclusiveGroup=0, NextQuestIdChain=0, SpecialFlags=0 WHERE Id IN(12557, 12597, 12598, 12599);
UPDATE quest_template SET SourceSpellId=51515 WHERE Id=12596;
UPDATE quest_template SET PrevQuestId=0, NextQuestId=12555, ExclusiveGroup=-12583, NextQuestIdChain=12555 WHERE Id=12606; -- wrong old template, counted as pa'troll task which is wrong!
DELETE FROM spell_linked_spell WHERE spell_trigger=51515;
INSERT INTO spell_linked_spell VALUES(51515, 51506, 1, 'Clear patrol quests - trigger clear spell');
INSERT INTO spell_linked_spell VALUES(51515, 51509, 1, 'Clear patrol quests - trigger clear spell');
-- Troll Patrol: Whatdya Want, a Medal? (12519)
DELETE FROM npc_spellclick_spells WHERE npc_entry=28162;
INSERT INTO npc_spellclick_spells VALUES(28162, 51026, 1, 0);
DELETE FROM conditions WHERE SourceTypeOrReferenceId=18 AND SourceGroup=28162;
INSERT INTO conditions VALUES (18, 28162, 51026, 0, 0, 8, 0, 12519, 0, 0, 1, 0, 0, '', 'Forbidden rewarded quest for spellclick');
INSERT INTO conditions VALUES (18, 28162, 51026, 0, 0, 9, 0, 12519, 0, 0, 0, 0, 0, '', 'Required quest active for spellclick');
DELETE FROM spell_scripts WHERE id=51026;
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=28162;
DELETE FROM smart_scripts WHERE entryorguid=28162 AND source_type=0;
INSERT INTO smart_scripts VALUES (28162, 0, 0, 1, 8, 0, 100, 0, 51026, 0, 0, 0, 11, 50737, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Drakkari Corpse - On Spell Hit - Cast Create Drakkari Medallion');
INSERT INTO smart_scripts VALUES (28162, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Drakkari Corpse - On Spell Hit - Despawn');
-- Troll Patrol: Done to Death (12568)
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=51276;
INSERT INTO conditions VALUES (13, 1, 51276, 0, 0, 31, 0, 3, 28156, 0, 0, 0, 0, '', '');
UPDATE creature_template SET AIName="SmartAI" WHERE entry=28156;
DELETE FROM smart_scripts WHERE entryorguid=28156 AND source_type=0;
INSERT INTO smart_scripts VALUES (28156, 0, 0, 1, 8, 0, 100, 0, 51276, 0, 0, 0, 33, 28316, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Kill credit on spell hit");
INSERT INTO smart_scripts VALUES (28156, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 41, 10000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Forced despawn linked");
INSERT INTO smart_scripts VALUES (28156, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 11, 59216, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Cast spell linked");
-- Troll Patrol: Can You Dig It? (12588)
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=51333;
INSERT INTO conditions VALUES (13, 1, 51333, 0, 0, 31, 0, 3, 28330, 0, 0, 0, 0, '', 'Target Ancient Dirt KC Bunny');
DELETE FROM gameobject WHERE id=190550;
UPDATE creature_template SET unit_flags=33554432, flags_extra=128, AIName='SmartAI', ScriptName='' WHERE entry=28330;
DELETE FROM smart_scripts WHERE entryorguid=28330 AND source_type=0;
INSERT INTO smart_scripts VALUES(28330, 0, 0, 0, 11, 0, 100, 0, 0, 0, 0, 0, 50, 190550, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Ancient Dirt KC Bunny - On Respawn - Summon Gameobject");
INSERT INTO smart_scripts VALUES(28330, 0, 1, 2, 8, 0, 100, 0, 51333, 0, 0, 0, 33, 28330, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Ancient Dirt KC Bunny - On Spell Hit - Kill Credit");
INSERT INTO smart_scripts VALUES(28330, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 20, 190550, 5, 0, 0, 0, 0, 0, "Ancient Dirt KC Bunny - On Spell Hit - Despawn Gameobject");
INSERT INTO smart_scripts VALUES(28330, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Ancient Dirt KC Bunny - On Spell Hit - Despawn Self");
-- Troll Patrol: The Alchemist's Apprentice (12541)
UPDATE gameobject_loot_template SET ChanceOrQuestChance=100 WHERE item IN(38336, 39669, 38342, 38340, 38344, 38369, 38396, 38398, 38338, 38386, 38341, 38384, 38397, 38381, 38337, 38393, 38339, 39668, 39670, 38346, 38379, 38345, 38343, 38370);
UPDATE gameobject SET spawntimesecs=30 WHERE id IN(190459,190461,190462,190463,190464,190465,190466,190467,190468,190469,190470,190471,190472,190473,190474,190476,190477,190478,190479,190480,190481,190482,191180,191181,191182);
UPDATE creature_template SET ScriptName='npc_finklestein' WHERE entry=28205;
UPDATE gameobject_template SET ScriptName='go_finklestein_cauldron' WHERE entry=190498;
-- TC
DELETE FROM spell_script_names WHERE ScriptName='spell_random_ingredient_aura' AND spell_id IN(51015, 51154, 51157);
DELETE FROM spell_script_names WHERE ScriptName='spell_random_ingredient' AND spell_id IN(51105, 51107, 51134);
DELETE FROM spell_script_names WHERE ScriptName='spell_pot_check' AND spell_id=51046;
DELETE FROM spell_script_names WHERE ScriptName='spell_fetch_ingredient_aura'; -- Too many ids
-- Setting the Stage (12672)
DELETE FROM gameobject WHERE id=190717;
INSERT INTO gameobject VALUES (NULL, 190717, 571, 1, 2, 5658.46, -4065.84, 353.109, 3.2456, 0, 0, 0.998648, -0.0519802, 120, 100, 1, 0);
INSERT INTO gameobject VALUES (NULL, 190717, 571, 1, 2, 5640.36, -4067.2, 352.51, 3.29666, 0, 0, 0.996996, -0.077456, 120, 100, 1, 0);
INSERT INTO gameobject VALUES (NULL, 190717, 571, 1, 2, 5639.93, -4102.82, 352.579, 0.0254741, 0, 0, 0.0127367, 0.999919, 120, 100, 1, 0);
INSERT INTO gameobject VALUES (NULL, 190717, 571, 1, 2, 5658.44, -4103.1, 352.523, 6.23424, 0, 0, 0.0244702, -0.999701, 120, 100, 1, 0);
INSERT INTO gameobject VALUES (NULL, 190717, 571, 1, 2, 5674.33, -4103.09, 352.463, 0.15133, 0, 0, 0.0755928, 0.997139, 120, 100, 1, 0);
INSERT INTO gameobject VALUES (NULL, 190717, 571, 1, 2, 5640.38, -4128.02, 352.559, 6.00936, 0, 0, 0.136485, -0.990642, 120, 100, 1, 0);
INSERT INTO gameobject VALUES (NULL, 190717, 571, 1, 2, 5659.26, -4128.18, 352.592, 6.08383, 0, 0, 0.0995127, -0.995036, 120, 100, 1, 0);
INSERT INTO gameobject VALUES (NULL, 190717, 571, 1, 2, 5672.43, -4128.94, 352.414, 0.10302, 0, 0, 0.0514872, 0.998674, 120, 100, 1, 0);
INSERT INTO gameobject VALUES (NULL, 190717, 571, 1, 2, 5655.2, -4163.65, 352.459, 6.24483, 0, 0, 0.0191764, -0.999816, 120, 100, 1, 0);
INSERT INTO gameobject VALUES (NULL, 190717, 571, 1, 2, 5675.39, -4163.33, 352.486, 0.137434, 0, 0, 0.0686629, 0.99764, 120, 100, 1, 0);
INSERT INTO gameobject VALUES (NULL, 190717, 571, 1, 2, 5763.38, -4163.95, 352.882, 6.06646, 0, 0, 0.108151, -0.994135, 120, 100, 1, 0);
INSERT INTO gameobject VALUES (NULL, 190717, 571, 1, 2, 5786.82, -4164.42, 352.414, 0.0110331, 0, 0, 0.00551652, 0.999985, 120, 100, 1, 0);
INSERT INTO gameobject VALUES (NULL, 190717, 571, 1, 2, 5752.56, -4129.18, 353.174, 6.069, 0, 0, 0.106888, -0.994271, 120, 100, 1, 0);
INSERT INTO gameobject VALUES (NULL, 190717, 571, 1, 2, 5770.42, -4128.87, 352.527, 0.0538505, 0, 0, 0.026922, 0.999638, 120, 100, 1, 0);
INSERT INTO gameobject VALUES (NULL, 190717, 571, 1, 2, 5790.12, -4129.02, 353.044, 6.24363, 0, 0, 0.0197764, -0.999804, 120, 100, 1, 0);
INSERT INTO gameobject VALUES (NULL, 190717, 571, 1, 2, 5787.65, -4104.49, 352.464, 0.0181494, 0, 0, 0.00907458, 0.999959, 120, 100, 1, 0);
INSERT INTO gameobject VALUES (NULL, 190717, 571, 1, 2, 5771.09, -4103.79, 352.434, 0.00636768, 0, 0, 0.00318383, 0.999995, 120, 100, 1, 0);
INSERT INTO gameobject VALUES (NULL, 190717, 571, 1, 2, 5752.44, -4104.06, 352.569, 6.11926, 0, 0, 0.081871, -0.996643, 120, 100, 1, 0);
INSERT INTO gameobject VALUES (NULL, 190717, 571, 1, 2, 5767.57, -4068.78, 352.693, 6.13787, 0, 0, 0.0725938, -0.997362, 120, 100, 1, 0);
INSERT INTO gameobject VALUES (NULL, 190717, 571, 1, 2, 5784.72, -4068.95, 352.63, 6.20248, 0, 0, 0.0403418, -0.999186, 120, 100, 1, 0);
INSERT INTO gameobject VALUES (NULL, 190717, 571, 1, 2, 5814.9, -4117.41, 353.163, 3.02751, 0, 0, 0.998374, 0.0570104, 120, 100, 1, 0);
INSERT INTO gameobject VALUES (NULL, 190717, 571, 1, 2, 5627.08, -4116.07, 353.162, 6.26427, 0, 0, 0.0094576, -0.999955, 120, 100, 1, 0);
-- The Leaders at Jin'Alai (12622)
UPDATE creature SET spawntimesecs=10 WHERE id IN(28494, 28495, 28496);
-- Sabotage (12676)
UPDATE creature_template SET AIName='SmartAI' WHERE entry=28780;
DELETE FROM smart_scripts WHERE entryorguid IN(28780) AND source_type=0;
INSERT INTO smart_scripts VALUES (28780, 0, 0, 0, 60, 0, 100, 1, 500, 1000, 0, 0, 33, 28777, 0, 0, 0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, 'Killmonster credit for summoner');
INSERT INTO smart_scripts VALUES (28780, 0, 1, 2, 60, 0, 100, 1, 5000, 6000, 0, 0, 11, 52324, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'cast spell on update');
INSERT INTO smart_scripts VALUES (28780, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 11, 52329, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'cast spell linked');
INSERT INTO smart_scripts VALUES (28780, 0, 3, 4, 61, 0, 100, 0, 0, 0, 0, 0, 11, 52325, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'cast spell linked');
INSERT INTO smart_scripts VALUES (28780, 0, 4, 5, 61, 0, 100, 0, 0, 0, 0, 0, 11, 52330, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'cast spell linked');
INSERT INTO smart_scripts VALUES (28780, 0, 5, 0, 61, 0, 100, 0, 0, 0, 0, 0, 11, 52332, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'cast spell linked');
INSERT INTO smart_scripts VALUES (28780, 0, 6, 0, 60, 0, 100, 1, 4800, 4800, 0, 0, 99, 3, 0, 0, 0, 0, 0, 20, 190731, 15, 0, 0, 0, 0, 0, 'deactivate GO');
-- Disclosure (12710)
-- remake areatriggers!
DELETE FROM areatrigger_scripts WHERE entry IN(5051, 5061);
DELETE FROM smart_scripts WHERE entryorguid IN(5051, 5061) AND source_type=2;
REPLACE INTO areatrigger_teleport VALUES(5080, "Zul'drak - Voltarus, upper floor -> middle", 571, 6159.16, -2028.6, 408.168, 3.74088);
REPLACE INTO areatrigger_teleport VALUES(5051, "Zul'drak - Voltarus, base floor -> middle", 571, 6159.16, -2028.6, 408.168, 3.74088);
REPLACE INTO areatrigger_teleport VALUES(5061, "Zul'drak - Voltarus, middle floor -> base", 571, 6175.6, -2008.78, 245.255, 1.49857);
DELETE FROM areatrigger_teleport WHERE id=5079;
REPLACE INTO areatrigger_scripts VALUES(5079, 'at_voltarus_middle'); -- middle floor -> upper
DELETE FROM gameobject WHERE id IN(190948, 190949);
INSERT INTO gameobject VALUES (NULL, 190948, 571, 1, 1, 6260.48, -1960.04, 484.782, -2.49582, 0, 0, -0.948324, 0.317305, 300, 0, 1, 0);
INSERT INTO gameobject VALUES (NULL, 190949, 571, 1, 1, 6260.49, -1960.04, 484.782, -2.49582, 0, 0, -0.948324, 0.317305, 300, 0, 1, 0);
DELETE FROM spell_linked_spell WHERE spell_trigger IN(52839, -52839, 52775, -52775);
INSERT INTO spell_linked_spell VALUES(-52839, 52775, 0, 'Disclosure quest, summon malmortis');
UPDATE creature_template SET minlevel=80, maxlevel=80, AIName='SmartAI' WHERE entry=28948;
DELETE FROM smart_scripts WHERE entryorguid IN(28948) AND source_type=0;
INSERT INTO smart_scripts VALUES (28948, 0, 0, 1, 60, 0, 100, 1, 1000, 1000, 0, 0, 53, 0, 28948, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'start escort');
INSERT INTO smart_scripts VALUES (28948, 0, 1, 4, 61, 0, 100, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 11, 28948, 100, 0, 0, 0, 0, 0, 'Set data linked');
INSERT INTO smart_scripts VALUES (28948, 0, 2, 3, 38, 0, 100, 1, 1, 1, 0, 0, 33, 28929, 0, 0, 0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, 'Killmonster credit on data set');
INSERT INTO smart_scripts VALUES (28948, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 500, 500, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'forcedespawn linked');
INSERT INTO smart_scripts VALUES (28948, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'say text linked');
INSERT INTO smart_scripts VALUES (28948, 0, 5, 0, 40, 0, 100, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, 'say text 1 on wp reach');
INSERT INTO smart_scripts VALUES (28948, 0, 6, 0, 40, 0, 100, 0, 3, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'say text 2 on wp reach');
INSERT INTO smart_scripts VALUES (28948, 0, 7, 0, 40, 0, 100, 0, 5, 0, 0, 0, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'say text 3 on wp reach');
INSERT INTO smart_scripts VALUES (28948, 0, 8, 9, 40, 0, 100, 0, 6, 0, 0, 0, 1, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'say text 4 on wp reach');
INSERT INTO smart_scripts VALUES (28948, 0, 9, 0, 61, 0, 100, 0, 0, 0, 0, 0, 54, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'stop escort linked');
INSERT INTO smart_scripts VALUES (28948, 0, 10, 0, 40, 0, 100, 0, 7, 0, 0, 0, 1, 5, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'say text 5 on wp reach');
INSERT INTO smart_scripts VALUES (28948, 0, 11, 0, 40, 0, 100, 0, 9, 0, 0, 0, 1, 6, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'say text 6 on wp reach');
INSERT INTO smart_scripts VALUES (28948, 0, 12, 0, 40, 0, 100, 0, 12, 0, 0, 0, 1, 7, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'say text 7 on wp reach');
INSERT INTO smart_scripts VALUES (28948, 0, 13, 0, 40, 0, 100, 0, 14, 0, 0, 0, 1, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'say text 8 on wp reach');
INSERT INTO smart_scripts VALUES (28948, 0, 14, 15, 40, 0, 100, 0, 16, 0, 0, 0, 1, 9, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'say text 9 on wp reach');
INSERT INTO smart_scripts VALUES (28948, 0, 15, 0, 61, 0, 100, 0, 0, 0, 0, 0, 54, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'stop escort linked');
INSERT INTO smart_scripts VALUES (28948, 0, 16, 0, 40, 0, 100, 0, 17, 0, 0, 0, 1, 10, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'say text 10 on wp reach');
INSERT INTO smart_scripts VALUES (28948, 0, 17, 0, 40, 0, 100, 0, 18, 0, 0, 0, 1, 11, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'say text 11 on wp reach');
INSERT INTO smart_scripts VALUES (28948, 0, 18, 0, 40, 0, 100, 0, 19, 0, 0, 0, 1, 12, 0, 0, 0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, 'say text 12 on wp reach');
INSERT INTO smart_scripts VALUES (28948, 0, 19, 0, 40, 0, 100, 0, 21, 0, 0, 0, 1, 13, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'say text 13 on wp reach');
INSERT INTO smart_scripts VALUES (28948, 0, 20, 21, 40, 0, 100, 0, 23, 0, 0, 0, 1, 14, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'say text 14 on wp reach');
INSERT INTO smart_scripts VALUES (28948, 0, 21, 0, 61, 0, 100, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Set data linked');
DELETE FROM creature_text WHERE entry IN (28948);
INSERT INTO creature_text VALUES
(28948, 0, 0, "Ahh... there you are. The master told us you'd be arriving soon.", 12, 0, 100, 1, 0, 0, 0, 'Malmortis text'),
(28948, 1, 0, "Please, follow me, $N. There is much for you to see...", 12, 0, 100, 1, 0, 0, 0, 'Malmortis text'),
(28948, 2, 0, "You should feel honored. You are the first of the master's prospects to be shown our operation.", 12, 0, 100, 1, 0, 0, 0, 'Malmortis text'),
(28948, 3, 0, "The things I show you now must never be spoken of outside Voltarus. The world shall come to know our secret soon enough!", 12, 0, 100, 1, 0, 0, 0, 'Malmortis text'),
(28948, 4, 0, "Here lie our stores of blight crystal, without which our project would be impossible.", 12, 0, 100, 1, 0, 0, 0, 'Malmortis text'),
(28948, 5, 0, "I understand that you are to thank for the bulk of our supply.", 12, 0, 100, 1, 0, 0, 0, 'Malmortis text'),
(28948, 6, 0, "These trolls are among those you exposed on the battlefield. Masterfully done, indeed....", 12, 0, 100, 1, 0, 0, 0, 'Malmortis text'),
(28948, 7, 0, "We feel it best to position them here, where they might come in terms with their impending fate.", 12, 0, 100, 1, 0, 0, 0, 'Malmortis text'),
(28948, 8, 0, "This is their destiny....", 12, 0, 100, 1, 0, 0, 0, 'Malmortis text'),
(28948, 9, 0, "The blight slowly seeps into their bodies, gradually preparing them for their conversion.", 12, 0, 100, 1, 0, 0, 0, 'Malmortis text'),
(28948, 10, 0, "This special preparation grants them unique powers far greater than they would otherwise know.", 12, 0, 100, 1, 0, 0, 0, 'Malmortis text'),
(28948, 11, 0, "Soon, the master will grant them the dark gift, making them fit to server the Lich King for eternity!", 12, 0, 100, 1, 0, 0, 0, 'Malmortis text'),
(28948, 12, 0, "Stay for as long as you like, $N. Glory in the fruits of your labor!", 12, 0, 100, 1, 0, 0, 0, 'Malmortis text'),
(28948, 13, 0, "Your service has been invaluable in fulfilling the master's plan. May you forever grow in power....", 12, 0, 100, 1, 0, 0, 0, 'Malmortis text'),
(28948, 14, 0, "Farewell.", 12, 0, 100, 1, 0, 0, 0, 'Malmortis text');
DELETE FROM waypoints WHERE entry=28948;
INSERT INTO waypoints VALUES (28948, 1, 6236.44, -1977.78, 484.782, 'malmortis'),(28948, 2, 6239.19, -2000.98, 484.92, 'malmortis'),(28948, 3, 6263.43, -2031.08, 485.075, 'malmortis'),(28948, 4, 6250.13, -2050.53, 484.875, 'malmortis'),(28948, 5, 6159.67, -2107.64, 485.085, 'malmortis'),
(28948, 6, 6121.99, -2053.64, 484.782, 'malmortis'),(28948, 7, 6086.62, -2000.3, 485.095, 'malmortis'),(28948, 8, 6061.7, -1995.35, 485.267, 'malmortis'),(28948, 9, 6059.67, -2007.91, 485.363, 'malmortis'),(28948, 10, 6056.47, -2025.2, 473.338, 'malmortis'),
(28948, 11, 6066.6, -2036.44, 473.745, 'malmortis'),(28948, 12, 6073.39, -2027.96, 473.338, 'malmortis'),(28948, 13, 6077.52, -2012.09, 461.492, 'malmortis'),(28948, 14, 6080.12, -1998.34, 461.311, 'malmortis'),(28948, 15, 6107.05, -2010.62, 461.307, 'malmortis'),
(28948, 16, 6154.38, -1982.7, 460.694, 'malmortis'),(28948, 17, 6188.35, -1979.59, 460.63, 'malmortis'),(28948, 18, 6220.27, -2003.44, 461.301, 'malmortis'),(28948, 19, 6258.04, -2034.15, 461.308, 'malmortis'),(28948, 20, 6271.21, -2036.64, 461.31, 'malmortis'),
(28948, 21, 6273.59, -2025.11, 461.31, 'malmortis'),(28948, 22, 6277.02, -2007.7, 473.337, 'malmortis'),(28948, 23, 6286.52, -1997.88, 473.806, 'malmortis'),(28948, 24, 6293.5, -2010.19, 473.337, 'malmortis'),(28948, 25, 6289.93, -2027.52, 485.363, 'malmortis');
-- Feedin' Da Goolz (12652)
UPDATE creature_template SET AIName='', ScriptName='npc_feedin_da_goolz', flags_extra=130 WHERE entry=28591;
DELETE FROM smart_scripts WHERE entryorguid=28591 AND source_type=0;
-- Gluttonous Lurkers (12527)
UPDATE creature_template SET AIName='SmartAI' WHERE entry=28202;
DELETE FROM smart_scripts WHERE source_type=0 AND entryorguid=28202;
INSERT INTO smart_scripts VALUES(28202, 0, 0, 0, 8, 0, 100, 0, 50926, 0, 1000, 1000, 41, 600, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Zul''Drak Rat - Despawn on Spell Dummy');
UPDATE creature_template SET AIName='SmartAI' WHERE entry IN (28203,28145);
DELETE FROM smart_scripts WHERE entryorguid IN (28145,28203) AND source_type=0;
INSERT INTO smart_scripts VALUES(28145, 0, 0, 0, 0, 0, 100, 0, 5000, 5000, 17000, 27000, 11, 54470, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'In Combat - Cast Venemous Bite');
INSERT INTO smart_scripts VALUES(28145, 0, 1, 2, 23, 0, 100, 1, 50894, 5, 100, 200, 41, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On 5 stacks of 50894 - Despawn');
INSERT INTO smart_scripts VALUES(28145, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 11, 50928, 2, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Link With Event 1 - Summon Gorged Basilisk');
INSERT INTO smart_scripts VALUES(28203, 0, 0, 1, 8, 0, 100, 0, 50918, 0, 0, 0, 11, 50919, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - Cast 50919 On Invoker');
INSERT INTO smart_scripts VALUES(28203, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Link With Event 0 - Despawn');
-- TC script remove
DELETE FROM spell_script_names WHERE spell_id=50894;
-- Tails Up (13549)
DELETE FROM creature_text WHERE entry=29327;
INSERT INTO creature_text VALUES(29327, 0, 0, 'It''s an angry male!', 42, 0, 100, 0, 0, 0, 0, 'Frost Leopard');
INSERT INTO creature_text VALUES(29327, 1, 0, 'It''s a female.', 42, 0, 100, 0, 0, 0, 0, 'Frost Leopard');
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry IN(29327, 33010);
UPDATE creature SET spawndist=0, MovementType=0 WHERE id=29327;
DELETE FROM smart_scripts WHERE entryorguid IN(29327, 33010) AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid IN (2932700, 2932701, 2932702, 2932703) AND source_type=9;
INSERT INTO smart_scripts VALUES (33010, 0, 0, 1, 60, 0, 100, 257, 0, 0, 0, 0, 29, 3, 180, 0, 0, 0, 0, 21, 30, 0, 0, 0, 0, 0, 0, 'Female Frost Leopard - On Update - Set Follow');
INSERT INTO smart_scripts VALUES (33010, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 60000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Female Frost Leopard - On Update - Despawn');
INSERT INTO smart_scripts VALUES (29327, 0, 0, 0, 0, 0, 100, 0, 1000, 1000, 8000, 11000, 11, 54668, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Frost Leopard - In Combat - Cast Rake');
INSERT INTO smart_scripts VALUES (29327, 0, 1, 2, 25, 0, 100, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Frost Leopard - On Reset - Set Faction Back');
INSERT INTO smart_scripts VALUES (29327, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Frost Leopard - On Reset - Set Phase');
INSERT INTO smart_scripts VALUES (29327, 0, 3, 0, 8, 1, 100, 1, 62105, 0, 0, 0, 80, 2932700, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Frost Leopard - On Spellhit - Run Script');
INSERT INTO smart_scripts VALUES (29327, 0, 4, 6, 62, 0, 100, 0, 54000, 0, 0, 0, 88, 2932701, 2932702, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Frost Leopard - On Gossip Select - Run Random Script');
INSERT INTO smart_scripts VALUES (29327, 0, 5, 0, 4, 0, 100, 0, 0, 0, 0, 0, 22, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Frost Leopard - On Aggro - Set Phase');
INSERT INTO smart_scripts VALUES (29327, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 28, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Frost Leopard - Linked - Remove all auras');
INSERT INTO smart_scripts VALUES (2932700, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 52742, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Frost Leopard - On Script - Cast Sleep');
INSERT INTO smart_scripts VALUES (2932700, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 2, 35, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Frost Leopard - On Script - Set Faction Friendly');
INSERT INTO smart_scripts VALUES (2932700, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 81, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Frost Leopard - On Script - Set npc_flag Gossip');
INSERT INTO smart_scripts VALUES (2932701, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Frost Leopard - On Script 1 - Say Line 0');
INSERT INTO smart_scripts VALUES (2932701, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Frost Leopard - On Script 1 - Restore Faction');
INSERT INTO smart_scripts VALUES (2932701, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 28, 52742, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Frost Leopard - On Script 1 - Remove Aura');
INSERT INTO smart_scripts VALUES (2932701, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 20, 0, 0, 0, 0, 0, 0, 'Frost Leopard - On Script 1 - Attack Start');
INSERT INTO smart_scripts VALUES (2932702, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 33, 33005, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Frost Leopard - On Script 2 - Quest Credit');
INSERT INTO smart_scripts VALUES (2932702, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Frost Leopard - On Script 2 - Say Line 1');
INSERT INTO smart_scripts VALUES (2932702, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 62108, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Frost Leopard - On Script 2 - Cast Tails up: Summon Female Frost Leopard');
INSERT INTO smart_scripts VALUES (2932702, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Frost Leopard - On Script 2 - Forced Despawn');
DELETE FROM creature_text WHERE entry=29319;
INSERT INTO creature_text VALUES(29319, 0, 0, 'It''s an angry male!', 42, 0, 100, 0, 0, 0, 0, 'Icepaw Bear');
INSERT INTO creature_text VALUES(29319, 1, 0, 'It''s a female.', 42, 0, 100, 0, 0, 0, 0, 'Icepaw Bear');
UPDATE creature_template SET unit_flags=0, AIName='SmartAI', ScriptName='' WHERE entry IN(29319, 33010);
UPDATE creature SET spawndist=0, MovementType=0 WHERE id=29319;
DELETE FROM smart_scripts WHERE entryorguid IN(29319, 33011) AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid IN (2931900, 2931901, 2931902, 2931903) AND source_type=9;
INSERT INTO smart_scripts VALUES (33011, 0, 0, 1, 60, 0, 100, 257, 0, 0, 0, 0, 29, 3, 180, 0, 0, 0, 0, 21, 30, 0, 0, 0, 0, 0, 0, 'Female Icepaw Bear - On Update - Set Follow');
INSERT INTO smart_scripts VALUES (33011, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 60000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Female Icepaw Bear - On Update - Despawn');
INSERT INTO smart_scripts VALUES (29319, 0, 0, 0, 0, 0, 100, 0, 1000, 1000, 8000, 11000, 11, 54632, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Icepaw Bear - In Combat - Cast Claws of Ice');
INSERT INTO smart_scripts VALUES (29319, 0, 1, 2, 25, 0, 100, 0, 0, 0, 0, 0, 2, 1990, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Icepaw Bear - On Reset - Set Faction Back');
INSERT INTO smart_scripts VALUES (29319, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Icepaw Bear - On Reset - Set Phase');
INSERT INTO smart_scripts VALUES (29319, 0, 3, 0, 8, 1, 100, 1, 62105, 0, 0, 0, 80, 2931900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Icepaw Bear - On Spellhit - Run Script');
INSERT INTO smart_scripts VALUES (29319, 0, 4, 6, 62, 0, 100, 0, 55000, 0, 0, 0, 88, 2931901, 2931902, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Icepaw Bear - On Gossip Select - Run Random Script');
INSERT INTO smart_scripts VALUES (29319, 0, 5, 0, 4, 0, 100, 0, 0, 0, 0, 0, 22, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Icepaw Bear - On Aggro - Set Phase');
INSERT INTO smart_scripts VALUES (29319, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 28, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Icepaw Bear - Linked - Remove all auras');
INSERT INTO smart_scripts VALUES (2931900, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 52742, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Icepaw Bear - On Script - Cast Sleep');
INSERT INTO smart_scripts VALUES (2931900, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 2, 35, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Icepaw Bear - On Script - Set Faction Friendly');
INSERT INTO smart_scripts VALUES (2931900, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 81, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Icepaw Bear - On Script - Set npc_flag Gossip');
INSERT INTO smart_scripts VALUES (2931901, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Icepaw Bear - On Script 1 - Say Line 0');
INSERT INTO smart_scripts VALUES (2931901, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Icepaw Bear - On Script 1 - Restore Faction');
INSERT INTO smart_scripts VALUES (2931901, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 28, 52742, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Icepaw Bear - On Script 1 - Remove Aura');
INSERT INTO smart_scripts VALUES (2931901, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 20, 0, 0, 0, 0, 0, 0, 'Icepaw Bear - On Script 1 - Attack Start');
INSERT INTO smart_scripts VALUES (2931902, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 33, 33006, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Icepaw Bear - On Script 2 - Quest Credit');
INSERT INTO smart_scripts VALUES (2931902, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Icepaw Bear - On Script 2 - Say Line 1');
INSERT INTO smart_scripts VALUES (2931902, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 62116, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Icepaw Bear - On Script 2 - Cast Tails up: Summon Female Icepaw Bear');
INSERT INTO smart_scripts VALUES (2931902, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Icepaw Bear - On Script 2 - Forced Despawn');
-- In Search Of Answers (12902)
UPDATE gameobject_template SET flags=0 WHERE entry=191766;
-- Betrayal (12713)
DELETE FROM conditions WHERE SourceTypeOrReferenceId=17 AND SourceEntry=51966;
INSERT INTO conditions VALUES (17, 0, 51966, 0, 0, 29, 0, 28998, 70, 0, 1, 60, 0, '', 'Requires no npc in range');
DELETE FROM creature WHERE id=28750 AND position_z>570; -- mobs which shouldnt be there
DELETE FROM creature WHERE guid=98865 AND id=28960;
UPDATE creature_template SET AIName='SmartAI' WHERE entry=28503;
DELETE FROM smart_scripts WHERE entryorguid=28503 AND source_type=0;
INSERT INTO smart_scripts VALUES (28503, 0, 0, 0, 62, 0, 100, 0, 9731, 0, 0, 0, 11, 52863, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On Gossip Select - Cast at Invoker');
REPLACE INTO spell_target_position VALUES(52863, 0, 571, 6153.85, -2013.47, 590.88, 0);
DELETE FROM creature WHERE id=28998;
INSERT INTO creature VALUES(NULL, 28998, 571, 1, 1, 0, 0, 6173.8, -2018.22, 590.879, 2.96344, 300, 0, 0, 550001, 0, 0, 0, 0, 0);
UPDATE creature_template SET unit_flags=4, faction=974, AIName='', ScriptName='npc_overlord_drakuru_betrayal' WHERE entry=28998;
REPLACE INTO creature_model_info VALUES(28126, 1, 3, 0, 0);
UPDATE creature_template SET unit_flags=0, spell1=54135, spell2=54132, spell3=54136, AIName='PassiveAI' WHERE entry=28931;
DELETE FROM spell_linked_spell WHERE spell_trigger=-52010;
INSERT INTO spell_linked_spell VALUES(-52010, -51966, 0, 'Remove Scourge Disguise');
DELETE FROM creature_text WHERE entry=28998;
INSERT INTO creature_text VALUES(28998, 0, 0, "Behold, mon! We be creatin' da greatest Scourge army ever seen!", 12, 0, 100, 0, 0, 14023, 0, 'Overlord Drakuru, Betrayal');
INSERT INTO creature_text VALUES(28998, 1, 0, "These be da first of many! We shall sweep across Zul'Drak like da wind....", 12, 0, 100, 0, 0, 14024, 0, 'Overlord Drakuru, Betrayal');
INSERT INTO creature_text VALUES(28998, 2, 0, "Disguise Failing! Avoid Scourge Contact!", 41, 0, 100, 0, 0, 0, 0, 'Overlord Drakuru, Betrayal');
INSERT INTO creature_text VALUES(28998, 3, 0, "What treachery is this?! You be payin' for this deceit with your life, mon!", 12, 0, 100, 0, 0, 14025, 0, 'Overlord Drakuru, Betrayal');
INSERT INTO creature_text VALUES(28998, 4, 0, "Your betrayal not gunna be slowin' me down none, mon.", 14, 0, 100, 0, 0, 14030, 0, 'Overlord Drakuru, Betrayal');
INSERT INTO creature_text VALUES(28998, 4, 1, "Ya done turned your back on destiny, mon. Now you gonna die!", 14, 0, 100, 0, 0, 14029, 0, 'Overlord Drakuru, Betrayal');
INSERT INTO creature_text VALUES(28998, 4, 2, "I never needed ya, mon. I can crush Zul'Drak without ya!", 14, 0, 100, 0, 0, 14031, 0, 'Overlord Drakuru, Betrayal');
INSERT INTO creature_text VALUES(28998, 4, 3, "Fool! Ya coulda been havin' great power, mon!", 14, 0, 100, 0, 0, 14026, 0, 'Overlord Drakuru, Betrayal');
INSERT INTO creature_text VALUES(28998, 4, 4, "How could dis be? Da Lich King said he be havin' great plans for you, mon...", 14, 0, 100, 0, 0, 14027, 0, 'Overlord Drakuru, Betrayal');
INSERT INTO creature_text VALUES(28998, 4, 5, "I shoulda known not to be trustin' nobody!", 14, 0, 100, 0, 0, 14028, 0, 'Overlord Drakuru, Betrayal');
INSERT INTO creature_text VALUES(28998, 5, 0, "ENOUGH!", 14, 0, 100, 0, 0, 14020, 0, 'Overlord Drakuru, Betrayal');
INSERT INTO creature_text VALUES(28998, 6, 0, "Dis foolish treachery has cost ya your destiny!", 14, 0, 100, 0, 0, 14021, 0, 'Overlord Drakuru, Betrayal');
INSERT INTO creature_text VALUES(28998, 7, 0, "Master, dis mortal scum be double-crossin' us. Dey must be made to suffer!", 12, 0, 100, 0, 0, 14022, 0, 'Overlord Drakuru, Betrayal');
-- Lich King used in Cleansing Drak'Tharon (12238) quest also
DELETE FROM conditions WHERE SourceEntry=28498 AND SourceTypeOrReferenceId=22;
INSERT INTO conditions VALUES(22, 1, 28498, 0, 0, 29, 0, 28998, 100, 0, 1, 0, 0, '', 'Only execute SAI if no npc nearby');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry IN(54209);
INSERT INTO conditions VALUES (13, 1, 54209, 0, 0, 31, 0, 3, 28960, 0, 0, 0, 0, '', '');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry IN(54236);
INSERT INTO conditions VALUES (13, 1, 54236, 0, 0, 31, 0, 3, 28998, 0, 0, 0, 0, '', '');
DELETE FROM creature_text WHERE entry=28498 AND groupid>=7;
INSERT INTO creature_text VALUES(28498, 7, 0, "You have failed me, Drakuru!", 12, 0, 100, 0, 0, 14762, 0, 'Lich King, Betrayal');
INSERT INTO creature_text VALUES(28498, 8, 0, "It is you who should suffer. Be content that your death is a quick one....", 12, 0, 100, 0, 0, 14763, 0, 'Lich King, Betrayal');
INSERT INTO creature_text VALUES(28498, 9, 0, "As for you...", 12, 0, 100, 0, 0, 14764, 0, 'Lich King, Betrayal');
INSERT INTO creature_text VALUES(28498, 10, 0, "I spare your insignificant life as a reward for this amusing betrayal. There may yet be a shred of potential in you.", 12, 0, 100, 0, 0, 14765, 0, 'Lich King, Betrayal');
INSERT INTO creature_text VALUES(28498, 11, 0, "Be warned...", 12, 0, 100, 0, 0, 14766, 0, 'Lich King, Betrayal');
INSERT INTO creature_text VALUES(28498, 12, 0, "When next we meet I shall require much more to justify your life.", 12, 0, 100, 0, 0, 14767, 0, 'Lich King, Betrayal');
-- Cleansing Drak'Tharon (12238)
UPDATE smart_scripts SET target_type=1 WHERE entryorguid=2849800 AND target_type=23;
-- Wooly Justice (12707)
UPDATE creature_template SET AIName='SmartAI', spell1=52601, spell2=52603 WHERE entry=28851;
DELETE FROM smart_scripts WHERE entryorguid=28851 AND source_type=0;
INSERT INTO smart_scripts VALUES (28851, 0, 0, 0, 8, 0, 100, 0, 52596, 0, 0, 0, 2, 35, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Enraged Mammoth - On hit by spell from medallion - Change faction to friendly');
INSERT INTO smart_scripts VALUES (28851, 0, 1, 0, 1, 0, 100, 0, 10000, 10000, 10000, 10000, 2, 1924, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Enraged Mammoth - On OOC for 10 sec - Change faction to back to normal');
UPDATE creature_template SET AIName='SmartAI' WHERE entry=28861;
DELETE FROM smart_scripts WHERE entryorguid=28861 AND source_type=0;
INSERT INTO smart_scripts VALUES (28861, 0, 0, 0, 6, 0, 100, 0, 0, 0, 0, 0, 33, 28876, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Mam''toth desciple - On death - Give credit to invoker, if Tampered');
INSERT INTO smart_scripts VALUES (28861, 0, 1, 0, 25, 0, 100, 0, 0, 0, 0, 0, 28, 52607, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Mam''toth desciple - On reset - Remove aura from trample');
DELETE FROM conditions WHERE SourceEntry=52596 AND SourceTypeOrReferenceId=17;
INSERT INTO conditions VALUES (17, 0, 52596, 0, 0, 31, 1, 3, 28851, 0, 0, 0, 0, '', 'Medallion of Mam''toth can hit only Enraged Mammoths');
DELETE FROM conditions WHERE SourceEntry=52603 AND SourceTypeOrReferenceId=13;
INSERT INTO conditions VALUES (13, 1, 52603, 0, 0, 31, 0, 3, 28861, 0, 0, 0, 0, '', 'Trample effect 1 can hit only hit Desciple of Mam''toth');
INSERT INTO conditions VALUES (13, 2, 52603, 0, 0, 31, 0, 3, 28861, 0, 0, 0, 0, '', 'Trample effect 2 can hit only hit Desciple of Mam''toth');
DELETE FROM conditions WHERE SourceEntry=28861 AND SourceTypeOrReferenceId=22;
INSERT INTO conditions VALUES (22, 1, 28861, 0, 0, 1, 1, 52607, 0, 0, 0, 0, 0, '', 'Mam''toth desciple 1st event is valid only, if has Tampered aura credit');
DELETE FROM conditions WHERE SourceEntry=52607 AND SourceTypeOrReferenceId=13;
INSERT INTO conditions VALUES (13, 1, 52607, 0, 0, 31, 0, 3, 28861, 0, 0, 0, 0, '', 'TAura effect can hit only Desciple of Mam''toth');
-- Bringing Down Heb'Jin (12662)
DELETE FROM event_scripts WHERE id=18773;
DELETE FROM creature WHERE guid=117079 AND id=28636;
INSERT INTO creature VALUES (117079, 28636, 571, 1, 1, 0, 0, 5988.72, -3878.04, 417.15, 2.35619, 300, 0, 0, 11379, 0, 0, 0, 0, 0);
DELETE FROM creature WHERE guid=117301 AND id=28639;
INSERT INTO creature VALUES (117301, 28639, 571, 1, 1, 0, 0, 5984.55, -3882.62, 417.438, 1.91986, 300, 0, 0, 11379, 0, 0, 0, 0, 0);
DELETE FROM creature_text WHERE entry=28636;
INSERT INTO creature_text VALUES(28636, 0, 0, "Who's that beatin' on my drum?", 14, 0, 100, 0, 0, 0, 0, "Heb'Jin");
INSERT INTO creature_text VALUES(28636, 1, 0, "I'm gonna come down there and kill you good, $r", 14, 0, 100, 0, 0, 0, 0, "Heb'Jin");
INSERT INTO creature_text VALUES(28636, 2, 0, "Now you gonna die!", 14, 0, 100, 0, 0, 0, 0, "Heb'Jin");
UPDATE gameobject_template SET AIName='SmartGameObjectAI' WHERE entry=190695;
DELETE FROM smart_scripts WHERE entryorguid=190695 AND source_type=1;
INSERT INTO smart_scripts VALUES(190695, 1, 0, 0, 64, 0, 100, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 10, 117301, 28639, 0, 0, 0, 0, 0, 'On Gossip Hello - Set Data');
UPDATE creature_template SET AIName='SmartAI' WHERE entry=28636;
REPLACE INTO creature_template_addon VALUES(28639, 0, 0, 50331648, 0, 0, '');
UPDATE creature_template SET speed_run=2, InhabitType=4, AIName='SmartAI' WHERE entry=28639;
DELETE FROM smart_scripts WHERE entryorguid IN(28636, 28639) AND source_type=0;
INSERT INTO smart_scripts VALUES(28636, 0, 0, 0, 0, 0, 100, 0, 5000, 5000, 15000, 15000, 11, 12734, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'IC Update - Cast Spell');
INSERT INTO smart_scripts VALUES(28636, 0, 1, 0, 0, 0, 100, 0, 2000, 2000, 13000, 13000, 11, 15548, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'IC Update - Cast Spell');
INSERT INTO smart_scripts VALUES(28636, 0, 2, 0, 0, 0, 100, 0, 9000, 9000, 10000, 10000, 11, 12555, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'IC Update - Cast Spell');
INSERT INTO smart_scripts VALUES(28636, 0, 3, 0, 38, 0, 100, 1, 1, 2, 0, 0, 1, 1, 0, 0, 0, 0, 0, 18, 150, 0, 0, 0, 0, 0, 0, 'On Data Set - Talk');
INSERT INTO smart_scripts VALUES(28636, 0, 4, 5, 38, 0, 100, 1, 1, 3, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Data Set - Talk');
INSERT INTO smart_scripts VALUES(28636, 0, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 40, 0, 0, 0, 0, 0, 0, 'On Data Set - Attack Start');
INSERT INTO smart_scripts VALUES(28636, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Data Set - Set Home Position');
INSERT INTO smart_scripts VALUES(28636, 0, 7, 0, 7, 0, 100, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 5988.72, -3878.04, 417.15, 2.35619, 'On Evade - Set Home Position');
INSERT INTO smart_scripts VALUES(28639, 0, 0, 0, 38, 0, 100, 1, 1, 1, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Data Set - Set Phase');
INSERT INTO smart_scripts VALUES(28639, 0, 1, 0, 60, 1, 100, 1, 500, 500, 0, 0, 1, 0, 0, 0, 0, 0, 0, 19, 28636, 20, 0, 0, 0, 0, 0, 'On Update - Talk');
INSERT INTO smart_scripts VALUES(28639, 0, 2, 0, 60, 1, 100, 1, 5000, 5000, 0, 0, 45, 1, 2, 0, 0, 0, 0, 19, 28636, 20, 0, 0, 0, 0, 0, 'On Update - Set Data');
INSERT INTO smart_scripts VALUES(28639, 0, 3, 0, 60, 1, 100, 1, 6000, 6000, 0, 0, 86, 46598, 0, 19, 28636, 20, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Update - Cross Cast');
INSERT INTO smart_scripts VALUES(28639, 0, 4, 0, 60, 1, 100, 1, 8000, 8000, 0, 0, 69, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 5926, -3813, 363, 0, 'On Update - Move To Pos');
INSERT INTO smart_scripts VALUES(28639, 0, 5, 0, 60, 1, 100, 1, 21000, 21000, 0, 0, 45, 1, 3, 0, 0, 0, 0, 19, 28636, 20, 0, 0, 0, 0, 0, 'On Update - Set Data');
INSERT INTO smart_scripts VALUES(28639, 0, 6, 7, 60, 1, 100, 1, 23000, 23000, 0, 0, 28, 46598, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Update - Remove Aura');
INSERT INTO smart_scripts VALUES(28639, 0, 7, 8, 61, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 40, 0, 0, 0, 0, 0, 0, 'On Update - Attack Start');
INSERT INTO smart_scripts VALUES(28639, 0, 8, 0, 61, 0, 100, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On Update - Set Home Position');
INSERT INTO smart_scripts VALUES(28639, 0, 9, 0, 7, 0, 100, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 5984.55, -3882.62, 417.438, 1.91986, 'On Evade - Set Home Position');
-- Foundation for Revenge (12668)
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=52242;
INSERT INTO conditions VALUES (13, 1, 52242, 0, 0, 31, 0, 3, 28724, 0, 0, 0, 0, '', '');
DELETE FROM smart_scripts WHERE entryorguid IN(28747, 28748) AND source_type=0;
INSERT INTO smart_scripts VALUES (28747, 0, 0, 0, 0, 0, 100, 0, 6000, 15000, 15000, 20000, 11, 54601, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Cast Serpent Form on self');
INSERT INTO smart_scripts VALUES (28747, 0, 1, 0, 4, 0, 100, 0, 0, 0, 0, 0, 11, 54594, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Cast Serpent Strike on victim');
INSERT INTO smart_scripts VALUES (28747, 0, 2, 3, 6, 0, 100, 0, 0, 0, 0, 0, 33, 28713, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Killmonster credit on kill');
INSERT INTO smart_scripts VALUES (28747, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 11, 52242, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Cast spell linked');
INSERT INTO smart_scripts VALUES (28748, 0, 1, 0, 4, 0, 100, 0, 0, 0, 0, 0, 11, 54594, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Cast Serpent Strike on victim');
INSERT INTO smart_scripts VALUES (28748, 0, 2, 3, 6, 0, 100, 0, 0, 0, 0, 0, 33, 28713, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Killmonster credit on kill');
INSERT INTO smart_scripts VALUES (28748, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 11, 52242, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Cast spell linked');
DELETE FROM conditions WHERE SourceEntry IN(28747, 28748) AND SourceTypeOrReferenceId=22;
INSERT INTO conditions VALUES(22, 3, 28747, 0, 0, 1, 1, 52222, 0, 0, 0, 0, 0, '', 'Only execute SAI if me has Aura 52222');
INSERT INTO conditions VALUES(22, 3, 28748, 0, 0, 1, 1, 52222, 0, 0, 0, 0, 0, '', 'Only execute SAI if me has Aura 52222');
-- The Champion of Anguish (12948)
REPLACE INTO smart_scripts VALUES (30022, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 15, 12948, 0, 0, 0, 0, 0, 18, 50, 0, 0, 0, 0, 0, 0, "Vladof the Butcher - On Just Died - Quest Credit 'The Champion of Anguish' (No Repeat)");
-- You Can Run, But You Can't Hide (12629)
DELETE FROM npc_spellclick_spells WHERE npc_entry=29856;
INSERT INTO npc_spellclick_spells VALUES (29856, 55364, 1, 0);
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=29856;
DELETE FROM smart_scripts WHERE entryorguid=29856 AND source_type=0;
INSERT INTO smart_scripts VALUES (29856, 0, 0, 1, 8, 0, 100, 0, 55364, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Gooey Ghoul Drool - On Spellhit 'Create Ghoul Drool Cover' - Despawn Instant");
INSERT INTO smart_scripts VALUES (29856, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 85, 55363, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Gooey Ghoul Drool - On Spellhit 'Create Ghoul Drool Cover' - Invoker Cast");
-- Zero Tolerance (12686)
UPDATE creature_template SET AIName='SmartAI' WHERE entry=28802;
DELETE FROM smart_scripts WHERE source_type=0 AND entryorguid=28802;
INSERT INTO smart_scripts VALUES (28802, 0, 0, 0, 0, 0, 100, 0, 4000, 4800, 12000, 14000, 11, 50361, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Servant of Drakuru - IC - Cast Rot Armor');
INSERT INTO smart_scripts VALUES (28802, 0, 1, 2, 29, 0, 100, 0, 0, 0, 0, 0, 67, 1, 180000, 180000, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ' Servant of Drakuru - On charm - Run Timed Event');
INSERT INTO smart_scripts VALUES (28802, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 36, 28805, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ' Servant of Drakuru - On charm - Update entry Self');
INSERT INTO smart_scripts VALUES (28802, 0, 3, 0, 59, 0, 100, 0, 1, 0, 0, 0, 36, 28802, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ' Hand of Drakuru - On Timed Event - Update entry');
UPDATE creature_model_info SET bounding_radius=1.24, combat_reach=4 WHERE modelid=26924;
UPDATE creature_template SET faction=42, AIName='' WHERE entry=28805;
DELETE FROM smart_scripts WHERE source_type=0 AND entryorguid=28805;
-- The Storm King's Vengeance (12919)
DELETE FROM smart_scripts WHERE entryorguid IN(29884, 29647) AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid IN(29647*100) AND source_type=9;
INSERT INTO smart_scripts VALUES (29647, 0, 0, 1, 62, 0, 100, 0, 9852, 2, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Gymer - On Gossip Option Select - Close Gossip');
INSERT INTO smart_scripts VALUES (29647, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 1, 7, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Gymer - On Link - Say');
INSERT INTO smart_scripts VALUES (29647, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 85, 55568, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Gymer - On Link - Invoker Cast');
INSERT INTO smart_scripts VALUES (29647, 0, 3, 0, 1, 0, 100, 0, 10000, 20000, 30000, 40000, 1, 1, 5000, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Gymer - OOC - Say Random');
INSERT INTO smart_scripts VALUES (29884, 0, 0, 1, 27, 0, 100, 1, 0, 0, 0, 0, 1, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Gymer - On Passenger boarded - Say');
INSERT INTO smart_scripts VALUES (29884, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 1, 9, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Gymer - On Link - Say');
INSERT INTO smart_scripts VALUES (29884, 0, 2, 0, 28, 0, 100, 1, 0, 0, 0, 0, 1, 10, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Gymer - On Passenger Removed - Say');
INSERT INTO smart_scripts VALUES (29884, 0, 3, 4, 54, 0, 100, 1, 0, 0, 0, 0, 11, 55461, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Gymer - On Spawn - Cast Storm Aura');
INSERT INTO smart_scripts VALUES (29884, 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, 'Gymer - On Spawn - Set React Passive');
-- The Amphitheater of Anguish: Yggdras! (12932)
-- The Amphitheater of Anguish: Yggdras! (12954)
DELETE FROM creature_queststarter WHERE quest=12954;
DELETE FROM creature_questender WHERE quest=12954;
INSERT INTO creature_queststarter VALUES (30007, 12954);
INSERT INTO creature_questender VALUES (30007, 12954);
UPDATE quest_template SET ExclusiveGroup=0 WHERE ExclusiveGroup=12932;
UPDATE quest_template SET PrevQuestId=12974 WHERE Id=12954;
DELETE FROM conditions WHERE SourceEntry IN(12932, 12954) AND SourceTypeOrReferenceId IN(19, 20);
INSERT INTO conditions VALUES(19, 0, 12932, 0, 0, 8, 0, 9977, 0, 0, 1, 0, 0, "", "The Amphitheater of Anguish: Yggdras! - Requires no The Ring of Blood: The Final Challenge");
INSERT INTO conditions VALUES(20, 0, 12932, 0, 0, 8, 0, 9977, 0, 0, 1, 0, 0, "", "The Amphitheater of Anguish: Yggdras! - Requires no The Ring of Blood: The Final Challenge");
-- Defending Your Title (13423)
-- Taking on All Challengers (12971)
UPDATE creature_template SET faction=2109 WHERE entry=30012;
-- I Sense a Disturbance (12665)
UPDATE smart_scripts SET action_param2=2 WHERE entryorguid=28401 AND action_type=11 AND action_param1=52187;
-- The Key of Warlord Zol'Maz (12712)
UPDATE creature_template SET flags_extra=0, AIName='SmartAI', ScriptName='' WHERE entry=28927;
DELETE FROM smart_scripts WHERE entryorguid IN(28927, 28902) AND source_type=0;
INSERT INTO smart_scripts VALUES (28927, 0, 0, 0, 54, 0, 100, 0, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Enchanted Tiki Dervish - On Just Summoned - Store Targetlist');
INSERT INTO smart_scripts VALUES (28927, 0, 1, 2, 60, 0, 100, 257, 2000, 2000, 0, 0, 45, 0, 1, 0, 0, 0, 0, 19, 28902, 50, 0, 0, 0, 0, 0, 'Enchanted Tiki Dervish - On Update - Set Data 0 1');
INSERT INTO smart_scripts VALUES (28927, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 100, 1, 0, 0, 0, 0, 0, 19, 28902, 50, 0, 0, 0, 0, 0, 'Enchanted Tiki Dervish - On Update - Send Target 1');
INSERT INTO smart_scripts VALUES (28927, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 3, 0, 25749, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Enchanted Tiki Dervish - On Update - Morph To Model 25749');
INSERT INTO smart_scripts VALUES (28902, 0, 0, 0, 38, 0, 100, 0, 0, 1, 0, 0, 1, 1, 7000, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Warlord Zol''Maz - On Data Set 0 1 - Say Line 1');
INSERT INTO smart_scripts VALUES (28902, 0, 1, 2, 52, 0, 100, 0, 1, 28902, 0, 0, 1, 2, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Warlord Zol''Maz - On Text 1 Over - Say Line 2');
INSERT INTO smart_scripts VALUES (28902, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Warlord Zol''Maz - On Text 1 Over - Remove Unit Flags');
INSERT INTO smart_scripts VALUES (28902, 0, 3, 4, 61, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Warlord Zol''Maz - On Text 1 Over - Start Attacking');
INSERT INTO smart_scripts VALUES (28902, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 131, 0, 0, 0, 0, 0, 0, 14, 57571, 190784, 1, 0, 0, 0, 0, 'Warlord Zol''Maz - On Text 1 Over - Set Gameobject State');
INSERT INTO smart_scripts VALUES (28902, 0, 5, 0, 6, 0, 100, 0, 0, 0, 0, 0, 131, 1, 0, 0, 0, 0, 0, 14, 57571, 190784, 1, 0, 0, 0, 0, 'Warlord Zol''Maz - On Just Died - Set Gameobject State');
INSERT INTO smart_scripts VALUES (28902, 0, 6, 0, 25, 0, 100, 0, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Warlord Zol''Maz - On Reset - Set Unit Flags');
INSERT INTO smart_scripts VALUES (28902, 0, 7, 0, 21, 0, 100, 0, 0, 0, 0, 0, 131, 1, 0, 0, 0, 0, 0, 14, 57571, 190784, 1, 0, 0, 0, 0, 'Warlord Zol''Maz - On Reached Home - Set Gameobject State');
INSERT INTO smart_scripts VALUES (28902, 0, 10, 0, 9, 0, 100, 0, 8, 25, 0, 0, 11, 32323, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Warlord Zol''Maz - Within Range 8-25yd - Cast Charge');
INSERT INTO smart_scripts VALUES (28902, 0, 11, 12, 2, 0, 100, 1, 0, 20, 0, 0, 11, 8599, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Warlord Zol''Maz - Between 0-20% Health - Cast Enrage');
INSERT INTO smart_scripts VALUES (28902, 0, 12, 0, 61, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Warlord Zol''Maz - Between 0-20% Health - Say Line 0');
INSERT INTO smart_scripts VALUES (28902, 0, 13, 0, 0, 0, 100, 0, 12000, 12000, 20000, 20000, 11, 54670, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Warlord Zol''Maz - In Combat - Cast Decapitate');
INSERT INTO smart_scripts VALUES (28902, 0, 14, 0, 2, 0, 100, 1, 0, 35, 0, 0, 11, 40546, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Warlord Zol''Maz - Between Health 0-35% - Cast Retaliation');