reorganized sql

This commit is contained in:
Yehonal
2016-07-10 17:15:46 +02:00
parent 97c3f36d2b
commit ac2d30abe1
234 changed files with 39 additions and 1 deletions

View File

@@ -0,0 +1,359 @@
-- GENERIC item retrieving
-- Druid Signal (31763)
DELETE FROM conditions WHERE SourceTypeOrReferenceId=15 AND SourceGroup=8523 AND SourceEntry=1;
INSERT INTO conditions VALUES(15, 8523, 1, 0, 0, 14, 0, 10910, 0, 0, 1, 0, 0, '', 'Requires first quest with druid signal');
INSERT INTO conditions VALUES(15, 8523, 1, 0, 0, 2, 0, 31763, 1, 0, 1, 0, 0, '', 'Must not have item 31763');
INSERT INTO conditions VALUES(15, 8523, 1, 0, 0, 8, 0, 10912, 0, 0, 1, 0, 0, '', 'Requires quest 10912 to not be rewarded');
DELETE FROM gossip_menu_option WHERE menu_id=8523 AND id=1;
INSERT INTO gossip_menu_option VALUES(8523, 1, 0, "I've lost my Druid Signal.", 1, 1, 0, 0, 0, 0, "");
DELETE FROM smart_scripts WHERE entryorguid=22127 AND source_type=0 AND id IN(3, 4);
INSERT INTO smart_scripts VALUES (22127, 0, 3, 4, 62, 0, 100, 0, 8523, 1, 0, 0, 56, 31763, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On Gossip Select - Add item");
INSERT INTO smart_scripts VALUES (22127, 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, "On Gossip Select - Close Gossip");
-- Brann's Communicator (40971)
UPDATE creature_template SET npcflag = npcflag | 1, AIName="SmartAI", gossip_menu_id=9854 WHERE entry=29937;
UPDATE creature_template SET npcflag = npcflag | 1, AIName="SmartAI" WHERE entry=29650;
DELETE FROM conditions WHERE SourceTypeOrReferenceId=15 AND SourceGroup IN(9854, 9929);
INSERT INTO conditions VALUES(15, 9854, 1, 0, 0, 8, 0, 12910, 0, 0, 0, 0, 0, '', 'Must complete 12910 before this option is visible');
INSERT INTO conditions VALUES(15, 9854, 1, 0, 0, 2, 0, 40971, 1, 0, 1, 0, 0, '', 'Must not have item 40971');
INSERT INTO conditions VALUES(15, 9929, 1, 0, 0, 8, 0, 12855, 0, 0, 0, 0, 0, '', 'Must complete 12855 before this option is visible');
INSERT INTO conditions VALUES(15, 9929, 1, 0, 0, 2, 0, 40971, 1, 0, 1, 0, 0, '', 'Must not have item 40971');
DELETE FROM gossip_menu_option WHERE menu_id IN(9854, 9929);
INSERT INTO gossip_menu_option VALUES(9854, 1, 0, "I've lost my Brann\'s Communicator", 1, 1, 0, 0, 0, 0, "");
INSERT INTO gossip_menu_option VALUES(9929, 1, 0, "I've lost my Brann\'s Communicator", 1, 1, 0, 0, 0, 0, "");
DELETE FROM smart_scripts WHERE entryorguid IN(29937, 29650) AND source_type=0;
INSERT INTO smart_scripts VALUES (29937, 0, 0, 1, 62, 0, 100, 0, 9854, 1, 0, 0, 56, 40971, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On gossip select add item");
INSERT INTO smart_scripts VALUES (29937, 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 linked close gossip");
INSERT INTO smart_scripts VALUES (29650, 0, 0, 1, 62, 0, 100, 0, 9929, 1, 0, 0, 56, 40971, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On gossip select add item");
INSERT INTO smart_scripts VALUES (29650, 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 linked close gossip");
-- Winterhoof Emblem (33340)
UPDATE creature_template SET npcflag = npcflag | 1, AIName="SmartAI" WHERE entry=24129;
DELETE FROM conditions WHERE SourceTypeOrReferenceId=15 AND SourceGroup IN(8898);
INSERT INTO conditions VALUES
(15, 8898, 0, 0, 0, 8, 0, 11256, 0, 0, 0, 0, 0, '', 'Gossip Option requires Skorn Must Fall Rewarded'),
(15, 8898, 0, 0, 0, 8, 0, 11258, 0, 0, 1, 0, 0, '', 'Gossip Option requires Burn, Skorn, Burn not Rewarded'),
(15, 8898, 0, 0, 0, 2, 0, 33340, 1, 0, 1, 0, 0, '', 'Gossip Option requires Player does not Winterhoof Emblem'),
(15, 8898, 0, 0, 1, 8, 0, 11256, 0, 0, 0, 0, 0, '', 'Gossip Option requires Skorn Must Fall Rewarded'),
(15, 8898, 0, 0, 1, 8, 0, 11257, 0, 0, 1, 0, 0, '', 'Gossip Option requires Gruesome but Necessary not Rewarded'),
(15, 8898, 0, 0, 1, 2, 0, 33340, 1, 0, 1, 0, 0, '', 'Gossip Option requires Player does not Winterhoof Emblem'),
(15, 8898, 0, 0, 2, 8, 0, 11256, 0, 0, 0, 0, 0, '', 'Gossip Option requires Skorn Must Fall Rewarded'),
(15, 8898, 0, 0, 2, 8, 0, 11259, 0, 0, 1, 0, 0, '', 'Gossip Option requires Towers of Certain Doom not Rewarded'),
(15, 8898, 0, 0, 2, 2, 0, 33340, 1, 0, 1, 0, 0, '', 'Gossip Option requires Player does not Winterhoof Emblem'),
(15, 8898, 0, 0, 3, 8, 0, 11256, 0, 0, 0, 0, 0, '', 'Gossip Option requires Skorn Must Fall Rewarded'),
(15, 8898, 0, 0, 3, 8, 0, 11261, 0, 0, 1, 0, 0, '', 'Gossip Option requires The Conqueror of Skorn! not Rewarded'),
(15, 8898, 0, 0, 3, 2, 0, 33340, 1, 0, 1, 0, 0, '', 'Gossip Option requires Player does not Winterhoof Emblem');
DELETE FROM gossip_menu_option WHERE menu_id IN(8898);
INSERT INTO gossip_menu_option VALUES(8898, 0, 0, "Chief Ashtotem, I have misplaced the token that you gave me.", 1, 1, 0, 0, 0, 0, "");
DELETE FROM smart_scripts WHERE entryorguid=24129 AND source_type=0;
INSERT INTO smart_scripts VALUES (24129, 0, 0, 1, 62, 0, 100, 0, 8898, 0, 0, 0, 56, 33340, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On gossip select add item");
INSERT INTO smart_scripts VALUES (24129, 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 linked close gossip");
-- Westguard Command Insignia (33311)
UPDATE creature_template SET gossip_menu_id=8852, npcflag=npcflag|1, AIName="SmartAI" WHERE entry=23749;
DELETE FROM gossip_menu WHERE entry=8852;
INSERT INTO gossip_menu VALUES (8852, 11494); -- 23749
DELETE FROM conditions WHERE SourceTypeOrReferenceId=15 AND SourceGroup IN(8852);
INSERT INTO conditions VALUES
(15, 8852, 0, 0, 0, 8, 0, 11248, 0, 0, 0, 0, 0, '', 'Gossip Option requires Operation: Skornful Wrath Rewarded'),
(15, 8852, 0, 0, 0, 8, 0, 11247, 0, 0, 1, 0, 0, '', 'Gossip Option requires Burn, Skorn, Burn not Rewarded'),
(15, 8852, 0, 0, 0, 2, 0, 33311, 1, 0, 1, 0, 0, '', 'Gossip Option requires Player does not have Westguard Command Insignia'),
(15, 8852, 0, 0, 1, 8, 0, 11248, 0, 0, 0, 0, 0, '', 'Gossip Option requires Operation: Skornful Wrath Rewarded'),
(15, 8852, 0, 0, 1, 8, 0, 11246, 0, 0, 1, 0, 0, '', 'Gossip Option requires Gruesome but Necessary not Rewarded'),
(15, 8852, 0, 0, 1, 2, 0, 33311, 1, 0, 1, 0, 0, '', 'Gossip Option requires Player does not Have Westguard Command Insignia'),
(15, 8852, 0, 0, 2, 8, 0, 11248, 0, 0, 0, 0, 0, '', 'Gossip Option requires Operation: Skornful Wrath Rewarded'),
(15, 8852, 0, 0, 2, 8, 0, 11245, 0, 0, 1, 0, 0, '', 'Gossip Option requires Towers of Certain Doom not Rewarded'),
(15, 8852, 0, 0, 2, 2, 0, 33311, 1, 0, 1, 0, 0, '', 'Gossip Option requires Player does not have Westguard Command Insignia'),
(15, 8852, 0, 0, 3, 8, 0, 11248, 0, 0, 0, 0, 0, '', 'Gossip Option requires Operation: Skornful Wrath'),
(15, 8852, 0, 0, 3, 8, 0, 11250, 0, 0, 1, 0, 0, '', 'Gossip Option requires All Hail the Conqueror of Skorn! not Rewarded'),
(15, 8852, 0, 0, 3, 2, 0, 33311, 1, 0, 1, 0, 0, '', 'Gossip Option requires Player does not have Westguard Command Insignia');
DELETE FROM gossip_menu_option WHERE menu_id=8852;
INSERT INTO gossip_menu_option VALUES(8852, 0, 0, "Captain, I've somehow lost my command insignia.", 1, 1, 0, 0, 0, 0, "");
DELETE FROM smart_scripts WHERE entryorguid=23749 AND source_type=0;
INSERT INTO smart_scripts VALUES (23749, 0, 0, 1, 62, 0, 100, 0, 8852, 0, 0, 0, 56, 33311, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On gossip select add item");
INSERT INTO smart_scripts VALUES (23749, 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 linked close gossip");
-- Goblin Transponder (9173)
DELETE FROM gossip_menu_option WHERE menu_id=1628;
INSERT INTO gossip_menu_option VALUES(1628, 0, 0, "Scooty, i've lost my goblin transponder!", 1, 1, 0, 0, 0, 0, "");
DELETE FROM conditions WHERE SourceTypeOrReferenceId=15 AND SourceGroup=1628;
INSERT INTO conditions VALUES(15, 1628, 0, 0, 0, 8, 0, 2843, 0, 0, 0, 0, 0, '', 'Must complete 2843 before this option is visible');
INSERT INTO conditions VALUES(15, 1628, 0, 0, 0, 2, 0, 9173, 1, 0, 1, 0, 0, '', 'Must not have item 9173');
DELETE FROM smart_scripts WHERE entryorguid=7853 AND source_type=0 AND id IN(1, 2);
INSERT INTO smart_scripts VALUES (7853, 0, 1, 2, 62, 0, 100, 0, 1628, 0, 0, 0, 11, 13325, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On Gossip Select - Cast Spell Summon Spectral Essence");
INSERT INTO smart_scripts VALUES (7853, 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 Gossipe Select - Close Gossip");
-- Spectrecles (30719)
-- Spectrecles (30721)
UPDATE creature_template SET npcflag = npcflag | 1, gossip_menu_id=8383, AIName="SmartAI" WHERE entry=21772;
UPDATE creature_template SET npcflag = npcflag | 1, AIName="SmartAI" WHERE entry=21774;
DELETE FROM gossip_menu_option WHERE menu_id IN(8392, 8383);
INSERT INTO gossip_menu_option VALUES(8392, 0, 0, "Zorus, I need a new pair of goggles.", 1, 1, 0, 0, 0, 0, "");
INSERT INTO gossip_menu_option VALUES(8392, 1, 0, "Zorus, I need a new pair of goggles.", 1, 1, 0, 0, 0, 0, "");
INSERT INTO gossip_menu_option VALUES(8383, 0, 0, "Hildagard, I need a new pair of goggles.", 1, 1, 0, 0, 0, 0, "");
INSERT INTO gossip_menu_option VALUES(8383, 1, 0, "Hildagard, I need a new pair of goggles.", 1, 1, 0, 0, 0, 0, "");
DELETE FROM smart_scripts WHERE entryorguid IN(21772, 21774) AND source_type=0;
INSERT INTO smart_scripts VALUES (21772, 0, 0, 2, 62, 0, 100, 0, 8383, 0, 0, 0, 11, 37602, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On gossip select - Cast Spell");
INSERT INTO smart_scripts VALUES (21772, 0, 1, 2, 62, 0, 100, 0, 8383, 1, 0, 0, 11, 37700, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On gossip select - Cast Spell");
INSERT INTO smart_scripts VALUES (21772, 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 linked close gossip");
INSERT INTO smart_scripts VALUES (21774, 0, 0, 2, 62, 0, 100, 0, 8392, 0, 0, 0, 11, 37602, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On gossip select - Cast Spell");
INSERT INTO smart_scripts VALUES (21774, 0, 1, 2, 62, 0, 100, 0, 8392, 1, 0, 0, 11, 37700, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On gossip select - Cast Spell");
INSERT INTO smart_scripts VALUES (21774, 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 linked close gossip");
DELETE FROM conditions WHERE SourceTypeOrReferenceId=15 AND SourceGroup IN(8383, 8392);
INSERT INTO conditions VALUES(15, 8383, 0, 0, 0, 9, 0, 10625, 0, 0, 0, 0, 0, '', 'Requires quest Spectrecles');
INSERT INTO conditions VALUES(15, 8383, 1, 0, 0, 14, 0, 10633, 0, 0, 1, 0, 0, '', 'Requires quest status Teron Gorefiend - Lore and Legend');
INSERT INTO conditions VALUES(15, 8392, 0, 0, 0, 9, 0, 10643, 0, 0, 0, 0, 0, '', 'Requires quest Harbingers of Shadowmoon');
INSERT INTO conditions VALUES(15, 8392, 1, 0, 0, 14, 0, 10644, 0, 0, 1, 0, 0, '', 'Requires quest status Teron Gorefiend - Lore and Legend');
-- Band of the Eternal Champion (29301)
-- Band of the Eternal Sage (29305)
-- Band of the Eternal Restorer (29309)
-- Band of the Eternal Defender (29297)
UPDATE creature_template SET npcflag=npcflag|1, gossip_menu_id=8234, AIName="SmartAI" WHERE entry=19935;
DELETE FROM gossip_menu_option WHERE menu_id=8234;
INSERT INTO gossip_menu_option VALUES(8234, 0, 0, "I've lost my Band of the Eternal Champion.", 1, 1, 0, 0, 0, 0, "");
INSERT INTO gossip_menu_option VALUES(8234, 1, 0, "I've lost my Band of the Eternal Sage.", 1, 1, 0, 0, 0, 0, "");
INSERT INTO gossip_menu_option VALUES(8234, 2, 0, "I've lost my Band of the Eternal Restorer.", 1, 1, 0, 0, 0, 0, "");
INSERT INTO gossip_menu_option VALUES(8234, 3, 0, "I've lost my Band of the Eternal Defender.", 1, 1, 0, 0, 0, 0, "");
DELETE FROM smart_scripts WHERE entryorguid=19935 AND source_type=0;
INSERT INTO smart_scripts VALUES (19935, 0, 0, 4, 62, 0, 100, 0, 8234, 0, 0, 0, 11, 41529, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Soridormi - On Gossip Select - Cast Create Band of the Eternal Champion");
INSERT INTO smart_scripts VALUES (19935, 0, 1, 4, 62, 0, 100, 0, 8234, 1, 0, 0, 11, 41532, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Soridormi - On Gossip Select - Cast Create Band of the Eternal Sage");
INSERT INTO smart_scripts VALUES (19935, 0, 2, 4, 62, 0, 100, 0, 8234, 2, 0, 0, 11, 41531, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Soridormi - On Gossip Select - Cast Create Band of the Eternal Restorer");
INSERT INTO smart_scripts VALUES (19935, 0, 3, 4, 62, 0, 100, 0, 8234, 3, 0, 0, 11, 41530, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Soridormi - On Gossip Select - Cast Create Band of the Eternal Champion");
INSERT INTO smart_scripts VALUES (19935, 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, "Soridormi - On Gossip Select - Close Gossip");
DELETE FROM conditions WHERE SourceTypeOrReferenceId=15 AND SourceGroup=8234;
INSERT INTO conditions VALUES(15, 8234, 0, 0, 0, 9, 0, 10474, 0, 0, 0, 0, 0, '', 'Requires quest Champion''s Covenant');
INSERT INTO conditions VALUES(15, 8234, 0, 0, 0, 2, 0, 29301, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 8234, 0, 0, 0, 2, 0, 29305, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 8234, 0, 0, 0, 2, 0, 29309, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 8234, 0, 0, 0, 2, 0, 29297, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 8234, 1, 0, 0, 9, 0, 10472, 0, 0, 0, 0, 0, '', 'Requires quest Sage''s Covenant');
INSERT INTO conditions VALUES(15, 8234, 1, 0, 0, 2, 0, 29301, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 8234, 1, 0, 0, 2, 0, 29305, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 8234, 1, 0, 0, 2, 0, 29309, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 8234, 1, 0, 0, 2, 0, 29297, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 8234, 2, 0, 0, 9, 0, 10473, 0, 0, 0, 0, 0, '', 'Requires quest Restorer''s Covenant');
INSERT INTO conditions VALUES(15, 8234, 2, 0, 0, 2, 0, 29301, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 8234, 2, 0, 0, 2, 0, 29305, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 8234, 2, 0, 0, 2, 0, 29309, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 8234, 2, 0, 0, 2, 0, 29297, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 8234, 3, 0, 0, 9, 0, 10475, 0, 0, 0, 0, 0, '', 'Requires quest Defender''s Covenant');
INSERT INTO conditions VALUES(15, 8234, 3, 0, 0, 2, 0, 29301, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 8234, 3, 0, 0, 2, 0, 29305, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 8234, 3, 0, 0, 2, 0, 29309, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 8234, 3, 0, 0, 2, 0, 29297, 1, 1, 1, 0, 0, '', 'Requires no Band item');
-- Green Trophy Tabard of the Illidari (31404)
-- Purple Trophy Tabard of the Illidari (31405)
DELETE FROM conditions WHERE SourceTypeOrReferenceId=15 AND SourceGroup=9832 AND ConditionTypeOrReference=2 AND ConditionValue1=31408;
-- ICC Rings
DELETE FROM npc_text WHERE ID=15299 AND (text0_0 LIKE '%am deeply disappointed%' OR text0_0 LIKE '%MISSING TEXT%');
INSERT INTO npc_text VALUES (15299, 'Lost?$b$bI am deeply disappointed, $n.$b$bThat ring was one of a kind, crafted out of the remnants of the armor of our fallen heroes and the purified metal from our enemy''s blades.$b$bLet''s not allow this to happen again.', '', 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, 0, 0, 0, 0, 12340);
DELETE FROM gossip_menu WHERE entry=10995 AND text_id=15295;
INSERT INTO gossip_menu VALUES(10995, 15295);
-- wisdom
REPLACE INTO gossip_menu_option VALUES (10995, 0, 0, 'It won''t.', 1, 1, 0, 0, 0, 10000000, 'A contribution is required.');
REPLACE INTO gossip_menu_option VALUES (10995, 1, 0, 'It won''t.', 1, 1, 0, 0, 0, 10000000, 'A contribution is required.');
REPLACE INTO gossip_menu_option VALUES (10995, 2, 0, 'It won''t.', 1, 1, 0, 0, 0, 10000000, 'A contribution is required.');
REPLACE INTO gossip_menu_option VALUES (10995, 3, 0, 'It won''t.', 1, 1, 0, 0, 0, 10000000, 'A contribution is required.');
-- vengeance
REPLACE INTO gossip_menu_option VALUES (10995, 4, 0, 'It won''t.', 1, 1, 0, 0, 0, 10000000, 'A contribution is required.');
REPLACE INTO gossip_menu_option VALUES (10995, 5, 0, 'It won''t.', 1, 1, 0, 0, 0, 10000000, 'A contribution is required.');
REPLACE INTO gossip_menu_option VALUES (10995, 6, 0, 'It won''t.', 1, 1, 0, 0, 0, 10000000, 'A contribution is required.');
REPLACE INTO gossip_menu_option VALUES (10995, 7, 0, 'It won''t.', 1, 1, 0, 0, 0, 10000000, 'A contribution is required.');
-- courage
REPLACE INTO gossip_menu_option VALUES (10995, 8, 0, 'It won''t.', 1, 1, 0, 0, 0, 10000000, 'A contribution is required.');
REPLACE INTO gossip_menu_option VALUES (10995, 9, 0, 'It won''t.', 1, 1, 0, 0, 0, 10000000, 'A contribution is required.');
REPLACE INTO gossip_menu_option VALUES (10995, 10, 0, 'It won''t.', 1, 1, 0, 0, 0, 10000000, 'A contribution is required.');
REPLACE INTO gossip_menu_option VALUES (10995, 11, 0, 'It won''t.', 1, 1, 0, 0, 0, 10000000, 'A contribution is required.');
-- destruction
REPLACE INTO gossip_menu_option VALUES (10995, 12, 0, 'It won''t.', 1, 1, 0, 0, 0, 10000000, 'A contribution is required.');
REPLACE INTO gossip_menu_option VALUES (10995, 13, 0, 'It won''t.', 1, 1, 0, 0, 0, 10000000, 'A contribution is required.');
REPLACE INTO gossip_menu_option VALUES (10995, 14, 0, 'It won''t.', 1, 1, 0, 0, 0, 10000000, 'A contribution is required.');
REPLACE INTO gossip_menu_option VALUES (10995, 15, 0, 'It won''t.', 1, 1, 0, 0, 0, 10000000, 'A contribution is required.');
-- might
REPLACE INTO gossip_menu_option VALUES (10995, 16, 0, 'It won''t.', 1, 1, 0, 0, 0, 10000000, 'A contribution is required.');
REPLACE INTO gossip_menu_option VALUES (10995, 17, 0, 'It won''t.', 1, 1, 0, 0, 0, 10000000, 'A contribution is required.');
REPLACE INTO gossip_menu_option VALUES (10995, 18, 0, 'It won''t.', 1, 1, 0, 0, 0, 10000000, 'A contribution is required.');
REPLACE INTO gossip_menu_option VALUES (10995, 19, 0, 'It won''t.', 1, 1, 0, 0, 0, 10000000, 'A contribution is required.');
REPLACE INTO gossip_menu_option VALUES (10996, 6, 0, 'I appear to have lost my ring.', 1, 1, 10995, 0, 0, 0, ''); -- First of all
UPDATE creature_template SET unit_flags=unit_flags|0x300, gossip_menu_id=10996, npcflag=4227, AIName='SmartAI', ScriptName='' WHERE entry=38316;
DELETE FROM smart_scripts WHERE entryorguid=38316 AND source_type=0;
INSERT INTO smart_scripts VALUES (38316, 0, 0, 20, 62, 0, 100, 0, 10995, 0, 0, 0, 56, 50378, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Ormus - On Gossip Select - Add Item");
INSERT INTO smart_scripts VALUES (38316, 0, 1, 20, 62, 0, 100, 0, 10995, 1, 0, 0, 56, 50386, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Ormus - On Gossip Select - Add Item");
INSERT INTO smart_scripts VALUES (38316, 0, 2, 20, 62, 0, 100, 0, 10995, 2, 0, 0, 56, 50399, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Ormus - On Gossip Select - Add Item");
INSERT INTO smart_scripts VALUES (38316, 0, 3, 20, 62, 0, 100, 0, 10995, 3, 0, 0, 56, 50400, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Ormus - On Gossip Select - Add Item");
INSERT INTO smart_scripts VALUES (38316, 0, 4, 20, 62, 0, 100, 0, 10995, 4, 0, 0, 56, 50376, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Ormus - On Gossip Select - Add Item");
INSERT INTO smart_scripts VALUES (38316, 0, 5, 20, 62, 0, 100, 0, 10995, 5, 0, 0, 56, 50387, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Ormus - On Gossip Select - Add Item");
INSERT INTO smart_scripts VALUES (38316, 0, 6, 20, 62, 0, 100, 0, 10995, 6, 0, 0, 56, 50401, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Ormus - On Gossip Select - Add Item");
INSERT INTO smart_scripts VALUES (38316, 0, 7, 20, 62, 0, 100, 0, 10995, 7, 0, 0, 56, 50402, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Ormus - On Gossip Select - Add Item");
INSERT INTO smart_scripts VALUES (38316, 0, 8, 20, 62, 0, 100, 0, 10995, 8, 0, 0, 56, 50375, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Ormus - On Gossip Select - Add Item");
INSERT INTO smart_scripts VALUES (38316, 0, 9, 20, 62, 0, 100, 0, 10995, 9, 0, 0, 56, 50388, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Ormus - On Gossip Select - Add Item");
INSERT INTO smart_scripts VALUES (38316, 0, 10, 20, 62, 0, 100, 0, 10995, 10, 0, 0, 56, 50403, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Ormus - On Gossip Select - Add Item");
INSERT INTO smart_scripts VALUES (38316, 0, 11, 20, 62, 0, 100, 0, 10995, 11, 0, 0, 56, 50404, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Ormus - On Gossip Select - Add Item");
INSERT INTO smart_scripts VALUES (38316, 0, 12, 20, 62, 0, 100, 0, 10995, 12, 0, 0, 56, 50377, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Ormus - On Gossip Select - Add Item");
INSERT INTO smart_scripts VALUES (38316, 0, 13, 20, 62, 0, 100, 0, 10995, 13, 0, 0, 56, 50384, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Ormus - On Gossip Select - Add Item");
INSERT INTO smart_scripts VALUES (38316, 0, 14, 20, 62, 0, 100, 0, 10995, 14, 0, 0, 56, 50397, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Ormus - On Gossip Select - Add Item");
INSERT INTO smart_scripts VALUES (38316, 0, 15, 20, 62, 0, 100, 0, 10995, 15, 0, 0, 56, 50398, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Ormus - On Gossip Select - Add Item");
INSERT INTO smart_scripts VALUES (38316, 0, 16, 20, 62, 0, 100, 0, 10995, 16, 0, 0, 56, 52569, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Ormus - On Gossip Select - Add Item");
INSERT INTO smart_scripts VALUES (38316, 0, 17, 20, 62, 0, 100, 0, 10995, 17, 0, 0, 56, 52570, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Ormus - On Gossip Select - Add Item");
INSERT INTO smart_scripts VALUES (38316, 0, 18, 20, 62, 0, 100, 0, 10995, 18, 0, 0, 56, 52571, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Ormus - On Gossip Select - Add Item");
INSERT INTO smart_scripts VALUES (38316, 0, 19, 20, 62, 0, 100, 0, 10995, 19, 0, 0, 56, 52572, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Ormus - On Gossip Select - Add Item");
INSERT INTO smart_scripts VALUES (38316, 0, 20, 0, 61, 0, 100, 0, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Ormus - On Gossip Select - Close Gossip");
DELETE FROM conditions WHERE SourceTypeOrReferenceId=15 AND SourceGroup=10996;
INSERT INTO conditions VALUES(15, 10996, 6, 0, 0, 8, 0, 24815, 0, 0, 0, 0, 0, '', 'Requires quest Choose Your Path');
-- Ashen Band of Wisdom
INSERT INTO conditions VALUES(15, 10996, 6, 0, 0, 2, 0, 50378, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 10996, 6, 0, 0, 2, 0, 50386, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 10996, 6, 0, 0, 2, 0, 50399, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 10996, 6, 0, 0, 2, 0, 50400, 1, 1, 1, 0, 0, '', 'Requires no Band item');
-- Ashen Band of Vengeance
INSERT INTO conditions VALUES(15, 10996, 6, 0, 0, 2, 0, 50376, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 10996, 6, 0, 0, 2, 0, 50387, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 10996, 6, 0, 0, 2, 0, 50401, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 10996, 6, 0, 0, 2, 0, 50402, 1, 1, 1, 0, 0, '', 'Requires no Band item');
-- Ashen Band of Courage
INSERT INTO conditions VALUES(15, 10996, 6, 0, 0, 2, 0, 50375, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 10996, 6, 0, 0, 2, 0, 50388, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 10996, 6, 0, 0, 2, 0, 50403, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 10996, 6, 0, 0, 2, 0, 50404, 1, 1, 1, 0, 0, '', 'Requires no Band item');
-- Ashen Band of Destruction
INSERT INTO conditions VALUES(15, 10996, 6, 0, 0, 2, 0, 50377, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 10996, 6, 0, 0, 2, 0, 50384, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 10996, 6, 0, 0, 2, 0, 50397, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 10996, 6, 0, 0, 2, 0, 50398, 1, 1, 1, 0, 0, '', 'Requires no Band item');
-- Ashen Band of Might
INSERT INTO conditions VALUES(15, 10996, 6, 0, 0, 2, 0, 52569, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 10996, 6, 0, 0, 2, 0, 52570, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 10996, 6, 0, 0, 2, 0, 52571, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 10996, 6, 0, 0, 2, 0, 52572, 1, 1, 1, 0, 0, '', 'Requires no Band item');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=15 AND SourceGroup=10995;
INSERT INTO conditions VALUES(15, 10995, 0, 0, 0, 8, 0, 24809, 0, 0, 0, 0, 0, '', 'Requires quest Wisdom Flag');
INSERT INTO conditions VALUES(15, 10995, 0, 0, 0, 50, 0, 24825, 0, 0, 0, 0, 0, '', 'Requires satisfy exclusive group Wisdom 1');
INSERT INTO conditions VALUES(15, 10995, 0, 0, 0, 2, 0, 50378, 1, 1, 1, 0, 0, '', 'Requires no item Wisdom 0');
INSERT INTO conditions VALUES(15, 10995, 1, 0, 0, 8, 0, 24809, 0, 0, 0, 0, 0, '', 'Requires quest Wisdom Flag');
INSERT INTO conditions VALUES(15, 10995, 1, 0, 0, 50, 0, 24825, 0, 0, 1, 0, 0, '', 'Requires not satisfy exclusive group Wisdom 1');
INSERT INTO conditions VALUES(15, 10995, 1, 0, 0, 50, 0, 24830, 0, 0, 0, 0, 0, '', 'Requires satisfy exclusive group Wisdom 2');
INSERT INTO conditions VALUES(15, 10995, 1, 0, 0, 2, 0, 50386, 1, 1, 1, 0, 0, '', 'Requires no item Wisdom 1');
INSERT INTO conditions VALUES(15, 10995, 2, 0, 0, 8, 0, 24809, 0, 0, 0, 0, 0, '', 'Requires quest Wisdom Flag');
INSERT INTO conditions VALUES(15, 10995, 2, 0, 0, 50, 0, 24825, 0, 0, 1, 0, 0, '', 'Requires not satisfy exclusive group Wisdom 1');
INSERT INTO conditions VALUES(15, 10995, 2, 0, 0, 50, 0, 24830, 0, 0, 1, 0, 0, '', 'Requires not satisfy exclusive group Wisdom 2');
INSERT INTO conditions VALUES(15, 10995, 2, 0, 0, 50, 0, 24831, 0, 0, 0, 0, 0, '', 'Requires satisfy exclusive group Wisdom 3');
INSERT INTO conditions VALUES(15, 10995, 2, 0, 0, 2, 0, 50399, 1, 1, 1, 0, 0, '', 'Requires no item Wisdom 2');
INSERT INTO conditions VALUES(15, 10995, 3, 0, 0, 8, 0, 24809, 0, 0, 0, 0, 0, '', 'Requires quest Wisdom Flag');
INSERT INTO conditions VALUES(15, 10995, 3, 0, 0, 50, 0, 24825, 0, 0, 1, 0, 0, '', 'Requires not satisfy exclusive group Wisdom 1');
INSERT INTO conditions VALUES(15, 10995, 3, 0, 0, 50, 0, 24830, 0, 0, 1, 0, 0, '', 'Requires not satisfy exclusive group Wisdom 2');
INSERT INTO conditions VALUES(15, 10995, 3, 0, 0, 50, 0, 24831, 0, 0, 1, 0, 0, '', 'Requires not satisfy exclusive group Wisdom 3');
INSERT INTO conditions VALUES(15, 10995, 3, 0, 0, 2, 0, 50400, 1, 1, 1, 0, 0, '', 'Requires no item Wisdom 3');
INSERT INTO conditions VALUES(15, 10995, 4, 0, 0, 8, 0, 24810, 0, 0, 0, 0, 0, '', 'Requires quest vengeance Flag');
INSERT INTO conditions VALUES(15, 10995, 4, 0, 0, 50, 0, 24826, 0, 0, 0, 0, 0, '', 'Requires satisfy exclusive group vengeance 1');
INSERT INTO conditions VALUES(15, 10995, 4, 0, 0, 2, 0, 50376, 1, 1, 1, 0, 0, '', 'Requires no item vengeance 0');
INSERT INTO conditions VALUES(15, 10995, 5, 0, 0, 8, 0, 24810, 0, 0, 0, 0, 0, '', 'Requires quest vengeance Flag');
INSERT INTO conditions VALUES(15, 10995, 5, 0, 0, 50, 0, 24826, 0, 0, 1, 0, 0, '', 'Requires not satisfy exclusive group vengeance 1');
INSERT INTO conditions VALUES(15, 10995, 5, 0, 0, 50, 0, 24832, 0, 0, 0, 0, 0, '', 'Requires satisfy exclusive group vengeance 2');
INSERT INTO conditions VALUES(15, 10995, 5, 0, 0, 2, 0, 50387, 1, 1, 1, 0, 0, '', 'Requires no item vengeance 1');
INSERT INTO conditions VALUES(15, 10995, 6, 0, 0, 8, 0, 24810, 0, 0, 0, 0, 0, '', 'Requires quest vengeance Flag');
INSERT INTO conditions VALUES(15, 10995, 6, 0, 0, 50, 0, 24826, 0, 0, 1, 0, 0, '', 'Requires not satisfy exclusive group vengeance 1');
INSERT INTO conditions VALUES(15, 10995, 6, 0, 0, 50, 0, 24832, 0, 0, 1, 0, 0, '', 'Requires not satisfy exclusive group vengeance 2');
INSERT INTO conditions VALUES(15, 10995, 6, 0, 0, 50, 0, 24833, 0, 0, 0, 0, 0, '', 'Requires satisfy exclusive group vengeance 3');
INSERT INTO conditions VALUES(15, 10995, 6, 0, 0, 2, 0, 50401, 1, 1, 1, 0, 0, '', 'Requires no item vengeance 2');
INSERT INTO conditions VALUES(15, 10995, 7, 0, 0, 8, 0, 24810, 0, 0, 0, 0, 0, '', 'Requires quest vengeance Flag');
INSERT INTO conditions VALUES(15, 10995, 7, 0, 0, 50, 0, 24826, 0, 0, 1, 0, 0, '', 'Requires not satisfy exclusive group vengeance 1');
INSERT INTO conditions VALUES(15, 10995, 7, 0, 0, 50, 0, 24832, 0, 0, 1, 0, 0, '', 'Requires not satisfy exclusive group vengeance 2');
INSERT INTO conditions VALUES(15, 10995, 7, 0, 0, 50, 0, 24833, 0, 0, 1, 0, 0, '', 'Requires not satisfy exclusive group vengeance 3');
INSERT INTO conditions VALUES(15, 10995, 7, 0, 0, 2, 0, 50402, 1, 1, 1, 0, 0, '', 'Requires no item vengeance 3');
INSERT INTO conditions VALUES(15, 10995, 8, 0, 0, 8, 0, 24808, 0, 0, 0, 0, 0, '', 'Requires quest Courage Flag');
INSERT INTO conditions VALUES(15, 10995, 8, 0, 0, 50, 0, 24827, 0, 0, 0, 0, 0, '', 'Requires satisfy exclusive group Courage 1');
INSERT INTO conditions VALUES(15, 10995, 8, 0, 0, 2, 0, 50375, 1, 1, 1, 0, 0, '', 'Requires no item Courage 0');
INSERT INTO conditions VALUES(15, 10995, 9, 0, 0, 8, 0, 24808, 0, 0, 0, 0, 0, '', 'Requires quest Courage Flag');
INSERT INTO conditions VALUES(15, 10995, 9, 0, 0, 50, 0, 24827, 0, 0, 1, 0, 0, '', 'Requires not satisfy exclusive group Courage 1');
INSERT INTO conditions VALUES(15, 10995, 9, 0, 0, 50, 0, 24834, 0, 0, 0, 0, 0, '', 'Requires satisfy exclusive group Courage 2');
INSERT INTO conditions VALUES(15, 10995, 9, 0, 0, 2, 0, 50388, 1, 1, 1, 0, 0, '', 'Requires no item Courage 1');
INSERT INTO conditions VALUES(15, 10995, 10, 0, 0, 8, 0, 24808, 0, 0, 0, 0, 0, '', 'Requires quest Courage Flag');
INSERT INTO conditions VALUES(15, 10995, 10, 0, 0, 50, 0, 24827, 0, 0, 1, 0, 0, '', 'Requires not satisfy exclusive group Courage 1');
INSERT INTO conditions VALUES(15, 10995, 10, 0, 0, 50, 0, 24834, 0, 0, 1, 0, 0, '', 'Requires not satisfy exclusive group Courage 2');
INSERT INTO conditions VALUES(15, 10995, 10, 0, 0, 50, 0, 24835, 0, 0, 0, 0, 0, '', 'Requires satisfy exclusive group Courage 3');
INSERT INTO conditions VALUES(15, 10995, 10, 0, 0, 2, 0, 50403, 1, 1, 1, 0, 0, '', 'Requires no item Courage 2');
INSERT INTO conditions VALUES(15, 10995, 11, 0, 0, 8, 0, 24808, 0, 0, 0, 0, 0, '', 'Requires quest Courage Flag');
INSERT INTO conditions VALUES(15, 10995, 11, 0, 0, 50, 0, 24827, 0, 0, 1, 0, 0, '', 'Requires not satisfy exclusive group Courage 1');
INSERT INTO conditions VALUES(15, 10995, 11, 0, 0, 50, 0, 24834, 0, 0, 1, 0, 0, '', 'Requires not satisfy exclusive group Courage 2');
INSERT INTO conditions VALUES(15, 10995, 11, 0, 0, 50, 0, 24835, 0, 0, 1, 0, 0, '', 'Requires not satisfy exclusive group Courage 3');
INSERT INTO conditions VALUES(15, 10995, 11, 0, 0, 2, 0, 50404, 1, 1, 1, 0, 0, '', 'Requires no item Courage 3');
INSERT INTO conditions VALUES(15, 10995, 12, 0, 0, 8, 0, 24811, 0, 0, 0, 0, 0, '', 'Requires quest Destruction Flag');
INSERT INTO conditions VALUES(15, 10995, 12, 0, 0, 50, 0, 24828, 0, 0, 0, 0, 0, '', 'Requires satisfy exclusive group Destruction 1');
INSERT INTO conditions VALUES(15, 10995, 12, 0, 0, 2, 0, 50377, 1, 1, 1, 0, 0, '', 'Requires no item Destruction 0');
INSERT INTO conditions VALUES(15, 10995, 13, 0, 0, 8, 0, 24811, 0, 0, 0, 0, 0, '', 'Requires quest Destruction Flag');
INSERT INTO conditions VALUES(15, 10995, 13, 0, 0, 50, 0, 24828, 0, 0, 1, 0, 0, '', 'Requires not satisfy exclusive group Destruction 1');
INSERT INTO conditions VALUES(15, 10995, 13, 0, 0, 50, 0, 24823, 0, 0, 0, 0, 0, '', 'Requires satisfy exclusive group Destruction 2');
INSERT INTO conditions VALUES(15, 10995, 13, 0, 0, 2, 0, 50384, 1, 1, 1, 0, 0, '', 'Requires no item Destruction 1');
INSERT INTO conditions VALUES(15, 10995, 14, 0, 0, 8, 0, 24811, 0, 0, 0, 0, 0, '', 'Requires quest Destruction Flag');
INSERT INTO conditions VALUES(15, 10995, 14, 0, 0, 50, 0, 24828, 0, 0, 1, 0, 0, '', 'Requires not satisfy exclusive group Destruction 1');
INSERT INTO conditions VALUES(15, 10995, 14, 0, 0, 50, 0, 24823, 0, 0, 1, 0, 0, '', 'Requires not satisfy exclusive group Destruction 2');
INSERT INTO conditions VALUES(15, 10995, 14, 0, 0, 50, 0, 24829, 0, 0, 0, 0, 0, '', 'Requires satisfy exclusive group Destruction 3');
INSERT INTO conditions VALUES(15, 10995, 14, 0, 0, 2, 0, 50397, 1, 1, 1, 0, 0, '', 'Requires no item Destruction 2');
INSERT INTO conditions VALUES(15, 10995, 15, 0, 0, 8, 0, 24811, 0, 0, 0, 0, 0, '', 'Requires quest Destruction Flag');
INSERT INTO conditions VALUES(15, 10995, 15, 0, 0, 50, 0, 24828, 0, 0, 1, 0, 0, '', 'Requires not satisfy exclusive group Destruction 1');
INSERT INTO conditions VALUES(15, 10995, 15, 0, 0, 50, 0, 24823, 0, 0, 1, 0, 0, '', 'Requires not satisfy exclusive group Destruction 2');
INSERT INTO conditions VALUES(15, 10995, 15, 0, 0, 50, 0, 24829, 0, 0, 1, 0, 0, '', 'Requires not satisfy exclusive group Destruction 3');
INSERT INTO conditions VALUES(15, 10995, 15, 0, 0, 2, 0, 50398, 1, 1, 1, 0, 0, '', 'Requires no item Destruction 3');
INSERT INTO conditions VALUES(15, 10995, 16, 0, 0, 8, 0, 25238, 0, 0, 0, 0, 0, '', 'Requires quest Might Flag');
INSERT INTO conditions VALUES(15, 10995, 16, 0, 0, 50, 0, 25239, 0, 0, 0, 0, 0, '', 'Requires satisfy exclusive group Might 1');
INSERT INTO conditions VALUES(15, 10995, 16, 0, 0, 2, 0, 52569, 1, 1, 1, 0, 0, '', 'Requires no item Might 0');
INSERT INTO conditions VALUES(15, 10995, 17, 0, 0, 8, 0, 25238, 0, 0, 0, 0, 0, '', 'Requires quest Might Flag');
INSERT INTO conditions VALUES(15, 10995, 17, 0, 0, 50, 0, 25239, 0, 0, 1, 0, 0, '', 'Requires not satisfy exclusive group Might 1');
INSERT INTO conditions VALUES(15, 10995, 17, 0, 0, 50, 0, 25240, 0, 0, 0, 0, 0, '', 'Requires satisfy exclusive group Might 2');
INSERT INTO conditions VALUES(15, 10995, 17, 0, 0, 2, 0, 52570, 1, 1, 1, 0, 0, '', 'Requires no item Might 1');
INSERT INTO conditions VALUES(15, 10995, 18, 0, 0, 8, 0, 25238, 0, 0, 0, 0, 0, '', 'Requires quest Might Flag');
INSERT INTO conditions VALUES(15, 10995, 18, 0, 0, 50, 0, 25239, 0, 0, 1, 0, 0, '', 'Requires not satisfy exclusive group Might 1');
INSERT INTO conditions VALUES(15, 10995, 18, 0, 0, 50, 0, 25240, 0, 0, 1, 0, 0, '', 'Requires not satisfy exclusive group Might 2');
INSERT INTO conditions VALUES(15, 10995, 18, 0, 0, 50, 0, 25242, 0, 0, 0, 0, 0, '', 'Requires satisfy exclusive group Might 3');
INSERT INTO conditions VALUES(15, 10995, 18, 0, 0, 2, 0, 52571, 1, 1, 1, 0, 0, '', 'Requires no item Might 2');
INSERT INTO conditions VALUES(15, 10995, 19, 0, 0, 8, 0, 25238, 0, 0, 0, 0, 0, '', 'Requires quest Might Flag');
INSERT INTO conditions VALUES(15, 10995, 19, 0, 0, 50, 0, 25239, 0, 0, 1, 0, 0, '', 'Requires not satisfy exclusive group Might 1');
INSERT INTO conditions VALUES(15, 10995, 19, 0, 0, 50, 0, 25240, 0, 0, 1, 0, 0, '', 'Requires not satisfy exclusive group Might 2');
INSERT INTO conditions VALUES(15, 10995, 19, 0, 0, 50, 0, 25242, 0, 0, 1, 0, 0, '', 'Requires not satisfy exclusive group Might 3');
INSERT INTO conditions VALUES(15, 10995, 19, 0, 0, 2, 0, 52572, 1, 1, 1, 0, 0, '', 'Requires no item Might 3');
-- Violet Signet of the Master Assassin (29283)
-- Violet Signet of the Archmage (29287)
-- Violet Signet of the Great Protector (29279)
-- Violet Signet of the Grand Restorer (29290)
UPDATE quest_template SET SpecialFlags=1 WHERE Id IN(11031, 11032, 11033, 11034);
UPDATE creature_template SET AIName="SmartAI" WHERE entry=18253;
DELETE FROM gossip_menu_option WHERE menu_id=8441;
INSERT INTO gossip_menu_option VALUES(8441, 0, 0, "I've lost my Violet Signet of the Master Assassin.", 1, 1, 0, 0, 0, 0, "");
INSERT INTO gossip_menu_option VALUES(8441, 1, 0, "I've lost my Violet Signet of the Archmage.", 1, 1, 0, 0, 0, 0, "");
INSERT INTO gossip_menu_option VALUES(8441, 2, 0, "I've lost my Violet Signet of the Great Protector.", 1, 1, 0, 0, 0, 0, "");
INSERT INTO gossip_menu_option VALUES(8441, 3, 0, "I've lost my Violet Signet of the Grand Restorer.", 1, 1, 0, 0, 0, 0, "");
DELETE FROM smart_scripts WHERE entryorguid=18253 AND source_type=0;
INSERT INTO smart_scripts VALUES (18253, 0, 0, 4, 62, 0, 100, 0, 8441, 0, 0, 0, 11, 39654, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Soridormi - On Gossip Select - Cast Create Violet Signet of the Master Assassin");
INSERT INTO smart_scripts VALUES (18253, 0, 1, 4, 62, 0, 100, 0, 8441, 1, 0, 0, 11, 39651, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Soridormi - On Gossip Select - Cast Create Violet Signet of the Archmage");
INSERT INTO smart_scripts VALUES (18253, 0, 2, 4, 62, 0, 100, 0, 8441, 2, 0, 0, 11, 39653, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Soridormi - On Gossip Select - Cast Create Violet Signet of the Great Protector");
INSERT INTO smart_scripts VALUES (18253, 0, 3, 4, 62, 0, 100, 0, 8441, 3, 0, 0, 11, 39652, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Soridormi - On Gossip Select - Cast Create Violet Signet of the Grand Restorer");
INSERT INTO smart_scripts VALUES (18253, 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, "Soridormi - On Gossip Select - Close Gossip");
DELETE FROM conditions WHERE SourceTypeOrReferenceId=15 AND SourceGroup=8441;
INSERT INTO conditions VALUES(15, 8441, 0, 0, 0, 9, 0, 10727, 0, 0, 0, 0, 0, '', 'Requires quest Eminence Among the Violet Eye');
INSERT INTO conditions VALUES(15, 8441, 0, 0, 0, 2, 0, 29283, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 8441, 0, 0, 0, 2, 0, 29287, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 8441, 0, 0, 0, 2, 0, 29279, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 8441, 0, 0, 0, 2, 0, 29290, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 8441, 1, 0, 0, 9, 0, 10725, 0, 0, 0, 0, 0, '', 'Requires quest Eminence Among the Violet Eye');
INSERT INTO conditions VALUES(15, 8441, 1, 0, 0, 2, 0, 29283, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 8441, 1, 0, 0, 2, 0, 29287, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 8441, 1, 0, 0, 2, 0, 29279, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 8441, 1, 0, 0, 2, 0, 29290, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 8441, 2, 0, 0, 9, 0, 10728, 0, 0, 0, 0, 0, '', 'Requires quest Eminence Among the Violet Eye');
INSERT INTO conditions VALUES(15, 8441, 2, 0, 0, 2, 0, 29283, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 8441, 2, 0, 0, 2, 0, 29287, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 8441, 2, 0, 0, 2, 0, 29279, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 8441, 2, 0, 0, 2, 0, 29290, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 8441, 3, 0, 0, 9, 0, 10726, 0, 0, 0, 0, 0, '', 'Requires quest Eminence Among the Violet Eye');
INSERT INTO conditions VALUES(15, 8441, 3, 0, 0, 2, 0, 29283, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 8441, 3, 0, 0, 2, 0, 29287, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 8441, 3, 0, 0, 2, 0, 29279, 1, 1, 1, 0, 0, '', 'Requires no Band item');
INSERT INTO conditions VALUES(15, 8441, 3, 0, 0, 2, 0, 29290, 1, 1, 1, 0, 0, '', 'Requires no Band item');

View File

@@ -0,0 +1,638 @@
UPDATE quest_template SET RequestItemsText="<Sal'salabim rubs his head.>$B$B[Demonic] Ik il romath sardon." WHERE Id=10004;
UPDATE quest_template SET OfferRewardText="Good work!$B$BLet me have a look at those code sheets. I've got an idea and it might just be crazy enough to work!" WHERE Id=10014;
UPDATE quest_template SET OfferRewardText="It looks like you've got everything we need. I'll be ready to start in just a moment.$B$BNow, I can't guarantee that I'll come up with anything useful, but I will attempt to scry for information related to where the arakkoa have taken Deirom." WHERE Id=10048;
UPDATE quest_template SET RequestItemsText="Do you have the dust from the royal teromoths yet? Without a sufficient quantity of it, I will not be able to break through the resistance that I am sensing from magic of the eyes." WHERE Id=10048;
UPDATE quest_template SET OfferRewardText="It looks like you've got everything we need. I'll be ready to start in just a moment.$B$BNow, I can't guarantee that I'll come up with anything useful, but I will attempt to scry for information related to where the arakkoa have taken Dugar." WHERE Id=10049;
UPDATE quest_template SET RequestItemsText="Do you have the dust from the royal teromoths yet? Without a sufficient quantity of it, I will not be able to break through the resistance that I am sensing from magic of the eyes." WHERE Id=10049;
UPDATE quest_template SET OfferRewardText="Thick charcoal arrows show troops converging on Thrallmar from three different fel orc encampments. You've already eliminated the western branch of the forces, but it seems like the orcs of Zeth'Gor are preparing for much more than a mere raid." WHERE Id=10059;
UPDATE quest_template SET OfferRewardText="I was beginning to wonder if the quiet that had fallen over Zeth'Gor was the prelude to a large attack. It seems my fears were well-founded.$B$B" WHERE Id=10060;
UPDATE quest_template SET RequestItemsText="Yes?" WHERE Id=10063;
UPDATE quest_template SET RequestItemsText="Yes?" WHERE Id=10064;
UPDATE quest_template SET OfferRewardText="Well done, $N. These orders should finally reveal the identity of the mastermind behind these attacks." WHERE Id=10138;
UPDATE quest_template SET RequestItemsText="We're getting close to the source, $N. What did you discover?" WHERE Id=10138;
UPDATE quest_template SET OfferRewardText="These are great! Don't be surprised if you see a bunch of men walking around in feathered hats very soon!" WHERE Id=10195;
UPDATE quest_template SET RequestItemsText="Ever since you brought that first batch of feathers and I completed Bertelm's hat, all the other mercenaries have been clamoring for their own, including Thander. I told them I'd get right on it, but I'm going to need a steady supply of arakkoa feathers for the project. I'll gladly accept any you happen to gather in your adventures in the forest." WHERE Id=10195;
UPDATE quest_template SET OfferRewardText="Thank you, $N. I'll put them to good use." WHERE Id=10196;
UPDATE quest_template SET RequestItemsText="I've had some success drawing the arakkoa spirits closer to me, but they are still very shy. Perhaps if I improve my disguise, they will be more willing to approach me in the trance. To do that, though, I'll need more feathers like the ones you've already brought me. If you get any more of the feathers, I'd be very happy to take them off your hands." WHERE Id=10196;
UPDATE quest_template SET RequestItemsText="What did you think? Still needs some tweaking, eh?" WHERE Id=10248;
UPDATE quest_template SET OfferRewardText="<Zuben Elgenubi flashes what could be considered an ethereal grin.>$B$BI pledge to only use this incredible firepower for good. The good of my profit margin, that is." WHERE Id=10292;
UPDATE quest_template SET OfferRewardText="Ah. good, another has arrived. Time may not matter to me, but to you it is of the essence. There is much for you to learn and there is much I wish to teach you. You simply must prove your worth. Do that, and you shall be greatly rewarded." WHERE Id=10379;
UPDATE quest_template SET OfferRewardText="I'm glad you survied! You're the first!" WHERE Id=10716;
UPDATE quest_template SET RequestItemsText="Hail, $N! It is a great pleasure to see you once again." WHERE Id=10725;
UPDATE quest_template SET RequestItemsText="Hail, $N! It is a great pleasure to see you once again." WHERE Id=10726;
UPDATE quest_template SET RequestItemsText="Hail, $N! It is a great pleasure to see you once again." WHERE Id=10727;
UPDATE quest_template SET RequestItemsText="Hail, $N! It is a great pleasure to see you once again." WHERE Id=10728;
UPDATE quest_template SET RequestItemsText="It is good to see you again, $N." WHERE Id=10733;
UPDATE quest_template SET RequestItemsText="It is good to see you again, $N." WHERE Id=10734;
UPDATE quest_template SET RequestItemsText="It is good to see you again, $N." WHERE Id=10735;
UPDATE quest_template SET RequestItemsText="It is good to see you again, $N." WHERE Id=10736;
UPDATE quest_template SET RequestItemsText="You're welcome among us, as always. What brings you to us?" WHERE Id=10738;
UPDATE quest_template SET RequestItemsText="You're welcome among us, as always. What brings you to us?" WHERE Id=10739;
UPDATE quest_template SET RequestItemsText="You're welcome among us, as always. What brings you to us?" WHERE Id=10740;
UPDATE quest_template SET RequestItemsText="You're welcome among us, as always. What brings you to us?" WHERE Id=10741;
UPDATE quest_template SET RequestItemsText="I would understand if you chose not to continue, $N." WHERE Id=10977;
UPDATE quest_template SET OfferRewardText="<As you give the medallion to A'dal, it disappears into his being in a flash of light.>$B$B<You are briefly shown a glimpse of a moment... perhaps in the future. You see Akama and Maiev coming out of the Warden's Cage, fighting their way to the Dark Temple. A third figure shrouded in shadows is aiding them. Upon closer inspection you notice that the figure is you.>" WHERE Id=11052;
UPDATE quest_template SET RequestItemsText="<A'dal notices your approach and a warm light embraces you. A'dal seems to know you have something for him.>" WHERE Id=11052;
UPDATE quest_template SET OfferRewardText="Victory be ours, $N. Da Zandalari be fleein' and without da warlord's leadership, da Amani will soon be reduced to fighting among demselves." WHERE Id=11196;
UPDATE quest_template SET RequestItemsText="$N, it is good to see you again. I'm sure the children enjoy tales of your heroism." WHERE Id=11403;
UPDATE quest_template SET OfferRewardText="A small tag on this present reads:$B$BHappy holidays, $N!" WHERE Id=11528;
UPDATE quest_template SET RequestItemsText="This shard of ice echoes the deep, cracking rumble of invading glaciers. Its cold turns your thoughts to a lifeless, endless winter." WHERE Id=11691;
UPDATE quest_template SET RequestItemsText="Quick! There's no time to waste!" WHERE Id=11731;
UPDATE quest_template SET RequestItemsText="Do you have your membership forms filled out?" WHERE Id=12420;
UPDATE quest_template SET RequestItemsText="Do ya have your membership forms filled out?" WHERE Id=12421;
UPDATE quest_template SET RequestItemsText="Someone is using the Forge of Wills to create this army... Ulduar is no longer safe. $R, did you recover the core?" WHERE Id=12879;
UPDATE quest_template SET OfferRewardText="The stuff of life is doomed to die and return to the earth, but the stuff of spirit lives eternal. I bid you well, $N, and offer you this token..." WHERE Id=13026;
UPDATE quest_template SET RequestItemsText="I see that you have managed to complete a deck of Chaos! Congratulations!" WHERE Id=13325;
UPDATE quest_template SET RequestItemsText="I see that you have managed to complete a deck of Undeath! Congratulations!" WHERE Id=13327;
UPDATE quest_template SET OfferRewardText="Well done, little $C.$B$BEverfrost was once plentiful in this region. Over the ages, though, the jormungar devoured nearly all of it. It is now very rare and very precious to my people.$B$BAs you roam these lands, keep a lookout for more pieces of everfrost. Return to me with any that you find and we will be most grateful." WHERE Id=13421;
UPDATE quest_template SET RequestItemsText="Have you discovered any more Everfrost, little $R?" WHERE Id=13421;
UPDATE quest_template SET OfferRewardText="<Xi'ri pulses with energy as you feel an object materialize in your hands. It is the medallion you gave to A'dal on Akama's behalf, its power augmented by the naaru's magic. The Sha'tar have entrusted you with the Medallion of Karabor, and with it access to the Black Temple.>" WHERE Id=13429;
UPDATE quest_template SET OfferRewardText="Analyzing fragments... please stand by." WHERE Id=13622;
UPDATE quest_template SET RequestItemsText="Awaiting input." WHERE Id=13622;
UPDATE quest_template SET OfferRewardText="Object integrity confirmed. Please hold while solidified residue is removed." WHERE Id=13629;
UPDATE quest_template SET RequestItemsText="Awaiting input." WHERE Id=13629;
UPDATE quest_template SET RequestItemsText="You're ready, $N?" WHERE Id=13631;
UPDATE quest_template SET RequestItemsText="You're ready, $N?" WHERE Id=13819;
UPDATE quest_template SET OfferRewardText="You take note of the information displayed in the schematic and the materials required to construct the scrapbot kit." WHERE Id=13843;
UPDATE quest_template SET OfferRewardText="Ah, more delicious Bread of the Dead, thank you!$B$BPlease, take this in return... a little something fun for the holiday." WHERE Id=13952;
UPDATE quest_template SET RequestItemsText="You don't have any Bread of the Dead, do you?" WHERE Id=13952;
UPDATE quest_template SET RequestItemsText="What have you found, Champion?" WHERE Id=14095;
UPDATE quest_template SET OfferRewardText="Wonderful! Another batch of powder!$B$BJust between us jewelcrafters, I've been making hand over fist selling \"pure titanium\" jewelry to the local Dalaran mages. Even with their superior intellect, they aren't particularly savvy with their gold. If you get more, I'll be here." WHERE Id=14103;
UPDATE quest_template SET OfferRewardText="Very good, $N.$B$BNow, the trick is to align the facets just right..." WHERE Id=14151;
UPDATE quest_template SET RequestItemsText="Have you performed the transmutes?" WHERE Id=14151;
UPDATE quest_template SET OfferRewardText="Ah, more delicious Bread of the Dead, thank you!$B$BPlease, take this in return... a little something fun for the holiday." WHERE Id=14166;
UPDATE quest_template SET RequestItemsText="You don't have any Bread of the Dead, do you?" WHERE Id=14166;
UPDATE quest_template SET OfferRewardText="Ah, more delicious Bread of the Dead, thank you!$B$BPlease, take this in return... a little something fun for the holiday." WHERE Id=14167;
UPDATE quest_template SET RequestItemsText="You don't have any Bread of the Dead, do you?" WHERE Id=14167;
UPDATE quest_template SET OfferRewardText="Ah, more delicious Bread of the Dead, thank you!$B$BPlease, take this in return... a little something fun for the holiday." WHERE Id=14168;
UPDATE quest_template SET RequestItemsText="You don't have any Bread of the Dead, do you?" WHERE Id=14168;
UPDATE quest_template SET OfferRewardText="Ah, more delicious Bread of the Dead, thank you!$B$BPlease, take this in return... a little something fun for the holiday." WHERE Id=14169;
UPDATE quest_template SET RequestItemsText="You don't have any Bread of the Dead, do you?" WHERE Id=14169;
UPDATE quest_template SET OfferRewardText="Ah, more delicious Bread of the Dead, thank you!$B$BPlease, take this in return... a little something fun for the holiday." WHERE Id=14170;
UPDATE quest_template SET RequestItemsText="You don't have any Bread of the Dead, do you?" WHERE Id=14170;
UPDATE quest_template SET OfferRewardText="Ah, more delicious Bread of the Dead, thank you!$B$BPlease, take this in return... a little something fun for the holiday." WHERE Id=14171;
UPDATE quest_template SET RequestItemsText="You don't have any Bread of the Dead, do you?" WHERE Id=14171;
UPDATE quest_template SET OfferRewardText="Ah, more delicious Bread of the Dead, thank you!$B$BPlease, take this in return... a little something fun for the holiday." WHERE Id=14172;
UPDATE quest_template SET RequestItemsText="You don't have any Bread of the Dead, do you?" WHERE Id=14172;
UPDATE quest_template SET OfferRewardText="Ah, more delicious Bread of the Dead, thank you!$B$BPlease, take this in return... a little something fun for the holiday." WHERE Id=14173;
UPDATE quest_template SET RequestItemsText="You don't have any Bread of the Dead, do you?" WHERE Id=14173;
UPDATE quest_template SET OfferRewardText="Ah, more delicious Bread of the Dead, thank you!$B$BPlease, take this in return... a little something fun for the holiday." WHERE Id=14174;
UPDATE quest_template SET RequestItemsText="You don't have any Bread of the Dead, do you?" WHERE Id=14174;
UPDATE quest_template SET OfferRewardText="Ah, more delicious Bread of the Dead, thank you!$B$BPlease, take this in return... a little something fun for the holiday." WHERE Id=14175;
UPDATE quest_template SET RequestItemsText="You don't have any Bread of the Dead, do you?" WHERE Id=14175;
UPDATE quest_template SET OfferRewardText="Ah, more delicious Bread of the Dead, thank you!$B$BPlease, take this in return... a little something fun for the holiday." WHERE Id=14176;
UPDATE quest_template SET RequestItemsText="You don't have any Bread of the Dead, do you?" WHERE Id=14176;
UPDATE quest_template SET OfferRewardText="Ah, more delicious Bread of the Dead, thank you!$B$BPlease, take this in return... a little something fun for the holiday." WHERE Id=14177;
UPDATE quest_template SET RequestItemsText="You don't have any Bread of the Dead, do you?" WHERE Id=14177;
UPDATE quest_template SET OfferRewardText="The Grand Crusader sits safely in the Scarlet Bastion while his forces pour into our lands, desecrate our structures and monuments and murder our people.$B$BThe time has come to deal with this pest. You will become the instrument of our reckoning." WHERE Id=14349;
UPDATE quest_template SET OfferRewardText="<Nathanos laughs.>$B$BExcellent! Finally! An opportunity to destroy the Scarlet Oracle!" WHERE Id=14350;
UPDATE quest_template SET RequestItemsText="Succeed now and you will have almost earned my respect, $C." WHERE Id=14350;
UPDATE quest_template SET OfferRewardText="So you're the $C who tore through the Alliance forces in the Hillsbrad Foothills? I've heard your name already. Word travels fast.$B$BThe Horde can use someone like you if you keep this up, $N.$B$BWe need to keep our eyes on all threats around us, but with that king leading them, the humans will continue to be a problem. You've confirmed that there's strength enough in the Horde to end that threat in time." WHERE Id=14351;
UPDATE quest_template SET RequestItemsText="Why aren't you out on the battlefield, $C?" WHERE Id=14351;
UPDATE quest_template SET OfferRewardText="I've seen the insignia on this scroll before during my time in Northrend. You say this was on that crone who leads the pigs in Razorfen Kraul?$B$BI'll be damned if I'm going to let the Scourge get a foothold here. The one who wrote this - this Malcin - is one of the Lich King's servants, obviously, and that makes him a target. Your target.$B$BThey're not going to take Kalimdor." WHERE Id=14352;
UPDATE quest_template SET RequestItemsText="What do you want, $N? This had better be important." WHERE Id=14352;
UPDATE quest_template SET OfferRewardText="$N, it is good you've taken the task seriously. Respect of the land and its creatures is important. Death and life are a circle... a necessity. One cannot exist without the other. Take time to ponder this and do well to never forget it." WHERE Id=14438;
UPDATE quest_template SET OfferRewardText="<Caladis takes the hilt from you and slowly turns it over in his hands.>$B$BThis seems somehow familiar, as though I should know its origins. You say you recovered this in the citadel? Most intriguing.$B$BThere are few who possess the ability to make such a blade. Perhaps they can tell us something about your find." WHERE Id=14443;
UPDATE quest_template SET RequestItemsText="What is it that you have there?" WHERE Id=14443;
UPDATE quest_template SET OfferRewardText="We can't let that book remain in Sunreaver hands. If we hope to identify the sword and use it to our advantage, we have to find a way to capture the book Krasus lent them." WHERE Id=14444;
UPDATE quest_template SET OfferRewardText="<Arcanist Tybalin examines the captured orders.>$B$BThe agent you intercepted was supposed to transport the Wyrmrest Tome to Icecrown, after meeting with one Magister Hathorel in Sunreaver's Sanctuary. We have to get that book, $N, and this is our chance. It's not going to be easy, though." WHERE Id=14457;
UPDATE quest_template SET RequestItemsText="Did you find anything of use on that agent?" WHERE Id=14457;
UPDATE quest_template SET OfferRewardText="It has been proven that the Light is with you, $N, but as times grow more dangerous, it becomes important to know what strength lies beneath the flesh. When demons, dragons, or any other evil set foot in your lands, your mettle will be tested. Will you be strong enough?$B$BBravery, regardless of the situation, is as much a part of paladinhood as the Light, your armor, and your weapon. Protecting the weak, and not losing faith are two more lessons you must master while you study in the Cathedral of Light." WHERE Id=1794;
UPDATE quest_template SET OfferRewardText="I knew Shandy would find a way to come through for us. Let me get this enchanted and ready for you to use. The sooner you get done with the tabard, the sooner we can get it back to Shandy and the better the chances that its owner will never have missed it." WHERE Id=20438;
UPDATE quest_template SET RequestItemsText="Was Shandy able to help you get a Sunreaver tabard?" WHERE Id=20438;
UPDATE quest_template SET OfferRewardText="To deny Ravenholdt the artifact, would be to deny one's own existence. Well done, $C. You may yet walk among the assassins of Ravenholdt.$B$BAs a young $C adventuring in Darkshore, I discovered a tea that replenishes energy in combat. It has served me well throughout the years and now I pass on a taste of the thistle tea to you. Drink of it when you tire, $N, and fight with vigor once more!" WHERE Id=2358;
UPDATE quest_template SET RequestItemsText="Do you have the demon prince's horns?" WHERE Id=2358;
UPDATE quest_template SET OfferRewardText="The Horde is in your debt, $N. You've made your people proud with your courage in defending our lands." WHERE Id=24216;
UPDATE quest_template SET OfferRewardText="The Horde is in your debt, $N. You've made your people proud with your courage in defending our lands." WHERE Id=24217;
UPDATE quest_template SET OfferRewardText="Excellent work, $N. The integrity of our borders must be preserved at all costs!" WHERE Id=24218;
UPDATE quest_template SET OfferRewardText="Excellent work, $N. The integrity of our borders must be preserved at all costs!" WHERE Id=24219;
UPDATE quest_template SET OfferRewardText="You've brought great honor to the Horde, $N. Your victory today will ensure a thousand victories tomorrow!" WHERE Id=24221;
UPDATE quest_template SET OfferRewardText="Excellent news, $C! If our tactical deployments continue to be this successful, the Horde will be in full retreat before long." WHERE Id=24223;
UPDATE quest_template SET OfferRewardText="Excellent work, $N. The integrity of our borders must be preserved at all costs!" WHERE Id=24224;
UPDATE quest_template SET OfferRewardText="The Horde is in your debt, $N. You've made your people proud with your courage in defending our lands." WHERE Id=24225;
UPDATE quest_template SET OfferRewardText="You've brought great honor to the Horde, $N. Your victory today will ensure a thousand victories tomorrow!" WHERE Id=24226;
UPDATE quest_template SET OfferRewardText="There is no greater honor than driving invaders from Horde territories. We salute your great courage in aiding our forces today!" WHERE Id=24426;
UPDATE quest_template SET OfferRewardText="Just what I wanted to hear! A victory in Alterac Valley - even a temporary one - is crucial to our overall strategy against the Horde." WHERE Id=24427;
UPDATE quest_template SET OfferRewardText="<Caladis accepts the heavy book and begins leafing through it.>$B$BI knew the symbols on the blade were familiar. The weapon was most certainly forged by the dragons and gifted to one of the mortal races, but which blade is this, and how did it come to rest in Icecrown?" WHERE Id=24454;
UPDATE quest_template SET RequestItemsText="We've been expecting your return. What has kept you?" WHERE Id=24454;
UPDATE quest_template SET OfferRewardText="You have remade the blade of Quel'Delar, although Blood-Queen Lana'thel proclaimed we could not! The blade must still be tempered, but she and her master will not stand in our way!" WHERE Id=24461;
UPDATE quest_template SET RequestItemsText="Were you able to reconstruct Quel'Delar?" WHERE Id=24461;
UPDATE quest_template SET OfferRewardText="I... I don't understand. Tempering the sword should've restored the blade to its original condition. What has happened here?" WHERE Id=24476;
UPDATE quest_template SET RequestItemsText="Until the sword is tempered, it will be useless." WHERE Id=24476;
UPDATE quest_template SET OfferRewardText="I had not thought it possible for evil to take hold in such a sword, but I suppose it was naive of me. If the greatest of dragonkind's creations could be corrupted and turned against them, why not a mere sword?$B$BUther's advice is wise, $N, and I would urge you to heed it quickly." WHERE Id=24480;
UPDATE quest_template SET RequestItemsText="What happened inside the Halls of Reflection?" WHERE Id=24480;
UPDATE quest_template SET OfferRewardText="Just in time! Thank you, $N.$B$BThe Pit of Saron lies ahead, and if our scouts are correct, past that will be the Halls of Reflection. It is there that Arthas lets his guard down, and it is there that we hope to find a clue to his weakness... or maybe, just maybe, his redemption." WHERE Id=24499;
UPDATE quest_template SET OfferRewardText="$N! I'm so glad you've come.$B$BWe've been afforded a rare chance to delve into Icecrown Citadel, but we must move quickly if we're to avoid Arthas' notice." WHERE Id=24510;
UPDATE quest_template SET OfferRewardText="Admit you to the Sunwell? That's impossible! The Sunwell is the most sacred and important site of our people. We have only recently reclaimed it with the help of the Shattered Sun Offensive. It is not a place for tourists or travelers." WHERE Id=24522;
UPDATE quest_template SET RequestItemsText="What brings you here?" WHERE Id=24522;
UPDATE quest_template SET OfferRewardText="I confess that I did not expect Thalorien's spirit to recognize you as the heir to Quel'Delar, but I defer to his judgment. You may enter the Sunwell, but I remind you that you are a guest in our most sacred of precincts, and you should act accordingly." WHERE Id=24535;
UPDATE quest_template SET OfferRewardText="A deep sense of dread washes over you as the flame devours the items." WHERE Id=24545;
UPDATE quest_template SET RequestItemsText="Have you obtained the shards of the frozen throne, $C?" WHERE Id=24548;
UPDATE quest_template SET OfferRewardText="This is unbelievable, $N. You've really done it! All of the quel'dorei have heard of Thalorien Dawnseeker and Quel'Delar, but no one ever thought the sword would be restored." WHERE Id=24553;
UPDATE quest_template SET RequestItemsText="What happened during your time in the Sunwell?" WHERE Id=24553;
UPDATE quest_template SET OfferRewardText="<Myralion takes the hilt from you and scrutinizes the artifact.>$B$BThis came from the citadel? What was it doing there? This blade is certainly not of Scourge manufacture.$B$BWeapons of this quality can only be crafted by a few of Azeroth's creatures. We will have to consult them and see if they can help us identify it." WHERE Id=24554;
UPDATE quest_template SET RequestItemsText="What have you discovered?" WHERE Id=24554;
UPDATE quest_template SET OfferRewardText="We must recover that book from the Silver Covenant. Without that book from Krasus, we stand little chance of solving the mystery of the sword in Icecrown or unlocking its power." WHERE Id=24555;
UPDATE quest_template SET OfferRewardText="I knew Shandy would find a way to make it work. Let me get this enchanted and ready for you to use. With any luck, the tabard's owner won't even know it's missing and Shandy will cover the rest of our tracks." WHERE Id=24556;
UPDATE quest_template SET RequestItemsText="Was Shandy able to help you get a Silver Covenant tabard?" WHERE Id=24556;
UPDATE quest_template SET OfferRewardText="<Magister Hathorel reads the captured orders.>$B$BThe agent you intercepted was supposed to deliver the Wyrmrest tome to Icecrown, after meeting with one Arcanist Tybalin inside the Silver Enclave. We have to reclaim that book, $N, and we only have one chance before it leaves the city. We have to work quickly." WHERE Id=24557;
UPDATE quest_template SET RequestItemsText="Did you find anything of use on that agent?" WHERE Id=24557;
UPDATE quest_template SET OfferRewardText="<Myralion accepts the heavy book and begins leafing through it.>$B$BThose symbols on the blade seemed familiar and now there's little wonder why. This is certainly a dragon blade, gifted to one of the mortal races, but which blade is this, and how did it come to rest in Icecrown?" WHERE Id=24558;
UPDATE quest_template SET RequestItemsText="We've been expecting your return. What has kept you?" WHERE Id=24558;
UPDATE quest_template SET OfferRewardText="You have remade the blade of Quel'Delar in defiance of that Blood-Queen Lana'thel's pronouncement! Now, the blade must be tempered before we can show her the folly of her words." WHERE Id=24559;
UPDATE quest_template SET RequestItemsText="Were you able to reconstruct Quel'Delar?" WHERE Id=24559;
UPDATE quest_template SET OfferRewardText="Tempering the sword should've restored the blade. Why hasn't it worked?" WHERE Id=24560;
UPDATE quest_template SET RequestItemsText="Until the sword is tempered, it will be useless." WHERE Id=24560;
UPDATE quest_template SET OfferRewardText="How can evil take root in such a sword? I would not have thought it possible if the evidence wasn't here before my eyes. If the greatest of dragonkind's creations could be corrupted and turned against them, why not a mere sword?$B$BI believe Uther is right. You must heed his advice quickly, $N." WHERE Id=24561;
UPDATE quest_template SET RequestItemsText="What happened inside the Halls of Reflection?" WHERE Id=24561;
UPDATE quest_template SET OfferRewardText="I hope you understand that I can't just admit you to the Sunwell, $N. This is the most sacred place known to the sin'dorei and we have only recently regained control over it.$B$BYou would raise the hopes of our people with tales of Quel'Delar? Without proof of the truth of your claims, I see no reason to take you at your word." WHERE Id=24562;
UPDATE quest_template SET RequestItemsText="What brings you here?" WHERE Id=24562;
UPDATE quest_template SET OfferRewardText="You truly do carry Quel'Delar. This is a great day for all of Quel'Thalas and the sin'dorei. You have my leave to enter the Sunwell and finish the sword's restoration. Keep your head high, $N. The children of Silvermoon have dreamt of this day for years." WHERE Id=24563;
UPDATE quest_template SET OfferRewardText="Am I truly laying my eyes upon the weapon of Thalorien Dawnseeker? This is a wondrous day for the Sunreavers and for all sin'dorei!" WHERE Id=24564;
UPDATE quest_template SET RequestItemsText="What happened inside the Sunwell?" WHERE Id=24564;
UPDATE quest_template SET OfferRewardText="With Sartharion slain, surely Deathwing and Sinestra's plans are now stalled." WHERE Id=24579;
UPDATE quest_template SET OfferRewardText="Word of your success precedes you, $C. Anub'Rekhan is no more. You did him a great service, $N." WHERE Id=24580;
UPDATE quest_template SET OfferRewardText="Well done, $C. The Scourge military command out of Naxxramas has been thrown into disarray by Razuvious's demise." WHERE Id=24582;
UPDATE quest_template SET OfferRewardText="Children everywhere will sleep easier knowing that Patchwerk is no more." WHERE Id=24583;
UPDATE quest_template SET OfferRewardText="The greatest weakness of Ulduar is its masters' blind faith in their inventions to protect it." WHERE Id=24588;
UPDATE quest_template SET OfferRewardText="Am I truly laying my eyes upon the weapon of Thalorien Dawnseeker? This is a wondrous day for the Sunreavers and for all sin'dorei!" WHERE Id=24594;
UPDATE quest_template SET RequestItemsText="You have returned from the Sunwell?" WHERE Id=24594;
UPDATE quest_template SET OfferRewardText="This is unbelievable, $N. You've really done it! All of the quel'dorei have heard of Thalorien Dawnseeker and Quel'Delar, but no one ever thought the sword would be restored." WHERE Id=24595;
UPDATE quest_template SET RequestItemsText="Tell me of what happened in the Sunwell, $N." WHERE Id=24595;
UPDATE quest_template SET OfferRewardText="Am I truly laying my eyes upon the weapon of Thalorien Dawnseeker? This is a wondrous day for the Sunreavers and for all sin'dorei!" WHERE Id=24596;
UPDATE quest_template SET RequestItemsText="What happened during your visit to the Sunwell?" WHERE Id=24596;
UPDATE quest_template SET OfferRewardText="My thanks for this Lovely Charm Bracelet." WHERE Id=24597;
UPDATE quest_template SET RequestItemsText="Well met, $C. Did you have something for me?" WHERE Id=24597;
UPDATE quest_template SET OfferRewardText="Am I truly laying my eyes upon the weapon of Thalorien Dawnseeker? This is a wondrous day for the Sunreavers and for all sin'dorei!" WHERE Id=24598;
UPDATE quest_template SET RequestItemsText="What news do you bring from the Sunwell?" WHERE Id=24598;
UPDATE quest_template SET OfferRewardText="My thanks for this Lovely Charm Bracelet." WHERE Id=24609;
UPDATE quest_template SET RequestItemsText="Well met, $C. Did you have something for me?" WHERE Id=24609;
UPDATE quest_template SET OfferRewardText="My thanks for this Lovely Charm Bracelet." WHERE Id=24610;
UPDATE quest_template SET RequestItemsText="Well met, $C. Did you have something for me?" WHERE Id=24610;
UPDATE quest_template SET OfferRewardText="My thanks for this Lovely Charm Bracelet." WHERE Id=24611;
UPDATE quest_template SET RequestItemsText="Well met, $C. Did you have something for me?" WHERE Id=24611;
UPDATE quest_template SET OfferRewardText="My thanks for this Lovely Charm Bracelet." WHERE Id=24612;
UPDATE quest_template SET RequestItemsText="Well met, $C. Did you have something for me?" WHERE Id=24612;
UPDATE quest_template SET OfferRewardText="My thanks for this Lovely Charm Bracelet." WHERE Id=24613;
UPDATE quest_template SET RequestItemsText="Well met, $C. Did you have something for me?" WHERE Id=24613;
UPDATE quest_template SET OfferRewardText="My thanks for this Lovely Charm Bracelet." WHERE Id=24614;
UPDATE quest_template SET RequestItemsText="Well met, $C. Did you have something for me?" WHERE Id=24614;
UPDATE quest_template SET OfferRewardText="My thanks for this Lovely Charm Bracelet." WHERE Id=24615;
UPDATE quest_template SET RequestItemsText="Well met, $C. Did you have something for me?" WHERE Id=24615;
UPDATE quest_template SET OfferRewardText="Listen well, $C. In accepting this weapon your fate is sealed.$B$BOvercome or succumb.$B$BI have placed your feet upon this path. You are therefore my personal responsibility. Should you falter, I am duty-bound to deliver you from this life.$B$BRemember my words, $C, and do not fail." WHERE Id=24743;
UPDATE quest_template SET OfferRewardText="That a weapon of such power has been redeemed from the clutches of evil is a great omen in these times, $N. With Quel'Delar and staunch Silver Covenant allies at our side, the Lich King will have good reason to fear.$B$BThe crusade maintains an arsenal of exceptional weapons for our strongest allies. Allow me to offer you your choice from among them in return for entrusting us with the care of Quel'Delar." WHERE Id=24795;
UPDATE quest_template SET RequestItemsText="Is it true that you have restored Quel'Delar?" WHERE Id=24795;
UPDATE quest_template SET OfferRewardText="This is nothing short of an amazing accomplishment, $N. The day that Thalorien and Anasterian fell, the same day that Quel'Delar was lost, was one of the darkest of my life. To see Quel'Delar restored... it is beyond words.$B$BWithout a doubt, you are meant to be the true bearer of the blade. Quel'Delar's magic is already adapting the blade to your skills and your strengths." WHERE Id=24796;
UPDATE quest_template SET RequestItemsText="Is it true that you have restored Quel'Delar?" WHERE Id=24796;
UPDATE quest_template SET OfferRewardText="That a weapon of such power has been redeemed from the clutches of evil is a great omen in these times, $N. With Quel'Delar and staunch Sunreaver allies at our side, the Lich King will have good reason to fear.$B$BThe crusade maintains an arsenal of exceptional weapons for our strongest allies. Allow me to offer you your choice from among them in return for entrusting us with the care of Quel'Delar." WHERE Id=24798;
UPDATE quest_template SET RequestItemsText="Is it true that you have restored Quel'Delar?" WHERE Id=24798;
UPDATE quest_template SET OfferRewardText="That a weapon of such power has been redeemed from the clutches of evil is a great omen in these times, $N. With Quel'Delar and staunch Sunreaver allies at our side, the Lich King will have good reason to fear.$B$BThe crusade maintains an arsenal of exceptional weapons for our strongest allies. Allow me to offer you your choice from among them in return for entrusting us with the care of Quel'Delar." WHERE Id=24799;
UPDATE quest_template SET RequestItemsText="Is it true that you have restored Quel'Delar?" WHERE Id=24799;
UPDATE quest_template SET OfferRewardText="Quel'Delar rises again, as we sin'dorei have risen from the ashes of defeat and betrayal. The heart and the weapon of Thalorien Dawnseeker are both with you, $N.$B$BI see the blade has already started adapting itself to your strengths, $N. Hold your head high and always keep Quel'Delar at your side." WHERE Id=24800;
UPDATE quest_template SET RequestItemsText="Is it true that you have restored Quel'Delar?" WHERE Id=24800;
UPDATE quest_template SET OfferRewardText="Quel'Delar rises again, as the sin'dorei have risen from the ashes of defeat and betrayal. Yet, somehow, the weapon of Thalorien Dawnseeker has chosen to serve an outsider.$B$BBe at ease, $N. I do not mean to diminish your accomplishment, for you have done what none of my brothers could, although I do not know why. You are clearly meant to be its bearer; the blade is already adapting itself to your abilities. Wield Quel'Delar proudly against our common foes." WHERE Id=24801;
UPDATE quest_template SET RequestItemsText="Is it true that you have restored Quel'Delar?" WHERE Id=24801;
UPDATE quest_template SET OfferRewardText="May you find what you're looking for, $g brother:sister;." WHERE Id=24820;
UPDATE quest_template SET OfferRewardText="May you find what you're looking for, $g brother:sister;." WHERE Id=24821;
UPDATE quest_template SET OfferRewardText="May you find what you're looking for, $g brother:sister;." WHERE Id=24822;
UPDATE quest_template SET OfferRewardText="You continue to prove yourself, $N. Accept this, not as a gift, but as a tool for the fight against the Scourge." WHERE Id=24825;
UPDATE quest_template SET OfferRewardText="You continue to prove yourself, $N. Accept this, not as a gift, but as a tool for the fight against the Scourge." WHERE Id=24826;
UPDATE quest_template SET OfferRewardText="You continue to prove yourself, $N. Accept this, not as a gift, but as a tool for the fight against the Scourge." WHERE Id=24827;
UPDATE quest_template SET OfferRewardText="You are a true champion of our cause, $N. None can claim to be more dedicated to the struggle than you.$B$BThe enemy speaks of your name only in whispers, for they know you're a force to be reckoned with.$B$BAccept this humble gift as a reward for your many triumphs." WHERE Id=24829;
UPDATE quest_template SET OfferRewardText="You continue to prove yourself, $N. Accept this, not as a gift, but as a tool for the fight against the Scourge." WHERE Id=24830;
UPDATE quest_template SET OfferRewardText="You are a true champion of our cause, $N. None can claim to be more dedicated to the struggle than you.$B$BYou are a bastion of wisdom and our allies speak of you with the greatest reverence. Many of them owe you their own lives.$B$BAccept this humble gift as a reward for your many triumphs." WHERE Id=24831;
UPDATE quest_template SET OfferRewardText="You continue to prove yourself, $N. Accept this, not as a gift, but as a tool for the fight against the Scourge." WHERE Id=24832;
UPDATE quest_template SET OfferRewardText="You are a true champion of our cause, $N. None can claim to be more dedicated to the struggle than you.$B$BIt is rumored that the minions of the Scourge fear you more than they do the Lich King himself. You are vengeance incarnate.$B$BAccept this humble gift as a reward for your many triumphs." WHERE Id=24833;
UPDATE quest_template SET OfferRewardText="You continue to prove yourself, $N. Accept this, not as a gift, but as a tool for the fight against the Scourge." WHERE Id=24834;
UPDATE quest_template SET OfferRewardText="You are a true champion of our cause, $N. None can claim to be more dedicated to the struggle than you.$B$BYou are a source of inspiration to our allies and your unshakeable valor gives pause to even the most seasoned of our enemy's generals.$B$BAccept this humble gift as a reward for your many triumphs." WHERE Id=24835;
UPDATE quest_template SET OfferRewardText="Thank you, $N!$B$BI owe you a debt of gratitude for rescuing a friend whom I had thought forever lost to the clutches of the Cult. And the Argent Crusade owes you a debt for the invaluable intelligence Darnavan brings with him from his time walking the halls of this Citadel as one of the Cult.$B$BPlease, take this as a token of this appreciation, and may the Light bolster you as you carve a path through this terrible place." WHERE Id=24869;
UPDATE quest_template SET OfferRewardText="<Kalecgos sighs>$B$BSo much suffering, so much needless destruction. These have not been kind times for my brothers and sisters. But thanks to your efforts, brave adventurers, this darkened yet still noble soul may find peace at last.$B$BRest now, Sindragosa. You are home...." WHERE Id=24872;
UPDATE quest_template SET RequestItemsText="What do you hold there in your hands, mortal?" WHERE Id=24872;
UPDATE quest_template SET OfferRewardText="Thank you, $N!$B$BI owe you a debt of gratitude for rescuing a friend whom I had thought forever lost to the clutches of the Cult. And the Argent Crusade owes you a debt for the invaluable intelligence Darnavan brings with him from his time walking the halls of this Citadel as one of the Cult.$B$BPlease, take this as a token of this appreciation, and may the Light bolster you as you carve a path through this terrible place." WHERE Id=24875;
UPDATE quest_template SET OfferRewardText="At last, we have live specimens to study! You have helped to save countless lives this day, $N.$B$BPlease, take this as a token of thanks for this great deed." WHERE Id=24878;
UPDATE quest_template SET OfferRewardText="<Kalecgos sighs>$B$BSo much suffering, so much needless destruction. These have not been kind times for my brothers and sisters. But thanks to your efforts, brave adventurers, this darkened yet still noble soul may find peace at last.$B$BRest now, Sindragosa. You are home...." WHERE Id=24880;
UPDATE quest_template SET RequestItemsText="What do you hold there in your hands, mortal?" WHERE Id=24880;
UPDATE quest_template SET OfferRewardText="Stand Clear, $C, and steady yourself." WHERE Id=24912;
UPDATE quest_template SET OfferRewardText="<After tracing a complex pattern of runes on each of the box's surfaces, the outline of a lid appears and a click echoes through the chamber.>$B$BHere you are, $R." WHERE Id=24914;
UPDATE quest_template SET OfferRewardText="Well done $N. But for every element that is subdued another one takes it's place. The solution we have here is merely a stopgap. Hopefully my brethren in the Earthen Ring are making more headway." WHERE Id=25055;
UPDATE quest_template SET RequestItemsText="Have you subdued the elements yet?" WHERE Id=25055;
UPDATE quest_template SET OfferRewardText="Well done $N. But for every element that is subdued another one takes it's place. The solution we have here is merely a stopgap. Hopefully my brethren in the Earthen Ring are making more headway." WHERE Id=25092;
UPDATE quest_template SET RequestItemsText="Have you subdued the elements yet?" WHERE Id=25092;
UPDATE quest_template SET OfferRewardText="Why would Twilight's Hammer take an interest in these tablets? Brann himself wrote that he hardly knows their significance, although he did mention something about becoming one with the earth. I will need to confer with my fellow Explorer's League scholars to decipher these as soon as possible.$B$BThank you, $N. Without your aid, these tablets would've fallen into enemy hands." WHERE Id=25180;
UPDATE quest_template SET RequestItemsText="Did you meet up with the courier?" WHERE Id=25180;
UPDATE quest_template SET OfferRewardText="Why would Twilight's Hammer take an interest in these tablets? Their contents are a mystery to our most learned scholars and deciphering them will take some time. If Twilight's Hammer knows about these relics and desires them, what more are they plotting?$B$BWe are most fortunate that you protected them from capture, $N." WHERE Id=25181;
UPDATE quest_template SET RequestItemsText="Did you meet up with the courier?" WHERE Id=25181;
UPDATE quest_template SET OfferRewardText="You made it through in one piece? You have more gears then I thought, $N!" WHERE Id=25199;
UPDATE quest_template SET OfferRewardText="Fantastic work!$B$BThe data I received shows the radiation levels are fully within safety range of our suits. That is excellent news!" WHERE Id=25212;
UPDATE quest_template SET OfferRewardText="<Torek reads over the scrolls you collected.>$B$BWhoever these people are, they really mean to gain a following. It looks like they're having quite a bit of success. They can't be allowed to incite the citizens of Ogrimmar to panic and hysteria. We must discourage interest in this group and learn as much about it as we can." WHERE Id=25228;
UPDATE quest_template SET RequestItemsText="Well, did you find out anything?" WHERE Id=25228;
UPDATE quest_template SET OfferRewardText="This is the best group of potential pilots you could find?$B$BOkay, well, I'll see what I can do. I've been known to turn even the biggest pile of gnarled gears into a smooth-runnin' fightin' machine and I expect no less with this lot.$B$BWell, I guess it's time to work!" WHERE Id=25229;
UPDATE quest_template SET OfferRewardText="You continue to prove yourself, $N. Accept this, not as a gift, but as a tool for the fight against the Scourge." WHERE Id=25239;
UPDATE quest_template SET OfferRewardText="You continue to prove yourself, $N. Accept this, not as a gift, but as a tool for the fight against the Scourge." WHERE Id=25240;
UPDATE quest_template SET OfferRewardText="You are a true champion of our cause, $N. None can claim to be more dedicated to the struggle than you.$B$BIt is rumored that the minions of the Scourge fear you more than they do the Lich King himself. You are might incarnate.$B$BAccept this humble gift as a reward for your many triumphs." WHERE Id=25242;
UPDATE quest_template SET OfferRewardText="<Anton reads over the scrolls you collected.>$B$BWhoever put these leaflets together knows how to get attention and from the state of things in Old Town, there's no lack of interest. We must act before they can build a significant following in the city. I fear they'll use their influence to spread panic throughout the city, paralyzing us.$B$BWe've got to get inside the organization and learn as much as possible." WHERE Id=25253;
UPDATE quest_template SET RequestItemsText="What did you encounter in Old Town?" WHERE Id=25253;
UPDATE quest_template SET OfferRewardText="Well done, $N. Now we must focus our efforts on discovering more about this cult and freeing the people they've conned into joining." WHERE Id=25254;
UPDATE quest_template SET OfferRewardText="Well done, $N. Now we must focus our efforts on discovering more about this cult and freeing the people they've conned into joining." WHERE Id=25282;
UPDATE quest_template SET OfferRewardText="Hey, look at that! You weren't blown to bits!" WHERE Id=25285;
UPDATE quest_template SET OfferRewardText="This is the final draft, then? Let me have a look..." WHERE Id=25287;
UPDATE quest_template SET OfferRewardText="Welcome, friend. We are honored that you have decided to embrace the truth and join us. Come, there will be more time to talk later and you have much to learn." WHERE Id=25288;
UPDATE quest_template SET OfferRewardText="Hmm... so the left leg servo was activating the right leg? But I saw the left leg moving...$B$BEh, details. I'll get to that later, but two out of three things worked: That isn't half bad!$B$BThanks for checking this out for me, $N." WHERE Id=25289;
UPDATE quest_template SET OfferRewardText="Welcome, friend. We are honored that you have decided to embrace the truth and join us. Come, there will be more time to talk later and you have much to learn." WHERE Id=25290;
UPDATE quest_template SET OfferRewardText="So you found them? Why did the missing men and women not return with you?$B$B<You tell the blood guard about the responses you received.>$B$BWe cannot compel them to change their minds and return to their families. I will let the families know that the relatives have been found and that they are safe. After this cult is broken up, they will likely return to their normal lives." WHERE Id=25293;
UPDATE quest_template SET OfferRewardText="Hmm... so the bullets had quite a bit of spread?$B$BTo some people that may be a problem... me, though, I see it as a blessing in disguise!$B$BOur enemies will be running all over the place, so with a bit of a spread, the tank drivers won't need to lead the target!" WHERE Id=25295;
UPDATE quest_template SET OfferRewardText="Now that you understand the master's plan, you must prepare yourself to play your part." WHERE Id=25343;
UPDATE quest_template SET OfferRewardText="<You hand Blood Guard Torek the devices that the overseer gave you, explaining the cult's plans. Torek's eyes go wide.>$B$BCho'Gall is in charge of the cult? There can be no question then, this is the work of the Twilight's Hammer! You won't be the only one they've sent into the city to deploy these devices." WHERE Id=25347;
UPDATE quest_template SET RequestItemsText="You've returned at last. I was beginning to think that you'd taken up with the cultists for good." WHERE Id=25347;
UPDATE quest_template SET OfferRewardText="Excellent work, $N. Twilight's Hammer will think twice before trying to turn our own people against us again. I'm sure I'm not the only one troubled by just how many citizens were taken in by their message. Times aren't exactly easy, but if you have no honor or loyalty, you have nothing." WHERE Id=25348;
UPDATE quest_template SET OfferRewardText="<The warchief listens as you tell of your investigation into the Twilight's Hammer plot to destroy Orgrimmar.>$B$BYou are a dutiful member of the Horde, $N. You have done well in bringing this news to me. I will personally see to it that our enemies get what they deserve!" WHERE Id=25351;
UPDATE quest_template SET OfferRewardText="Well done, $N. It might be awkward at first, but you will get used to advocating our beliefs in public. It is one way of remembering our obligation to bring the truth to others. We must save as many as we can." WHERE Id=25380;
UPDATE quest_template SET OfferRewardText="Curses! We had to fall back. But Thermaplugg's lost, and he knows it... he's only bought himself time. We hold the surface, and when the radiation clears we'll assault and recapture Gnomeregan with a force twice this size." WHERE Id=25393;
UPDATE quest_template SET OfferRewardText="So you found them? Why did the missing men and women not return with you?$B$B<You tell the captain that they seemed determined to stay for various reasons.>$B$BThen we cannot force them to come home. I can only hope that in time, the cultists will realize the harm their actions have caused and decide to return to their normal lives.$B$BThank you for your efforts, $N. I will tell the families what you found." WHERE Id=25414;
UPDATE quest_template SET OfferRewardText="Well done, $N. It might be awkward at first, but you will grow accustomed to advocating our beliefs in public. It is one way of remembering our obligation to bring the truth to others. We must offer hope to everyone, for we all face the end of this world together." WHERE Id=25415;
UPDATE quest_template SET OfferRewardText="Now that you understand the master's plan, you must prepare to play your part in making it a reality." WHERE Id=25416;
UPDATE quest_template SET OfferRewardText="<You hand Captain Anton the devices that the overseer gave you, explaining the cult's plans.>$B$BCho'Gall is in charge of the cult? Then, it has to be Twilight's Hammer! We suspected that they would try to strike again, but no one knew what form the attack would take.$B$BYou've done an excellent job uncovering this plot. Unfortunately, you won't be the only one they've sent into the city to deploy these devices." WHERE Id=25417;
UPDATE quest_template SET RequestItemsText="You've returned at last. I was beginning to think that you'd taken up with the cultists for good." WHERE Id=25417;
UPDATE quest_template SET OfferRewardText="Excellent work, $N. Twilight's Hammer will think twice before trying to turn our own people against us again.$B$BWhat worries me is how many citizens joined their movement without thinking about the cult's empty promises. Are times so dire that people will abandon the Light for promises of power and immortality?" WHERE Id=25418;
UPDATE quest_template SET OfferRewardText="<The king's face takes on a look of concern, and then anger as you describe the Twilight's Hammer plot to destroy Stormwind.>$B$BHow dare they strike Stormwind? How dare they try to manipulate the people of this city against us and the Alliance! If not for your valor this day, $N, our city would not have discovered this Twilight's Hammer scheme. You are a true hero of Stormwind and the Alliance." WHERE Id=25425;
UPDATE quest_template SET RequestItemsText="Ya helpin' with da frogs or not?" WHERE Id=25444;
UPDATE quest_template SET OfferRewardText="The wind approaches you quickly from the horizon; the earth is steady beneath your feet; and your spirit is already warmed by fire--I would say it is time for you to learn about the purity of water.$B$BYour path has led you this far, and your spirit will give you the strength to carry on even further. But the first step is yours to take." WHERE Id=2986;
UPDATE quest_template SET OfferRewardText="I'm glad you've arrived, $N. There are many things we will have to discuss, but more importantly is your training in the ways of the Light. There are lessons all servants of the Light must learn. If you are ready, we'll begin discussing some of those now." WHERE Id=5634;
UPDATE quest_template SET OfferRewardText="I'm glad you've arrived, $N. There are many things we will have to discuss, but more importantly is your training in the ways of the Light.$B$BThere are lessons all servants of the Light must learn. If you are ready, we'll begin discussing some of those now." WHERE Id=5635;
UPDATE quest_template SET OfferRewardText="I'm glad you've arrived, $N. There are many things we will have to discuss, but more importantly is your training in the ways of the Light.$B$BThere are lessons all servants of the Light must learn. If you are ready, we'll begin discussing some of those now." WHERE Id=5637;
UPDATE quest_template SET OfferRewardText="I'm glad you've arrived, $N. There are many things we will have to discuss, but more importantly is your training in the ways of the Light.$B$BThere are lessons all servants of the Light must learn. If you are ready, we'll begin discussing some of those now." WHERE Id=5639;
UPDATE quest_template SET RequestItemsText="How can I help you?" WHERE Id=6344;
UPDATE quest_template SET OfferRewardText="This is better than even I could have thought possible! The Chambermaid's magical pillow is mine! You better believe you're going to get a nice reward for this accomplishment, $N!" WHERE Id=7704;
UPDATE quest_template SET RequestItemsText="That is one huge pillow! Where'd you get it from?" WHERE Id=7704;
UPDATE quest_template SET OfferRewardText="Excellent! You've proven to be a valuable ally in preparing for the war against the silithid." WHERE Id=8270;
UPDATE quest_template SET OfferRewardText="You have my sincere gratitude. Your efforts in helping Cenarion Hold have shown true courage." WHERE Id=8274;
UPDATE quest_template SET RequestItemsText="Ah, $N - I believe you're one of the new mages here on the isle, yes? Well, you've come to the right place. If arcane mastery is what you seek, then I can provide such knowledge - as long as you have the wherewithal to handle training costs and the capacity to focus on the lessons I'll be teaching. Let's get started!" WHERE Id=8328;
UPDATE quest_template SET OfferRewardText="Welcome to the Sunspire, young $C! Mastery of weapons and battle tactics begins here and now - all I ask of my pupils is that they cover payment for training costs that may come up, and that they are as good of a listener as they are an aspiring $C. The lessons I have to teach are extensive, and I don't like to repeat myself unnecessarially.$B$BLet's get to it then!" WHERE Id=8329;
UPDATE quest_template SET OfferRewardText="Well done, $N! You've served the Alliance well." WHERE Id=8401;
UPDATE quest_template SET RequestItemsText="You have something for me, $N?" WHERE Id=8496;
UPDATE quest_template SET RequestItemsText="You have something for me?" WHERE Id=8497;
UPDATE quest_template SET RequestItemsText="You have something for me?" WHERE Id=8541;
UPDATE quest_template SET RequestItemsText="Yes?" WHERE Id=8563;
UPDATE quest_template SET RequestItemsText="Yes?" WHERE Id=8564;
UPDATE quest_template SET OfferRewardText="I see that you're no ordinary mortal, $N. Your chances against the Old God, however infinitely small, are greater than ours at this point. After all, while he expects dragons at his doorstep, he is not prepared for someone like you.$B$BJust as Anachronos and Staghelm defeated the Qiraji a thousand years ago through the alliance of mortal and dragon races, we too shall form a pact. Gain the trust of the Bronze Dragonflight and you'll gain our trust. Only then we shall make a true champion out of you." WHERE Id=8579;
UPDATE quest_template SET OfferRewardText="You've done well, $N. You've proven you're no ordinary mortal.$B$BI give you these with the confidence they'll aid you in crushing the vile qiraji." WHERE Id=8621;
UPDATE quest_template SET OfferRewardText="I did not expect you to return from your attempt, $N.$B$BYou've fulfilled a destiny greater than that of most immortal beings.$B$BBy slaying C'Thun you've not only saved all of Azeroth, you've also tipped the scales of cosmic events beyond your comprehension.$B$BAccept this breastplate as a symbol of the glory and burden that will come as a consequence of your actions.$B$BMay its power aid you in the challenges that await you, god-slayer!" WHERE Id=8622;
UPDATE quest_template SET OfferRewardText="You've succeeded! The whispers from the Twin Emperors have ceased.$B$BTake this as a reward. The mere sight of it will strike fear in the hearts of the Qiraji... it shall remind them of their fallen leaders and of the mortal that slew them." WHERE Id=8623;
UPDATE quest_template SET OfferRewardText="Yes... the worm's skin will make for an excellent protective layer. Combined with the strongest parts from the Qiraji we've destroyed on our way here, this should make for a formidable piece of armor. May it aid you in facing the unspeakable horrors that await inside!" WHERE Id=8624;
UPDATE quest_template SET OfferRewardText="Yes... the worm's skin will make for an excellent protective layer. Combined with the strongest parts from the Qiraji we've destroyed on our way here, this should make for a formidable piece of armor. May it aid you in facing the unspeakable horrors that await inside!" WHERE Id=8631;
UPDATE quest_template SET OfferRewardText="Yes... the worm's skin will make for an excellent protective layer. Combined with the strongest parts from the Qiraji we've destroyed on our way here, this should make for a formidable piece of armor. May it aid you in facing the unspeakable horrors that await inside!" WHERE Id=8640;
UPDATE quest_template SET OfferRewardText="Yes... the worm's skin will make for an excellent protective layer. Combined with the strongest parts from the Qiraji we've destroyed on our way here, this should make for a formidable piece of armor. May it aid you in facing the unspeakable horrors that await inside!" WHERE Id=8658;
UPDATE quest_template SET OfferRewardText="I did not expect you to return from your attempt, $N.$B$BYou've fulfilled a destiny greater than that of most immortal beings.$B$BBy slaying C'Thun you've not only saved all of Azeroth, you've also tipped the scales of cosmic events beyond your comprehension.$B$BAccept these robes as a symbol of the glory and burden that will come as a consequence of your actions.$B$BMay their power aid you in the challenges that await you, god-slayer!" WHERE Id=8661;
UPDATE quest_template SET RequestItemsText="At his dwelling in Ahn'Qiraj, dread C'Thun awaits in slumber." WHERE Id=8661;
UPDATE quest_template SET RequestItemsText="<Anachronos nods.>" WHERE Id=8741;
UPDATE quest_template SET RequestItemsText="A thousand years has passed and just as it was fated, one stands before me. One who shall lead their people to a new age.$B$BThe Old God trembles, $N. Oh yes, it fears your faith. Shatter the prophecy of C'Thun.$B$BIt knows you come, champion - and with you comes the might of Kalimdor. You have only to let me know when you are prepared and I shall grant you the Scepter of the Shifting Sands." WHERE Id=8742;
UPDATE quest_template SET OfferRewardText="Greetings, champion. I am Jonathan, keeper of the sacred gong and eternal watcher of the Bronze Flight.$B$BI have been empowered by the Timeless One himself to grant you an item of your choosing from his timeless treasure trove. May it aid you in your battles against C'Thun." WHERE Id=8745;
UPDATE quest_template SET OfferRewardText="Impressive, little one. You have gone through much trouble to gain the favor of the Bronze Flight. Your dedication is noted.$B$BThe signet ring of the defender will offer superior protection against the forces of evil.$B$BBe warned, once you have chosen your path, you will have no recourse should you change your mind." WHERE Id=8747;
UPDATE quest_template SET RequestItemsText="Never have I seen such tenacity! The Bronze Flight grants you one final enchantment. The Timeless One himself has requested it so!$B$BHand me your signet ring so that I may make the necessary adjustments." WHERE Id=8751;
UPDATE quest_template SET OfferRewardText="Impressive, little one. You have gone through much trouble to gain the favor of the Bronze Flight. Your dedication is noted.$B$BThe signet ring of the conqueror will greatly enhance your physical attacks.$B$BBe warned, once you have chosen your path, you will have no recourse should you change your mind." WHERE Id=8752;
UPDATE quest_template SET RequestItemsText="Never have I seen such tenacity! The Bronze Flight grants you one final enchantment. The Timeless One himself has requested it so!$B$BHand me your signet ring so that I may make the necessary adjustments." WHERE Id=8756;
UPDATE quest_template SET OfferRewardText="Impressive, little one. You have gone through much trouble to gain the favor of the Bronze Flight. Your dedication is noted.$B$BThe signet ring of the invoker will greatly enhance your magical and natural abilities.$B$BBe warned, once you have chosen your path, you will have no recourse should you change your mind." WHERE Id=8757;
UPDATE quest_template SET RequestItemsText="Never have I seen such tenacity! The Bronze Flight grants you one final enchantment. The Timeless One himself has requested it so!$B$BHand me your signet ring so that I may make the necessary adjustments." WHERE Id=8761;
UPDATE quest_template SET OfferRewardText="The machine lets off a little rumble and a small amount of steam as it starts working. It is not too long thereafter until it stops, heralded by another small jet of steam erupting from it. A door hatch opens, revealing a batch of preserved holly!" WHERE Id=8763;
UPDATE quest_template SET RequestItemsText="The \"Holly Preserver\" machine looks like some sort of still at first, but a careful examination of it reveals some goblin-esque changes to it. Still, your skill at cooking seems to allow you to understand how the machine works.$B$BThere is already fresh holly in the machine - you simply need to provide some deeprock salt and five gold coins to get the machine working." WHERE Id=8763;
UPDATE quest_template SET RequestItemsText="You have something for me, $N?" WHERE Id=8779;
UPDATE quest_template SET RequestItemsText="You have something for me, $N?" WHERE Id=8780;
UPDATE quest_template SET RequestItemsText="You have something for me, $N?" WHERE Id=8782;
UPDATE quest_template SET RequestItemsText="You have something for me, $N?" WHERE Id=8783;
UPDATE quest_template SET OfferRewardText="The machine lets off a little rumble and a small amount of steam as it starts working. It is not too long thereafter until it stops, heralded by another small jet of steam erupting from it. A door hatch opens, revealing a batch of preserved holly!" WHERE Id=8799;
UPDATE quest_template SET RequestItemsText="The \"Holly Preserver\" machine looks like some sort of still at first, but a careful examination of it reveals some goblin-esque changes to it. Still, your skill at cooking seems to allow you to understand how the machine works.$B$BThere is already fresh holly in the machine - you simply need to provide some deeprock salt and five gold coins to get the machine working." WHERE Id=8799;
UPDATE quest_template SET RequestItemsText="You have something for me, $N?" WHERE Id=8809;
UPDATE quest_template SET RequestItemsText="You have something for me, $N?" WHERE Id=8810;
UPDATE quest_template SET OfferRewardText="Well then, it's settled; here are your supplies, $C. If you wish to do an additional exchange, then I am prepared to authorize it. Just give me the word and I'll make it happen.$B$BKeep up the good work, $N. We need all the materiel we can muster if we're going to win this thing. If we all do our part, then victory shall be ours for the taking!" WHERE Id=8846;
UPDATE quest_template SET RequestItemsText="Ah, here for additional supplies for yourself, are you? Well, I can certainly understand the need for additional materiel... just take a look around if you need any proof.$B$BI'll issue you some additional supplies, but you'll need to give me an appropriate number of commendation signets in exchange. You won't receive any recognition for surrendering the signets in this manner, but you might find something useful that will help keep you alive when battle is finally upon us." WHERE Id=8846;
UPDATE quest_template SET RequestItemsText="BLESSED LIGHT! What foulness do you hold, $N?" WHERE Id=9120;
UPDATE quest_template SET OfferRewardText="The Argent Dawn placed the call for aid, and you have answered. There is no time for us to provide you with training. Our faith is placed in your abilities, and that you will join us in throwing back this Scourge threat." WHERE Id=9154;
UPDATE quest_template SET RequestItemsText="You've come to join our order, have you not?" WHERE Id=9154;
UPDATE quest_template SET OfferRewardText="<Sylvanas takes the necklace from your grasp.>$B$BIt can't be! After all this time, I thought it was lost forever.$B$B<After a lingering moment the Lady seems to become aware once again of her surroundings, composing herself.>$B$BYou thought this would amuse me? Do you think I long for a time before I was the queen of the Forsaken? Like you, it means nothing to me, and Alleria Windrunner is a long dead memory!$B$B<She drops the amulet to the ground.>$B$BYou may now remove yourself from my presence, $C." WHERE Id=9177;
UPDATE quest_template SET RequestItemsText="And you are?$B$BWhat's that you have there? That necklace looks somehow familiar. Give it here!" WHERE Id=9177;
UPDATE quest_template SET RequestItemsText="yes?" WHERE Id=9212;
UPDATE quest_template SET RequestItemsText="Have you investigated the invasion yet? There's no time for dawdling!" WHERE Id=9260;
UPDATE quest_template SET OfferRewardText="Hmm. From what you've told me, the voices within the circles... they must be used for communication of some kind. I shudder to think what unnatural minds are contacted through such magic. Regardless, you seem to have emerged whole and sane. The Argent Dawn appreciates your service." WHERE Id=9261;
UPDATE quest_template SET RequestItemsText="Have you investigated the invasion yet? There's no time for dawdling!" WHERE Id=9261;
UPDATE quest_template SET OfferRewardText="Hmm. From what you've told me, the voices within the circles... they must be used for communication of some kind. I shudder to think what unnatural minds are contacted through such magic. Regardless, you seem to have emerged whole and sane. The Argent Dawn appreciates your service." WHERE Id=9262;
UPDATE quest_template SET RequestItemsText="Have you investigated the invasion yet? There's no time for dawdling!" WHERE Id=9262;
UPDATE quest_template SET OfferRewardText="Hmm. From what you've told me, the voices within the circles... they must be used for communication of some kind. I shudder to think what unnatural minds are contacted through such magic. Regardless, you seem to have emerged whole and sane. The Argent Dawn appreciates your service." WHERE Id=9263;
UPDATE quest_template SET RequestItemsText="Have you investigated the invasion yet? There's no time for dawdling!" WHERE Id=9263;
UPDATE quest_template SET OfferRewardText="Have you investigated the invasion yet? There's no time for dawdling!" WHERE Id=9264;
UPDATE quest_template SET RequestItemsText="Hmm. From what you've told me, the voices within the circles... they must be used for communication of some kind. I shudder to think what unnatural minds are contacted through such magic. Regardless, you seem to have emerged whole and sane. The Argent Dawn appreciates your service." WHERE Id=9264;
UPDATE quest_template SET RequestItemsText="Have you investigated the invasion yet? There's no time for dawdling!" WHERE Id=9265;
UPDATE quest_template SET OfferRewardText="<Grelag winces as he tries to stand up.>$BI should've followed Far Seer Regulkut's advice and waited for the bodyguards she was going to send with me. I'm fortunate that she thought to send someone after me.$BI wouldn't have been able to make it back to Thrallmar on my own. I've been doing what I can for this leg, but without my supplies, the outlook is grim." WHERE Id=9344;
UPDATE quest_template SET RequestItemsText="Yes?" WHERE Id=9500;
UPDATE quest_template SET RequestItemsText="Yes?" WHERE Id=9501;
UPDATE quest_template SET RequestItemsText="Yes?" WHERE Id=9578;
UPDATE quest_template SET RequestItemsText="Yes?" WHERE Id=9617;
UPDATE quest_template SET RequestItemsText="Yes?" WHERE Id=9620;
UPDATE quest_template SET RequestItemsText="Yes?" WHERE Id=9672;
UPDATE quest_template SET RequestItemsText="I see the pride swelling in your chest. Already you fancy yourself one of the Blood Knights.$BIn time. you will earn your place among us. But first you must learn to harness and master the powers of the Light, hone your skills at arms, and prove your worthiness.$BYou must be prepared to endure the derision, fear, and revulsion of those you're sworn to defend. So it is among those who can't comprehend the price of the great power that safeguards them. Keep your head high and your blade at the ready, $N." WHERE Id=9676;
UPDATE quest_template SET RequestItemsText="yes?" WHERE Id=9677;
UPDATE quest_template SET RequestItemsText="yes?" WHERE Id=9681;
UPDATE quest_template SET RequestItemsText="Yes?" WHERE Id=9711;
UPDATE quest_template SET RequestItemsText="Yes?" WHERE Id=9753;
UPDATE quest_template SET RequestItemsText="Yes?" WHERE Id=9756;
UPDATE quest_template SET RequestItemsText="Yes?" WHERE Id=9759;
UPDATE quest_template SET RequestItemsText="Si?" WHERE Id=9760;
UPDATE quest_template SET RequestItemsText="Yes?" WHERE Id=9762;
UPDATE quest_template SET OfferRewardText="Amid the wreckage of the merchant's cart and goods, sets of strange footprints are visible. The footprints appear to have come from an overgrown bird.$BRecalling what you know about the arakkoa, you conclude the print is large enough to belong to one of the sentient bird-people who make their homes in the forest. Why would they have taken to attacking Horde merchants?" WHERE Id=9929;
UPDATE quest_template SET OfferRewardText="Amid the wreckage of the merchant's cart and goods, sets of strange footprints are visible. The footprints appear to have come from an overgrown bird.$BRecalling what you know about the arakkoa, you conclude the print is large enough to belong to one of the sentient bird-people who make their homes in the forest. Why would they have taken to attacking Alliance merchants?" WHERE Id=9930;
UPDATE quest_template SET OfferRewardText="Inspecting the printing on the sacks, you can make out Deirom's name. The arakkoa seem to have cared enough about the merchant's cargo to transport it away from the cart, but where is the missing merchant?" WHERE Id=9941;
UPDATE quest_template SET OfferRewardText="Inspecting the printing on the sacks, you can make out Dugar's name. The arakkoa seem to have cared enough about the merchant's cargo to transport it away from the cart, but where is the missing merchant?" WHERE Id=9942;
UPDATE quest_template SET OfferRewardText="<Thander nods as you tell him about your findings in the arakkoa settlement.>$BThere's no doubt that they're involved, then. But why?$BDeirom has been making the trip to Shattrath without incident for some time. Why would the arakkoa choose this trip to take him captive?" WHERE Id=9943;
UPDATE quest_template SET OfferRewardText="<Rokag nods as you tell him about your findings in the arakkoa settlement.>$BThere's no doubt that they're involved, then. But why?$BDugar has been making the trip to Shattrath without incident for some time. Why would the arakkoa choose this trip to take him captive?" WHERE Id=9947;
UPDATE quest_template SET OfferRewardText="Odd, these eyes are not exactly what I am used to working with. The manner in which the arakkoa use their magic is slightly different than ours.$B$BIt looks like we're going to need one more thing if I'm going to be able to scry for the information to locate Deirom." WHERE Id=9949;
UPDATE quest_template SET RequestItemsText="Thander has spoken with me about his plan. You have the eyes?" WHERE Id=9949;
UPDATE quest_template SET OfferRewardText="Aye, I'm familiar with Veil Shalas. Nasty piece of work, that. But if your friend is being held there, I suppose we're going to have to find a way around their defenses." WHERE Id=9952;
UPDATE quest_template SET OfferRewardText="The influence of Veil Shalas dominates these parts. If your friend is being held there, I suppose we're going to have to find a way around their defenses." WHERE Id=9953;
UPDATE quest_template SET OfferRewardText="Their defenses are much more sophisticated than I'd thought, $N. That's a bad sign. Fortunately, for every good spell, there's a counterspell. It's just a question of getting our hands on that counter." WHERE Id=9958;
UPDATE quest_template SET OfferRewardText="Their defenses are much more sophisticated than I'd thought, $N. That's a bad sign. Fortunately, for every good spell, there's a counterspell. It's just a question of getting our hands on that counter." WHERE Id=9959;
UPDATE quest_template SET OfferRewardText="Excellent. This will take just a moment." WHERE Id=9969;
UPDATE quest_template SET OfferRewardText="Excellent. This will take just a moment." WHERE Id=9974;
UPDATE quest_template SET RequestItemsText="Have you brought the rest of the reagents?" WHERE Id=9974;
UPDATE quest_template SET OfferRewardText="If the talisman's spell worked, then you should be ready to venture into Veil Shalas. I hope your arakkoa sage was telling you the truth when he said that his magic was stronger than that ward's. If he's deceiving us, both you and Deirom are in trouble." WHERE Id=9975;
UPDATE quest_template SET OfferRewardText="If the talisman's spell worked, then you should be ready to venture into Veil Shalas. I hope your arakkoa sage was telling you the truth when he said that his magic was stronger than that ward's. If he's deceiving us, both you and Dugar are in trouble." WHERE Id=9976;
UPDATE quest_template SET OfferRewardText="I must admit, $N, I'm pleasantly surprised. When Thander told me that Deirom was being held in Veil Shalas, I began to wonder whether he was lost to us for good.$B$BThis is one time I'm very happy to have been proven wrong.$B$BYou can bet we'll be keeping a closer eye on the activities of the arakkoa after this." WHERE Id=9980;
UPDATE quest_template SET OfferRewardText="I must admit, $N, I'm surprised. When we found out that Dugar was being held in Veil Shalas, I began to wonder whether he was lost to us for good.$B$BThis is one time I'm happy to be proven wrong.$B$BYou can bet we'll be keeping a closer eye on the activities of the arakkoa after this." WHERE Id=9981;
UPDATE quest_template SET RequestItemsText="That script looks familiar. It's arakkoa, all right, but I don't recognize this seal." WHERE Id=9984;
UPDATE quest_template SET RequestItemsText="That script looks familiar. It's arakkoa, all right, but I don't recognize this seal." WHERE Id=9985;
UPDATE quest_template SET OfferRewardText="These will work, although I'm sure the men will start to complain about the lack of variety soon. Light forbid they should look the same!$B$B<Ros'eleth gasps in mock horror.>$B$BOh, no, we can't have that!" WHERE Id=9988;
UPDATE quest_template SET OfferRewardText="These will work well. The more individuals you collected them from, the more they will help me when I try to contact the arakkoa spirits. Thank you for your help, $N." WHERE Id=9989;
UPDATE quest_template SET RequestItemsText="Have you returned with the feathers?" WHERE Id=9989;

View File

@@ -0,0 +1,17 @@
-- Cleaning WRONG SAI Data
UPDATE smart_scripts SET target_type=1 WHERE target_type IN(0,8) AND action_type=41; -- set correct target for Force Despawn
-- Correct Wrong Linking in SAI
-- select * from smart_scripts AS ss where ss.event_type=61 and ss.id not in(select link from smart_scripts AS bss where bss.entryorguid=ss.entryorguid)
-- select * from smart_scripts AS ss where ss.event_type<>61 and ss.id in(select link from smart_scripts AS bss where bss.entryorguid=ss.entryorguid and bss.link > 0)
-- select * from creature_template where ainame not like '%Smart%' AND entry in(select distinct entryorguid from smart_scripts where source_type=0)
-- select * from smart_scripts WHERE id=link;
-- ZOMG SAME LINK ID=LINK
-- Range event npcs
-- Generic retardness fix, wont break anything but will fix maaany npcs (probably around 200)
-- On every update phase_mask is reduced by 1 and most of casting and other events requires phase_mask 1 which is set by entering combat
-- We set event_phase_mask = 2 for this event because second phase addition is made on burning out of mana, so this event should be run on phase 2 (phase reduction if enaugh mana was restored)
UPDATE smart_scripts SET event_phase_mask=2 WHERE source_type=0 AND event_type=3 AND event_phase_mask=0 AND action_type=23 AND action_param2=1;

View File

@@ -0,0 +1,21 @@
-- -------------------------------------------
-- REPUTATION FIXES
-- -------------------------------------------
-- Minion's Scourgestones (5402)
-- Invader's Scourgestones (5403)
-- Corruptor's Scourgestones (5406)
UPDATE quest_template SET RewardFactionValueId1=0, RewardFactionValueIdOverride1=5000 WHERE Id IN(5402, 5403, 5406);
-- Encrypted Twilight Texts (8319)
-- Preparing for the Worst (11945)
UPDATE quest_template SET RewardFactionValueId1=0, RewardFactionValueIdOverride1=50000 WHERE Id IN(8319, 11945);
-- The Mag'har dailies
UPDATE reputation_reward_rate SET quest_daily_rate=2, quest_repeatable_rate=2 WHERE faction=941;
-- Kurenai Dailies
UPDATE reputation_reward_rate SET quest_daily_rate=2, quest_repeatable_rate=2 WHERE faction=978;
-- Timbermaw Hold dailies
UPDATE reputation_reward_rate SET quest_daily_rate=4, quest_repeatable_rate=4 WHERE faction=576;

View File

@@ -0,0 +1,18 @@
-- Plagued Lands (2118)
UPDATE gameobject_template SET AIName='SmartGameObjectAI', ScriptName='' WHERE entry=111148;
UPDATE creature_template SET minlevel=13, maxlevel=13, AIName='SmartAI', ScriptName='' WHERE entry=2164;
UPDATE creature_template SET minlevel=13, maxlevel=13, faction=35 WHERE entry=11836;
DELETE FROM smart_scripts WHERE entryorguid=2164 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid=111148 AND source_type=1;
DELETE FROM smart_scripts WHERE entryorguid=2164*100 AND source_type=9;
INSERT INTO smart_scripts VALUES (111148, 1, 0, 0, 60, 0, 100, 257, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, 'Night Elven Bear Trap - On Update - Set Data closest Rabid Thistle Bear');
INSERT INTO smart_scripts VALUES (111148, 1, 1, 2, 60, 0, 100, 0, 500, 500, 1000, 1000, 100, 1, 0, 0, 0, 0, 0, 19, 2164, 5, 0, 0, 0, 0, 0, 'Night Elven Bear Trap - On Update - Send Target to Target');
INSERT INTO smart_scripts VALUES (111148, 1, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 19, 2164, 5, 0, 0, 0, 0, 0, 'Night Elven Bear Trap - On Update - Set Data closest Rabid Thistle Bear');
INSERT INTO smart_scripts VALUES (2164, 0, 1, 0, 38, 0, 100, 1, 1, 1, 0, 0, 80, 2164*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rabid Thistle Bear - On Data Set - Run Script');
INSERT INTO smart_scripts VALUES (2164*100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rabid Thistle Bear - On Script - Set Home Position');
INSERT INTO smart_scripts VALUES (2164*100, 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, 'Rabid Thistle Bear - On Script - Evade');
INSERT INTO smart_scripts VALUES (2164*100, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 33, 11836, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Rabid Thistle Bear - On Script - Kill Credit');
INSERT INTO smart_scripts VALUES (2164*100, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 29, 0, 180, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Rabid Thistle Bear - On Script - Follow Target');
INSERT INTO smart_scripts VALUES (2164*100, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 36, 11836, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rabid Thistle Bear - On Script - Change Entry to Captured Rabid Thistle Bear');
INSERT INTO smart_scripts VALUES (2164*100, 9, 5, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 120000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rabid Thistle Bear - On Script - Despawn');

View File

@@ -0,0 +1,3 @@
-- Assisting Arch Druid Staghelm (3789), Remove duplicate quest start
DELETE FROM creature_queststarter WHERE id=5111 AND quest=3763;

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');

View File

@@ -0,0 +1,249 @@
-- To Rule The Skies (11078)
DELETE FROM smart_scripts WHERE entryorguid IN(185932, 185936, 185937, 185938) AND source_type=1;
INSERT INTO smart_scripts VALUES (185932, 1, 0, 1, 62, 0, 100, 0, 8685, 0, 0, 0, 85, 41036, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Obsidia''s Egg - On Gossip Option 0 Selected - Invoker Cast Four Dragons: Reagents - Obsidia');
INSERT INTO smart_scripts VALUES (185932, 1, 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, 'Obsidia''s Egg - On Gossip Option 0 Selected - Close Gossip');
INSERT INTO smart_scripts VALUES (185932, 1, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 99, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Obsidia''s Egg - On Gossip Option 0 Selected - Set Loot State');
INSERT INTO smart_scripts VALUES (185936, 1, 0, 1, 62, 0, 100, 0, 8689, 0, 0, 0, 85, 41045, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Rivendark''s Egg - On Gossip Option 0 Selected - Invoker Cast Four Dragons: Reagents - Rivendark');
INSERT INTO smart_scripts VALUES (185936, 1, 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, 'Rivendark''s Egg - On Gossip Option 0 Selected - Close Gossip');
INSERT INTO smart_scripts VALUES (185936, 1, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 99, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rivendark''s Egg - On Gossip Option 0 Selected - Set Loot State');
INSERT INTO smart_scripts VALUES (185937, 1, 0, 1, 62, 0, 100, 0, 8690, 0, 0, 0, 85, 41049, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Furywing''s Egg - On Gossip Option 0 Selected - Invoker Cast Four Dragons: Reagents - Furywing');
INSERT INTO smart_scripts VALUES (185937, 1, 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, 'Furywing''s Egg - On Gossip Option 0 Selected - Close Gossip');
INSERT INTO smart_scripts VALUES (185937, 1, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 99, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Furywing''s Egg - On Gossip Option 0 Selected - Set Loot State');
INSERT INTO smart_scripts VALUES (185938, 1, 0, 1, 62, 0, 100, 0, 8691, 0, 0, 0, 85, 41051, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Insidion''s Egg - On Gossip Option 0 Selected - Invoker Cast Four Dragons: Reagents - Insidion');
INSERT INTO smart_scripts VALUES (185938, 1, 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, 'Insidion''s Egg - On Gossip Option 0 Selected - Close Gossip');
INSERT INTO smart_scripts VALUES (185938, 1, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 99, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Insidion''s Egg - On Gossip Option 0 Selected - Set Loot State');
-- Gorgrom the Dragon-Eater (10802)
-- Gorgrom the Dragon-Eater (10723)
DELETE FROM event_scripts WHERE id IN(14400, 14536);
INSERT INTO event_scripts VALUES(14400, 0, 10, 10204, 30000, 0, 3605.5, 7186.44, 141.12, 5.45);
INSERT INTO event_scripts VALUES(14400, 2, 10, 21514, 30000, 0, 3629.58, 7163.36, 141.83, 2.37);
INSERT INTO event_scripts VALUES(14536, 0, 10, 10204, 30000, 0, 3605.5, 7186.44, 141.12, 5.45);
INSERT INTO event_scripts VALUES(14536, 2, 10, 21514, 30000, 0, 3629.58, 7163.36, 141.83, 2.37);
REPLACE INTO creature_text VALUES(21514, 0, 0, 'Who dares defile the altar of Gorgrom the Dragon-Eater?', 14, 0, 100, 0, 0, 0, 0, 'Gorgrom the Dragon-Eater');
REPLACE INTO creature_text VALUES(21514, 1, 0, 'I will crush it and flay it and eat its meat and crack its bones one by one when I am done.', 14, 0, 100, 0, 0, 0, 0, 'Gorgrom the Dragon-Eater');
UPDATE creature_template SET modelid1=16046, modelid2=17345 WHERE entry=22447;
UPDATE creature_template SET unit_flags=768, AIName='SmartAI', ScriptName='' WHERE entry=21514;
DELETE FROM smart_scripts WHERE entryorguid=21514 AND source_type=0;
INSERT INTO smart_scripts VALUES(21514, 0, 0, 0, 60, 0, 100, 257, 2000, 2000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Gorgrom the Dragon-Eater - On Update - Say Line 0');
INSERT INTO smart_scripts VALUES(21514, 0, 1, 0, 60, 0, 100, 257, 6000, 6000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Gorgrom the Dragon-Eater - On Update - Say Line 0');
INSERT INTO smart_scripts VALUES(21514, 0, 2, 0, 60, 0, 100, 257, 8000, 8000, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, 3607.65, 7184.20, 139.60, 2.28, 'Gorgrom the Dragon-Eater - On Update - Move To Position');
INSERT INTO smart_scripts VALUES(21514, 0, 3, 0, 60, 0, 100, 257, 10000, 10000, 0, 0, 130, 1, 0, 0, 0, 0, 0, 19, 10204, 50, 0, 3614.29, 7194.79, 139.76, 0, 'Gorgrom the Dragon-Eater - On Update - Move To Position Target');
INSERT INTO smart_scripts VALUES(21514, 0, 4, 5, 34, 0, 100, 257, 8, 1, 0, 0, 86, 39225, 2, 10, 78796, 22447, 1, 1, 0, 0, 0, 0, 0, 0, 0, 'Gorgrom the Dragon-Eater - Movement Inform - Cross Cast Spell [DND]Sablemane''s Teleport');
INSERT INTO smart_scripts VALUES(21514, 0, 5, 0, 61, 0, 100, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Gorgrom the Dragon-Eater - Movement Inform - Set Event Phase');
INSERT INTO smart_scripts VALUES(21514, 0, 6, 7, 60, 1, 100, 257, 1500, 1500, 0, 0, 37, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Gorgrom the Dragon-Eater - On Update - Die');
INSERT INTO smart_scripts VALUES(21514, 0, 7, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 60000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Gorgrom the Dragon-Eater - On Update - Despawn');
INSERT INTO smart_scripts VALUES(21514, 0, 8, 0, 60, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Gorgrom the Dragon-Eater - On AI Init - Set React Passive');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=17 AND sourceEntry IN(39264, 39220);
INSERT INTO conditions VALUES(17, 0, 39264, 0, 0, 29, 0, 21514, 30, 0, 1, 22, 0, '', 'Allow to cast if no npc Gorgrom the Dragon-Eater nearby');
INSERT INTO conditions VALUES(17, 0, 39264, 0, 0, 29, 0, 21514, 30, 1, 1, 22, 0, '', 'Allow to cast if no npc Gorgrom the Dragon-Eater nearby');
INSERT INTO conditions VALUES(17, 0, 39220, 0, 0, 29, 0, 21514, 30, 0, 1, 22, 0, '', 'Allow to cast if no npc Gorgrom the Dragon-Eater nearby');
INSERT INTO conditions VALUES(17, 0, 39220, 0, 0, 29, 0, 21514, 30, 1, 1, 22, 0, '', 'Allow to cast if no npc Gorgrom the Dragon-Eater nearby');
-- Showdown (10742)
-- Showdown (10806)
DELETE FROM creature_addon WHERE guid IN(SELECT guid FROM creature WHERE id IN(22496, 20555));
DELETE FROM creature WHERE id IN(22496, 20555);
DELETE FROM event_scripts WHERE id IN(14462, 14525);
INSERT INTO event_scripts VALUES (14462, 0, 10, 20555, 300000, 0, 3703.51, 5387.74, -4.37, 5.9);
INSERT INTO event_scripts VALUES (14462, 0, 10, 22448, 300000, 0, 3688, 5353, 25, 0);
INSERT INTO event_scripts VALUES (14525, 0, 10, 20555, 300000, 0, 3703.51, 5387.74, -4.37, 5.9);
INSERT INTO event_scripts VALUES (14525, 0, 10, 22473, 300000, 0, 3718.36, 5361.27, -8.0, 2.14);
DELETE FROM conditions WHERE SourceTypeOrReferenceId=17 AND SourceEntry=39224;
INSERT INTO conditions VALUES(17, 0, 39224, 0, 0, 29, 0, 14462, 150, 0, 1, 22, 0, '', 'Require no Goc nearby');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=17 AND SourceEntry=39223;
INSERT INTO conditions VALUES(17, 0, 39223, 0, 0, 29, 0, 14462, 150, 0, 1, 22, 0, '', 'Require no Goc nearby');
DELETE FROM creature_text WHERE entry=20555;
INSERT INTO creature_text VALUES (20555, 0, 0, 'Who dares place this affront upon the altar of Goc?', 14, 0, 100, 53, 0, 0, 0, 'Goc');
INSERT INTO creature_text VALUES (20555, 1, 0, 'Who dares rouse Goc from his restful slumber?', 14, 0, 100, 53, 0, 0, 0, 'Goc');
INSERT INTO creature_text VALUES (20555, 2, 0, 'Your name is as insignificant to me as the names of the thousands who have died under the might of Goc. I will crush you and $N', 14, 0, 100, 53, 0, 0, 0, 'Goc');
UPDATE creature_template SET faction=14, AIName='SmartAI', ScriptName='' WHERE entry=20555;
DELETE FROM smart_scripts WHERE entryorguid=20555 AND source_type=0;
INSERT INTO smart_scripts VALUES (20555, 0, 0, 0, 38, 0, 100, 0, 1, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 19, 22448, 100, 0, 0, 0, 0, 0, 'Goc - On Data Set - Set Orientation');
INSERT INTO smart_scripts VALUES (20555, 0, 1, 0, 38, 0, 100, 0, 1, 1, 0, 0, 1, 2, 0, 0, 0, 0, 0, 21, 100, 0, 0, 0, 0, 0, 0, 'Goc - On Data Set - Say Line 2');
INSERT INTO smart_scripts VALUES (20555, 0, 2, 9, 38, 0, 100, 0, 1, 2, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 100, 0, 0, 0, 0, 0, 0, 'Goc - On Data Set - Attack Start');
INSERT INTO smart_scripts VALUES (20555, 0, 3, 0, 6, 0, 100, 0, 0, 0, 0, 0, 11, 45106, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Goc - On Death - Cast Showdown: Goc Kill Credit');
INSERT INTO smart_scripts VALUES (20555, 0, 4, 0, 7, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Goc - On Evade - Despawn');
INSERT INTO smart_scripts VALUES (20555, 0, 5, 0, 0, 0, 100, 0, 9000, 12000, 11000, 15000, 11, 38784, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Goc - In Combat - Cast Ground Smash');
INSERT INTO smart_scripts VALUES (20555, 0, 6, 0, 0, 0, 100, 0, 3000, 6000, 11000, 15000, 11, 38783, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Goc - In Combat - Cast Boulder Volley');
INSERT INTO smart_scripts VALUES (20555, 0, 7, 8, 25, 0, 100, 0, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Goc - On Reset - Set Unit Flags');
INSERT INTO smart_scripts VALUES (20555, 0, 8, 0, 61, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Goc - On Reset - Set React Passive');
INSERT INTO smart_scripts VALUES (20555, 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, 'Goc - On Reset - Remove Unit Flags');
INSERT INTO smart_scripts VALUES (20555, 0, 10, 0, 61, 0, 100, 0, 0, 0, 0, 0, 8, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Goc - On Reset - Set React Aggressive');
INSERT INTO smart_scripts VALUES (20555, 0, 11, 0, 38, 0, 100, 0, 1, 3, 0, 0, 66, 0, 0, 0, 0, 0, 0, 19, 22473, 100, 0, 0, 0, 0, 0, 'Goc - On Data Set - Set Orientation');
DELETE FROM creature_text WHERE entry=22473;
INSERT INTO creature_text VALUES (22473, 0, 0, 'It''s only right that you know the name of the one who will take your life.', 14, 0, 100, 1, 0, 0, 0, 'Baron Sablemane');
INSERT INTO creature_text VALUES (22473, 1, 0, 'Baron Sablemane. It will be on your lips as you gasp your dying breath.', 14, 0, 100, 1, 0, 0, 0, 'Baron Sablemane');
INSERT INTO creature_text VALUES (22473, 2, 0, 'Let us begin.', 14, 0, 100, 15, 0, 0, 0, 'Baron Sablemane');
INSERT INTO creature_text VALUES (22473, 3, 0, 'We will speak again, but away from here.', 14, 0, 100, 1, 0, 0, 0, 'Baron Sablemane');
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=22473;
DELETE FROM smart_scripts WHERE entryorguid=22473 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid IN(22473*100, 22473*100+1) AND source_type=9;
INSERT INTO smart_scripts VALUES (22473, 0, 0, 0, 37, 0, 100, 257, 0, 0, 0, 0, 48, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Baron Sablemane - On AI Init - Set Active');
INSERT INTO smart_scripts VALUES (22473, 0, 1, 0, 60, 0, 100, 257, 0, 0, 0, 0, 80, 22473*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Baron Sablemane - On Update - Start Script');
INSERT INTO smart_scripts VALUES (22473, 0, 2, 0, 7, 0, 100, 257, 0, 0, 0, 0, 80, 22473*100+1, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Baron Sablemane - On Evade - Start Script');
INSERT INTO smart_scripts VALUES (22473, 0, 3, 0, 0, 0, 100, 0, 0, 1000, 3000, 4000, 11, 17290, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Baron Sablemane - In Combat - Cast Fireball');
INSERT INTO smart_scripts VALUES (22473, 0, 4, 0, 0, 0, 100, 0, 4000, 7000, 11000, 20000, 11, 39268, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Baron Sablemane - In Combat - Cast Chains of Ice');
INSERT INTO smart_scripts VALUES (22473*100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Baron Sablemane - On Update - Set Unit Flags');
INSERT INTO smart_scripts VALUES (22473*100, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 41232, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Baron Sablemane - On Update - Cast Teleport Visual Only');
INSERT INTO smart_scripts VALUES (22473*100, 9, 2, 0, 0, 0, 100, 0, 500, 500, 0, 0, 1, 1, 0, 0, 0, 0, 0, 19, 20555, 100, 0, 0, 0, 0, 0, 'Baron Sablemane - On Update - Say Line 1 Target');
INSERT INTO smart_scripts VALUES (22473*100, 9, 3, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Baron Sablemane - On Update - Say Line 0');
INSERT INTO smart_scripts VALUES (22473*100, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 45, 1, 3, 0, 0, 0, 0, 19, 20555, 100, 0, 0, 0, 0, 0, 'Baron Sablemane - On Update - Set Data');
INSERT INTO smart_scripts VALUES (22473*100, 9, 5, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Baron Sablemane - On Update - Say Line 1');
INSERT INTO smart_scripts VALUES (22473*100, 9, 6, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 45, 1, 1, 0, 0, 0, 0, 19, 20555, 100, 0, 0, 0, 0, 0, 'Baron Sablemane - On Update - Set Data');
INSERT INTO smart_scripts VALUES (22473*100, 9, 7, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Baron Sablemane - On Update - Say Line 1');
INSERT INTO smart_scripts VALUES (22473*100, 9, 8, 0, 0, 0, 100, 0, 500, 500, 0, 0, 45, 1, 2, 0, 0, 0, 0, 19, 20555, 100, 0, 0, 0, 0, 0, 'Baron Sablemane - On Update - Set Data');
INSERT INTO smart_scripts VALUES (22473*100, 9, 9, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Baron Sablemane - On Update - Attack Start');
INSERT INTO smart_scripts VALUES (22473*100, 9, 10, 0, 0, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Baron Sablemane - On Update - Remove Unit Flags');
INSERT INTO smart_scripts VALUES (22473*100+1, 9, 0, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Baron Sablemane - On Update - Say Line 3');
INSERT INTO smart_scripts VALUES (22473*100+1, 9, 1, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 11, 41232, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Baron Sablemane - On Update - Cast Teleport Visual Only');
INSERT INTO smart_scripts VALUES (22473*100+1, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 1000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Baron Sablemane - On Update - Despawn');
DELETE FROM creature_text WHERE entry=22448;
INSERT INTO creature_text VALUES (22448, 0, 0, 'I am Rexxar, son of the Mok''Nathal, champion of the Horde.', 14, 0, 100, 397, 0, 0, 0, 'Rexxar');
INSERT INTO creature_text VALUES (22448, 1, 0, 'And their torment at your hands is at an end. By my name, I shall put an end to your life.', 14, 0, 100, 113, 0, 0, 0, 'Rexxar');
INSERT INTO creature_text VALUES (22448, 2, 0, 'Prepare yourself for the end.', 14, 0, 100, 15, 0, 0, 0, 'Rexxar');
INSERT INTO creature_text VALUES (22448, 3, 0, 'I could not have achieved this victory without you. We will speak back at Thunderlord Stronghold.', 14, 0, 100, 397, 0, 0, 0, 'Rexxar');
UPDATE creature_template SET InhabitType=3, AIName='SmartAI', ScriptName='' WHERE entry=22448;
DELETE FROM creature_template_addon WHERE entry=22448;
DELETE FROM smart_scripts WHERE entryorguid=22448 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid IN(22448*100, 22448*100+1) AND source_type=9;
INSERT INTO smart_scripts VALUES (22448, 0, 0, 1, 37, 0, 100, 257, 0, 0, 0, 0, 43, 0, 20964, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - On AI Init - Mount');
INSERT INTO smart_scripts VALUES (22448, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 48, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - On AI Init - Set Active');
INSERT INTO smart_scripts VALUES (22448, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 60, 1, 200, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - On AI Init - Set Flying');
INSERT INTO smart_scripts VALUES (22448, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 148, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - On AI Init - No Environment Update');
INSERT INTO smart_scripts VALUES (22448, 0, 4, 0, 60, 0, 100, 257, 0, 0, 0, 0, 80, 22448*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - On Update - Start Script');
INSERT INTO smart_scripts VALUES (22448, 0, 5, 0, 7, 0, 100, 257, 0, 0, 0, 0, 80, 22448*100+1, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - On Evade - Start Script');
INSERT INTO smart_scripts VALUES (22448, 0, 6, 0, 0, 0, 100, 1, 4000, 4000, 0, 0, 11, 39269, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - In Combat - Cast Summon Misha');
INSERT INTO smart_scripts VALUES (22448, 0, 7, 0, 0, 0, 100, 1, 16000, 16000, 0, 0, 11, 39251, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - In Combat - Cast Summon Huffer');
INSERT INTO smart_scripts VALUES (22448, 0, 8, 0, 0, 0, 100, 1, 30000, 30000, 0, 0, 11, 39253, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - In Combat - Cast Summon Spirit');
INSERT INTO smart_scripts VALUES (22448*100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - On Update - Set Unit Flags');
INSERT INTO smart_scripts VALUES (22448*100, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 17, 27, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - On Update - Set Emote State');
INSERT INTO smart_scripts VALUES (22448*100, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, 3718.36, 5361.27, -6.5, 0, 'Rexxar - On Update - Move Point');
INSERT INTO smart_scripts VALUES (22448*100, 9, 3, 0, 0, 0, 100, 0, 500, 500, 0, 0, 1, 0, 0, 0, 0, 0, 0, 19, 20555, 100, 0, 0, 0, 0, 0, 'Rexxar - On Update - Say Line 0 Target');
INSERT INTO smart_scripts VALUES (22448*100, 9, 4, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 43, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - On Update - Dismount');
INSERT INTO smart_scripts VALUES (22448*100, 9, 5, 0, 0, 0, 100, 0, 0, 0, 0, 0, 60, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - On Update - Set Fly off');
INSERT INTO smart_scripts VALUES (22448*100, 9, 6, 0, 0, 0, 100, 0, 500, 500, 0, 0, 66, 0, 0, 0, 0, 0, 0, 19, 20555, 100, 0, 0, 0, 0, 0, 'Rexxar - On Update - Set Orientation');
INSERT INTO smart_scripts VALUES (22448*100, 9, 7, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - On Update - Say Line 0');
INSERT INTO smart_scripts VALUES (22448*100, 9, 8, 0, 0, 0, 100, 0, 0, 0, 0, 0, 45, 1, 0, 0, 0, 0, 0, 19, 20555, 100, 0, 0, 0, 0, 0, 'Rexxar - On Update - Set Data');
INSERT INTO smart_scripts VALUES (22448*100, 9, 9, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - On Update - Say Line 1');
INSERT INTO smart_scripts VALUES (22448*100, 9, 10, 0, 0, 0, 100, 0, 8000, 8000, 0, 0, 45, 1, 1, 0, 0, 0, 0, 19, 20555, 100, 0, 0, 0, 0, 0, 'Rexxar - On Update - Set Data');
INSERT INTO smart_scripts VALUES (22448*100, 9, 11, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - On Update - Say Line 2');
INSERT INTO smart_scripts VALUES (22448*100, 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, 'Rexxar - On Update - Set Home Position');
INSERT INTO smart_scripts VALUES (22448*100, 9, 13, 0, 0, 0, 100, 0, 500, 500, 0, 0, 45, 1, 2, 0, 0, 0, 0, 19, 20555, 100, 0, 0, 0, 0, 0, 'Rexxar - On Update - Set Data');
INSERT INTO smart_scripts VALUES (22448*100, 9, 14, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - On Update - Remove Unit Flags');
INSERT INTO smart_scripts VALUES (22448*100, 9, 15, 0, 0, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 19, 20555, 100, 0, 0, 0, 0, 0, 'Rexxar - On Update - Attack Start');
INSERT INTO smart_scripts VALUES (22448*100+1, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 19, 22492, 100, 0, 0, 0, 0, 0, 'Rexxar - On Update - Despawn Target');
INSERT INTO smart_scripts VALUES (22448*100+1, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 19, 22498, 100, 0, 0, 0, 0, 0, 'Rexxar - On Update - Despawn Target');
INSERT INTO smart_scripts VALUES (22448*100+1, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 19, 22490, 100, 0, 0, 0, 0, 0, 'Rexxar - On Update - Despawn Target');
INSERT INTO smart_scripts VALUES (22448*100+1, 9, 3, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - On Update - Say Line 3');
INSERT INTO smart_scripts VALUES (22448*100+1, 9, 4, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 43, 0, 20964, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - On Update - Mount');
INSERT INTO smart_scripts VALUES (22448*100+1, 9, 5, 0, 0, 0, 100, 0, 0, 0, 0, 0, 60, 1, 300, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - On Update - Set Fly');
INSERT INTO smart_scripts VALUES (22448*100+1, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 69, 2, 0, 0, 0, 0, 0, 8, 0, 0, 0, 3625, 5468, 104, 0, 'Rexxar - On Update - Move To Position');
INSERT INTO smart_scripts VALUES (22448*100+1, 9, 7, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 8000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Rexxar - On Update - Despawn');
-- A Boaring Time for Grulloc (10721)
DELETE FROM event_scripts WHERE id=14274;
INSERT INTO event_scripts VALUES (14274, 2, 10, 22114, 3000000, 0, 2669.70, 5650.77, -13.45, 4.55);
UPDATE creature_template SET AIName='SmartAI', ScriptName=''WHERE entry=22114;
DELETE FROM smart_scripts WHERE entryorguid=22114 AND source_type=0;
INSERT INTO smart_scripts VALUES (22114, 0, 0, 1, 60, 0, 100, 257, 0, 0, 0, 0, 48, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Huffer - On Update - Set Active');
INSERT INTO smart_scripts VALUES (22114, 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, 'Huffer - On Update - Set React State Passive');
INSERT INTO smart_scripts VALUES (22114, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 53, 1, 22114, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Huffer - On Update - Start WP');
INSERT INTO smart_scripts VALUES (22114, 0, 3, 4, 40, 0, 100, 0, 5, 0, 0, 0, 54, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Huffer - On WP Reached - Pause WP');
INSERT INTO smart_scripts VALUES (22114, 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, 'Huffer - On WP Reached - Set Event Phase');
INSERT INTO smart_scripts VALUES (22114, 0, 5, 0, 60, 1, 100, 257, 2500, 2500, 0, 0, 11, 38360, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Huffer - On Update - Cast Huffer Threatens Grulloc');
INSERT INTO smart_scripts VALUES (22114, 0, 6, 0, 40, 0, 100, 0, 30, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Huffer - On WP Reached - Despawn');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=38360;
INSERT INTO conditions VALUES(13, 1, 38360, 0, 0, 31, 0, 3, 20216, 0, 0, 0, 0, '', 'Target Grulloc');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=17 AND sourceEntry=38362;
INSERT INTO conditions VALUES(17, 0, 38362, 0, 0, 29, 0, 22114, 200, 0, 1, 22, 0, '', 'Allow to cast if no npc Huffer nearby');
DELETE FROM waypoints WHERE entry=22114;
INSERT INTO waypoints VALUES (22114, 1, 2664.39, 5625.28, -12.0335, 'Huffer'),(22114, 2, 2665.75, 5613.67, -11.8282, 'Huffer'),(22114, 3, 2673.08, 5603.2, -11.4078, 'Huffer'),(22114, 4, 2674.67, 5590.49, -10.7295, 'Huffer'),(22114, 5, 2674.71, 5577.68, -10.6751, 'Huffer'),(22114, 6, 2685.25, 5584.48, -10.6681, 'Huffer'),
(22114, 7, 2694.81, 5596.28, -11.2027, 'Huffer'),(22114, 8, 2702.29, 5610.76, -10.9346, 'Huffer'),(22114, 9, 2705.78, 5621.92, -10.6646, 'Huffer'),(22114, 10, 2700.85, 5633.74, -11.8703, 'Huffer'),(22114, 11, 2694.08, 5649.96, -13.28, 'Huffer'),(22114, 12, 2682.09, 5654.45, -13.4994, 'Huffer'),(22114, 13, 2670.8, 5651.71, -13.4281, 'Huffer'),
(22114, 14, 2665.44, 5642.68, -12.8722, 'Huffer'),(22114, 15, 2662.18, 5627.92, -11.9602, 'Huffer'),(22114, 16, 2662.88, 5613.93, -11.6684, 'Huffer'),(22114, 17, 2669.58, 5604.36, -11.4061, 'Huffer'),(22114, 18, 2679.52, 5592.87, -10.8915, 'Huffer'),(22114, 19, 2692.25, 5594.31, -11.1679, 'Huffer'),(22114, 20, 2698.72, 5603.96, -11.2757, 'Huffer'),
(22114, 21, 2709.06, 5619.39, -10.5668, 'Huffer'),(22114, 22, 2705.15, 5635.22, -11.6887, 'Huffer'),(22114, 23, 2696.48, 5647.7, -13.106, 'Huffer'),(22114, 24, 2687.17, 5661.09, -13.6752, 'Huffer'),(22114, 25, 2684.61, 5672.42, -14.2476, 'Huffer'),(22114, 26, 2685.65, 5688.7, -15.4661, 'Huffer'),(22114, 27, 2688.82, 5705.91, -16.4175, 'Huffer'),(22114, 28, 2691.36, 5719.68, -16.3553, 'Huffer'),
(22114, 29, 2693.66, 5732.21, -17.13, 'Huffer'),(22114, 30, 2694.38, 5745, -17.7616, 'Huffer');
DELETE FROM smart_scripts WHERE entryorguid=20216 AND source_type=0;
INSERT INTO smart_scripts VALUES (20216, 0, 0, 0, 0, 0, 100, 0, 20000, 20000, 20000, 25000, 11, 38771, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Grulloc - In Combat - Cast Burning Rage');
INSERT INTO smart_scripts VALUES (20216, 0, 1, 0, 0, 0, 100, 0, 7000, 7000, 12000, 16000, 11, 21055, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Grulloc - In Combat - Cast Crush Armor');
INSERT INTO smart_scripts VALUES (20216, 0, 2, 0, 0, 0, 100, 0, 10000, 10000, 45000, 45000, 11, 38772, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Grulloc - In Combat - Cast Grievous Wound');
INSERT INTO smart_scripts VALUES (20216, 0, 3, 0, 6, 0, 100, 1, 0, 0, 0, 0, 11, 39890, 7, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Grulloc - On Just Died - Cast Grulloc: Summon Grulloc''s Dragon Skull Chest');
INSERT INTO smart_scripts VALUES (20216, 0, 4, 0, 8, 0, 100, 0, 38360, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Grulloc - On Spell Hit - Attack Start');
-- Into the Soulgrinder (11000)
DELETE FROM event_scripts WHERE id=14739;
INSERT INTO event_scripts VALUES (14739, 0, 10, 23019, 500000, 0, 3535.11, 5590.63, 0.385938, 0.785398);
UPDATE creature SET position_z=1.1 WHERE id=23037 AND guid=12481;
UPDATE creature_template SET InhabitType=4, AIName='SmartAI', ScriptName='' WHERE entry=23037;
DELETE FROM smart_scripts WHERE entryorguid=23037 AND source_type=0;
INSERT INTO smart_scripts VALUES (23037, 0, 0, 0, 1, 0, 100, 0, 2000, 2000, 0, 0, 11, 39920, 0, 0, 0, 0, 0, 10, 12481, 23037, 1, 0, 0, 0, 0, 'Soulgrinder Ritual Bunny - Out of Combat - Cast Soulgrinder Ritual Visual (beam)');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=17 AND sourceEntry=40328;
INSERT INTO conditions VALUES(17, 0, 40328, 0, 0, 29, 0, 23019, 30, 0, 1, 22, 0, '', 'Allow to cast if no npc The Soulgrinder nearby');
DELETE FROM smart_scripts WHERE entryorguid=24039 AND source_type=0;
INSERT INTO smart_scripts VALUES (24039, 0, 0, 1, 60, 0, 100, 257, 0, 0, 0, 0, 11, 39916, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Sundered Ghost - On Update - Cast Soulgrinder Ghost Transform');
INSERT INTO smart_scripts VALUES (24039, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 11, 17321, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Sundered Ghost - On Update - Cast Spirit Spawn-in');
INSERT INTO smart_scripts VALUES (24039, 0, 2, 0, 60, 0, 100, 257, 2000, 2000, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 50, 0, 0, 0, 0, 0, 0, 'Sundered Ghost - On Update - Attack Start');
DELETE FROM smart_scripts WHERE entryorguid=22912 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid=22912*100 AND source_type=9;
INSERT INTO smart_scripts VALUES (22912, 0, 0, 1, 60, 0, 100, 257, 0, 0, 0, 0, 11, 39916, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Sundered Spirit - On Update - Cast Soulgrinder Ghost Transform');
INSERT INTO smart_scripts VALUES (22912, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 11, 17321, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Sundered Spirit - On Update - Cast Spirit Spawn-in');
INSERT INTO smart_scripts VALUES (22912, 0, 2, 0, 60, 0, 100, 257, 2000, 2000, 0, 0, 49, 0, 2, 0, 0, 0, 0, 19, 23019, 100, 0, 0, 0, 0, 0, 'Sundered Spirit - On Update - Attack Start');
DELETE FROM smart_scripts WHERE entryorguid=22910 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid=22910*100 AND source_type=9;
INSERT INTO smart_scripts VALUES (22910, 0, 0, 1, 54, 0, 100, 0, 0, 0, 0, 0, 18, 33554432, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Skulloc Soulgrinder - On Just Summoned - Set Flag Not Selectable');
INSERT INTO smart_scripts VALUES (22910, 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, 'Skulloc Soulgrinder - On Just Summoned - Set Reactstate Passive');
INSERT INTO smart_scripts VALUES (22910, 0, 2, 0, 8, 0, 100, 0, 39920, 0, 0, 0, 80, 22910*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Skulloc Soulgrinder - On Spellhit Soulgrinder Ritual Visual ( beam) - Run Script');
INSERT INTO smart_scripts VALUES (22910, 0, 3, 4, 6, 0, 100, 0, 0, 0, 0, 0, 18, 33554432, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Skulloc Soulgrinder - On Just Died - Set Flag Not Selectable');
INSERT INTO smart_scripts VALUES (22910, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 11, 39909, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Skulloc Soulgrinder - On Just Died - Cast Skulloc: Summon Skulloc''s Soul Chest');
INSERT INTO smart_scripts VALUES (22910, 0, 5, 0, 1, 1, 100, 1, 30000, 30000, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Skulloc Soulgrinder - Out of Combat - Despawn');
INSERT INTO smart_scripts VALUES (22910, 0, 10, 0, 0, 0, 100, 0, 30000, 30000, 50000, 50000, 11, 39622, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Skulloc Soulgrinder - In Combat - Cast Banish');
INSERT INTO smart_scripts VALUES (22910, 0, 11, 0, 0, 0, 100, 0, 12000, 12000, 24000, 30000, 11, 39621, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Skulloc Soulgrinder - In Combat - Cast Corruption');
INSERT INTO smart_scripts VALUES (22910, 0, 12, 0, 0, 0, 100, 0, 20000, 20000, 20000, 20000, 11, 39620, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Skulloc Soulgrinder - In Combat - Cast Summon Ogre Ghost');
INSERT INTO smart_scripts VALUES (22910*100, 9, 0, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 19, 33554432, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Skulloc Soulgrinder - On Script - Remove Flag Not Selectable');
INSERT INTO smart_scripts VALUES (22910*100, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 8, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Skulloc Soulgrinder - On Script - Set Reactstate Aggressive');
INSERT INTO smart_scripts VALUES (22910*100, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 150, 0, 0, 0, 0, 0, 0, 'Skulloc Soulgrinder - On Script - Start Attacking');
INSERT INTO smart_scripts VALUES (22910*100, 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, 'Skulloc Soulgrinder - On Script - Say Line 0');
INSERT INTO smart_scripts VALUES (22910*100, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 30000, 0, 0, 0, 0, 0, 11, 23019, 100, 0, 0, 0, 0, 0, 'Skulloc Soulgrinder - On Script - Despawn Soulgrinder');
INSERT INTO smart_scripts VALUES (22910*100, 9, 5, 0, 0, 0, 100, 0, 0, 0, 0, 0, 145, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Skulloc Soulgrinder - On Script - No Event Phase Reset');
INSERT INTO smart_scripts VALUES (22910*100, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Skulloc Soulgrinder - On Script - Set Event Phase');
DELETE FROM smart_scripts WHERE entryorguid=23019 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid=23019*100 AND source_type=9;
INSERT INTO smart_scripts VALUES (23019, 0, 0, 2, 54, 0, 100, 0, 0, 0, 0, 0, 80, 23019*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'The Soulgrinder - On Just Summoned - Run Script');
INSERT INTO smart_scripts VALUES (23019, 0, 1, 0, 6, 0, 100, 0, 0, 0, 0, 0, 6, 11000, 0, 0, 0, 0, 0, 17, 0, 50, 0, 0, 0, 0, 0, 'The Soulgrinder - On Just Died - Fail Quest Into the Soulgrinder');
INSERT INTO smart_scripts VALUES (23019, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 102, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'The Soulgrinder - On Just Summoned - Set Health Regeneration Off');
INSERT INTO smart_scripts VALUES (23019, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 3, 0, 17612, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'The Soulgrinder - On Just Summoned - Morph To Model 17612');
INSERT INTO smart_scripts VALUES (23019*100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'The Soulgrinder - On Script - Set Reactstate Passive');
INSERT INTO smart_scripts VALUES (23019*100, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 39918, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'The Soulgrinder - On Script - Cast Soulgrinder Ritual Visual ( in progress)');
INSERT INTO smart_scripts VALUES (23019*100, 9, 2, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 12, 22912, 4, 5000, 0, 0, 0, 8, 0, 0, 0, 3525.13, 5573.12, -1.62298, 6.12611, 'The Soulgrinder - On Script - Summon Creature Sundered Spirit');
INSERT INTO smart_scripts VALUES (23019*100, 9, 3, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 12, 22912, 4, 5000, 0, 0, 0, 8, 0, 0, 0, 3558.61, 5543.98, -2.24089, 0.994838, 'The Soulgrinder - On Script - Summon Creature Sundered Spirit');
INSERT INTO smart_scripts VALUES (23019*100, 9, 4, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 12, 22912, 4, 5000, 0, 0, 0, 8, 0, 0, 0, 3542.2, 5608.06, -3.37805, 0.15708, 'The Soulgrinder - On Script - Summon Creature Sundered Spirit');
INSERT INTO smart_scripts VALUES (23019*100, 9, 5, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 12, 22912, 4, 5000, 0, 0, 0, 8, 0, 0, 0, 3557.25, 5591.2, -2.99395, 3.01942, 'The Soulgrinder - On Script - Summon Creature Sundered Spirit');
INSERT INTO smart_scripts VALUES (23019*100, 9, 6, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 12, 22912, 4, 5000, 0, 0, 0, 8, 0, 0, 0, 3557.08, 5612.43, -4.56236, 1.51844, 'The Soulgrinder - On Script - Summon Creature Sundered Spirit');
INSERT INTO smart_scripts VALUES (23019*100, 9, 7, 0, 0, 0, 100, 0, 7000, 7000, 0, 0, 12, 23037, 4, 500000, 0, 0, 0, 8, 0, 0, 0, 3491.22, 5529.02, 17.1434, 6.19592, 'The Soulgrinder - On Script - Summon Creature Soulgrinder Ritual Bunny');
INSERT INTO smart_scripts VALUES (23019*100, 9, 8, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 12, 22910, 4, 500000, 0, 0, 0, 8, 0, 0, 0, 3478.56, 5550.74, 7.8388, 0.366519, 'The Soulgrinder - On Script - Summon Creature Skulloc Soulgrinder');
INSERT INTO smart_scripts VALUES (23019*100, 9, 9, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 12, 22912, 4, 5000, 0, 0, 0, 8, 0, 0, 0, 3542.22, 5573.4, -2.64414, 6.19592, 'The Soulgrinder - On Script - Summon Creature Sundered Spirit');
INSERT INTO smart_scripts VALUES (23019*100, 9, 10, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 12, 22912, 4, 5000, 0, 0, 0, 8, 0, 0, 0, 3542.2, 5608.06, -3.37805, 0.15708, 'The Soulgrinder - On Script - Summon Creature Sundered Spirit');
INSERT INTO smart_scripts VALUES (23019*100, 9, 11, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 12, 22912, 4, 5000, 0, 0, 0, 8, 0, 0, 0, 3542.22, 5573.4, -2.64414, 4.27606, 'The Soulgrinder - On Script - Summon Creature Sundered Spirit');
INSERT INTO smart_scripts VALUES (23019*100, 9, 12, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 12, 22912, 4, 5000, 0, 0, 0, 8, 0, 0, 0, 3542.2, 5608.06, -3.37805, 0.15708, 'The Soulgrinder - On Script - Summon Creature Sundered Spirit');
INSERT INTO smart_scripts VALUES (23019*100, 9, 13, 0, 0, 0, 100, 0, 7000, 7000, 0, 0, 12, 23037, 4, 500000, 0, 0, 0, 8, 0, 0, 0, 3466.88, 5566.28, 20.1, 0.369, 'The Soulgrinder - On Script - Summon Creature Soulgrinder Ritual Bunny');
INSERT INTO smart_scripts VALUES (23019*100, 9, 14, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 12, 22912, 4, 5000, 0, 0, 0, 8, 0, 0, 0, 3542.2, 5608.06, -3.37805, 0.15708, 'The Soulgrinder - On Script - Summon Creature Sundered Spirit');
INSERT INTO smart_scripts VALUES (23019*100, 9, 15, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 12, 22912, 4, 5000, 0, 0, 0, 8, 0, 0, 0, 3542.22, 5573.4, -2.64414, 4.27606, 'The Soulgrinder - On Script - Summon Creature Sundered Spirit');
INSERT INTO smart_scripts VALUES (23019*100, 9, 16, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 12, 22912, 4, 5000, 0, 0, 0, 8, 0, 0, 0, 3542.2, 5608.06, -3.37805, 0.15708, 'The Soulgrinder - On Script - Summon Creature Sundered Spirit');
INSERT INTO smart_scripts VALUES (23019*100, 9, 17, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 12, 22912, 4, 5000, 0, 0, 0, 8, 0, 0, 0, 3542.22, 5573.4, -2.64414, 4.27606, 'The Soulgrinder - On Script - Summon Creature Sundered Spirit');
INSERT INTO smart_scripts VALUES (23019*100, 9, 18, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 12, 22912, 4, 5000, 0, 0, 0, 8, 0, 0, 0, 3542.2, 5608.06, -3.37805, 0.15708, 'The Soulgrinder - On Script - Summon Creature Sundered Spirit');
INSERT INTO smart_scripts VALUES (23019*100, 9, 19, 0, 0, 0, 100, 0, 7000, 7000, 0, 0, 12, 23037, 4, 500000, 0, 0, 0, 8, 0, 0, 0, 3515.02, 5524.39, 16.8927, 3.56047, 'The Soulgrinder - On Script - Summon Creature Soulgrinder Ritual Bunny');
INSERT INTO smart_scripts VALUES (23019*100, 9, 20, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 12, 22912, 4, 5000, 0, 0, 0, 8, 0, 0, 0, 3542.2, 5608.06, -3.37805, 0.15708, 'The Soulgrinder - On Script - Summon Creature Sundered Spirit');
INSERT INTO smart_scripts VALUES (23019*100, 9, 21, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 12, 22912, 4, 5000, 0, 0, 0, 8, 0, 0, 0, 3542.22, 5573.4, -2.64414, 4.27606, 'The Soulgrinder - On Script - Summon Creature Sundered Spirit');
INSERT INTO smart_scripts VALUES (23019*100, 9, 22, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 12, 22912, 4, 5000, 0, 0, 0, 8, 0, 0, 0, 3542.2, 5608.06, -3.37805, 0.15708, 'The Soulgrinder - On Script - Summon Creature Sundered Spirit');
INSERT INTO smart_scripts VALUES (23019*100, 9, 23, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 12, 22912, 4, 5000, 0, 0, 0, 8, 0, 0, 0, 3542.22, 5573.4, -2.64414, 4.27606, 'The Soulgrinder - On Script - Summon Creature Sundered Spirit');
INSERT INTO smart_scripts VALUES (23019*100, 9, 24, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 12, 22912, 4, 5000, 0, 0, 0, 8, 0, 0, 0, 3542.22, 5573.4, -2.64414, 4.27606, 'The Soulgrinder - On Script - Summon Creature Sundered Spirit');
INSERT INTO smart_scripts VALUES (23019*100, 9, 25, 0, 0, 0, 100, 0, 7000, 7000, 0, 0, 12, 23037, 4, 500000, 0, 0, 0, 8, 0, 0, 0, 3468.82, 5581.41, 17.5205, 0.0174533, 'The Soulgrinder - On Script - Summon Creature Soulgrinder Ritual Bunny');
INSERT INTO smart_scripts VALUES (23019*100, 9, 26, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 12, 22912, 4, 5000, 0, 0, 0, 8, 0, 0, 0, 3542.22, 5573.4, -2.64414, 4.27606, 'The Soulgrinder - On Script - Summon Creature Sundered Spirit');
INSERT INTO smart_scripts VALUES (23019*100, 9, 27, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 12, 22912, 4, 5000, 0, 0, 0, 8, 0, 0, 0, 3542.2, 5608.06, -3.37805, 0.15708, 'The Soulgrinder - On Script - Summon Creature Sundered Spirit');
INSERT INTO smart_scripts VALUES (23019*100, 9, 28, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 12, 22912, 4, 5000, 0, 0, 0, 8, 0, 0, 0, 3542.22, 5573.4, -2.64414, 4.27606, 'The Soulgrinder - On Script - Summon Creature Sundered Spirit');
INSERT INTO smart_scripts VALUES (23019*100, 9, 29, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 12, 22912, 4, 5000, 0, 0, 0, 8, 0, 0, 0, 3542.2, 5608.06, -3.37805, 0.15708, 'The Soulgrinder - On Script - Summon Creature Sundered Spirit');
INSERT INTO smart_scripts VALUES (23019*100, 9, 30, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 12, 22912, 4, 5000, 0, 0, 0, 8, 0, 0, 0, 3542.22, 5573.4, -2.64414, 4.27606, 'The Soulgrinder - On Script - Summon Creature Sundered Spirit');
INSERT INTO smart_scripts VALUES (23019*100, 9, 31, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 41, 0, 0, 0, 0, 0, 0, 11, 23037, 100, 0, 0, 0, 0, 0, 'The Soulgrinder - On Script - Despawn Soulgrinder Ritual Bunny');
INSERT INTO smart_scripts VALUES (23019*100, 9, 32, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 39920, 0, 0, 0, 0, 0, 19, 22910, 100, 0, 0, 0, 0, 0, 'The Soulgrinder - On Script - Cast Soulgrinder Ritual Visual ( beam)');
INSERT INTO smart_scripts VALUES (23019*100, 9, 33, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 92, 0, 39920, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'The Soulgrinder - On Script - Interrupt Spell Soulgrinder Ritual Visual ( beam)');

View File

@@ -0,0 +1,24 @@
-- Razormaw (9689)
DELETE FROM event_scripts WHERE id=11087;
INSERT INTO event_scripts VALUES (11087, 0, 10, 17592, 150000, 0, -1121.53, -12600.80, 134.03, 2.86);
REPLACE INTO creature_template_addon VALUES (17592, 0, 0, 50331648, 1, 0, '');
UPDATE creature_template SET InhabitType=3, AIName='SmartAI', ScriptName='' WHERE entry=17592;
DELETE FROM smart_scripts WHERE entryorguid=17592 AND source_type=0;
INSERT INTO smart_scripts VALUES (17592, 0, 0, 0, 0, 0, 100, 0, 6000, 6000, 7000, 9000, 11, 31279, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Razormaw - Combat - Cast Swipe');
INSERT INTO smart_scripts VALUES (17592, 0, 1, 0, 0, 0, 100, 0, 26000, 30000, 26000, 30000, 11, 8873, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Razormaw - Combat - Cast Flame Breath');
INSERT INTO smart_scripts VALUES (17592, 0, 2, 0, 0, 0, 50, 0, 12000, 12000, 12000, 12000, 11, 14100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Razormaw - Combat - Cast Terrifying Roar');
INSERT INTO smart_scripts VALUES (17592, 0, 3, 4, 11, 0, 100, 0, 0, 0, 0, 0, 48, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Razormaw - On Spawn - Set Active');
INSERT INTO smart_scripts VALUES (17592, 0, 4, 5, 61, 0, 100, 0, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Razormaw - On Spawn - Add Unit Flags');
INSERT INTO smart_scripts VALUES (17592, 0, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 60, 1, 250, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Razormaw - On Spawn - Set Can Fly');
INSERT INTO smart_scripts VALUES (17592, 0, 6, 7, 61, 0, 100, 0, 0, 0, 0, 0, 148, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Razormaw - On Spawn - No Environment Update');
INSERT INTO smart_scripts VALUES (17592, 0, 7, 0, 61, 0, 100, 0, 0, 0, 0, 0, 53, 1, 17592, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Razormaw - On Spawn - Load Path');
INSERT INTO smart_scripts VALUES (17592, 0, 8, 9, 40, 0, 100, 0, 3, 0, 0, 0, 19, 256, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Razormaw - On Reach waypoint - Remove Unit Flags');
INSERT INTO smart_scripts VALUES (17592, 0, 9, 10, 61, 0, 100, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Razormaw - On Waypoint 10 Reached - Set Home Position');
INSERT INTO smart_scripts VALUES (17592, 0, 10, 11, 61, 0, 100, 0, 0, 0, 0, 0, 60, 0, 110, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Razormaw - On Waypoint 10 Reached - Set Can Fly Off');
INSERT INTO smart_scripts VALUES (17592, 0, 11, 12, 61, 0, 100, 0, 0, 0, 0, 0, 141, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Razormaw - On Waypoint 10 Reached - Set Hover Off');
INSERT INTO smart_scripts VALUES (17592, 0, 12, 0, 61, 0, 100, 0, 0, 0, 0, 0, 8, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Razormaw - On Waypoint 10 Reached - Set Agressive');
DELETE FROM waypoints WHERE entry=17592;
INSERT INTO waypoints VALUES (17592, 1, -1167.07, -12594.71, 133.93, 'Razormaw');
INSERT INTO waypoints VALUES (17592, 2, -1200.90, -12554.55, 129.0, 'Razormaw');
INSERT INTO waypoints VALUES (17592, 3, -1208.03, -12469.59, 94.5, 'Razormaw');

View File

@@ -0,0 +1,260 @@
-- The Seer's Relic (9545)
DELETE FROM creature_text WHERE entry IN(17417, 17404, 17405);
INSERT INTO creature_text VALUES (17417, 0, 0, 'Do not return, draenei scum. Next time we won''t spare your life, unarmed or not!', 12, 0, 100, 0, 0, 0, 0, 'Mag''har Escort');
INSERT INTO creature_text VALUES (17404, 0, 0, 'I''ve failed... peace is impossible.', 12, 0, 100, 0, 0, 0, 0, 'Vindicator Sedai');
INSERT INTO creature_text VALUES (17404, 1, 0, 'What in the Light''s name...?', 12, 0, 100, 0, 0, 0, 0, 'Vindicator Sedai');
INSERT INTO creature_text VALUES (17404, 2, 0, 'Fel orcs!', 12, 0, 100, 0, 0, 0, 0, 'Vindicator Sedai');
INSERT INTO creature_text VALUES (17404, 3, 0, 'The cycle of bloodshed is unending... Is there nothing I can do?', 12, 0, 100, 0, 0, 0, 0, 'Vindicator Sedai');
INSERT INTO creature_text VALUES (17405, 0, 0, 'You can die!', 12, 0, 100, 0, 0, 0, 0, 'Krun Spinebreaker');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=17 AND SourceEntry=30489;
INSERT INTO conditions VALUES (17, 0, 30489, 0, 0, 29, 0, 17404, 100, 0, 1, 0, 0, '', 'Require No Vindicator Sedai Nearby');
DELETE FROM event_scripts WHERE Id=10745;
INSERT INTO event_scripts VALUES (10745, 0, 10, 17404, 180000, 0, 211.41, 4128.27, 78.88, 2.23);
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry IN(17404, 17417);
DELETE FROM smart_scripts WHERE entryorguid IN(17404, 17417) AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid IN(17404*100+0, 17404*100+1, 17404*100+2, 17404*100+3) AND source_type=9;
INSERT INTO smart_scripts VALUES (17404, 0, 0, 0, 37, 0, 100, 0, 0, 0, 0, 0, 80, 17404*100+0, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Vindicator Sedai - On AI Init - Run Script');
INSERT INTO smart_scripts VALUES (17404, 0, 1, 0, 17, 0, 100, 0, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Vindicator Sedai - On Just Summoned Unit - Store Target');
INSERT INTO smart_scripts VALUES (17404, 0, 2, 0, 34, 0, 100, 0, 8, 1, 0, 0, 80, 17404*100+1, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Vindicator Sedai - Movement Inform - Run Script');
INSERT INTO smart_scripts VALUES (17404, 0, 3, 0, 34, 0, 100, 0, 8, 2, 0, 0, 80, 17404*100+2, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Vindicator Sedai - Movement Inform - Run Script');
INSERT INTO smart_scripts VALUES (17404, 0, 4, 0, 21, 0, 100, 0, 0, 0, 0, 0, 80, 17404*100+3, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Vindicator Sedai - Just Reached Home - Run Script');
INSERT INTO smart_scripts VALUES (17404, 0, 5, 0, 0, 0, 100, 0, 3000, 5000, 7000, 9000, 11, 27176, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Vindicator Sedai - In Combat - Cast Holy Shock');
INSERT INTO smart_scripts VALUES (17404*100+0, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 12, 17417, 4, 120000, 0, 0, 0, 8, 0, 0, 0, 213.51, 4123.88, 79.47, 2.34, 'Vindicator Sedai - On Script - Summon Mag''har Escort');
INSERT INTO smart_scripts VALUES (17404*100+0, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Vindicator Sedai - On Script - Set Walk');
INSERT INTO smart_scripts VALUES (17404*100+0, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 64, 2, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Vindicator Sedai - On Script - Store Target');
INSERT INTO smart_scripts VALUES (17404*100+0, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 130, 1, 0, 0, 0, 0, 0, 12, 1, 0, 0, 195.83, 4139.96, 74.13, 0, 'Vindicator Sedai - On Script - Move Target To Position');
INSERT INTO smart_scripts VALUES (17404*100+0, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 12, 17417, 4, 120000, 0, 0, 0, 8, 0, 0, 0, 217.85, 4127.76, 80.64, 2.46, 'Vindicator Sedai - Script - Summon Mag''har Escort');
INSERT INTO smart_scripts VALUES (17404*100+0, 9, 5, 0, 0, 0, 100, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Vindicator Sedai - On Script - Set Walk');
INSERT INTO smart_scripts VALUES (17404*100+0, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 130, 1, 0, 0, 0, 0, 0, 12, 1, 0, 0, 198.45, 4142.20, 74.84, 0, 'Vindicator Sedai - On Script - Move Target To Position');
INSERT INTO smart_scripts VALUES (17404*100+0, 9, 7, 0, 0, 0, 100, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Vindicator Sedai - On Script - Set Walk');
INSERT INTO smart_scripts VALUES (17404*100+0, 9, 8, 0, 0, 0, 100, 0, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, 194.80, 4144.18, 73.84, 0, 'Vindicator Sedai - On Script - Move To Position');
INSERT INTO smart_scripts VALUES (17404*100+0, 9, 9, 0, 0, 0, 100, 0, 0, 0, 0, 0, 8, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Vindicator Sedai - On Script - Set React Defensive');
INSERT INTO smart_scripts VALUES (17404*100+1, 9, 0, 0, 0, 0, 100, 0, 500, 500, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 5.61, 'Vindicator Sedai - On Script - Set Orientation');
INSERT INTO smart_scripts VALUES (17404*100+1, 9, 1, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 2.27, 'Vindicator Sedai - On Script - Set Orientation');
INSERT INTO smart_scripts VALUES (17404*100+1, 9, 2, 0, 0, 0, 100, 0, 1500, 1500, 0, 0, 86, 30460, 0, 12, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Vindicator Sedai - On Script - Cross Cast Kick');
INSERT INTO smart_scripts VALUES (17404*100+1, 9, 3, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Vindicator Sedai - On Script - Say Line 0');
INSERT INTO smart_scripts VALUES (17404*100+1, 9, 4, 0, 0, 0, 100, 0, 1500, 1500, 0, 0, 90, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Vindicator Sedai - On Script - Set Bytes0');
INSERT INTO smart_scripts VALUES (17404*100+1, 9, 5, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 130, 2, 0, 0, 0, 0, 0, 12, 2, 0, 0, 213.51, 4123.88, 79.47, 0, 'Vindicator Sedai - On Script - Move To Position Target');
INSERT INTO smart_scripts VALUES (17404*100+1, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 130, 2, 0, 0, 0, 0, 0, 12, 1, 0, 0, 217.85, 4127.76, 80.64, 0, 'Vindicator Sedai - On Script - Move To Position Target');
INSERT INTO smart_scripts VALUES (17404*100+1, 9, 7, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Vindicator Sedai - On Script - Say Line 0');
INSERT INTO smart_scripts VALUES (17404*100+1, 9, 8, 0, 0, 0, 100, 0, 0, 0, 0, 0, 12, 17418, 4, 30000, 0, 0, 0, 8, 0, 0, 0, 248.76, 4114.57, 88.57, 2.58, 'Vindicator Sedai - On Script - Summon Laughing Skull Ambusher');
INSERT INTO smart_scripts VALUES (17404*100+1, 9, 9, 0, 0, 0, 100, 0, 0, 0, 0, 0, 130, 1, 0, 0, 0, 0, 0, 12, 1, 0, 0, 211.41, 4128.27, 78.88, 0, 'Vindicator Sedai - On Script - Move Target To Position');
INSERT INTO smart_scripts VALUES (17404*100+1, 9, 10, 0, 0, 0, 100, 0, 0, 0, 0, 0, 12, 17418, 4, 30000, 0, 0, 0, 8, 0, 0, 0, 247.61, 4112.5, 87.64, 2.63, 'Vindicator Sedai - On Script - Summon Laughing Skull Ambusher');
INSERT INTO smart_scripts VALUES (17404*100+1, 9, 11, 0, 0, 0, 100, 0, 0, 0, 0, 0, 130, 1, 0, 0, 0, 0, 0, 12, 1, 0, 0, 211.41, 4128.27, 78.88, 0, 'Vindicator Sedai - On Script - Move Target To Position');
INSERT INTO smart_scripts VALUES (17404*100+1, 9, 12, 0, 0, 0, 100, 0, 21000, 21000, 0, 0, 91, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Vindicator Sedai - On Script - Remove Bytes0');
INSERT INTO smart_scripts VALUES (17404*100+1, 9, 13, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 69, 2, 0, 0, 0, 0, 0, 8, 0, 0, 0, 200.97, 4136.99, 75.69, 0, 'Vindicator Sedai - On Script - Move To Position');
INSERT INTO smart_scripts VALUES (17404*100+1, 9, 14, 0, 0, 0, 100, 0, 500, 500, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Vindicator Sedai - On Script - Say Line 1');
INSERT INTO smart_scripts VALUES (17404*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, 5.72, 'Vindicator Sedai - On Script - Set Orientation');
INSERT INTO smart_scripts VALUES (17404*100+2, 9, 1, 0, 0, 0, 100, 0, 1500, 1500, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Vindicator Sedai - On Script - Say Line 2');
INSERT INTO smart_scripts VALUES (17404*100+2, 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, 'Vindicator Sedai - On Script - Set Home Position');
INSERT INTO smart_scripts VALUES (17404*100+2, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 59, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Vindicator Sedai - On Script - Set Run');
INSERT INTO smart_scripts VALUES (17404*100+2, 9, 4, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 69, 3, 0, 0, 0, 0, 0, 8, 0, 0, 0, 247.61, 4112.5, 87.64, 0, 'Vindicator Sedai - On Script - Move To Position');
INSERT INTO smart_scripts VALUES (17404*100+3, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Vindicator Sedai - On Script - Set Walk');
INSERT INTO smart_scripts VALUES (17404*100+3, 9, 1, 0, 0, 0, 100, 0, 500, 500, 0, 0, 69, 4, 0, 0, 0, 0, 0, 8, 0, 0, 0, 192.14, 4150.54, 73.67, 0, 'Vindicator Sedai - On Script - Move To Position');
INSERT INTO smart_scripts VALUES (17404*100+3, 9, 2, 0, 0, 0, 100, 0, 7000, 7000, 0, 0, 90, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Vindicator Sedai - On Script - Set Bytes0');
INSERT INTO smart_scripts VALUES (17404*100+3, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Vindicator Sedai - On Script - Set React Passive');
INSERT INTO smart_scripts VALUES (17404*100+3, 9, 4, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 12, 17405, 4, 60000, 0, 0, 0, 8, 0, 0, 0, 214.83, 4123.14, 79.83, 2.28, 'Vindicator Sedai - On Script - Summon Krun');
INSERT INTO smart_scripts VALUES (17404*100+3, 9, 5, 0, 0, 0, 100, 0, 0, 0, 0, 0, 130, 1, 0, 0, 0, 0, 0, 12, 1, 0, 0, 201.78, 4138.13, 75.88, 0, 'Vindicator Sedai - On Script - Move Target To Position');
INSERT INTO smart_scripts VALUES (17404*100+3, 9, 6, 0, 0, 0, 100, 0, 1500, 1500, 0, 0, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Vindicator Sedai - On Script - Say Line 3');
INSERT INTO smart_scripts VALUES (17404*100+3, 9, 7, 0, 0, 0, 100, 0, 1200, 1200, 0, 0, 59, 0, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Vindicator Sedai - On Script - Set Walk');
INSERT INTO smart_scripts VALUES (17404*100+3, 9, 8, 0, 0, 0, 100, 0, 0, 0, 0, 0, 130, 1, 0, 0, 0, 0, 0, 12, 1, 0, 0, 193.14, 4148.78, 73.63, 0, 'Vindicator Sedai - On Script - Move Target To Position');
INSERT INTO smart_scripts VALUES (17404*100+3, 9, 9, 0, 0, 0, 100, 0, 8000, 8000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Vindicator Sedai - On Script - Say Line 0 Target');
INSERT INTO smart_scripts VALUES (17404*100+3, 9, 10, 0, 0, 0, 100, 0, 0, 0, 0, 0, 86, 30462, 0, 12, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Vindicator Sedai - On Script - Cross Cast Execute Sedai');
INSERT INTO smart_scripts VALUES (17404*100+3, 9, 11, 0, 0, 0, 100, 0, 0, 0, 0, 0, 33, 17413, 0, 0, 0, 0, 0, 18, 40, 0, 0, 0, 0, 0, 0, 'Vindicator Sedai - On Script - Kill Credit');
INSERT INTO smart_scripts VALUES (17404*100+3, 9, 12, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 2000, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Vindicator Sedai - On Script - Despawn Target');
INSERT INTO smart_scripts VALUES (17404*100+3, 9, 13, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 2000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Vindicator Sedai - On Script - Despawn');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry IN(30460, 30462);
INSERT INTO conditions VALUES (13, 1, 30460, 0, 0, 31, 0, 3, 17404, 0, 0, 0, 0, '', 'Target Vindicator Sedai');
INSERT INTO conditions VALUES (13, 1, 30462, 0, 0, 31, 0, 3, 17404, 0, 0, 0, 0, '', 'Target Vindicator Sedai');
-- Burn It Up... For the Horde! (10087)
UPDATE gameobject SET spawntimesecs=60 WHERE id IN(183122, 185122);
DELETE FROM smart_scripts WHERE entryorguid IN(18849, 19008) AND source_type=0;
INSERT INTO smart_scripts VALUES (18849, 0, 0, 1, 8, 0, 100, 0, 33067, 0, 0, 0, 33, 18849, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Invis Alliance Siege Engine - East - On Spellhit Ignite Alliance Siege Engine - Quest Credit Burn It Up... For the Horde!');
INSERT INTO smart_scripts VALUES (18849, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 15, 182817, 30, 0, 0, 0, 0, 0, 'Invis Alliance Siege Engine - East - On Spellhit Ignite Alliance Siege Engine - Despawn Flames');
INSERT INTO smart_scripts VALUES (18849, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 50, 182817, 60, 0, 0, 0, 0, 20, 183122, 40, 0, 0, 0, 5, 0, 'Invis Alliance Siege Engine - East - On Spellhit Ignite Alliance Siege Engine - Summon Game Object');
INSERT INTO smart_scripts VALUES (19008, 0, 0, 1, 8, 0, 100, 0, 33067, 0, 0, 0, 33, 19008, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Invis Alliance Siege Engine - West - On Spellhit Ignite Alliance Siege Engine - Quest Credit Burn It Up... For the Horde!');
INSERT INTO smart_scripts VALUES (19008, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 15, 182817, 30, 0, 0, 0, 0, 0, 'Invis Alliance Siege Engine - East - On Spellhit Ignite Alliance Siege Engine - Despawn Flames');
INSERT INTO smart_scripts VALUES (19008, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 50, 182817, 60, 0, 0, 0, 0, 20, 185122, 40, 0, 0, 0, 5, 0, 'Invis Alliance Siege Engine - East - On Spellhit Ignite Alliance Siege Engine - Summon Game Object');
-- Zeth'Gor Must Burn! (10792)
UPDATE gameobject_template SET data1=14 WHERE entry=185144;
DELETE FROM gameobject WHERE id=183816 AND guid IN(32137, 32138, 32139);
UPDATE creature_template SET flags_extra=130, InhabitType=4, AIName='SmartAI', ScriptName='' WHERE entry IN(20813, 20814, 20815, 20816);
DELETE FROM smart_scripts WHERE entryorguid IN(20813, 20814, 20815, 20816) AND source_type=0;
INSERT INTO smart_scripts VALUES (20813, 0, 0, 1, 8, 0, 100, 0, 35724, 0, 0, 0, 33, 20813, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Zeth''Gor Quest Credit Marker, Barracks - On Spellhit Throw Torch - Kill Credit');
INSERT INTO smart_scripts VALUES (20813, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 15, 183816, 75, 0, 0, 0, 0, 0, 'Zeth''Gor Quest Credit Marker, Barracks - On Spellhit Throw Torch - Despawn Flames');
INSERT INTO smart_scripts VALUES (20813, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 50, 183816, 60, 0, 0, 0, 0, 11, 20813, 75, 0, 0, 0, 0, 0, 'Zeth''Gor Quest Credit Marker, Barracks - On Spellhit Throw Torch - Spawn Game Object');
INSERT INTO smart_scripts VALUES (20813, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 50, 183816, 60, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Zeth''Gor Quest Credit Marker, Barracks - On Spellhit Throw Torch - Spawn Game Object');
INSERT INTO smart_scripts VALUES (20814, 0, 0, 1, 8, 0, 100, 0, 35724, 0, 0, 0, 33, 20814, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Zeth''Gor Quest Credit Marker, Stable - On Spellhit Throw Torch - Kill Credit');
INSERT INTO smart_scripts VALUES (20814, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 15, 183816, 20, 0, 0, 0, 0, 0, 'Zeth''Gor Quest Credit Marker, Stable - On Spellhit Throw Torch - Despawn Flames');
INSERT INTO smart_scripts VALUES (20814, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 50, 183816, 60, 0, 0, 0, 0, 11, 20814, 20, 0, 0, 0, 0, 0, 'Zeth''Gor Quest Credit Marker, Stable - On Spellhit Throw Torch - Spawn Game Object');
INSERT INTO smart_scripts VALUES (20814, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 50, 183816, 60, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Zeth''Gor Quest Credit Marker, Stable - On Spellhit Throw Torch - Spawn Game Object');
INSERT INTO smart_scripts VALUES (20815, 0, 0, 1, 8, 0, 100, 0, 35724, 0, 0, 0, 33, 20815, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Zeth''Gor Quest Credit Marker, East Hovel - On Spellhit Throw Torch - Kill Credit');
INSERT INTO smart_scripts VALUES (20815, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 15, 183816, 20, 0, 0, 0, 0, 0, 'Zeth''Gor Quest Credit Marker, East Hovel - On Spellhit Throw Torch - Despawn Flames');
INSERT INTO smart_scripts VALUES (20815, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 50, 183816, 60, 0, 0, 0, 0, 11, 20815, 20, 0, 0, 0, 0, 0, 'Zeth''Gor Quest Credit Marker, East Hovel - On Spellhit Throw Torch - Spawn Game Object');
INSERT INTO smart_scripts VALUES (20815, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 50, 183816, 60, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Zeth''Gor Quest Credit Marker, East Hovel - On Spellhit Throw Torch - Spawn Game Object');
INSERT INTO smart_scripts VALUES (20816, 0, 0, 1, 8, 0, 100, 0, 35724, 0, 0, 0, 33, 20816, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Zeth''Gor Quest Credit Marker, West Hovel - On Spellhit Throw Torch - Kill Credit');
INSERT INTO smart_scripts VALUES (20816, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 15, 183816, 20, 0, 0, 0, 0, 0, 'Zeth''Gor Quest Credit Marker, West Hovel - On Spellhit Throw Torch - Despawn Flames');
INSERT INTO smart_scripts VALUES (20816, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 50, 183816, 60, 0, 0, 0, 0, 11, 20816, 20, 0, 0, 0, 0, 0, 'Zeth''Gor Quest Credit Marker, West Hovel - On Spellhit Throw Torch - Spawn Game Object');
INSERT INTO smart_scripts VALUES (20816, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 50, 183816, 60, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Zeth''Gor Quest Credit Marker, West Hovel - On Spellhit Throw Torch - Spawn Game Object');
-- The Warp Rifts (10278)
UPDATE creature_template SET flags_extra=130 WHERE entry=20143;
-- Doorway to the Abyss (10392)
UPDATE gameobject_template set data11=1 WHERE entry=184656;
UPDATE gameobject_template SET AIName='SmartGameObjectAI', ScriptName='' WHERE entry=182935;
DELETE FROM smart_scripts WHERE entryorguid=182935 AND source_type=1;
INSERT INTO smart_scripts VALUES (182935, 1, 0, 1, 8, 0, 100, 0, 35739, 0, 0, 0, 99, 3, 0, 0, 0, 0, 0, 20, 184656, 10, 0, 0, 0, 0, 0, 'Rune of Spite - On Spell Hit - Set Loot State');
INSERT INTO smart_scripts VALUES (182935, 1, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 99, 3, 0, 0, 0, 0, 0, 20, 185190, 10, 0, 0, 0, 0, 0, 'Rune of Spite - On Spell Hit - Set Loot State');
-- Apothecary Zelana (10449)
DELETE FROM creature_text WHERE entry=21257;
INSERT INTO creature_text VALUES (21257, 0, 0, 'Thank you, $n. Now, to perform the test...', 12, 0, 100, 1, 0, 0, 0, 'Apothecary Zelana');
INSERT INTO creature_text VALUES (21257, 1, 0, 'Ah, I see...', 12, 0, 100, 0, 0, 0, 0, 'Apothecary Zelana');
INSERT INTO creature_text VALUES (21257, 2, 0, 'Yes, this is unfortunate.', 12, 0, 100, 0, 0, 0, 0, 'Apothecary Zelana');
INSERT INTO creature_text VALUES (21257, 3, 0, '$n, I have confirmed that this blood is from the Bonechewer clan of orcs, tainted with demonic power. I''m afraid, however, that my current equipment can delve no deeper into this mystery...', 12, 0, 100, 1, 0, 0, 0, 'Apothecary Zelana');
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=21257;
DELETE FROM smart_scripts WHERE entryorguid=21257 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid=21257*100 AND source_type=9;
INSERT INTO smart_scripts VALUES (21257, 0, 0, 1, 20, 0, 100, 0, 10449, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Apothecary Zelana - On Quest Reward (Apothecary Zelana) - Store Target');
INSERT INTO smart_scripts VALUES (21257, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 80, 21257*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Apothecary Zelana - On Quest Reward (Apothecary Zelana) - Run Script');
INSERT INTO smart_scripts VALUES (21257*100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 48, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Apothecary Zelana - On Script - Set Active');
INSERT INTO smart_scripts VALUES (21257*100, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 81, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Apothecary Zelana - On Script - Set NPC Flags');
INSERT INTO smart_scripts VALUES (21257*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, 'Apothecary Zelana - On Script - Say');
INSERT INTO smart_scripts VALUES (21257*100, 9, 3, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 6.04, 'Apothecary Zelana - On Script - Set Orientation');
INSERT INTO smart_scripts VALUES (21257*100, 9, 4, 0, 0, 0, 100, 0, 1500, 1500, 0, 0, 17, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Apothecary Zelana - On Script - Set Emote State');
INSERT INTO smart_scripts VALUES (21257*100, 9, 5, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Apothecary Zelana - On Script - Say');
INSERT INTO smart_scripts VALUES (21257*100, 9, 6, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 1, 2, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Apothecary Zelana - On Script - Say');
INSERT INTO smart_scripts VALUES (21257*100, 9, 7, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 17, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Apothecary Zelana - On Script - Set Emote State');
INSERT INTO smart_scripts VALUES (21257*100, 9, 8, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 3.1765, 'Apothecary Zelana - On Script - Set Orientation');
INSERT INTO smart_scripts VALUES (21257*100, 9, 9, 0, 0, 0, 100, 0, 500, 500, 0, 0, 1, 3, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Apothecary Zelana - On Script - Say');
INSERT INTO smart_scripts VALUES (21257*100, 9, 10, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 81, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Apothecary Zelana - On Script - Set NPC Flags');
-- How to Serve Goblins (10238)
DELETE FROM creature_text WHERE entry IN(19766, 19763, 19764);
INSERT INTO creature_text VALUES (19766, 0, 0, 'I don''t know which is worse, getting eaten by fel orcs or working for that slave master Razelcraz! Oh well, thanks anyways!', 12, 0, 100, 4, 0, 0, 0, 'Jakk');
INSERT INTO creature_text VALUES (19763, 0, 0, 'Thank goodness you got here, it was almost dinner time!', 12, 0, 100, 4, 0, 0, 0, 'Manni');
INSERT INTO creature_text VALUES (19764, 0, 0, 'I thought I was a goner for sure.', 12, 0, 100, 4, 0, 0, 0, 'Moh');
UPDATE gameobject_template SET AIName='SmartGameObjectAI', ScriptName='' WHERE entry IN(183941, 183936, 183940);
DELETE FROM smart_scripts WHERE entryorguid IN(183941, 183936, 183940) AND source_type=1;
INSERT INTO smart_scripts VALUES (183941, 1, 0, 1, 64, 0, 100, 0, 1, 0, 0, 0, 67, 1, 5000, 5000, 0, 0, 100, 1, 0, 0, 0, 0, 0, 0, 0, 'Jakk''s Cage - On Gossip Hello - Create Timed Event');
INSERT INTO smart_scripts VALUES (183941, 1, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 130, 1, 0, 0, 0, 0, 0, 19, 19766, 10, 0, -122.09, 3087.50, 3.10, 0, 'Jakk''s Cage - On Gossip Hello - Move Target To Position');
INSERT INTO smart_scripts VALUES (183941, 1, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 19, 19766, 10, 0, 0, 0, 0, 0, 'Jakk''s Cage - On Gossip Hello - Set Walk');
INSERT INTO smart_scripts VALUES (183941, 1, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 10000, 0, 0, 0, 0, 0, 19, 19766, 10, 0, 0, 0, 0, 0, 'Jakk''s Cage - On Gossip Hello - Despawn');
INSERT INTO smart_scripts VALUES (183941, 1, 4, 0, 59, 0, 100, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 19, 19766, 10, 0, 0, 0, 0, 0, 'Jakk''s Cage - On Gossip Hello - Say Line 0');
INSERT INTO smart_scripts VALUES (183936, 1, 0, 1, 64, 0, 100, 0, 1, 0, 0, 0, 67, 1, 5000, 5000, 0, 0, 100, 1, 0, 0, 0, 0, 0, 0, 0, 'Manni''s Cage - On Gossip Hello - Create Timed Event');
INSERT INTO smart_scripts VALUES (183936, 1, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 130, 1, 0, 0, 0, 0, 0, 19, 19763, 10, 0, 70.07, 3209.50, 32.15, 0, 'Manni''s Cage - On Gossip Hello - Move Target To Position');
INSERT INTO smart_scripts VALUES (183936, 1, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 19, 19763, 10, 0, 0, 0, 0, 0, 'Manni''s Cage - On Gossip Hello - Set Walk');
INSERT INTO smart_scripts VALUES (183936, 1, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 10000, 0, 0, 0, 0, 0, 19, 19763, 10, 0, 0, 0, 0, 0, 'Manni''s Cage - On Gossip Hello - Despawn');
INSERT INTO smart_scripts VALUES (183936, 1, 4, 0, 59, 0, 100, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 19, 19763, 10, 0, 0, 0, 0, 0, 'Manni''s Cage - On Gossip Hello - Say Line 0');
INSERT INTO smart_scripts VALUES (183940, 1, 0, 1, 64, 0, 100, 0, 1, 0, 0, 0, 67, 1, 5000, 5000, 0, 0, 100, 1, 0, 0, 0, 0, 0, 0, 0, 'Moh''s Cage - On Gossip Hello - Create Timed Event');
INSERT INTO smart_scripts VALUES (183940, 1, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 130, 1, 0, 0, 0, 0, 0, 19, 19764, 10, 0, -72.39, 3137.89, -4.40, 0, 'Moh''s Cage - On Gossip Hello - Move Target To Position');
INSERT INTO smart_scripts VALUES (183940, 1, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 19, 19764, 10, 0, 0, 0, 0, 0, 'Moh''s Cage - On Gossip Hello - Set Walk');
INSERT INTO smart_scripts VALUES (183940, 1, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 10000, 0, 0, 0, 0, 0, 19, 19764, 10, 0, 0, 0, 0, 0, 'Moh''s Cage - On Gossip Hello - Despawn');
INSERT INTO smart_scripts VALUES (183940, 1, 4, 0, 59, 0, 100, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 19, 19764, 10, 0, 0, 0, 0, 0, 'Moh''s Cage - On Gossip Hello - Say Line 0');
-- The Foot of the Citadel (10876)
DELETE FROM creature_text WHERE entry=22374;
INSERT INTO creature_text VALUES (22374, 0, 0, 'Who dares slay one of my Kargath''s commanders? You will pay for this... in flesh!', 14, 0, 100, 0, 0, 0, 0, 'Hand of Kargath');
DELETE FROM smart_scripts WHERE entryorguid=22374 AND source_type=0;
INSERT INTO smart_scripts VALUES (22374, 0, 0, 1, 4, 0, 100, 1, 0, 0, 0, 0, 11, 33962, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Hand of Kargath - On Aggro - Cast Toughen');
INSERT INTO smart_scripts VALUES (22374, 0, 1, 0, 60, 0, 100, 257, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Hand of Kargath - On Update - Say Line 0');
INSERT INTO smart_scripts VALUES (22374, 0, 2, 0, 1, 0, 100, 257, 4000, 4000, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 40, 0, 0, 0, 0, 0, 0, 'Hand of Kargath - Out of Combat - Attack Start');
INSERT INTO smart_scripts VALUES (22374, 0, 3, 0, 0, 0, 100, 0, 2600, 2600, 3800, 6400, 11, 9080, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Hand of Kargath - In Combat - Cast Hamstring');
INSERT INTO smart_scripts VALUES (22374, 0, 4, 0, 0, 0, 100, 0, 5200, 5200, 30000, 45000, 11, 33735, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Hand of Kargath - In Combat - Cast Blade Flurry');
INSERT INTO smart_scripts VALUES (22374, 0, 5, 0, 0, 0, 100, 0, 15400, 15400, 12000, 16000, 11, 24193, 1, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 'Hand of Kargath - In Combat - Cast Charge');
INSERT INTO smart_scripts VALUES (22374, 0, 6, 0, 2, 0, 100, 1, 0, 90, 0, 0, 11, 33962, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Hand of Kargath - Between 0-90% Health - Cast Toughen');
INSERT INTO smart_scripts VALUES (22374, 0, 7, 0, 2, 0, 100, 1, 0, 80, 0, 0, 11, 33962, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Hand of Kargath - Between 0-80% Health - Cast Toughen');
INSERT INTO smart_scripts VALUES (22374, 0, 8, 0, 2, 0, 100, 1, 0, 70, 0, 0, 11, 33962, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Hand of Kargath - Between 0-70% Health - Cast Toughen');
INSERT INTO smart_scripts VALUES (22374, 0, 9, 0, 2, 0, 100, 1, 0, 60, 0, 0, 11, 33962, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Hand of Kargath - Between 0-60% Health - Cast Toughen');
INSERT INTO smart_scripts VALUES (22374, 0, 10, 0, 2, 0, 100, 1, 0, 50, 0, 0, 11, 33962, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Hand of Kargath - Between 0-50% Health - Cast Toughen');
INSERT INTO smart_scripts VALUES (22374, 0, 11, 0, 2, 0, 100, 1, 0, 40, 0, 0, 11, 33962, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Hand of Kargath - Between 0-40% Health - Cast Toughen');
INSERT INTO smart_scripts VALUES (22374, 0, 12, 0, 2, 0, 100, 1, 0, 30, 0, 0, 11, 33962, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Hand of Kargath - Between 0-30% Health - Cast Toughen');
INSERT INTO smart_scripts VALUES (22374, 0, 13, 0, 2, 0, 100, 1, 0, 20, 0, 0, 11, 33962, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Hand of Kargath - Between 0-20% Health - Cast Toughen');
INSERT INTO smart_scripts VALUES (22374, 0, 14, 0, 2, 0, 100, 1, 0, 10, 0, 0, 11, 33962, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Hand of Kargath - Between 0-10% Health - Cast Toughen');
-- Bloody Vengeance (10250)
DELETE FROM event_scripts WHERE id=12823;
INSERT INTO event_scripts VALUES (12823, 0, 10, 19862, 120000, 0, -1175.41, 2264.59, 53.1733, 3.15905);
INSERT INTO event_scripts VALUES (12823, 3, 10, 20137, 120000, 0, -1190.11, 2258.2, 46.6871, 1.36136);
INSERT INTO event_scripts VALUES (12823, 3, 10, 20137, 120000, 0, -1196.75, 2264.76, 47.9826, 6.19592);
INSERT INTO event_scripts VALUES (12823, 3, 10, 20137, 120000, 0, -1193.53, 2259.04, 47.484, 0.820305);
INSERT INTO event_scripts VALUES (12823, 3, 10, 20137, 120000, 0, -1190.24, 2269.2, 46.0973, 4.97419);
INSERT INTO event_scripts VALUES (12823, 3, 10, 19864, 120000, 0, -1194.89, 2267.52, 47.29, 5.36);
DELETE FROM creature_text WHERE entry IN(19864, 20137, 19862);
INSERT INTO creature_text VALUES (19864, 0, 0, 'Vengeance is ours! Attack my brothers!', 12, 0, 100, 0, 0, 0, 0, 'Vengeful Unyielding Captain');
INSERT INTO creature_text VALUES (19862, 0, 0, 'Urtrak kill you!', 12, 0, 100, 0, 0, 0, 0, 'Urtrak');
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry IN(19864, 20137, 19862);
DELETE FROM smart_scripts WHERE entryorguid IN(19864, 20137, 19862) AND source_type=0;
INSERT INTO smart_scripts VALUES (19864, 0, 0, 0, 60, 0, 100, 257, 500, 500, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Vengeful Unyielding Captain - On Update - Say Line 0');
INSERT INTO smart_scripts VALUES (19864, 0, 1, 0, 1, 0, 100, 257, 2500, 2500, 0, 0, 49, 0, 0, 0, 0, 0, 0, 19, 19862, 30, 0, 0, 0, 0, 0, 'Vengeful Unyielding Captain - Out of Combat - Attack Start');
INSERT INTO smart_scripts VALUES (19864, 0, 2, 0, 1, 0, 100, 257, 10000, 10000, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Vengeful Unyielding Captain - Out of Combat - Despawn');
INSERT INTO smart_scripts VALUES (20137, 0, 0, 0, 1, 0, 100, 257, 2500, 2500, 0, 0, 49, 0, 0, 0, 0, 0, 0, 19, 19862, 30, 0, 0, 0, 0, 0, 'Vengeful Unyielding Footman - Out of Combat - Attack Start');
INSERT INTO smart_scripts VALUES (20137, 0, 1, 0, 1, 0, 100, 257, 10000, 10000, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Vengeful Unyielding Footman - Out of Combat - Despawn');
INSERT INTO smart_scripts VALUES (19862, 0, 0, 0, 60, 0, 100, 257, 1000, 1000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Urtrak - On Update - Say Line 0');
INSERT INTO smart_scripts VALUES (19862, 0, 1, 0, 1, 0, 100, 257, 2000, 2000, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 30, 0, 0, 0, 0, 0, 0, 'Urtrak - Out of Combat - Attack Start');
-- From the Abyss (10295)
DELETE FROM event_scripts WHERE id=13037;
INSERT INTO event_scripts VALUES (13037, 0, 10, 16939, 3000000, 0, -1243.23, 1312.41, 3.55, 1.34);
UPDATE creature_template SET InhabitType=7, AIName='SmartAI', ScriptName='' WHERE entry=16939;
DELETE FROM smart_scripts WHERE entryorguid=16939 AND source_type=0;
INSERT INTO smart_scripts VALUES (16939, 0, 0, 0, 1, 0, 100, 257, 0, 0, 0, 0, 11, 34302, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Void Baron Galaxis - Out of Combat - Cast Coalesce');
INSERT INTO smart_scripts VALUES (16939, 0, 1, 0, 1, 0, 100, 257, 2000, 2000, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, -1232.90, 1355.956, 5.23, 0, 'Void Baron Galaxis - Out of Combat - Move To Position');
INSERT INTO smart_scripts VALUES (16939, 0, 2, 0, 60, 0, 100, 257, 9000, 9000, 0, 0, 11, 34236, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Void Baron Galaxis - On Update - Cast Baron''s Summons');
INSERT INTO smart_scripts VALUES (16939, 0, 3, 0, 0, 0, 100, 0, 12000, 15000, 15000, 20000, 11, 34239, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Void Baron Galaxis - In Combat - Cast Absorb Life');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=34239;
DELETE FROM conditions WHERE SourceTypeOrReferenceId=17 AND SourceEntry=34239;
INSERT INTO conditions VALUES(13, 1, 34239, 0, 0, 31, 0, 3, 19599, 0, 0, 0, 0, '', 'Target Void Servant');
INSERT INTO conditions VALUES(17, 0, 34239, 0, 0, 29, 0, 19599, 15, 0, 0, 0, 0, '', 'Requires Void Servant in 15yd');
-- Honor the Fallen (10258)
DELETE FROM smart_scripts WHERE entryorguid=19863 AND source_type=0;
INSERT INTO smart_scripts VALUES (19863, 0, 0, 0, 54, 0, 100, 0, 0, 0, 0, 0, 41, 15000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Vengeful Unyielding - On Just Summoned - Despawn In 15000 ms');
INSERT INTO smart_scripts VALUES (19863, 0, 1, 0, 1, 0, 100, 0, 1000, 3000, 10000, 20000, 5, 16, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Vengeful Unyielding - On Just Summoned - Play Emote Kneel');
-- Testing the Antidote (10255)
DELETE FROM creature_text WHERE entry IN(16880, 16992);
INSERT INTO creature_text VALUES (16880, 0, 0, '%s begins to grow stronger', 16, 0, 100, 0, 0, 0, 0, 'Hulking Helboar');
INSERT INTO creature_text VALUES (16992, 0, 0, '%s begins to grow stronger', 16, 0, 100, 0, 0, 0, 0, 'Dreadtusk');
DELETE FROM spell_script_names WHERE spell_id=34665;
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=16880;
DELETE FROM smart_scripts WHERE entryorguid=16880 AND source_type=0;
INSERT INTO smart_scripts VALUES (16880, 0, 0, 1, 2, 0, 100, 1, 0, 60, 0, 0, 11, 33909, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Hulking Helboar - Between Health 0-60% - Cast Hulk');
INSERT INTO smart_scripts VALUES (16880, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Hulking Helboar - Between Health 0-60% - Say Line 0');
INSERT INTO smart_scripts VALUES (16880, 0, 2, 3, 8, 0, 100, 1, 34665, 0, 0, 0, 36, 16992, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Hulking Helboar - On Spell Hit - Update Entry');
INSERT INTO smart_scripts VALUES (16880, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Hulking Helboar - On Spell Hit - Attack Start');
INSERT INTO smart_scripts VALUES (16880, 0, 4, 0, 7, 0, 100, 0, 0, 0, 0, 0, 36, 16880, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Hulking Helboar - On Evade - Update Entry');
-- Arzeth's Demise (10369)
DELETE FROM creature_text WHERE entry IN(19354, 20680);
INSERT INTO creature_text VALUES (19354, 0, 0, 'Work these Broken wretches to the bones, Illidari! If there''s anything of value in this forsaken place we shall find it!', 14, 0, 100, 1, 0, 0, 0, 'Arzeth the Merciless');
INSERT INTO creature_text VALUES (19354, 0, 1, 'Do not allow these wretches a moment of rest! If there''s an Ata''mal crystal here then we shall find it!', 14, 0, 100, 1, 0, 0, 0, 'Arzeth the Merciless');
INSERT INTO creature_text VALUES (19354, 0, 2, 'Keep a close eye on this Broken scum! Far too many have escaped from us!', 14, 0, 100, 1, 0, 0, 0, 'Arzeth the Merciless');
INSERT INTO creature_text VALUES (19354, 0, 3, 'We will find what the Master is looking for! Failure is not an option!', 14, 0, 100, 1, 0, 0, 0, 'Arzeth the Merciless');
INSERT INTO creature_text VALUES (20680, 0, 0, 'That Broken worm gave you that staff, didn''t he? Did he also tell you he''s the one that sold out his tribe? No matter, you will both pay for this!', 14, 0, 100, 0, 0, 0, 0, 'Arzeth the Powerless');
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=19354;
DELETE FROM smart_scripts WHERE entryorguid=19354 AND source_type=0;
INSERT INTO smart_scripts VALUES (19354, 0, 0, 0, 0, 0, 100, 0, 8000, 12000, 8000, 14000, 11, 16856, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Arzeth the Merciless - In Combat - Cast Mortal Strike');
INSERT INTO smart_scripts VALUES (19354, 0, 1, 0, 9, 0, 100, 0, 0, 30, 12000, 14000, 11, 15245, 1, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Arzeth the Merciless - Within 0-30 Range - Cast Shadow Bolt Volley');
INSERT INTO smart_scripts VALUES (19354, 0, 2, 3, 8, 0, 100, 1, 35460, 0, 0, 0, 36, 20680, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Arzeth the Merciless - On Spell Hit - Update Template');
INSERT INTO smart_scripts VALUES (19354, 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, 'Arzeth the Merciless - Link - Say Line 0');
INSERT INTO smart_scripts VALUES (19354, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Arzeth the Merciless - Link - Attack Start');
INSERT INTO smart_scripts VALUES (19354, 0, 5, 0, 1, 0, 100, 0, 35000, 45000, 40000, 90000, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Arzeth the Merciless - OOC - Say Line 0');
INSERT INTO smart_scripts VALUES (19354, 0, 6, 0, 7, 0, 100, 0, 0, 0, 0, 0, 36, 19354, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Arzeth the Merciless - On Evade - Update Template');
-- The Cleansing Must Be Stopped (9370)
DELETE FROM event_scripts WHERE id=10346;
UPDATE gameobject_template SET AIName='SmartGameObjectAI', ScriptName='' WHERE entry=181447;
DELETE FROM smart_scripts WHERE entryorguid=181447 AND source_type=1;
INSERT INTO smart_scripts VALUES (181447, 1, 0, 1, 60, 0, 100, 257, 10000, 15000, 0, 0, 12, 16994, 4, 30000, 0, 0, 0, 8, 0, 0, 0, 88.50, 3553.64, 63.80, 5.0, 'Signaling Gem - On Update - Summon Creature');
INSERT INTO smart_scripts VALUES (181447, 1, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 12, 16996, 4, 30000, 0, 0, 0, 8, 0, 0, 0, 89.81, 3557.59, 64.30, 5.0, 'Signaling Gem - On Update - Summon Creature');
INSERT INTO smart_scripts VALUES (181447, 1, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 12, 16996, 4, 30000, 0, 0, 0, 8, 0, 0, 0, 84.21, 3555.82, 64.17, 5.0, 'Signaling Gem - On Update - Summon Creature');
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=16994;
DELETE FROM smart_scripts WHERE entryorguid=16994 AND source_type=0;
INSERT INTO smart_scripts VALUES (16994, 0, 0, 0, 0, 0, 100, 0, 4000, 9000, 10000, 16000, 11, 16994, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Draenei Anchorite - In Combat - Cast Holy Fire');
INSERT INTO smart_scripts VALUES (16994, 0, 1, 0, 1, 0, 100, 1, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 50, 0, 0, 0, 0, 0, 0, 'Draenei Anchorite - Out of Combat - Attack Start');
INSERT INTO smart_scripts VALUES (16994, 0, 2, 0, 4, 0, 100, 0, 0, 0, 0, 0, 39, 10, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Draenei Anchorite - On Aggro - Call For Help');

View File

@@ -0,0 +1,313 @@
-- Dr. Boom! (10221)
UPDATE creature_template SET unit_flags=unit_flags|4, AIName='SmartAI', ScriptName=''WHERE entry=20284;
DELETE FROM smart_scripts WHERE entryorguid=20284 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid IN(20284*100+0, 20284*100+1) AND source_type=9;
INSERT INTO smart_scripts VALUES (20284, 0, 0, 0, 60, 0, 100, 0, 0, 0, 500, 1000, 87, 20284*100+0, 20284*100+1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Dr. Boom - On Update - Run Script');
INSERT INTO smart_scripts VALUES (20284, 0, 1, 0, 9, 0, 100, 0, 0, 15, 3000, 3000, 11, 35276, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Dr. Boom - Within Range 0-15yd - Throw Dynamite');
INSERT INTO smart_scripts VALUES (20284*100+0, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 35128, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Dr. Boom - On Script - Cast Summon Boom Bot');
INSERT INTO smart_scripts VALUES (20284*100+1, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 35130, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Dr. Boom - On Script - Cast Summon Boom Bot');
DELETE FROM creature_addon WHERE guid IN(SELECT guid FROM creature WHERE id=19692);
DELETE FROM creature WHERE id=19692;
UPDATE creature_template SET unit_flags=unit_flags|131072, AIName='SmartAI', ScriptName=''WHERE entry=19692;
DELETE FROM smart_scripts WHERE entryorguid=19692 AND source_type=0;
INSERT INTO smart_scripts VALUES (19692, 0, 0, 0, 37, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Boom Bot - On AI Init - Set React Passive');
INSERT INTO smart_scripts VALUES (19692, 0, 1, 0, 60, 0, 100, 257, 3000, 3000, 0, 0, 69, 1, 0, 0, 0, 0, 0, 11, 20392, 30, 0, 0, 0, 0, 0, 'Boom Bot - On Update - Move To Position');
INSERT INTO smart_scripts VALUES (19692, 0, 2, 0, 60, 0, 100, 0, 0, 0, 500, 500, 49, 1, 0, 0, 0, 0, 0, 21, 1, 0, 0, 0, 0, 0, 0, 'Boom Bot - On Update - Attack Start');
INSERT INTO smart_scripts VALUES (19692, 0, 3, 5, 0, 0, 100, 1, 0, 0, 0, 0, 11, 35132, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Boom Bot - In Combat - Cast Boom');
INSERT INTO smart_scripts VALUES (19692, 0, 4, 5, 34, 0, 100, 1, 8, 1, 0, 0, 11, 35132, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Boom Bot - Movement Inform - Cast Boom');
INSERT INTO smart_scripts VALUES (19692, 0, 5, 0, 61, 0, 100, 0, 0, 0, 0, 0, 67, 1, 400, 400, 0, 0, 100, 1, 0, 0, 0, 0, 0, 0, 0, 'Boom Bot - Linked - Create Timed Event');
INSERT INTO smart_scripts VALUES (19692, 0, 6, 7, 59, 0, 100, 0, 1, 0, 0, 0, 37, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Boom Bot - On Timed Event - Die');
INSERT INTO smart_scripts VALUES (19692, 0, 7, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Boom Bot - On Timed Event - Despawn');
-- Fel Reavers, No Thanks! (10855)
DELETE FROM creature_text WHERE entry=22293;
INSERT INTO creature_text VALUES(22293, 0, 0, '%s begins to sputter as its engine malfunctions.', 16, 0, 100, 0, 0, 0, 0, 'Inactive Fel Reaver');
UPDATE creature_template SET AIName='SmartAI', ScriptName=''WHERE entry=22293;
DELETE FROM smart_scripts WHERE entryorguid=22293 AND source_type=0;
REPLACE INTO smart_scripts VALUES (22293, 0, 0, 1, 20, 0, 100, 0, 10850, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Inactive Fel Reaver - On Quest Reward - Store Target');
REPLACE INTO smart_scripts VALUES (22293, 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, 'Inactive Fel Reaver - On Quest Reward - Say Line 0');
REPLACE INTO smart_scripts VALUES (22293, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 89, 10, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Inactive Fel Reaver - On Quest Reward - Move Random');
REPLACE INTO smart_scripts VALUES (22293, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 67, 1, 8000, 8000, 0, 0, 100, 1, 0, 0, 0, 0, 0, 0, 0, 'Inactive Fel Reaver - On Quest Reward - Create Timed Event');
REPLACE INTO smart_scripts VALUES (22293, 0, 4, 5, 59, 0, 100, 0, 1, 0, 0, 0, 15, 10855, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Inactive Fel Reaver - On Timed Event - Quest Complete');
REPLACE INTO smart_scripts VALUES (22293, 0, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 33, 22293, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Inactive Fel Reaver - On Timed Event - Kill Credit');
REPLACE INTO smart_scripts VALUES (22293, 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, 'Inactive Fel Reaver - On Timed Event - Die');
-- Creatures of the Eco-Domes (10427)
DELETE FROM conditions WHERE SourceTypeOrReferenceId=17 AND SourceEntry=35771;
INSERT INTO conditions VALUES (17, 0, 35771, 0, 0, 31, 1, 3, 20610, 0, 0, 0, 0, '', 'Requires Talbuk Doe');
INSERT INTO conditions VALUES (17, 0, 35771, 0, 0, 1, 1, 42386, 0, 0, 1, 0, 0, '', 'Requires No Sleeping Aura');
INSERT INTO conditions VALUES (17, 0, 35771, 0, 1, 31, 1, 3, 20777, 0, 0, 0, 0, '', 'Requires Talbuk Sire');
INSERT INTO conditions VALUES (17, 0, 35771, 0, 1, 1, 1, 42386, 0, 0, 1, 0, 0, '', 'Requires No Sleeping Aura');
DELETE FROM creature_text WHERE entry IN(20610, 20777);
INSERT INTO creature_text VALUES(20610, 0, 0, '%s seams to have weakened.', 16, 0, 100, 0, 0, 0, 0, 'Talbuk Doe');
INSERT INTO creature_text VALUES(20777, 0, 0, '%s seams to have weakened.', 16, 0, 100, 0, 0, 0, 0, 'Talbuk Sire');
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry IN(20610, 20777);
DELETE FROM smart_scripts WHERE entryorguid IN(20610, 20777) AND source_type=0;
INSERT INTO smart_scripts VALUES (20610, 0, 0, 1, 25, 0, 100, 0, 0, 0, 0, 0, 19, 6, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Talbuk Doe - On Reset - Remove Unit Flags');
INSERT INTO smart_scripts VALUES (20610, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 91, 7, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Talbuk Doe - On Reset - Remove Bytes0');
INSERT INTO smart_scripts VALUES (20610, 0, 2, 0, 0, 0, 100, 0, 2000, 6000, 15000, 22000, 11, 32019, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Talbuk Doe - In Combat - Cast Gore');
INSERT INTO smart_scripts VALUES (20610, 0, 3, 0, 2, 0, 100, 1, 0, 20, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Talbuk Doe - Between Health 0-20% - Say Line 0');
INSERT INTO smart_scripts VALUES (20610, 0, 4, 5, 8, 0, 100, 0, 35771, 0, 0, 0, 33, 20982, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Talbuk Doe - On Spell Hit - Kill Credit');
INSERT INTO smart_scripts VALUES (20610, 0, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 11, 42386, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Talbuk Doe - On Spell Hit - Cast Sleeping Sleep');
INSERT INTO smart_scripts VALUES (20610, 0, 6, 7, 61, 0, 100, 0, 0, 0, 0, 0, 41, 10000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Talbuk Doe - On Spell Hit - Despawn');
INSERT INTO smart_scripts VALUES (20610, 0, 7, 8, 61, 0, 100, 0, 0, 0, 0, 0, 18, 6, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Talbuk Doe - On Spell Hit - Set Unit Flags');
INSERT INTO smart_scripts VALUES (20610, 0, 8, 0, 61, 0, 100, 0, 0, 0, 0, 0, 90, 7, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Talbuk Doe - On Spell Hit - Set Bytes0');
INSERT INTO smart_scripts VALUES (20777, 0, 0, 1, 25, 0, 100, 0, 0, 0, 0, 0, 19, 6, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Talbuk Sire - On Reset - Remove Unit Flags');
INSERT INTO smart_scripts VALUES (20777, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 91, 7, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Talbuk Sire - On Reset - Remove Bytes0');
INSERT INTO smart_scripts VALUES (20777, 0, 2, 0, 0, 0, 100, 0, 2000, 9000, 12000, 17000, 11, 32023, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Talbuk Sire - In Combat - Cast Hoof Stomp');
INSERT INTO smart_scripts VALUES (20777, 0, 3, 0, 2, 0, 100, 1, 0, 20, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Talbuk Sire - Between Health 0-20% - Say Line 0');
INSERT INTO smart_scripts VALUES (20777, 0, 4, 5, 8, 0, 100, 0, 35771, 0, 0, 0, 33, 20982, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Talbuk Sire - On Spell Hit - Kill Credit');
INSERT INTO smart_scripts VALUES (20777, 0, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 11, 42386, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Talbuk Sire - On Spell Hit - Cast Sleeping Sleep');
INSERT INTO smart_scripts VALUES (20777, 0, 6, 7, 61, 0, 100, 0, 0, 0, 0, 0, 41, 10000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Talbuk Sire - On Spell Hit - Despawn');
INSERT INTO smart_scripts VALUES (20777, 0, 7, 8, 61, 0, 100, 0, 0, 0, 0, 0, 18, 6, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Talbuk Sire - On Spell Hit - Set Unit Flags');
INSERT INTO smart_scripts VALUES (20777, 0, 8, 0, 61, 0, 100, 0, 0, 0, 0, 0, 90, 7, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Talbuk Sire - On Spell Hit - Set Bytes0');
-- When the Cows Come Home (10337)
DELETE FROM creature_text WHERE entry=20415;
INSERT INTO creature_text VALUES(20415, 0, 0, 'Mooooo...', 12, 0, 100, 0, 0, 0, 0, 'Bessy');
INSERT INTO creature_text VALUES(20415, 1, 0, 'Moooooooooo!', 12, 0, 100, 0, 0, 0, 0, 'Bessy');
-- Building a Perimeter (10240)
DELETE FROM smart_scripts WHERE entryorguid IN(19866, 19867, 19868) AND source_type=0;
INSERT INTO smart_scripts VALUES (19866, 0, 0, 1, 8, 0, 100, 0, 34646, 0, 0, 0, 33, 19866, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Invis East KV Rune - On Spell Hit - Kill Monster Credit');
INSERT INTO smart_scripts VALUES (19866, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 99, 3, 0, 0, 0, 0, 0, 20, 183947, 10, 0, 0, 0, 0, 0, 'Invis East KV Rune - On Spell Hit - Set Loot State');
INSERT INTO smart_scripts VALUES (19866, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 50, 183948, 180, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Invis East KV Rune - On Spell Hit - Summon Gameobject');
INSERT INTO smart_scripts VALUES (19867, 0, 0, 1, 8, 0, 100, 0, 34646, 0, 0, 0, 33, 19867, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Invis NE KV Rune - On Spell Hit - Kill Monster Credit');
INSERT INTO smart_scripts VALUES (19867, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 99, 3, 0, 0, 0, 0, 0, 20, 183947, 10, 0, 0, 0, 0, 0, 'Invis NE KV Rune - On Spell Hit - Set Loot State');
INSERT INTO smart_scripts VALUES (19867, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 50, 183948, 180, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Invis NE KV Rune - On Spell Hit - Summon Gameobject');
INSERT INTO smart_scripts VALUES (19868, 0, 0, 1, 8, 0, 100, 0, 34646, 0, 0, 0, 33, 19868, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Invis West KV Rune - On Spell Hit - Kill Monster Credit');
INSERT INTO smart_scripts VALUES (19868, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 99, 3, 0, 0, 0, 0, 0, 20, 183947, 10, 0, 0, 0, 0, 0, 'Invis West KV Rune - On Spell Hit - Set Loot State');
INSERT INTO smart_scripts VALUES (19868, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 50, 183948, 180, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Invis West KV Rune - On Spell Hit - Summon Gameobject');
-- Electro-Shock Goodness! (10411)
DELETE FROM conditions WHERE SourceTypeOrReferenceId=17 AND SourceEntry=35686;
INSERT INTO conditions VALUES (17, 0, 35686, 0, 0, 31, 1, 3, 20778, 0, 0, 0, 0, '', 'Requires Void Waste');
INSERT INTO conditions VALUES (17, 0, 35686, 0, 1, 31, 1, 3, 20501, 0, 0, 0, 0, '', 'Requires Seeping Sludge');
DELETE FROM creature_text WHERE entry IN(20778, 20501);
INSERT INTO creature_text VALUES(20778, 0, 0, '%s breaks down into globules!', 16, 0, 100, 0, 0, 0, 0, 'Void Waste');
INSERT INTO creature_text VALUES(20501, 0, 0, '%s breaks down into globules!', 16, 0, 100, 0, 0, 0, 0, 'Seeping Sludge');
INSERT INTO creature_text VALUES(20501, 1, 0, '%s attempts to split in two!', 16, 0, 100, 0, 0, 0, 0, 'Seeping Sludge');
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry IN(20778, 20501, 20805, 20806, 21264);
DELETE FROM smart_scripts WHERE entryorguid IN(20778, 20501, 20805, 20806, 21264) AND source_type=0;
INSERT INTO smart_scripts VALUES (20778, 0, 0, 0, 0, 0, 100, 0, 3000, 10000, 19000, 30000, 11, 36519, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Void Waste - In Combat - Cast Toxic Burst');
INSERT INTO smart_scripts VALUES (20778, 0, 1, 2, 8, 0, 100, 0, 35686, 0, 0, 0, 11, 35688, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Void Waste - On Spell Hit - Cast Summon Void Waste Globule');
INSERT INTO smart_scripts VALUES (20778, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Void Waste - On Spell Hit - Say Line 0');
INSERT INTO smart_scripts VALUES (20778, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 37, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Void Waste - On Spell Hit - Die');
INSERT INTO smart_scripts VALUES (20501, 0, 0, 0, 11, 0, 100, 0, 0, 0, 0, 0, 11, 35242, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Seeping Sludge - On Respawn - Cast Darkstalker Birth');
INSERT INTO smart_scripts VALUES (20501, 0, 1, 2, 2, 0, 50, 1, 0, 30, 0, 0, 11, 36465, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Seeping Sludge - Between Health 0-30% - Cast Seeping Split');
INSERT INTO smart_scripts VALUES (20501, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Seeping Sludge - Between Health 0-30% - Say Line 1');
INSERT INTO smart_scripts VALUES (20501, 0, 3, 0, 17, 0, 100, 1, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Seeping Sludge - Just Summoned - Despawn');
INSERT INTO smart_scripts VALUES (20501, 0, 4, 5, 8, 0, 100, 0, 35686, 0, 0, 0, 11, 35687, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Seeping Sludge - On Spell Hit - Cast Summon Seeping Sludge Globule');
INSERT INTO smart_scripts VALUES (20501, 0, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Seeping Sludge - On Spell Hit - Say Line 0');
INSERT INTO smart_scripts VALUES (20501, 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, 'Seeping Sludge - On Spell Hit - Die');
INSERT INTO smart_scripts VALUES (21264, 0, 0, 0, 1, 0, 100, 257, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 40, 0, 0, 0, 0, 0, 0, 'Seeping Ooze - Out of Combat - Attack Start');
INSERT INTO smart_scripts VALUES (21264, 0, 1, 0, 1, 0, 100, 257, 10000, 10000, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Seeping Ooze - Out of Combat - Despawn');
INSERT INTO smart_scripts VALUES (20805, 0, 0, 0, 1, 0, 100, 257, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 40, 0, 0, 0, 0, 0, 0, 'Void Waste Globule - Out of Combat - Attack Start');
INSERT INTO smart_scripts VALUES (20805, 0, 1, 0, 1, 0, 100, 257, 10000, 10000, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Void Waste Globule - Out of Combat - Despawn');
INSERT INTO smart_scripts VALUES (20806, 0, 0, 0, 1, 0, 100, 257, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 40, 0, 0, 0, 0, 0, 0, 'Seeping Sludge Globule - Out of Combat - Attack Start');
INSERT INTO smart_scripts VALUES (20806, 0, 1, 0, 1, 0, 100, 257, 10000, 10000, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Seeping Sludge Globule - Out of Combat - Despawn');
-- On Nethery Wings (10438)
UPDATE gameobject_template SET data1=90 WHERE entry=184643;
UPDATE creature_template SET unit_flags=unit_flags|4, AIName='SmartAI', ScriptName='' WHERE entry=20899;
DELETE FROM smart_scripts WHERE entryorguid=20899 AND source_type=0;
INSERT INTO smart_scripts VALUES (20899, 0, 0, 1, 8, 0, 100, 0, 35734, 0, 0, 0, 33, 20899, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Void Conduit - On Spell Hit - Kill Credit');
INSERT INTO smart_scripts VALUES (20899, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 10, 69964, 19554, 1, 0, 0, 0, 0, 'Void Conduit - On Spell Hit - Say Line 0 Target');
INSERT INTO smart_scripts VALUES (20899, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 37, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Void Conduit - On Spell Hit - Die');
-- Dimensius the All-Devouring (10439)
DELETE FROM creature_text WHERE entry IN(19554, 20985, 21780);
INSERT INTO creature_text VALUES(19554, 0, 0, 'You only hasten the inevitable. In time, all will be devoured!', 14, 0, 100, 0, 0, 0, 1, 'Dimensius the All-Devouring');
INSERT INTO creature_text VALUES(19554, 1, 0, 'Time only has meaning to mortals, insect. Dimensius is infinite!', 14, 0, 100, 0, 0, 0, 0, 'Dimensius the All-Devouring');
INSERT INTO creature_text VALUES(20985, 0, 0, 'You heard the fleshling! MOVE OUT!', 12, 0, 100, 15, 0, 0, 0, 'Captain Saeed');
INSERT INTO creature_text VALUES(20985, 1, 0, 'Tell me when you are ready. We will attack on your command.', 12, 0, 100, 0, 0, 0, 0, 'Captain Saeed');
INSERT INTO creature_text VALUES(20985, 2, 0, 'It''s now or never, soldiers! Let''s do this! For K''aresh! For the Protectorate!', 12, 0, 100, 0, 0, 0, 0, 'Captain Saeed');
INSERT INTO creature_text VALUES(20985, 3, 0, 'The time for your destruction has finally come, Dimensius!', 12, 0, 100, 0, 0, 0, 0, 'Captain Saeed');
INSERT INTO creature_text VALUES(21780, 0, 0, '%s begins channeling power into Dimensius.', 16, 0, 100, 0, 0, 0, 0, 'Spawn of Dimensius');
DELETE FROM spell_script_names WHERE spell_id=36500;
INSERT INTO spell_script_names VALUES(36500, 'spell_gen_throw_back');
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry IN(21805, 20984);
UPDATE creature_template SET unit_flags=unit_flags|4, AIName='SmartAI', ScriptName='' WHERE entry=21780;
DELETE FROM smart_scripts WHERE entryorguid IN(21805, 20984, 21780) AND source_type=0;
INSERT INTO smart_scripts VALUES(21805, 0, 0, 0, 0, 0, 100, 0, 0, 1000, 3000, 4000, 11, 36500, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Protectorate Avenger - In Combat - Cast Glaive');
INSERT INTO smart_scripts VALUES(20984, 0, 0, 0, 0, 0, 100, 0, 0, 1000, 3000, 4000, 11, 36500, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Protectorate Defender - In Combat - Cast Glaive');
INSERT INTO smart_scripts VALUES(20984, 0, 1, 0, 0, 0, 100, 0, 5000, 10000, 10000, 20000, 11, 31553, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Protectorate Defender - In Combat - Cast Hamstring');
INSERT INTO smart_scripts VALUES(21780, 0, 0, 0, 37, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Spawn of Dimensius - On AI Init - Set React Passive');
INSERT INTO smart_scripts VALUES(21780, 0, 1, 2, 60, 0, 100, 257, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 100, 0, 0, 0, 0, 0, 0, 'Spawn of Dimensius - On Update - Attack Start');
INSERT INTO smart_scripts VALUES(21780, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 11, 37450, 2, 0, 0, 0, 0, 19, 19554, 50, 0, 0, 0, 0, 0, 'Spawn of Dimensius - On Update - Cast Dimensius Feeding');
INSERT INTO smart_scripts VALUES(21780, 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, 'Spawn of Dimensius - On Update - Say Line 0');
UPDATE creature_model_info SET combat_reach=7 WHERE modelid=18988;
UPDATE creature SET id=19554 WHERE id=21035;
UPDATE creature_template SET unit_flags=unit_flags|4, AIName='NullCreatureAI', ScriptName='' WHERE entry=21035;
UPDATE creature_template SET unit_flags=unit_flags|4, AIName='SmartAI', ScriptName='' WHERE entry=19554;
UPDATE creature_template SET AIName='', ScriptName='npc_captain_saeed' WHERE entry=20985;
DELETE FROM smart_scripts WHERE entryorguid IN(19554, 21035) AND source_type=0;
INSERT INTO smart_scripts VALUES(19554, 0, 0, 0, 25, 0, 100, 0, 0, 0, 0, 0, 11, 35939, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Dimensius the All-Devouring - On Reset - Cast Dimensius Transform');
INSERT INTO smart_scripts VALUES(19554, 0, 1, 0, 0, 0, 100, 0, 3000, 4000, 7000, 10000, 11, 37500, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Dimensius the All-Devouring - In Combat - Cast Shadow Spiral');
INSERT INTO smart_scripts VALUES(19554, 0, 2, 0, 0, 0, 100, 0, 5000, 7000, 10000, 16000, 11, 37412, 0, 0, 0, 0, 0, 5, 50, 1, 0, 0, 0, 0, 0, 'Dimensius the All-Devouring - In Combat - Cast Shadow Vault');
INSERT INTO smart_scripts VALUES(19554, 0, 3, 4, 2, 0, 100, 1, 0, 75, 0, 0, 12, 21780, 4, 30000, 0, 0, 0, 1, 0, 0, 0, 28, 0, 0, 0, 'Dimensius the All-Devouring - Between Health 0-75% - Summon Creature');
INSERT INTO smart_scripts VALUES(19554, 0, 4, 5, 61, 0, 100, 0, 0, 0, 0, 0, 12, 21780, 4, 30000, 0, 0, 0, 1, 0, 0, 0, -28, 0, 0, 0, 'Dimensius the All-Devouring - Between Health 0-75% - Summon Creature');
INSERT INTO smart_scripts VALUES(19554, 0, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 12, 21780, 4, 30000, 0, 0, 0, 1, 0, 0, 0, 0, 28, 0, 0, 'Dimensius the All-Devouring - Between Health 0-75% - Summon Creature');
INSERT INTO smart_scripts VALUES(19554, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 12, 21780, 4, 30000, 0, 0, 0, 1, 0, 0, 0, 0, -28, 0, 0, 'Dimensius the All-Devouring - Between Health 0-75% - Summon Creature');
DELETE FROM script_waypoint WHERE entry=20985;
INSERT INTO script_waypoint VALUES (20985, 1, 4254.23, 2108.69, 144.247, 0, "");
INSERT INTO script_waypoint VALUES (20985, 2, 4239.06, 2114.86, 146.952, 0, "");
INSERT INTO script_waypoint VALUES (20985, 3, 4225.45, 2118.14, 152.244, 0, "");
INSERT INTO script_waypoint VALUES (20985, 4, 4211.32, 2107.93, 156.698, 0, "");
INSERT INTO script_waypoint VALUES (20985, 5, 4206.56, 2104.48, 160.319, 0, "");
INSERT INTO script_waypoint VALUES (20985, 6, 4178.02, 2075.21, 163.157, 0, "");
INSERT INTO script_waypoint VALUES (20985, 7, 4175.38, 2061.21, 167.984, 0, "");
INSERT INTO script_waypoint VALUES (20985, 8, 4188.63, 2023.8, 184.663, 0, "");
INSERT INTO script_waypoint VALUES (20985, 9, 4173.8, 1993.33, 204.116, 0, "");
INSERT INTO script_waypoint VALUES (20985, 10, 4142.52, 1973.01, 218.002, 0, "");
INSERT INTO script_waypoint VALUES (20985, 11, 4101.52, 2007.56, 230.967, 0, "");
INSERT INTO script_waypoint VALUES (20985, 12, 4092.63, 2026.51, 236.429, 0, "");
INSERT INTO script_waypoint VALUES (20985, 13, 4059.49, 2060.78, 250.161, 0, "");
INSERT INTO script_waypoint VALUES (20985, 14, 4032.52, 2077.06, 254.449, 0, "");
INSERT INTO script_waypoint VALUES (20985, 15, 4001.34, 2099.2, 254.212, 0, "");
INSERT INTO script_waypoint VALUES (20985, 16, 3993.95, 2090.21, 254.32, 0, "");
INSERT INTO script_waypoint VALUES (20985, 17, 3989.37, 2083.43, 256.391, 0, "");
INSERT INTO script_waypoint VALUES (20985, 18, 3951.24, 2024.99, 257.005, 0, "");
INSERT INTO script_waypoint VALUES (20985, 19, 3936.40, 2003.0, 255.68, 0, "");
-- Shutting Down Manaforge Ara (10365)
DELETE FROM creature_text WHERE entry=20460;
INSERT INTO creature_text VALUES(20460, 0, 0, 'You will not shut my manaforge down, scum!', 14, 0, 100, 0, 0, 0, 0, 'Chief Engineer Gork lonn');
DELETE FROM smart_scripts WHERE entryorguid=20460 AND source_type=0;
INSERT INTO smart_scripts VALUES (20460, 0, 0, 0, 38, 2, 100, 0, 1, 1, 0, 0, 49, 0, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Chief Engineer Gork lonn - On Data Set - Attack Stored Target');
INSERT INTO smart_scripts VALUES (20460, 0, 1, 2, 7, 2, 100, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 20, 184312, 0, 0, 0, 0, 0, 0, 'Chief Engineer Gork lonn - On Evade - Set Data');
INSERT INTO smart_scripts VALUES (20460, 0, 2, 0, 61, 2, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Chief Engineer Gork lonn - On Evade - Despawn');
INSERT INTO smart_scripts VALUES (20460, 0, 3, 0, 54, 0, 100, 0, 0, 0, 0, 0, 22, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Chief Engineer Gork lonn - On Just Summoned - Set Phase 2');
INSERT INTO smart_scripts VALUES (20460, 0, 4, 0, 1, 2, 100, 0, 1000, 1000, 1000, 1000, 49, 0, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Chief Engineer Gork lonn - OOC - Attack');
INSERT INTO smart_scripts VALUES (20460, 0, 5, 0, 60, 0, 100, 257, 1000, 1000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Chief Engineer Gork lonn - On Update - Say Line 0');
-- Triangulation Point One (10269)
REPLACE INTO creature_template_addon VALUES (20086, 0, 0, 0, 0, 0, '34840 34832');
-- Triangulation Point Two (10275)
REPLACE INTO creature_template_addon VALUES (20114, 0, 0, 0, 0, 0, '34858 34832');
DELETE FROM creature WHERE id=20114;
INSERT INTO creature VALUES (NULL, 20114, 530, 1, 1, 0, 0, 3928.46, 3878.84, 177.011, 5.79697, 300, 0, 0, 6722, 0, 0, 0, 0, 0);
-- Securing the Celestial Ridge (10274)
DELETE FROM event_scripts WHERE id=12925;
INSERT INTO event_scripts VALUES (12925, 0, 10, 18544, 3000000, 0, 3780.22, 1458.31, -149.97, 0.0);
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=18544;
DELETE FROM smart_scripts WHERE entryorguid=18544 AND source_type=0;
INSERT INTO smart_scripts VALUES (18544, 0, 0, 0, 1, 0, 100, 257, 0, 0, 0, 0, 69, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 3832.74, 1448.12, -138.4, 0, 'Veraku - Out of Combat - Move To Position');
-- Troublesome Distractions (10273)
DELETE FROM creature_text WHERE entry IN(20071, 20101);
INSERT INTO creature_text VALUES(20071, 0, 0, 'Let us hold our discussion in a more... private place. Follow me, $N.', 12, 0, 100, 0, 0, 0, 0, 'Wind Trader Marid');
INSERT INTO creature_text VALUES(20071, 1, 0, 'You didn''t really think I''d do business with you again, did you? Sometimes, the best way to return to profitability is to know when to cut your losses.', 12, 0, 100, 0, 0, 0, 0, 'Wind Trader Marid');
INSERT INTO creature_text VALUES(20101, 0, 0, 'What have the netherwinds brought us?', 12, 0, 100, 0, 0, 0, 0, 'Nether-Stalker');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=15 AND SourceGroup=8071;
INSERT INTO conditions VALUES (15, 8071, 0, 0, 0, 9, 0, 10273, 0, 0, 0, 0, 0, '', 'Troublesome Distractions');
UPDATE creature_template SET faction=14, AIName='SmartAI', ScriptName='' WHERE entry=20101;
UPDATE creature_template SET speed_walk=1.5, gossip_menu_id=8071, AIName="SmartAI" WHERE entry=20071;
DELETE FROM gossip_menu_option WHERE menu_id=8071;
INSERT INTO gossip_menu_option VALUES(8071, 0, 0, 'Wind Trader Marid, I''ve returned with more information on the nether drakes. I''m prepared to be your business partner, and for an extra sum, I''ll take care of that troublesome elf and her human friend.', 1, 1, 0, 0, 0, 0, '');
DELETE FROM smart_scripts WHERE entryorguid IN(20071, 20101) AND source_type=0;
INSERT INTO smart_scripts VALUES (20071, 0, 0, 1, 25, 0, 100, 0, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Wind Trader Marid - On Reset - Set Unit Flags');
INSERT INTO smart_scripts VALUES (20071, 0, 1, 0, 25, 0, 100, 0, 0, 0, 0, 0, 81, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Wind Trader Marid - On Reset - Set NPC Flags');
INSERT INTO smart_scripts VALUES (20071, 0, 2, 3, 62, 0, 100, 0, 8071, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Wind Trader Marid - On Gossip Select - Say Line 0');
INSERT INTO smart_scripts VALUES (20071, 0, 3, 4, 61, 0, 100, 0, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Wind Trader Marid - On Gossip Select - Close Gossip');
INSERT INTO smart_scripts VALUES (20071, 0, 4, 5, 61, 0, 100, 0, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Wind Trader Marid - On Gossip Select - Store Target');
INSERT INTO smart_scripts VALUES (20071, 0, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 81, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Wind Trader Marid - On Gossip Select - Set NPC Flags');
INSERT INTO smart_scripts VALUES (20071, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 67, 1, 3000, 3000, 0, 0, 100, 1, 0, 0, 0, 0, 0, 0, 0, 'Wind Trader Marid - On Gossip Select - Create Timed Event');
INSERT INTO smart_scripts VALUES (20071, 0, 7, 0, 59, 0, 100, 0, 1, 0, 0, 0, 53, 0, 20071, 0, 0, 0, 1, 12, 1, 0, 0, 0, 0, 0, 0, 'Wind Trader Marid - On Timed Event - Start WP');
INSERT INTO smart_scripts VALUES (20071, 0, 8, 9, 40, 0, 100, 0, 15, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0.0, 'Wind Trader Marid - WP Reached - Set Orientation');
INSERT INTO smart_scripts VALUES (20071, 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, 'Wind Trader Marid - WP Reached - Say Line 1');
INSERT INTO smart_scripts VALUES (20071, 0, 10, 0, 61, 0, 100, 0, 0, 0, 0, 0, 67, 2, 4000, 4000, 0, 0, 100, 1, 0, 0, 0, 0, 0, 0, 0, 'Wind Trader Marid - WP Reached - Create Timed Event');
INSERT INTO smart_scripts VALUES (20071, 0, 11, 12, 59, 0, 100, 0, 2, 0, 0, 0, 2, 14, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Wind Trader Marid - On Timed Event - Set Faction');
INSERT INTO smart_scripts VALUES (20071, 0, 12, 13, 61, 0, 100, 0, 0, 0, 0, 0, 12, 20101, 4, 10000, 0, 0, 0, 8, 0, 0, 0, 4327.28, 2133.79, 126.42, 2.88, 'Wind Trader Marid - On Timed Event - Summon Creature');
INSERT INTO smart_scripts VALUES (20071, 0, 13, 14, 61, 0, 100, 0, 0, 0, 0, 0, 12, 20101, 4, 10000, 0, 0, 0, 8, 0, 0, 0, 4328.97, 2140.08, 124.66, 2.88, 'Wind Trader Marid - On Timed Event - Summon Creature');
INSERT INTO smart_scripts VALUES (20071, 0, 14, 15, 61, 0, 100, 0, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Wind Trader Marid - On Timed Event - Remove Unit Flags');
INSERT INTO smart_scripts VALUES (20071, 0, 15, 0, 61, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 20, 0, 0, 0, 0, 0, 0, 'Wind Trader Marid - On Timed Event - Attack Start');
INSERT INTO smart_scripts VALUES (20071, 0, 16, 0, 17, 0, 100, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Wind Trader Marid - Just Summoned - Say Line 0 Target');
INSERT INTO smart_scripts VALUES (20101, 0, 0, 0, 1, 0, 100, 1, 2000, 2000, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 30, 0, 0, 0, 0, 0, 0, 'Nether-Stalker - Out of Combat - Attack Start');
DELETE FROM waypoints WHERE entry=20071;
INSERT INTO waypoints VALUES (20071, 1, 4283.52, 2226.99, 124.217, 'Wind Trader Marid'),(20071, 2, 4289.39, 2217.21, 124.098, 'Wind Trader Marid'),(20071, 3, 4291.87, 2212.83, 121.275, 'Wind Trader Marid'),(20071, 4, 4295.08, 2207.17, 119.304, 'Wind Trader Marid'),(20071, 5, 4302.43, 2205.13, 120.59, 'Wind Trader Marid'),(20071, 6, 4307.42, 2196.81, 119.483, 'Wind Trader Marid'),(20071, 7, 4313.26, 2192.73, 117.658, 'Wind Trader Marid'),(20071, 8, 4316.16, 2187.62, 114.884, 'Wind Trader Marid'),(20071, 9, 4318.19, 2181.1, 116.967, 'Wind Trader Marid'),(20071, 10, 4315.18, 2173.19, 118.304, 'Wind Trader Marid'),(20071, 11, 4313.72, 2167.93, 118.03, 'Wind Trader Marid'),(20071, 12, 4316.97, 2162.18, 120.626, 'Wind Trader Marid'),(20071, 13, 4316.23, 2156.77, 123.907, 'Wind Trader Marid'),(20071, 14, 4310.42, 2147.52, 127.422, 'Wind Trader Marid'),(20071, 15, 4307.3, 2140.1, 129.336, 'Wind Trader Marid');
-- Delivering the Message (10406)
REPLACE INTO creature_template_addon VALUES(20755, 0, 0, 0, 0, 0, '35681');
DELETE FROM creature_text WHERE entry IN(20802, 20474);
INSERT INTO creature_text VALUES (20802, 0, 0, 'Let''s do this... Just keep me covered and I''ll deliver the package.', 12, 0, 100, 0, 0, 0, 0, 'Protectorate Demolitionist');
INSERT INTO creature_text VALUES (20802, 1, 0, 'I''m under attack! I repeat, I am under attack!', 12, 0, 100, 0, 0, 0, 0, 'Protectorate Demolitionist');
INSERT INTO creature_text VALUES (20802, 2, 0, 'By the second sun of K''aresh, look at this place! I can only imagine what Salhadaar is planning. Come on, let''s keep going.', 12, 0, 100, 5, 0, 0, 0, 'Protectorate Demolitionist');
INSERT INTO creature_text VALUES (20802, 3, 0, 'Look there, fleshling! Salhadaar''s conduits! He''s keeping well fed...', 12, 0, 100, 25, 0, 0, 0, 'Protectorate Demolitionist');
INSERT INTO creature_text VALUES (20802, 4, 0, 'Alright, keep me protected while I plant this disruptor. This shouldn''t take very long...', 12, 0, 100, 0, 0, 0, 0, 'Protectorate Demolitionist');
INSERT INTO creature_text VALUES (20802, 5, 0, 'Done! Back up! Back up!', 12, 0, 100, 0, 0, 0, 0, 'Protectorate Demolitionist');
INSERT INTO creature_text VALUES (20802, 6, 0, 'Looks like my work here is done. Report to the holo-image of Ameer over at the transporter.', 12, 0, 100, 0, 0, 0, 0, 'Protectorate Demolitionist');
INSERT INTO creature_text VALUES (20474, 0, 0, 'Protect the conduit! Stop the intruders!', 12, 0, 100, 0, 0, 0, 0, 'Ethereum Nexus-Stalker');
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry IN(20482, 20802, 20755);
UPDATE creature_template SET speed_walk=1.5, speed_run=1, RegenHealth=0 WHERE entry=20802;
UPDATE creature_template SET scale=2 WHERE entry=20755;
DELETE FROM smart_scripts WHERE entryorguid IN(20482, 20802, 20755) AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid=20802*100 AND source_type=9;
INSERT INTO smart_scripts VALUES (20482, 0, 0, 0, 19, 0, 100, 0, 10406, 0, 0, 0, 85, 35679, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Protectorate Demolitionist - On Quest Accept - Invoker Cast');
INSERT INTO smart_scripts VALUES (20802, 0, 0, 1, 37, 0, 100, 0, 0, 0, 0, 0, 53, 0, 20802, 0, 10406, 5000, 0, 23, 0, 0, 0, 0, 0, 0, 0, 'Protectorate Demolitionist - On AI Init - Start WP');
INSERT INTO smart_scripts VALUES (20802, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Protectorate Demolitionist - On AI Init - Talk');
INSERT INTO smart_scripts VALUES (20802, 0, 2, 0, 4, 0, 100, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Protectorate Demolitionist - On Aggro - Talk');
INSERT INTO smart_scripts VALUES (20802, 0, 3, 0, 40, 0, 100, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Protectorate Demolitionist - On WP Reach - Set Home Pos');
INSERT INTO smart_scripts VALUES (20802, 0, 4, 5, 40, 0, 100, 0, 6, 0, 0, 0, 54, 6000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Protectorate Demolitionist - On WP Reached - WP Pause');
INSERT INTO smart_scripts VALUES (20802, 0, 5, 0, 61, 0, 100, 0, 0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Protectorate Demolitionist - On WP Reached - Talk');
INSERT INTO smart_scripts VALUES (20802, 0, 6, 7, 40, 0, 100, 0, 11, 0, 0, 0, 54, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Protectorate Demolitionist - On WP Reached - WP Pause');
INSERT INTO smart_scripts VALUES (20802, 0, 7, 0, 61, 0, 100, 0, 0, 0, 0, 0, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Protectorate Demolitionist - On WP Reached - Talk');
INSERT INTO smart_scripts VALUES (20802, 0, 8, 9, 40, 0, 100, 0, 14, 0, 0, 0, 54, 30000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Protectorate Demolitionist - On WP Reached - WP Pause');
INSERT INTO smart_scripts VALUES (20802, 0, 9, 0, 61, 0, 100, 0, 0, 0, 0, 0, 80, 20802*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Protectorate Demolitionist - On WP Reached - Script9');
INSERT INTO smart_scripts VALUES (20802, 0, 10, 11, 56, 0, 100, 0, 14, 0, 0, 0, 1, 5, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Protectorate Demolitionist - On WP Resume - Talk');
INSERT INTO smart_scripts VALUES (20802, 0, 11, 0, 61, 0, 100, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Protectorate Demolitionist - On WP Resume - Remove Emote State');
INSERT INTO smart_scripts VALUES (20802, 0, 12, 13, 40, 0, 100, 0, 15, 0, 0, 0, 1, 6, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Protectorate Demolitionist - On WP Reached - Talk');
INSERT INTO smart_scripts VALUES (20802, 0, 13, 14, 61, 0, 100, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 11, 20755, 50, 0, 0, 0, 0, 0, 'Protectorate Demolitionist - On WP Reached - Set Data');
INSERT INTO smart_scripts VALUES (20802, 0, 14, 0, 61, 0, 100, 0, 0, 0, 0, 0, 11, 35682, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Protectorate Demolitionist - On WP Reached - Cast Spell');
INSERT INTO smart_scripts VALUES (20802*100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 17, 469, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Protectorate Demolitionist - Script9 - Set Emote State');
INSERT INTO smart_scripts VALUES (20802*100, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Protectorate Demolitionist - Script9 - Talk');
INSERT INTO smart_scripts VALUES (20802*100, 9, 2, 0, 0, 0, 100, 1, 2000, 2000, 0, 0, 12, 20474, 4, 40000, 0, 1, 0, 8, 0, 0, 0, 3864, 2341.1, 115.4, 4.9, 'Protectorate Demolitionist - Script9 - Summon Creature');
INSERT INTO smart_scripts VALUES (20802*100, 9, 3, 0, 0, 0, 100, 1, 1000, 1000, 0, 0, 12, 20474, 4, 40000, 0, 1, 0, 8, 0, 0, 0, 3867, 2341.1, 115.4, 4.9, 'Protectorate Demolitionist - Script9 - Summon Creature');
INSERT INTO smart_scripts VALUES (20802*100, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 19, 20474, 50, 0, 0, 0, 0, 0, 'Protectorate Demolitionist - Script9 - Talk');
INSERT INTO smart_scripts VALUES (20802*100, 9, 5, 0, 0, 0, 100, 1, 1000, 1000, 0, 0, 12, 20474, 4, 40000, 0, 1, 0, 8, 0, 0, 0, 3870, 2341.1, 115.4, 4.9, 'Protectorate Demolitionist - Script9 - Summon Creature');
INSERT INTO smart_scripts VALUES (20755, 0, 0, 0, 38, 0, 100, 0, 1, 1, 0, 0, 11, 40799, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Protectorate Demolitionist - On Spell Hit - Cast Spell');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=22 AND SourceEntry=20482;
INSERT INTO conditions VALUES (22, 1, 20482, 0, 0, 1, 0, 35679, 1, 0, 1, 0, 0, '', 'Requires Player without aura');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=35682;
INSERT INTO conditions VALUES (13, 1, 35682, 0, 0, 31, 0, 3, 20755, 0, 0, 0, 0, '', 'Target Ethereum Energy Cell');
INSERT INTO conditions VALUES (13, 1, 35682, 0, 1, 31, 0, 3, 20769, 0, 0, 0, 0, '', 'Target Salaadin Energy Ball');
DELETE FROM waypoints WHERE entry=20802;
INSERT INTO waypoints VALUES (20802, 1, 4015.68, 2322.49, 113.825, 'Protectorate Demolitionist'),(20802, 2, 4007.63, 2323.53, 111.428, 'Protectorate Demolitionist'),(20802, 3, 3998.41, 2324.73, 113.084, 'Protectorate Demolitionist'),(20802, 4, 3973, 2328.02, 114.082, 'Protectorate Demolitionist'),(20802, 5, 3951.87, 2328.36, 113.983, 'Protectorate Demolitionist'),(20802, 6, 3939.16, 2330.01, 112.224, 'Protectorate Demolitionist'),(20802, 7, 3931.58, 2332.9, 110.878, 'Protectorate Demolitionist'),(20802, 8, 3922.88, 2336.22, 112.603, 'Protectorate Demolitionist'),(20802, 9, 3910.8, 2345.43, 114.132, 'Protectorate Demolitionist'),(20802, 10, 3885.74, 2364.52, 114.827, 'Protectorate Demolitionist'),
(20802, 11, 3874.4, 2383.68, 113.784, 'Protectorate Demolitionist'),(20802, 12, 3871.9, 2360.65, 114.97, 'Protectorate Demolitionist'),(20802, 13, 3866.8, 2341.7, 115.65, 'Protectorate Demolitionist'),(20802, 14, 3872.97, 2321.61, 114.52, 'Protectorate Demolitionist'),(20802, 15, 3866.8, 2341.7, 115.65, 'Protectorate Demolitionist');
-- You, Robot (10248)
DELETE FROM creature_text WHERE entry IN(19832, 19851);
INSERT INTO creature_text VALUES (19832, 0, 0, 'Oh no! What''s that? Quickly, defend us with the Scrap Reaver X6000!!!', 12, 0, 100, 0, 0, 0, 0, 'Doctor Vomisa, Ph.T.');
INSERT INTO creature_text VALUES (19851, 0, 0, 'I AM DEATH! PREPARE YOUR TOWN FOR ANNIHILATION!', 14, 0, 100, 0, 0, 0, 0, 'Negatron');
UPDATE creature_template SET unit_flags=0 WHERE entry=19849;
UPDATE creature_template SET unit_flags=32768+256+512 WHERE entry=19851;
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=19832;
DELETE FROM smart_scripts WHERE entryorguid=19832 AND source_type=0;
INSERT INTO smart_scripts VALUES (19832, 0, 0, 1, 19, 0, 100, 0, 10248, 0, 0, 0, 45, 1, 0, 0, 0, 0, 0, 19, 19851, 200, 0, 0, 0, 0, 0, 'Doctor Vomisa, Ph.T. - On Quest Accept - Set Data');
INSERT INTO smart_scripts VALUES (19832, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 67, 1, 6000, 6000, 0, 0, 100, 1, 0, 0, 0, 0, 0, 0, 0, 'Doctor Vomisa, Ph.T. - On Quest Accept - Create Timed Event');
INSERT INTO smart_scripts VALUES (19832, 0, 2, 0, 59, 0, 100, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Doctor Vomisa, Ph.T. - On Timed Event - Say Line 0');
DELETE FROM smart_scripts WHERE entryorguid=19851 AND source_type=0;
INSERT INTO smart_scripts VALUES (19851, 0, 0, 0, 9, 0, 100, 0, 8, 25, 15000, 21000, 11, 35570, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Negatron - Within 8-25 Range - Cast Charge');
INSERT INTO smart_scripts VALUES (19851, 0, 1, 0, 9, 0, 100, 0, 0, 5, 15000, 21000, 11, 34625, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Negatron - Within 0-5 Range - Cast Demolish');
INSERT INTO smart_scripts VALUES (19851, 0, 2, 0, 0, 0, 100, 0, 15000, 19000, 21000, 25000, 11, 35565, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Negatron - In Combat - Cast Earthquake');
INSERT INTO smart_scripts VALUES (19851, 0, 3, 0, 2, 0, 100, 0, 0, 50, 16000, 22000, 11, 34624, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Negatron - Between 0-50% Health - Cast Frenzy');
INSERT INTO smart_scripts VALUES (19851, 0, 4, 0, 6, 0, 100, 0, 0, 0, 0, 0, 15, 10248, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Negatron - On Just Died - Quest Credit You, Robot');
INSERT INTO smart_scripts VALUES (19851, 0, 5, 6, 38, 0, 100, 0, 1, 0, 0, 0, 48, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Negatron - On Data Set - Set Active on');
INSERT INTO smart_scripts VALUES (19851, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, 3097.43, 3385.81, 105.36, 0, 'Negatron - On Data Set - Move To Pos');
INSERT INTO smart_scripts VALUES (19851, 0, 7, 8, 34, 0, 100, 0, 8, 1, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Negatron - Movement Inform - Remove Unit Flags');
INSERT INTO smart_scripts VALUES (19851, 0, 8, 0, 61, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Negatron - Movement Inform - Say Line 0');
INSERT INTO smart_scripts VALUES (19851, 0, 9, 0, 25, 0, 100, 0, 0, 0, 0, 0, 48, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Negatron - On Reset - Set Active off');
-- It's a Fel Reaver, But with Heart (10309)
DELETE FROM creature_text WHERE entry=20243;
INSERT INTO creature_text VALUES (20243, 0, 0, 'The %s''s mechanical heart begins to beat softly.', 16, 0, 100, 0, 0, 0, 0, 'Scrapped Fel Reaver');
REPLACE INTO creature_template_addon VALUES(20243, 0, 0, 7, 4097, 0, '');
UPDATE creature_template SET modelid1=18671, modelid2=0, unit_flags=0, flags_extra=0x200040, mechanic_immune_mask=650854271, AIName='SmartAI', ScriptName='' WHERE entry=20243;
DELETE FROM smart_scripts WHERE entryorguid=20243 AND source_type=0;
INSERT INTO smart_scripts VALUES (20243, 0, 0, 1, 25, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Scrapped Fel Reaver - On Reset - Set React Passive');
INSERT INTO smart_scripts VALUES (20243, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Scrapped Fel Reaver - On Reset - Add Unit Flag');
INSERT INTO smart_scripts VALUES (20243, 0, 2, 3, 8, 0, 100, 0, 35282, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Scrapped Fel Reaver - On Spell Hit - Say Line 0');
INSERT INTO smart_scripts VALUES (20243, 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, 'Scrapped Fel Reaver - On Spell Hit - Remove Unit Flag');

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,224 @@
-- Lord Illidan Stormrage (11108)
REPLACE INTO smart_scripts VALUES (2313900, 9, 6, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 12, 23467, 3, 120000, 0, 0, 0, 8, 0, 0, 0, -5107.83, 602.584, 85.2393, 4.92598, 'Overlord Mor''ghor - Action List - Summon');
REPLACE INTO smart_scripts VALUES (2313900, 9, 37, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 12, 23468, 3, 15000, 0, 0, 0, 8, 0, 0, 0, -5126.73, 604.292, 84.2714, 2.46885, 'Overlord Mor''ghor - Action List - Summon');
-- The Deadliest Trap Ever Laid (11101)
DELETE FROM creature_summon_groups WHERE summonerId=23452;
INSERT INTO creature_summon_groups VALUES (23452, 0, 1, 23453, -3042.54, 832.879, -9.42804, 2.54627, 4, 30000);
INSERT INTO creature_summon_groups VALUES (23452, 0, 1, 23453, -3048.65, 830.045, -10.5551, 2.54627, 4, 30000);
INSERT INTO creature_summon_groups VALUES (23452, 0, 1, 23453, -3049.29, 824.519, -10.5041, 2.54627, 4, 30000);
INSERT INTO creature_summon_groups VALUES (23452, 0, 1, 23453, -3052.54, 823.895, -10.5332, 2.54627, 4, 30000);
INSERT INTO creature_summon_groups VALUES (23452, 0, 1, 23453, -3052.79, 819.289, -10.477, 2.54627, 4, 30000);
INSERT INTO creature_summon_groups VALUES (23452, 0, 1, 23453, -3044.22, 836.612, -9.52011, 2.36563, 4, 30000);
INSERT INTO creature_summon_groups VALUES (23452, 0, 1, 23453, -3057.13, 815.938, -10.112, 2.54627, 4, 30000);
DELETE FROM creature_text WHERE entry IN(23452, 23441);
INSERT INTO creature_text VALUES(23452, 0, 0, 'The Dragonmaw must be stopped...', 14, 0, 100, 0, 0, 0, 0, 'Commander Arcus');
INSERT INTO creature_text VALUES(23452, 1, 0, 'Victory to the Aldor! The Dragonmaw have been defeated!', 14, 0, 100, 0, 0, 0, 0, 'Commander Arcus');
INSERT INTO creature_text VALUES(23441, 0, 0, 'BURN IT DOWN!', 14, 0, 100, 0, 0, 0, 0, 'Dragonmaw Skybreaker');
INSERT INTO creature_text VALUES(23441, 0, 1, 'KILL THEM ALL!', 14, 0, 100, 0, 0, 0, 0, 'Dragonmaw Skybreaker');
INSERT INTO creature_text VALUES(23441, 0, 2, 'For the Dragonmaw!', 12, 0, 100, 0, 0, 0, 0, 'Dragonmaw Skybreaker');
INSERT INTO creature_text VALUES(23441, 0, 3, 'Long live the Dragonmaw! Die you worthless $N!', 12, 0, 100, 0, 0, 0, 0, 'Dragonmaw Skybreaker');
INSERT INTO creature_text VALUES(23441, 0, 4, 'Your bones will break under my boot, $N', 12, 0, 100, 0, 0, 0, 0, 'Dragonmaw Skybreaker');
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=23452;
DELETE FROM smart_scripts WHERE entryorguid=23452 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid=23452*100 AND source_type=9;
INSERT INTO smart_scripts VALUES (23452, 0, 0, 1, 19, 0, 100, 0, 11101, 0, 0, 0, 81, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Commander Arcus - On Quest Accept - Remove Flags');
INSERT INTO smart_scripts VALUES (23452, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 80, 23452*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Commander Arcus - On Quest Accept - Run Script');
INSERT INTO smart_scripts VALUES (23452, 0, 2, 3, 25, 0, 100, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Commander Arcus - On Reset - Set Combat Movement');
INSERT INTO smart_scripts VALUES (23452, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 81, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Commander Arcus - On Reset - Set Flags');
INSERT INTO smart_scripts VALUES (23452, 0, 4, 0, 0, 0, 100, 0, 1000, 1000, 2000, 2000, 11, 41440, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Commander Arcus - In Combat - Cast Shoot');
INSERT INTO smart_scripts VALUES (23452, 0, 5, 0, 0, 0, 100, 0, 6000, 6000, 12000, 12000, 11, 38370, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Commander Arcus - In Combat - Cast Aimed Shot');
INSERT INTO smart_scripts VALUES (23452, 0, 6, 0, 0, 0, 100, 0, 8000, 8000, 15000, 15000, 11, 41448, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Commander Arcus - In Combat - Cast Multi-Shot');
INSERT INTO smart_scripts VALUES (23452, 0, 7, 0, 4, 0, 100, 0, 0, 0, 0, 0, 39, 15, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Commander Arcus - On Aggro - Call For Help');
INSERT INTO smart_scripts VALUES (23452*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, 'Commander Arcus - On Script - Talk');
INSERT INTO smart_scripts VALUES (23452*100, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 59, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Commander Arcus - On Script - Set Run');
INSERT INTO smart_scripts VALUES (23452*100, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, -3057, 826, -10.47, 2.5, 'Commander Arcus - On Script - Set Home Position');
INSERT INTO smart_scripts VALUES (23452*100, 9, 3, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 69, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, -3057, 826, -10.47, 2.5, 'Commander Arcus - On Script - Move Point');
INSERT INTO smart_scripts VALUES (23452*100, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 107, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Commander Arcus - On Script - Summon Creature Group');
INSERT INTO smart_scripts VALUES (23452*100, 9, 5, 0, 0, 0, 100, 0, 7000, 7000, 0, 0, 21, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Commander Arcus - On Script - Set Combat Movement');
INSERT INTO smart_scripts VALUES (23452*100, 9, 6, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 12, 23441, 2, 30000, 0, 1, 0, 8, 0, 0, 0, -3077, 828, 14, 0, 'Commander Arcus - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (23452*100, 9, 7, 0, 0, 0, 100, 0, 100, 100, 0, 0, 12, 23441, 2, 30000, 0, 1, 0, 8, 0, 0, 0, -3072, 822, 2.3, 0, 'Commander Arcus - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (23452*100, 9, 8, 0, 0, 0, 100, 0, 100, 100, 0, 0, 12, 23441, 2, 30000, 0, 1, 0, 8, 0, 0, 0, -3078, 832, 2.3, 0, 'Commander Arcus - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (23452*100, 9, 9, 0, 0, 0, 100, 0, 100, 100, 0, 0, 12, 23441, 2, 30000, 0, 1, 0, 8, 0, 0, 0, -3082, 850, 9, 0, 'Commander Arcus - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (23452*100, 9, 10, 0, 0, 0, 100, 0, 100, 100, 0, 0, 12, 23441, 2, 30000, 0, 1, 0, 8, 0, 0, 0, -3070, 854, 1.6, 0, 'Commander Arcus - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (23452*100, 9, 11, 0, 0, 0, 100, 0, 100, 100, 0, 0, 12, 23441, 2, 30000, 0, 1, 0, 8, 0, 0, 0, -3055, 854, 7.6, 5.3, 'Commander Arcus - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (23452*100, 9, 12, 0, 0, 0, 100, 0, 5000, 10000, 0, 0, 12, 23441, 2, 30000, 0, 1, 0, 8, 0, 0, 0, -3072, 822, 2.3, 0, 'Commander Arcus - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (23452*100, 9, 13, 0, 0, 0, 100, 0, 10000, 10000, 0, 0, 12, 23441, 2, 30000, 0, 1, 0, 8, 0, 0, 0, -3077, 828, 14, 0, 'Commander Arcus - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (23452*100, 9, 14, 0, 0, 0, 100, 0, 5000, 10000, 0, 0, 12, 23441, 2, 30000, 0, 1, 0, 8, 0, 0, 0, -3055, 854, 7.6, 5.3, 'Commander Arcus - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (23452*100, 9, 15, 0, 0, 0, 100, 0, 10000, 10000, 0, 0, 12, 23441, 2, 30000, 0, 1, 0, 8, 0, 0, 0, -3070, 854, 1.6, 0, 'Commander Arcus - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (23452*100, 9, 16, 0, 0, 0, 100, 0, 5000, 10000, 0, 0, 12, 23441, 2, 30000, 0, 1, 0, 8, 0, 0, 0, -3082, 850, 9, 0, 'Commander Arcus - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (23452*100, 9, 17, 0, 0, 0, 100, 0, 10000, 10000, 0, 0, 12, 23441, 2, 30000, 0, 1, 0, 8, 0, 0, 0, -3072, 822, 2.3, 0, 'Commander Arcus - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (23452*100, 9, 18, 0, 0, 0, 100, 0, 5000, 10000, 0, 0, 12, 23441, 2, 30000, 0, 1, 0, 8, 0, 0, 0, -3077, 828, 14, 0, 'Commander Arcus - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (23452*100, 9, 19, 0, 0, 0, 100, 0, 10000, 10000, 0, 0, 12, 23441, 2, 30000, 0, 1, 0, 8, 0, 0, 0, -3055, 854, 7.6, 5.3, 'Commander Arcus - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (23452*100, 9, 20, 0, 0, 0, 100, 0, 5000, 10000, 0, 0, 12, 23441, 2, 30000, 0, 1, 0, 8, 0, 0, 0, -3072, 822, 2.3, 0, 'Commander Arcus - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (23452*100, 9, 21, 0, 0, 0, 100, 0, 10000, 10000, 0, 0, 12, 23441, 2, 30000, 0, 1, 0, 8, 0, 0, 0, -3078, 832, 2.3, 0, 'Commander Arcus - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (23452*100, 9, 22, 0, 0, 0, 100, 0, 5000, 10000, 0, 0, 12, 23441, 2, 30000, 0, 1, 0, 8, 0, 0, 0, -3055, 854, 7.6, 5.3, 'Commander Arcus - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (23452*100, 9, 23, 0, 0, 0, 100, 0, 10000, 10000, 0, 0, 12, 23441, 2, 30000, 0, 1, 0, 8, 0, 0, 0, -3077, 828, 14, 0, 'Commander Arcus - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (23452*100, 9, 24, 0, 0, 0, 100, 0, 5000, 10000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Commander Arcus - On Script - Talk');
INSERT INTO smart_scripts VALUES (23452*100, 9, 25, 0, 0, 0, 100, 0, 0, 0, 0, 0, 26, 11101, 0, 0, 0, 0, 0, 18, 50, 0, 0, 0, 0, 0, 0, 'Commander Arcus - On Script - GroupEventHappens');
INSERT INTO smart_scripts VALUES (23452*100, 9, 26, 0, 0, 0, 100, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, -3023.1, 793.82, -8.82, 2.639, 'Commander Arcus - On Script - Set Home Position');
INSERT INTO smart_scripts VALUES (23452*100, 9, 27, 0, 0, 0, 100, 0, 0, 0, 0, 0, 81, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Commander Arcus - On Script - Set flags');
INSERT INTO smart_scripts VALUES (23452*100, 9, 28, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 11, 23441, 50, 0, 0, 0, 0, 0, 'Commander Arcus - On Script - Despawn Target');
INSERT INTO smart_scripts VALUES (23452*100, 9, 29, 0, 0, 0, 100, 0, 0, 0, 0, 0, 24, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Commander Arcus - On Script - Evade');
UPDATE creature_template SET AIName='SmartAI', ScriptName='', InhabitType=4 WHERE entry=23441;
REPLACE INTO creature_template_addon VALUES(23441, 0, 20684, 50331648, 4092, 0, '');
DELETE FROM smart_scripts WHERE entryorguid=23441 AND source_type=0;
INSERT INTO smart_scripts VALUES (23441, 0, 0, 0, 0, 0, 100, 0, 1000, 1000, 3500, 3500, 11, 41440, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Dragonmaw Skybreaker - In Combat - Cast Shoot');
INSERT INTO smart_scripts VALUES (23441, 0, 1, 0, 0, 0, 100, 0, 6000, 6000, 12000, 12000, 11, 38370, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Dragonmaw Skybreaker - In Combat - Cast Aimed Shot');
INSERT INTO smart_scripts VALUES (23441, 0, 2, 0, 0, 0, 100, 0, 8000, 8000, 15000, 15000, 11, 41448, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Dragonmaw Skybreaker - In Combat - Cast Multi-Shot');
INSERT INTO smart_scripts VALUES (23441, 0, 3, 0, 38, 0, 100, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Dragonmaw Skybreaker - On AI Init - Disable Auto Attack');
INSERT INTO smart_scripts VALUES (23441, 0, 4, 0, 0, 0, 100, 1, 500, 500, 0, 0, 79, 6, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Dragonmaw Skybreaker - In Combat - Set Combat Range');
INSERT INTO smart_scripts VALUES (23441, 0, 5, 0, 4, 0, 30, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Dragonmaw Skybreaker - On Aggro - Say Line 0');
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=23453;
REPLACE INTO creature_template_addon VALUES(23453, 0, 0, 0, 4098, 0, '');
DELETE FROM smart_scripts WHERE entryorguid=23453 AND source_type=0;
INSERT INTO smart_scripts VALUES (23453, 0, 0, 0, 0, 0, 100, 0, 1000, 1000, 3500, 3500, 11, 41440, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Altar Defender - In Combat - Cast Shoot');
-- The Deadliest Trap Ever Laid (11097)
DELETE FROM creature_summon_groups WHERE summonerId=23434;
INSERT INTO creature_summon_groups VALUES (23434, 0, 1, 23435, -4083.84, 1071.03, 31.9116, 5.25591, 4, 30000);
INSERT INTO creature_summon_groups VALUES (23434, 0, 1, 23435, -4083.11, 1075.08, 32.5654, 5.25591, 4, 30000);
INSERT INTO creature_summon_groups VALUES (23434, 0, 1, 23435, -4079.09, 1073.98, 31.8, 5.25591, 4, 30000);
INSERT INTO creature_summon_groups VALUES (23434, 0, 1, 23435, -4077.84, 1078.41, 32.7097, 5.25591, 4, 30000);
INSERT INTO creature_summon_groups VALUES (23434, 0, 1, 23435, -4075.08, 1078.48, 32.4796, 5.25591, 4, 30000);
INSERT INTO creature_summon_groups VALUES (23434, 0, 1, 23435, -4072.8, 1082.43, 33.3564, 5.25591, 4, 30000);
INSERT INTO creature_summon_groups VALUES (23434, 0, 1, 23435, -4068.49, 1082.18, 33.0106, 5.25591, 4, 30000);
INSERT INTO creature_summon_groups VALUES (23434, 0, 1, 23435, -4067.44, 1085.14, 33.8085, 5.25591, 4, 30000);
REPLACE INTO creature_model_info VALUES(21505, 0.5362, 2.1, 0, 0);
DELETE FROM creature_text WHERE entry IN(23434, 23440);
INSERT INTO creature_text VALUES(23434, 0, 0, 'Defenders, show these mongrels the fury of a Scryer!', 14, 0, 100, 0, 0, 0, 0, 'Commander Hobb');
INSERT INTO creature_text VALUES(23434, 1, 0, 'Victory to the Scryers! The Dragonmaw have been defeated!', 14, 0, 100, 0, 0, 0, 0, 'Commander Hobb');
INSERT INTO creature_text VALUES(23440, 0, 0, 'BURN IT DOWN!', 14, 0, 100, 0, 0, 0, 0, 'Dragonmaw Skybreaker');
INSERT INTO creature_text VALUES(23440, 0, 1, 'KILL THEM ALL!', 14, 0, 100, 0, 0, 0, 0, 'Dragonmaw Skybreaker');
INSERT INTO creature_text VALUES(23440, 0, 2, 'For the Dragonmaw!', 12, 0, 100, 0, 0, 0, 0, 'Dragonmaw Skybreaker');
INSERT INTO creature_text VALUES(23440, 0, 3, 'Long live the Dragonmaw! Die you worthless $N!', 12, 0, 100, 0, 0, 0, 0, 'Dragonmaw Skybreaker');
INSERT INTO creature_text VALUES(23440, 0, 4, 'Your bones will break under my boot, $N', 12, 0, 100, 0, 0, 0, 0, 'Dragonmaw Skybreaker');
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=23434;
DELETE FROM smart_scripts WHERE entryorguid=23434 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid=23434*100 AND source_type=9;
INSERT INTO smart_scripts VALUES (23434, 0, 0, 1, 19, 0, 100, 0, 11097, 0, 0, 0, 81, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Commander Hobb - On Quest Accept - Remove Flags');
INSERT INTO smart_scripts VALUES (23434, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 80, 23434*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Commander Hobb - On Quest Accept - Run Script');
INSERT INTO smart_scripts VALUES (23434, 0, 2, 3, 25, 0, 100, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Commander Hobb - On Reset - Set Combat Movement');
INSERT INTO smart_scripts VALUES (23434, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 81, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Commander Hobb - On Reset - Set Flags');
INSERT INTO smart_scripts VALUES (23434, 0, 4, 0, 0, 0, 100, 0, 1000, 1000, 2000, 2000, 11, 41440, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Commander Hobb - In Combat - Cast Shoot');
INSERT INTO smart_scripts VALUES (23434, 0, 5, 0, 0, 0, 100, 0, 6000, 6000, 12000, 12000, 11, 38370, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Commander Hobb - In Combat - Cast Aimed Shot');
INSERT INTO smart_scripts VALUES (23434, 0, 6, 0, 0, 0, 100, 0, 8000, 8000, 15000, 15000, 11, 41448, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Commander Hobb - In Combat - Cast Multi-Shot');
INSERT INTO smart_scripts VALUES (23434, 0, 7, 0, 4, 0, 100, 0, 0, 0, 0, 0, 39, 15, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Commander Hobb - On Aggro - Call For Help');
INSERT INTO smart_scripts VALUES (23434*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, 'Commander Hobb - On Script - Talk');
INSERT INTO smart_scripts VALUES (23434*100, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 59, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Commander Hobb - On Script - Set Run');
INSERT INTO smart_scripts VALUES (23434*100, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, -4085, 1096, 38.54, 5.3, 'Commander Hobb - On Script - Set Home Position');
INSERT INTO smart_scripts VALUES (23434*100, 9, 3, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 69, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, -4085, 1096, 38.54, 5.3, 'Commander Hobb - On Script - Move Point');
INSERT INTO smart_scripts VALUES (23434*100, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 107, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Commander Hobb - On Script - Summon Creature Group');
INSERT INTO smart_scripts VALUES (23434*100, 9, 5, 0, 0, 0, 100, 0, 7000, 7000, 0, 0, 21, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Commander Hobb - On Script - Set Combat Movement');
INSERT INTO smart_scripts VALUES (23434*100, 9, 6, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 12, 23440, 2, 30000, 0, 1, 0, 8, 0, 0, 0, -4087, 1067, 44, 1.7, 'Commander Hobb - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (23434*100, 9, 7, 0, 0, 0, 100, 0, 100, 100, 0, 0, 12, 23440, 2, 30000, 0, 1, 0, 8, 0, 0, 0, -4076, 1071, 48, 1.7, 'Commander Hobb - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (23434*100, 9, 8, 0, 0, 0, 100, 0, 100, 100, 0, 0, 12, 23440, 2, 30000, 0, 1, 0, 8, 0, 0, 0, -4078, 1083, 41, 1.9, 'Commander Hobb - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (23434*100, 9, 9, 0, 0, 0, 100, 0, 100, 100, 0, 0, 12, 23440, 2, 30000, 0, 1, 0, 8, 0, 0, 0, -4058, 1085, 50, 2.2, 'Commander Hobb - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (23434*100, 9, 10, 0, 0, 0, 100, 0, 100, 100, 0, 0, 12, 23440, 2, 30000, 0, 1, 0, 8, 0, 0, 0, -4066, 1095, 52, 2.4, 'Commander Hobb - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (23434*100, 9, 11, 0, 0, 0, 100, 0, 100, 100, 0, 0, 12, 23440, 2, 30000, 0, 1, 0, 8, 0, 0, 0, -4051, 1099, 47, 3.0, 'Commander Hobb - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (23434*100, 9, 12, 0, 0, 0, 100, 0, 5000, 10000, 0, 0, 12, 23440, 2, 30000, 0, 1, 0, 8, 0, 0, 0, -4076, 1071, 48, 1.7, 'Commander Hobb - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (23434*100, 9, 13, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 12, 23440, 2, 30000, 0, 1, 0, 8, 0, 0, 0, -4087, 1067, 44, 1.7, 'Commander Hobb - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (23434*100, 9, 14, 0, 0, 0, 100, 0, 5000, 6000, 0, 0, 12, 23440, 2, 30000, 0, 1, 0, 8, 0, 0, 0, -4051, 1099, 47, 3.0, 'Commander Hobb - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (23434*100, 9, 15, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 12, 23440, 2, 30000, 0, 1, 0, 8, 0, 0, 0, -4066, 1095, 52, 2.4, 'Commander Hobb - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (23434*100, 9, 16, 0, 0, 0, 100, 0, 5000, 6000, 0, 0, 12, 23440, 2, 30000, 0, 1, 0, 8, 0, 0, 0, -4058, 1085, 50, 2.2, 'Commander Hobb - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (23434*100, 9, 17, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 12, 23440, 2, 30000, 0, 1, 0, 8, 0, 0, 0, -4076, 1071, 48, 1.7, 'Commander Hobb - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (23434*100, 9, 18, 0, 0, 0, 100, 0, 5000, 6000, 0, 0, 12, 23440, 2, 30000, 0, 1, 0, 8, 0, 0, 0, -4087, 1067, 44, 1.7, 'Commander Hobb - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (23434*100, 9, 19, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 12, 23440, 2, 30000, 0, 1, 0, 8, 0, 0, 0, -4051, 1099, 47, 3.0, 'Commander Hobb - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (23434*100, 9, 20, 0, 0, 0, 100, 0, 5000, 6000, 0, 0, 12, 23440, 2, 30000, 0, 1, 0, 8, 0, 0, 0, -4076, 1071, 48, 1.7, 'Commander Hobb - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (23434*100, 9, 21, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 12, 23440, 2, 30000, 0, 1, 0, 8, 0, 0, 0, -4078, 1083, 41, 1.9, 'Commander Hobb - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (23434*100, 9, 22, 0, 0, 0, 100, 0, 5000, 6000, 0, 0, 12, 23440, 2, 30000, 0, 1, 0, 8, 0, 0, 0, -4051, 1099, 47, 3.0, 'Commander Hobb - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (23434*100, 9, 23, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 12, 23440, 2, 30000, 0, 1, 0, 8, 0, 0, 0, -4087, 1067, 44, 1.7, 'Commander Hobb - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES (23434*100, 9, 24, 0, 0, 0, 100, 0, 10000, 10000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Commander Hobb - On Script - Talk');
INSERT INTO smart_scripts VALUES (23434*100, 9, 25, 0, 0, 0, 100, 0, 0, 0, 0, 0, 26, 11097, 0, 0, 0, 0, 0, 18, 50, 0, 0, 0, 0, 0, 0, 'Commander Hobb - On Script - GroupEventHappens');
INSERT INTO smart_scripts VALUES (23434*100, 9, 26, 0, 0, 0, 100, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, -4106.57, 1126.79, 43.644, 5.65, 'Commander Hobb - On Script - Set Home Position');
INSERT INTO smart_scripts VALUES (23434*100, 9, 27, 0, 0, 0, 100, 0, 0, 0, 0, 0, 81, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Commander Hobb - On Script - Set flags');
INSERT INTO smart_scripts VALUES (23434*100, 9, 28, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 11, 23440, 50, 0, 0, 0, 0, 0, 'Commander Hobb - On Script - Despawn Target');
INSERT INTO smart_scripts VALUES (23434*100, 9, 29, 0, 0, 0, 100, 0, 0, 0, 0, 0, 24, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Commander Hobb - On Script - Evade');
UPDATE creature_template SET AIName='SmartAI', ScriptName='', InhabitType=4 WHERE entry=23440;
REPLACE INTO creature_template_addon VALUES(23440, 0, 20684, 50331648, 4092, 0, '');
DELETE FROM smart_scripts WHERE entryorguid=23440 AND source_type=0;
INSERT INTO smart_scripts VALUES (23440, 0, 0, 0, 0, 0, 100, 0, 1000, 1000, 3500, 3500, 11, 41440, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Dragonmaw Skybreaker - In Combat - Cast Shoot');
INSERT INTO smart_scripts VALUES (23440, 0, 1, 0, 0, 0, 100, 0, 6000, 6000, 12000, 12000, 11, 38370, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Dragonmaw Skybreaker - In Combat - Cast Aimed Shot');
INSERT INTO smart_scripts VALUES (23440, 0, 2, 0, 0, 0, 100, 0, 8000, 8000, 15000, 15000, 11, 41448, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Dragonmaw Skybreaker - In Combat - Cast Multi-Shot');
INSERT INTO smart_scripts VALUES (23440, 0, 3, 0, 38, 0, 100, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Dragonmaw Skybreaker - On AI Init - Disable Auto Attack');
INSERT INTO smart_scripts VALUES (23440, 0, 4, 0, 0, 0, 100, 1, 500, 500, 0, 0, 79, 6, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Dragonmaw Skybreaker - In Combat - Set Combat Range');
INSERT INTO smart_scripts VALUES (23440, 0, 5, 0, 4, 0, 30, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Dragonmaw Skybreaker - On Aggro - Say Line 0');
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=23435;
REPLACE INTO creature_template_addon VALUES(23435, 0, 0, 0, 4098, 0, '');
DELETE FROM smart_scripts WHERE entryorguid=23435 AND source_type=0;
INSERT INTO smart_scripts VALUES (23435, 0, 0, 0, 0, 0, 100, 0, 1000, 1000, 3500, 3500, 11, 41440, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Sanctum Defender - In Combat - Cast Shoot');
-- Frankly, It Makes No Sense... (10672)
DELETE FROM creature_addon WHERE guid IN(SELECT guid FROM creature WHERE id IN(21924, 21909) AND guid<>76655);
DELETE FROM creature WHERE id IN(21924, 21909);
INSERT INTO creature VALUES (76655, 21909, 530, 1, 1, 0, 0, -3414.004, 825.4113, -30.77301, 1.18588, 300, 3, 0, 2445, 0, 1, 0, 0, 0);
INSERT INTO creature VALUES (NULL, 21909, 530, 1, 1, 0, 0, -3414.294, 813.9421, -31.12042, 1.478481, 30, 3, 0, 2445, 0, 1, 0, 0, 0);
INSERT INTO creature VALUES (NULL, 21909, 530, 1, 1, 0, 0, -3408.508, 795.8544, -31.42966, 1.452154, 30, 3, 0, 2445, 0, 1, 0, 0, 0);
UPDATE creature_template SET AIName='', unit_flags=512, MovementType=1, spell4=37851, spell5=37917, spell6=37919, spell7=37918, ScriptName='' WHERE entry=21909;
UPDATE creature_template SET flags_extra=130 WHERE entry=21924;
DELETE FROM spell_scripts WHERE id IN (37867, 37892, 37894);
INSERT INTO spell_scripts VALUES (37867, 0, 0, 15, 37868, 2, 0, 0, 0, 0, 0);
INSERT INTO spell_scripts VALUES (37892, 0, 0, 15, 37893, 2, 0, 0, 0, 0, 0);
INSERT INTO spell_scripts VALUES (37894, 0, 0, 15, 37893, 2, 0, 0, 0, 0, 0);
DELETE FROM conditions WHERE SourceTypeOrReferenceId=17 AND SourceEntry=37851;
INSERT INTO conditions VALUES (17, 0, 37851, 0, 0, 31, 1, 3, 21462, 0, 0, 0, 0, '', 'Tag can only target Greater Felfire Diametrons');
INSERT INTO conditions VALUES (17, 0, 37851, 0, 0, 1, 1, 37851, 0, 0, 1, 0, 0, '', 'Tag cannot be casted on tagged Diametrons');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=37919;
INSERT INTO conditions VALUES (13, 1, 37919, 0, 0, 33, 1, 0, 1, 0, 1, 0, 0, '', 'Arcano-Dismantle effect 0 cannot hit self');
INSERT INTO conditions VALUES (13, 2, 37919, 0, 0, 33, 1, 0, 1, 0, 1, 0, 0, '', 'Arcano-Dismantle effect 1 cannot hit self');
INSERT INTO conditions VALUES (13, 1, 37919, 0, 0, 31, 0, 3, 21909, 0, 0, 0, 0, '', 'Arcano-Dismantle effect 0 can hit only Arcano-Scorp');
INSERT INTO conditions VALUES (13, 2, 37919, 0, 0, 31, 0, 3, 21909, 0, 0, 0, 0, '', 'Arcano-Dismantle effect 1 can hit only Arcano-Scorp');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=37918;
INSERT INTO conditions VALUES (13, 1, 37918, 0, 0, 33, 1, 0, 1, 0, 1, 0, 0, '', 'Arcano_pince effect 0 cannot hit self');
INSERT INTO conditions VALUES (13, 1, 37918, 0, 0, 31, 0, 3, 21909, 0, 0, 0, 0, '', 'Arcano_pince effect 0 can hit only Arcano-Scorp');
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=21462;
DELETE FROM smart_scripts WHERE entryorguid=21462 AND source_type=0;
INSERT INTO smart_scripts VALUES (21462, 0, 0, 0, 0, 0, 100, 0, 4500, 5000, 5000, 7000, 11, 37945, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Greater Fellfire Diametron - IC - Cast Fel Fireball');
INSERT INTO smart_scripts VALUES (21462, 0, 1, 0, 0, 0, 100, 0, 1500, 3000, 15000, 17000, 11, 37941, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Greater Fellfire Diametron - IC - Cast Flaming Wound');
INSERT INTO smart_scripts VALUES (21462, 0, 2, 3, 8, 0, 100, 0, 37851, 0, 0, 0, 90, 256, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Greater Fellfire Diametron - On hit by spell Tag - Set bytes to wipe aggro');
INSERT INTO smart_scripts VALUES (21462, 0, 3, 4, 61, 0, 100, 0, 0, 0, 0, 0, 91, 256, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Greater Fellfire Diametron - Linked with previous event - Remove bytes');
INSERT INTO smart_scripts VALUES (21462, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 75, 37851, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Greater Fellfire Diametron - Linked with previous event - Add Tag aura on self');
-- To Legion Hold (10563)
-- To Legion Hold (10596)
REPLACE INTO creature_text VALUES(21633, 0, 0, 'Everything is in readiness, warbringer.', 12, 0, 100, 0, 0, 0, 0, 'Deathbringer Jovaan - text 0');
REPLACE INTO creature_text VALUES(21633, 1, 0, 'Warbringer, that will require the use of all the hold''s infernals. It may leave us vulnerable to a counterattack.', 12, 0, 100, 0, 0, 0, 0, 'Deathbringer Jovaan - text 1');
REPLACE INTO creature_text VALUES(21633, 2, 0, 'It shall be as you say, warbringer. One last question, if I may...', 12, 0, 100, 66, 0, 0, 0, 'Deathbringer Jovaan - text 2');
REPLACE INTO creature_text VALUES(21633, 3, 0, 'What''s in the crate?', 12, 0, 100, 1, 0, 0, 0, 'Deathbringer Jovaan - text 3');
REPLACE INTO creature_text VALUES(21502, 0, 0, 'Doom Lord Kazzak will be pleased. You are to increase the pace of your attacks. Destroy the orcish and dwarven strongholds with all haste.', 12, 0, 100, 1, 0, 0, 0, 'Image of Warbringer Razuun - text 0');
REPLACE INTO creature_text VALUES(21502, 1, 0, 'Don''t worry about that. I''ve increased production at the Deathforge. You''ll have all the infernals you need to carry out your orders. Don''t fail, Jovaan.', 12, 0, 100, 1, 0, 0, 0, 'Image of Warbringer Razuun - text 1');
REPLACE INTO creature_text VALUES(21502, 2, 0, 'Yes?', 12, 0, 100, 1, 0, 0, 0, 'Image of Warbringer Razuun - text 2');
REPLACE INTO creature_text VALUES(21502, 3, 0, 'Crate? I didn''t send you a crate, Jovaan. Don''t you have more important things to worry about? Go see to them!', 12, 0, 100, 1, 0, 0, 0, 'Image of Warbringer Razuun - text 3');
DELETE FROM spell_script_names WHERE spell_id=37097;
INSERT INTO spell_script_names VALUES(37097, 'spell_q10563_q10596_to_legion_hold');
UPDATE creature_template SET unit_flags=unit_flags|768, AIName='SmartAI', ScriptName='' WHERE entry=21633;
DELETE FROM smart_scripts WHERE entryorguid=21633 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid=21633*100 AND source_type=9;
INSERT INTO smart_scripts VALUES(21633, 0, 0, 0, 11, 0, 100, 257, 0, 0, 0, 0, 80, 21633*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Deathbringer Jovaan - On Respawn - Run Script');
INSERT INTO smart_scripts VALUES(21633, 0, 1, 0, 34, 0, 100, 257, 8, 1, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 5.5, 'Deathbringer Jovaan - Movement Inform - Set Orientation');
INSERT INTO smart_scripts VALUES(21633, 0, 2, 0, 34, 0, 100, 257, 8, 2, 0, 0, 11, 51347, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 5.5, 'Deathbringer Jovaan - Movement Inform - Cast Teleport Visual Only');
INSERT INTO smart_scripts VALUES(21633*100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 51347, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Deathbringer Jovaan - On Script - Cast Teleport Visual Only');
INSERT INTO smart_scripts VALUES(21633*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, 'Deathbringer Jovaan - On Script - Set Walk');
INSERT INTO smart_scripts VALUES(21633*100, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 99, 3, 0, 0, 0, 0, 0, 14, 25737, 184834, 1, 0, 0, 0, 0, 'Deathbringer Jovaan - On Script - Set Loot State');
INSERT INTO smart_scripts VALUES(21633*100, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 99, 3, 0, 0, 0, 0, 0, 14, 25738, 184835, 1, 0, 0, 0, 0, 'Deathbringer Jovaan - On Script - Set Loot State');
INSERT INTO smart_scripts VALUES(21633*100, 9, 4, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, -3305.27, 2931.10, 170.92, 0, 'Deathbringer Jovaan - On Script - Move To Position');
INSERT INTO smart_scripts VALUES(21633*100, 9, 5, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 5, 25, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Deathbringer Jovaan - On Script - Play Emote');
INSERT INTO smart_scripts VALUES(21633*100, 9, 6, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 90, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Deathbringer Jovaan - On Script - Set bytes0');
INSERT INTO smart_scripts VALUES(21633*100, 9, 7, 0, 0, 0, 100, 0, 0, 0, 0, 0, 12, 21502, 3, 46000, 0, 0, 0, 8, 0, 0, 0, -3300.52, 2927.15, 173.84, 2.44, 'Deathbringer Jovaan - On Script - Summon Creature');
INSERT INTO smart_scripts VALUES(21633*100, 9, 8, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Deathbringer Jovaan - On Script - Say Line 0');
INSERT INTO smart_scripts VALUES(21633*100, 9, 9, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 19, 21502, 20, 0, 0, 0, 0, 0, 'Deathbringer Jovaan - On Script - Say Line 0 Target');
INSERT INTO smart_scripts VALUES(21633*100, 9, 10, 0, 0, 0, 100, 0, 8000, 8000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Deathbringer Jovaan - On Script - Say Line 1');
INSERT INTO smart_scripts VALUES(21633*100, 9, 11, 0, 0, 0, 100, 0, 8000, 8000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 19, 21502, 20, 0, 0, 0, 0, 0, 'Deathbringer Jovaan - On Script - Say Line 1 Target');
INSERT INTO smart_scripts VALUES(21633*100, 9, 12, 0, 0, 0, 100, 0, 7000, 7000, 0, 0, 91, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Deathbringer Jovaan - On Script - Remove Bytes0');
INSERT INTO smart_scripts VALUES(21633*100, 9, 13, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Deathbringer Jovaan - On Script - Say Line 2');
INSERT INTO smart_scripts VALUES(21633*100, 9, 14, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 1, 2, 0, 0, 0, 0, 0, 19, 21502, 20, 0, 0, 0, 0, 0, 'Deathbringer Jovaan - On Script - Say Line 2 Target');
INSERT INTO smart_scripts VALUES(21633*100, 9, 15, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Deathbringer Jovaan - On Script - Say Line 3');
INSERT INTO smart_scripts VALUES(21633*100, 9, 16, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 1, 3, 0, 0, 0, 0, 0, 19, 21502, 20, 0, 0, 0, 0, 0, 'Deathbringer Jovaan - On Script - Say Line 3 Target');
INSERT INTO smart_scripts VALUES(21633*100, 9, 17, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 5, 66, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Deathbringer Jovaan - On Script - Play Emote');
INSERT INTO smart_scripts VALUES(21633*100, 9, 18, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 69, 2, 0, 0, 0, 0, 0, 8, 0, 0, 0, -3311.13, 2946.15, 171.1, 0, 'Deathbringer Jovaan - On Script - Move To Position');
UPDATE gameobject SET spawntimesecs=61 WHERE id IN(184834, 184835);
UPDATE gameobject_template SET AIName='', ScriptName='' WHERE entry IN(184833, 184834, 184835);
DELETE FROM areatrigger_scripts WHERE entry=4548;
DELETE FROM smart_scripts WHERE entryorguid=4548 AND source_type=2;
DELETE FROM smart_scripts WHERE entryorguid IN(184833, 184834, 184835) AND source_type=1;

View File

@@ -0,0 +1,395 @@
-- Torgos! (10036)
DELETE FROM event_scripts WHERE id=13894;
DELETE FROM creature WHERE id=18707;
INSERT INTO creature VALUES (246916, 18707, 530, 1, 1, 0, 0, -3027.56, 5667.35, 50.0595, 0.0, 300, 0, 0, 17742, 0, 2, 0, 0, 0);
REPLACE INTO creature_addon VALUES (246916, 2469160, 0, 0, 4097, 0, '');
DELETE FROM waypoint_data WHERE id=2469160;
INSERT INTO waypoint_data VALUES (2469160, 1, -3027.56, 5667.35, 50.0595, 0, 0, 0, 0, 100, 0),(2469160, 2, -3013.57, 5667.38, 50.426, 0, 0, 0, 0, 100, 0),(2469160, 3, -2999.9, 5664.41, 50.939, 0, 0, 0, 0, 100, 0),(2469160, 4, -2984.14, 5656.97, 64.0302, 0, 0, 0, 0, 100, 0),(2469160, 5, -2977.49, 5648.84, 64.1402, 0, 0, 0, 0, 100, 0),(2469160, 6, -2977.63, 5633.73, 50.7444, 0, 0, 0, 0, 100, 0),(2469160, 7, -2985.45, 5619.43, 50.104, 0, 0, 0, 0, 100, 0),(2469160, 8, -2999.77, 5611.63, 50.3357, 0, 0, 0, 0, 100, 0),(2469160, 9, -3014.81, 5609.64, 50.011, 0, 0, 0, 0, 100, 0),(2469160, 10, -3032.08, 5612.11, 50.0861, 0, 0, 0, 0, 100, 0),(2469160, 11, -3050.63, 5619.1, 50.6301, 0, 0, 0, 0, 100, 0),(2469160, 12, -3058.74, 5630.49, 50.8608, 0, 0, 0, 0, 100, 0),(2469160, 13, -3061.71, 5647.67, 50.4421, 0, 0, 0, 0, 100, 0),(2469160, 14, -3057.57, 5661.04, 50.1123, 0, 0, 0, 0, 100, 0),(2469160, 15, -3044.65, 5669.01, 50.6749, 0, 0, 0, 0, 100, 0),(2469160, 16, -3035.27, 5669.21, 50.3312, 0, 0, 0, 0, 100, 0);
DELETE FROM spell_script_names WHERE spell_id IN(37065);
INSERT INTO spell_script_names VALUES(37065, 'spell_q10036_torgos');
UPDATE creature_template SET InhabitType=4, AIName='SmartAI', ScriptName='' WHERE entry=18707;
-- And Now, the Moment of Truth (10201)
DELETE FROM creature_text WHERE entry=19606;
INSERT INTO creature_text VALUES (19606, 0, 0, 'Someone come read this wanted poster to Grek. Grek can''t read.', 12, 0, 100, 18, 0, 6941, 0, 'Grek1');
INSERT INTO creature_text VALUES (19606, 1, 0, 'Grek get a drink.', 12, 0, 100, 7, 0, 0, 0, 'Grek2');
INSERT INTO creature_text VALUES (19606, 2, 0, 'Grek try!', 12, 0, 100, 0, 0, 0, 0, 'Grek - Quest1');
INSERT INTO creature_text VALUES (19606, 3, 0, 'This oil no good for Grek! What Grek look like to you, some weakling in robes?', 12, 0, 100, 15, 0, 0, 0, 'Grek - Quest2');
DELETE FROM smart_scripts WHERE entryorguid=19606 AND source_type=0;
INSERT INTO smart_scripts VALUES (19606, 0, 0, 0, 1, 0, 100, 0, 120000, 120000, 120000, 120000, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Grek - Out of Combat - Say Line 0');
INSERT INTO smart_scripts VALUES (19606, 0, 1, 0, 1, 0, 100, 0, 420000, 420000, 420000, 420000, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Grek - Out of Combat - Say Line 1');
INSERT INTO smart_scripts VALUES (19606, 0, 2, 3, 62, 0, 100, 0, 7999, 0, 0, 0, 1, 2, 8000, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Grek - On Gossip Option 0 Selected - Say Line 2');
INSERT INTO smart_scripts VALUES (19606, 0, 3, 4, 61, 0, 100, 0, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Grek - On Gossip Option 0 Selected - Close Gossip');
INSERT INTO smart_scripts VALUES (19606, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 17, 69, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Grek - On Gossip Option 0 Selected - Set Emote State');
INSERT INTO smart_scripts VALUES (19606, 0, 5, 6, 52, 0, 100, 0, 2, 19606, 0, 0, 1, 3, 2300, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Grek - On Text 2 Over - Say Line 3');
INSERT INTO smart_scripts VALUES (19606, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 33, 19606, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Grek - On Text 2 Over - Quest Credit And Now, the Moment of Truth');
INSERT INTO smart_scripts VALUES (19606, 0, 7, 0, 52, 0, 100, 0, 3, 19606, 0, 0, 17, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Grek - On Text 3 Over - Set Emote State');
-- Veil Shalas: Signal Fires (10874)
UPDATE gameobject_template SET data4=0 WHERE entry IN(185216, 185217, 185218, 185219);
-- The Fallen Exarch (10915)
DELETE FROM event_scripts WHERE id=14444;
UPDATE gameobject_template SET AIName='SmartGameObjectAI', ScriptName='' WHERE entry=184999;
DELETE FROM smart_scripts WHERE entryorguid=184999 AND source_type=1;
INSERT INTO smart_scripts VALUES (184999, 1, 0, 0, 64, 0, 100, 0, 1, 0, 0, 0, 12, 22452, 4, 10000, 0, 0, 0, 8, 0, 0, 0, -3361.91, 5153.95, -9.00, 1.57, 'Auchenai Coffin - On Gossip Hello - Summon Creature');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=22 AND SourceEntry=184999;
INSERT INTO conditions VALUES (22, 1, 184999, 1, 0, 29, 1, 22452, 30, 0, 1, 0, 0, '', 'No NPC Nearby to run action');
DELETE FROM creature_text WHERE entry=22452;
INSERT INTO creature_text VALUES (22452, 0, 0, 'You have brought me back too soon! I am weak yet... What is this! Who... It matters not! DIE!', 12, 0, 100, 1, 0, 0, 0, 'Reanimated Exarch');
UPDATE creature_template SET unit_flags=unit_flags|0x300, AIName='SmartAI', ScriptName='' WHERE entry=22452;
DELETE FROM smart_scripts WHERE entryorguid=22452 AND source_type=0;
INSERT INTO smart_scripts VALUES (22452, 0, 0, 0, 60, 0, 100, 257, 500, 500, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Reanimated Exarch - On Update - Say Line 0');
INSERT INTO smart_scripts VALUES (22452, 0, 1, 0, 60, 0, 100, 257, 4500, 4500, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 4.72, 'Reanimated Exarch - On Update - Set Orientation');
INSERT INTO smart_scripts VALUES (22452, 0, 2, 3, 60, 0, 100, 257, 5500, 5500, 0, 0, 19, 768, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 4.72, 'Reanimated Exarch - On Update - Remove Unit Flags');
INSERT INTO smart_scripts VALUES (22452, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 20, 0, 0, 0, 0, 0, 0, 'Reanimated Exarch - On Update - Attack Start');
INSERT INTO smart_scripts VALUES (22452, 0, 4, 0, 0, 0, 100, 1, 2000, 4000, 0, 0, 11, 8258, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Reanimated Exarch - In Combat - Cast Devotion Aura');
UPDATE creature_template SET InhabitType=4, flags_extra=130 WHERE entry=21903;
-- Evil Draws Near (10923)
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=21967;
DELETE FROM smart_scripts WHERE entryorguid IN(-76742, 21967) AND source_type=0;
INSERT INTO smart_scripts VALUES (-76742, 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, 'Auchenai Death-Spirit - On Reset - Set Event Phase');
INSERT INTO smart_scripts VALUES (-76742, 0, 1, 0, 60, 1, 100, 0, 400, 6000, 4000, 8000, 11, 38155, 2, 1, 0, 0, 0, 11, 21967, 100, 0, 0, 0, 0, 0, 'Auchenai Death-Spirit - On Update - Cast Strength of Death');
INSERT INTO smart_scripts VALUES (-76742, 0, 2, 3, 8, 0, 100, 0, 39259, 0, 0, 0, 22, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Auchenai Death-Spirit - On Spell Hit - Set Event Phase');
INSERT INTO smart_scripts VALUES (-76742, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 10, 247237, 22441, 1, 0, 0, 0, 0, 'Auchenai Death-Spirit - On Spell Hit - Set Data');
INSERT INTO smart_scripts VALUES (-76742, 0, 4, 0, 60, 2, 100, 0, 15000, 15000, 15000, 15000, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Auchenai Death-Spirit - On Update - Set Event Phase');
DELETE FROM creature WHERE id=22441;
INSERT INTO creature VALUES (247237, 22441, 530, 1, 1, 0, 0, -3400.86, 4665.3, 99.6544, 4.62677, 300, 0, 0, 29570, 0, 0, 0, 0, 0);
REPLACE INTO creature_template_addon VALUES (22441, 0, 0, 50331648, 0, 0, '');
UPDATE creature_template SET unit_flags=unit_flags|0x300, InhabitType=7, AIName='SmartAI', ScriptName='' WHERE entry=22441;
DELETE FROM smart_scripts WHERE entryorguid=22441 AND source_type=0;
INSERT INTO smart_scripts VALUES (22441, 0, 0, 1, 38, 0, 100, 0, 1, 1, 0, 0, 48, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Teribus the Cursed - On Data Set - Set Active');
INSERT INTO smart_scripts VALUES (22441, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, -3398.96, 4466.33, -11.18, 0, 'Teribus the Cursed - On Data Set - Move To Position');
INSERT INTO smart_scripts VALUES (22441, 0, 2, 3, 34, 0, 100, 0, 8, 1, 0, 0, 5, 293, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Teribus the Cursed - Movement Inform - Play Emote');
INSERT INTO smart_scripts VALUES (22441, 0, 3, 4, 61, 0, 100, 0, 0, 0, 0, 0, 48, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Teribus the Cursed - On Data Set - Set Active off');
INSERT INTO smart_scripts VALUES (22441, 0, 4, 5, 61, 0, 100, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Teribus the Cursed - On Data Set - Set Event Phase');
INSERT INTO smart_scripts VALUES (22441, 0, 5, 0, 61, 0, 100, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Teribus the Cursed - On Data Set - Set Home Position');
INSERT INTO smart_scripts VALUES (22441, 0, 6, 7, 60, 1, 100, 1, 2000, 2000, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Teribus the Cursed - On Update - Remove Unit Flags');
INSERT INTO smart_scripts VALUES (22441, 0, 7, 0, 61, 0, 100, 1, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 70, 0, 0, 0, 0, 0, 0, 'Teribus the Cursed - On Update - Attack Start');
INSERT INTO smart_scripts VALUES (22441, 0, 8, 0, 7, 0, 100, 0, 0, 0, 0, 0, 101, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Teribus the Cursed - On Data Set - Set Home Position');
DELETE FROM event_scripts WHERE id=14484;
DELETE FROM spell_script_names WHERE spell_id IN(39239, 39256, 39257, 39259);
INSERT INTO spell_script_names VALUES (39239, 'spell_q10923_evil_draws_near_summon');
INSERT INTO spell_script_names VALUES (39259, 'spell_q10923_evil_draws_near_periodic');
INSERT INTO spell_script_names VALUES (39256, 'spell_q10923_evil_draws_near_visual');
INSERT INTO spell_script_names VALUES (39257, 'spell_q10923_evil_draws_near_visual');
-- Taken in the Night (10873)
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=22355;
DELETE FROM smart_scripts WHERE entryorguid=22355 AND source_type=0;
INSERT INTO smart_scripts VALUES (22355, 0, 0, 0, 6, 0, 100, 0, 0, 0, 0, 0, 140, 1, 3, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Netherweb Victim - On Death - Run Random Timed Event');
INSERT INTO smart_scripts VALUES (22355, 0, 1, 0, 6, 0, 100, 0, 0, 0, 0, 0, 140, 2, 6, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Netherweb Victim - On Death - Run Random Timed Event');
INSERT INTO smart_scripts VALUES (22355, 0, 2, 0, 59, 0, 100, 0, 1, 0, 0, 0, 11, 38978, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Netherweb Victim - On Timed Event - Cast Terokkar Free Webbed Creature');
INSERT INTO smart_scripts VALUES (22355, 0, 3, 0, 59, 0, 100, 0, 2, 0, 0, 0, 11, 38953, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Netherweb Victim - On Timed Event - Cast Terokkar Free Webbed Creature');
INSERT INTO smart_scripts VALUES (22355, 0, 4, 0, 59, 0, 100, 0, 3, 0, 0, 0, 11, 38955, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Netherweb Victim - On Timed Event - Cast Terokkar Free Webbed Creature');
INSERT INTO smart_scripts VALUES (22355, 0, 5, 0, 59, 0, 100, 0, 4, 0, 0, 0, 11, 38956, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Netherweb Victim - On Timed Event - Cast Terokkar Free Webbed Creature');
INSERT INTO smart_scripts VALUES (22355, 0, 6, 0, 59, 0, 100, 0, 5, 0, 0, 0, 11, 38957, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Netherweb Victim - On Timed Event - Cast Terokkar Free Webbed Creature');
INSERT INTO smart_scripts VALUES (22355, 0, 7, 0, 59, 0, 100, 0, 6, 0, 0, 0, 11, 38958, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Netherweb Victim - On Timed Event - Cast Terokkar Free Webbed Creature');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=22 AND SourceEntry=22355;
INSERT INTO conditions VALUES (22, 1, 22355, 0, 0, 9, 0, 10873, 0, 0, 0, 0, 0, '', 'Run Action if invoker has quest Taken in the Night (10873) active');
INSERT INTO conditions VALUES (22, 2, 22355, 0, 0, 9, 0, 10873, 0, 0, 1, 0, 0, '', 'Run Action if invoker hasnt got quest Taken in the Night (10873) active');
DELETE FROM creature_text WHERE entry=22459;
INSERT INTO creature_text VALUES (22459, 0, 0, 'Praise the naaru, I''m saved. I will try to make it clear on my own.', 12, 0, 100, 1, 0, 0, 0, 'Freed Sha''tar Warrior');
INSERT INTO creature_text VALUES (22459, 0, 1, 'I''m hurt, but I can still run. Thank you, stranger.', 12, 0, 100, 1, 0, 0, 0, 'Freed Sha''tar Warrior');
INSERT INTO creature_text VALUES (22459, 0, 2, 'My thanks, stranger.', 12, 0, 100, 1, 0, 0, 0, 'Freed Sha''tar Warrior');
INSERT INTO creature_text VALUES (22459, 0, 3, 'I''m too weak to fight with you. Please find my friends.', 12, 0, 100, 1, 0, 0, 0, 'Freed Sha''tar Warrior');
UPDATE creature_template SET unit_flags=768, AIName='SmartAI', ScriptName='' WHERE entry=22459;
DELETE FROM smart_scripts WHERE entryorguid=22459 AND source_type=0;
INSERT INTO smart_scripts VALUES (22459, 0, 0, 0, 25, 0, 100, 257, 0, 0, 0, 0, 33, 22459, 0, 0, 0, 0, 0, 21, 50, 0, 0, 0, 0, 0, 0, 'Freed Sha''tar Warrior - On Reset - Kill Credit');
INSERT INTO smart_scripts VALUES (22459, 0, 1, 0, 60, 0, 100, 257, 2000, 2000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Freed Sha''tar Warrior - On Update - Say Line 0');
INSERT INTO smart_scripts VALUES (22459, 0, 2, 0, 60, 0, 100, 257, 3500, 3500, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, -3799.85, 4302.52, 4.02, 0, 'Freed Sha''tar Warrior - On Update - Say Line 0');
INSERT INTO smart_scripts VALUES (22459, 0, 3, 0, 25, 0, 100, 257, 0, 0, 0, 0, 41, 10000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Freed Sha''tar Warrior - On Reset - Despawn');
-- Fumping (10929)
DELETE FROM spell_script_names WHERE spell_id=39238;
INSERT INTO spell_script_names VALUES (39238, 'spell_q10929_fumping');
-- The Big Bone Worm (10930)
DELETE FROM conditions WHERE SourceTypeOrReferenceId IN(13, 17) AND SourceEntry=39246;
INSERT INTO conditions VALUES (17, 0, 39246, 0, 0, 29, 0, 22105, 5, 1, 0, 0, 0, '', 'Requires Dead Clefthoof');
INSERT INTO conditions VALUES (13, 4, 39246, 0, 0, 31, 0, 3, 22105, 0, 0, 0, 0, '', 'Target Dead Clefthoof');
DELETE FROM spell_script_names WHERE spell_id=39246;
INSERT INTO spell_script_names VALUES (39246, 'spell_q10930_big_bone_worm');
REPLACE INTO creature_template_addon VALUES (22038, 0, 0, 9, 0, 0, '');
REPLACE INTO creature_template_addon VALUES (22482, 0, 0, 9, 0, 0, '');
UPDATE creature_template SET modelid1=11686, mechanic_immune_mask=mechanic_immune_mask|0x20, flags_extra=0x200000, AIName='SmartAI', ScriptName='' WHERE entry IN(22038, 22482);
DELETE FROM smart_scripts WHERE entryorguid IN(22038, 22482) AND source_type=0;
INSERT INTO smart_scripts VALUES (22038, 0, 0, 1, 37, 0, 100, 0, 0, 0, 0, 0, 18, 33554432, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Hai''shulud - On AI Init - Set Unit Flag');
INSERT INTO smart_scripts VALUES (22038, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 19, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Hai''shulud - On AI Init - Remove Unit Flag');
INSERT INTO smart_scripts VALUES (22038, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 11, 37989, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Hai''shulud - On AI Init - Cast Tunnel Bore Passive');
INSERT INTO smart_scripts VALUES (22038, 0, 4, 5, 4, 0, 100, 0, 0, 0, 0, 0, 19, 33554432, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Hai''shulud - On Aggro - Remove Unit Flag');
INSERT INTO smart_scripts VALUES (22038, 0, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 18, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Hai''shulud - On Aggro - Set Unit Flag');
INSERT INTO smart_scripts VALUES (22038, 0, 6, 7, 61, 0, 100, 0, 0, 0, 0, 0, 28, 37989, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Hai''shulud - On Aggro - Remove Aura Tunnel Bore Passive');
INSERT INTO smart_scripts VALUES (22038, 0, 7, 0, 61, 0, 100, 0, 0, 0, 0, 0, 147, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Hai''shulud - On Aggro - Stop Motion');
INSERT INTO smart_scripts VALUES (22038, 0, 8, 0, 0, 0, 100, 1, 0, 0, 0, 0, 3, 0, 20746, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Hai''shulud - In Combat - Change Model');
INSERT INTO smart_scripts VALUES (22038, 0, 9, 0, 0, 0, 100, 1, 500, 500, 0, 0, 91, 9, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Hai''shulud - In Combat - Remove Bytes0');
INSERT INTO smart_scripts VALUES (22038, 0, 10, 0, 0, 0, 100, 0, 1000, 6000, 8000, 11000, 11, 32738, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Hai''shulud - In Combat - Cast Bore');
INSERT INTO smart_scripts VALUES (22038, 0, 11, 0, 9, 0, 100, 0, 4, 50, 2000, 3500, 11, 31747, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Hai''shulud - Within Range 5-50yd - Cast Poison');
INSERT INTO smart_scripts VALUES (22038, 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, 'Hai''shulud - On Evade - Despawn');
INSERT INTO smart_scripts VALUES (22482, 0, 0, 1, 37, 0, 100, 0, 0, 0, 0, 0, 18, 33554432, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Mature Bone Sifter - On AI Init - Set Unit Flag');
INSERT INTO smart_scripts VALUES (22482, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 19, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Mature Bone Sifter - On AI Init - Remove Unit Flag');
INSERT INTO smart_scripts VALUES (22482, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 11, 37989, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Mature Bone Sifter - On AI Init - Cast Tunnel Bore Passive');
INSERT INTO smart_scripts VALUES (22482, 0, 4, 5, 4, 0, 100, 0, 0, 0, 0, 0, 19, 33554432, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Mature Bone Sifter - On Aggro - Remove Unit Flag');
INSERT INTO smart_scripts VALUES (22482, 0, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 18, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Mature Bone Sifter - On Aggro - Set Unit Flag');
INSERT INTO smart_scripts VALUES (22482, 0, 6, 7, 61, 0, 100, 0, 0, 0, 0, 0, 28, 37989, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Mature Bone Sifter - On Aggro - Remove Aura Tunnel Bore Passive');
INSERT INTO smart_scripts VALUES (22482, 0, 7, 0, 61, 0, 100, 0, 0, 0, 0, 0, 147, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Mature Bone Sifter - On Aggro - Stop Motion');
INSERT INTO smart_scripts VALUES (22482, 0, 8, 0, 0, 0, 100, 1, 0, 0, 0, 0, 3, 0, 20617, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Mature Bone Sifter - In Combat - Change Model');
INSERT INTO smart_scripts VALUES (22482, 0, 9, 0, 0, 0, 100, 1, 500, 500, 0, 0, 91, 9, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Mature Bone Sifter - In Combat - Remove Bytes0');
INSERT INTO smart_scripts VALUES (22482, 0, 10, 0, 0, 0, 100, 0, 1000, 6000, 8000, 11000, 11, 32738, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Mature Bone Sifter - In Combat - Cast Bore');
INSERT INTO smart_scripts VALUES (22482, 0, 11, 0, 9, 0, 100, 0, 4, 50, 2000, 3500, 11, 31747, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Mature Bone Sifter - Within Range 5-50yd - Cast Poison');
INSERT INTO smart_scripts VALUES (22482, 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, 'Mature Bone Sifter - On Evade - Despawn');
DELETE FROM creature_text WHERE entry=22483;
INSERT INTO creature_text VALUES (22483, 0, 0, 'AHHHHHH-YAAA-YAAA-YAAA!!!!', 12, 0, 100, 0, 0, 0, 0, 'Sand Gnome');
INSERT INTO creature_text VALUES (22483, 0, 1, 'AYYAYAAYAA!', 12, 0, 100, 0, 0, 0, 0, 'Sand Gnome');
INSERT INTO creature_text VALUES (22483, 0, 2, 'AAAAAAAAEEEEEEEEEE!!!!!!!!', 12, 0, 100, 0, 0, 0, 0, 'Sand Gnome');
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=22483;
DELETE FROM smart_scripts WHERE entryorguid=22483 AND source_type=0;
INSERT INTO smart_scripts VALUES (22483, 0, 0, 1, 25, 0, 100, 257, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Sand Gnome - On Reset - Say Line 0');
INSERT INTO smart_scripts VALUES (22483, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 30, 0, 0, 0, 0, 0, 0, 'Sand Gnome - On Reset - Attack Start');
-- The Dread Relic (10877)
DELETE FROM event_scripts WHERE id=14376;
INSERT INTO event_scripts VALUES (14376, 1, 10, 22369, 900000, 0, -3755.66, 4737.93, -19.8168, 4.3861);
INSERT INTO event_scripts VALUES (14376, 1, 10, 22369, 900000, 0, -3760.43, 4736.39, -20.2451, 4.01068);
INSERT INTO event_scripts VALUES (14376, 1, 10, 22369, 900000, 0, -3729.4, 4706.81, -16.1222, 3.61561);
INSERT INTO event_scripts VALUES (14376, 1, 10, 22369, 900000, 0, -3729.91, 4701.97, -16.1335, 3.04384);
INSERT INTO event_scripts VALUES (14376, 1, 10, 22369, 900000, 0, -3731.43, 4697.39, -16.1774, 2.74225);
INSERT INTO event_scripts VALUES (14376, 1, 10, 22369, 900000, 0, -3772.36, 4724.78, -21.3002, 5.81195);
INSERT INTO event_scripts VALUES (14376, 1, 10, 22369, 900000, 0, -3767.97, 4731.29, -20.9252, 4.03171);
INSERT INTO event_scripts VALUES (14376, 1, 10, 22369, 900000, 0, -3770.51, 4728.37, -21.0502, 0);
INSERT INTO event_scripts VALUES (14376, 1, 10, 22369, 900000, 0, -3764.99, 4733.9, -20.6666, 5.65487);
INSERT INTO event_scripts VALUES (14376, 1, 10, 22369, 900000, 0, -3733.74, 4693.02, -16.24, 2.487);
INSERT INTO event_scripts VALUES (14376, 1, 10, 22369, 900000, 0, -3736.77, 4689.91, -16.3146, 2.49721);
INSERT INTO event_scripts VALUES (14376, 1, 10, 22369, 900000, 0, -3739.15, 4687.17, -16.4299, 1.88145);
INSERT INTO event_scripts VALUES (14376, 1, 10, 22369, 900000, 0, -3742.75, 4684.69, -16.6026, 1.98513);
INSERT INTO event_scripts VALUES (14376, 1, 10, 22369, 900000, 0, -3746.76, 4682.73, -16.8866, 1.93172);
INSERT INTO event_scripts VALUES (14376, 1, 10, 22369, 900000, 0, -3751.6, 4682.35, -17.3406, 1.57044);
INSERT INTO event_scripts VALUES (14376, 1, 10, 22369, 900000, 0, -3756.1, 4683.74, -17.9125, 0.734772);
INSERT INTO event_scripts VALUES (14376, 1, 10, 22369, 900000, 0, -3760.22, 4685.72, -18.5906, 0.334227);
INSERT INTO event_scripts VALUES (14376, 1, 10, 22369, 900000, 0, -3763.69, 4688.06, -19.2893, 0.613044);
INSERT INTO event_scripts VALUES (14376, 1, 10, 22369, 900000, 0, -3767.46, 4691.24, -20.1502, 6.20901);
INSERT INTO event_scripts VALUES (14376, 1, 10, 22369, 900000, 0, -3769.89, 4694.89, -20.7665, 0.406484);
INSERT INTO event_scripts VALUES (14376, 1, 10, 22369, 900000, 0, -3772.26, 4699.55, -21.3722, 0.111175);
INSERT INTO event_scripts VALUES (14376, 1, 10, 22369, 900000, 0, -3774.95, 4704.25, -21.977, 0.0);
INSERT INTO event_scripts VALUES (14376, 1, 10, 22369, 900000, 0, -3774.08, 4710.46, -21.7888, 0.492878);
INSERT INTO event_scripts VALUES (14376, 1, 10, 22369, 900000, 0, -3773.85, 4715.78, -21.6975, 1.45735);
INSERT INTO event_scripts VALUES (14376, 1, 10, 22369, 900000, 0, -3773.46, 4720.45, -21.5752, 1.44792);
INSERT INTO event_scripts VALUES (14376, 1, 10, 22369, 900000, 0, -3744.9, 4736.18, -18.717, 2.8797);
INSERT INTO event_scripts VALUES (14376, 1, 10, 22369, 900000, 0, -3750.57, 4737.88, -19.35, 4.01853);
UPDATE creature_template SET speed_run=0.9, AIName='SmartAI', ScriptName='' WHERE entry=22369;
DELETE FROM smart_scripts WHERE entryorguid=22369 AND source_type=0;
INSERT INTO smart_scripts VALUES (22369, 0, 0, 0, 4, 0, 100, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 11, 22369, 10, 0, 0, 0, 0, 0, 'Dread Relic Thrall - On Aggro - Set Data');
INSERT INTO smart_scripts VALUES (22369, 0, 1, 0, 38, 0, 100, 0, 1, 1, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 40, 0, 0, 0, 0, 0, 0, 'Dread Relic Thrall - On Data Set - Attack Start');
-- The Skettis Offensive (10879)
DELETE FROM creature_text WHERE entry=22373;
INSERT INTO creature_text VALUES (22373, 0, 0, 'More Minions of Terokk are coming!', 12, 0, 100, 0, 0, 0, 0, 'Defender Grashna');
INSERT INTO creature_text VALUES (22373, 1, 0, 'The invaders persist! Hold them off!', 12, 0, 100, 0, 0, 0, 0, 'Defender Grashna');
INSERT INTO creature_text VALUES (22373, 2, 0, 'An Avatar of Terokk!! To arms!', 12, 0, 100, 0, 0, 0, 0, 'Defender Grashna');
INSERT INTO creature_text VALUES (22373, 3, 0, 'The Avatar of Terokk has been defeated! Death to Terokk! Death to Skettis!', 12, 0, 100, 0, 0, 0, 0, 'Defender Grashna');
INSERT INTO creature_text VALUES (22373, 4, 0, '%s points to the sky above.', 16, 0, 100, 0, 0, 0, 0, 'Defender Grashna');
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=22373;
DELETE FROM smart_scripts WHERE entryorguid IN(22373, 22375) AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid=22373*100 AND source_type=9;
INSERT INTO smart_scripts VALUES (22373, 0, 0, 0, 19, 0, 100, 0, 10879, 0, 0, 0, 80, 2237300, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Defender Grashna - On Quest The Skettis Offensive Taken - Run Script');
INSERT INTO smart_scripts VALUES (22373, 0, 1, 0, 38, 0, 100, 0, 1, 1, 0, 0, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Defender Grashna - On Data Set 1 1 - Say Line 3');
INSERT INTO smart_scripts VALUES (22373*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, 'Defender Grashna - On Script - Say Line 4');
INSERT INTO smart_scripts VALUES (22373*100, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 12, 22376, 1, 60000, 0, 0, 0, 8, 0, 0, 0, -1626.12, 5402.47, -42.31, 2.08131, 'Defender Grashna - On Script - Summon Creature Minion of Terokk');
INSERT INTO smart_scripts VALUES (22373*100, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 12, 22376, 1, 60000, 0, 0, 0, 8, 0, 0, 0, -1626.12, 5402.47, -42.31, 2.08131, 'Defender Grashna - On Script - Summon Creature Minion of Terokk');
INSERT INTO smart_scripts VALUES (22373*100, 9, 3, 0, 0, 0, 100, 0, 30000, 30000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Defender Grashna - On Script - Say Line 0');
INSERT INTO smart_scripts VALUES (22373*100, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 12, 22376, 1, 60000, 0, 0, 0, 8, 0, 0, 0, -1626.12, 5402.47, -42.31, 2.08131, 'Defender Grashna - On Script - Summon Creature Minion of Terokk');
INSERT INTO smart_scripts VALUES (22373*100, 9, 5, 0, 0, 0, 100, 0, 0, 0, 0, 0, 12, 22376, 1, 60000, 0, 0, 0, 8, 0, 0, 0, -1626.12, 5402.47, -42.31, 2.08131, 'Defender Grashna - On Script - Summon Creature Minion of Terokk');
INSERT INTO smart_scripts VALUES (22373*100, 9, 6, 0, 0, 0, 100, 0, 30000, 30000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Defender Grashna - On Script - Say Line 1');
INSERT INTO smart_scripts VALUES (22373*100, 9, 7, 0, 0, 0, 100, 0, 0, 0, 0, 0, 12, 22376, 1, 60000, 0, 0, 0, 8, 0, 0, 0, -1626.12, 5402.47, -42.31, 2.08131, 'Defender Grashna - On Script - Summon Creature Minion of Terokk');
INSERT INTO smart_scripts VALUES (22373*100, 9, 8, 0, 0, 0, 100, 0, 0, 0, 0, 0, 12, 22376, 1, 60000, 0, 0, 0, 8, 0, 0, 0, -1626.12, 5402.47, -42.31, 2.08131, 'Defender Grashna - On Script - Summon Creature Minion of Terokk');
INSERT INTO smart_scripts VALUES (22373*100, 9, 9, 0, 0, 0, 100, 0, 0, 0, 0, 0, 12, 22376, 1, 60000, 0, 0, 0, 8, 0, 0, 0, -1626.12, 5402.47, -42.31, 2.08131, 'Defender Grashna - On Script - Summon Creature Minion of Terokk');
INSERT INTO smart_scripts VALUES (22373*100, 9, 10, 0, 0, 0, 100, 0, 30000, 30000, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Defender Grashna - On Script - Say Line 2');
INSERT INTO smart_scripts VALUES (22373*100, 9, 11, 0, 0, 0, 100, 0, 0, 0, 0, 0, 12, 22375, 1, 60000, 0, 0, 0, 8, 0, 0, 0, -1626.12, 5402.47, -42.31, 2.08131, 'Defender Grashna - On Script - Summon Creature Avatar of Terokk');
INSERT INTO smart_scripts VALUES (22375, 0, 0, 0, 54, 0, 100, 0, 0, 0, 0, 0, 69, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, -1641.12, 5436.65, -43.3445, 0.803601, 'Avatar of Terokk - On Just Summoned - Move To Position');
INSERT INTO smart_scripts VALUES (22375, 0, 1, 2, 6, 0, 100, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, 'Avatar of Terokk - On Just Died - Set Data 1 1');
INSERT INTO smart_scripts VALUES (22375, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 15, 10879, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Avatar of Terokk - On Just Died - Quest Credit The Skettis Offensive');
INSERT INTO smart_scripts VALUES (22375, 0, 3, 0, 4, 0, 100, 1, 0, 0, 0, 0, 11, 24193, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Avatar of Terokk - On Aggro - Cast Charge');
INSERT INTO smart_scripts VALUES (22375, 0, 4, 0, 0, 0, 100, 0, 6000, 9000, 11000, 14000, 11, 39068, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Avatar of Terokk - In Combat - Cast Feather Burst');
-- Skywing (10898)
DELETE FROM creature_text WHERE entry=22424;
INSERT INTO creature_text VALUES (22424, 0, 0, '%s squawks and heads toward Veil Shalas. Hurry and follow!', 16, 0, 100, 0, 0, 0, 0, 'Skywing');
INSERT INTO creature_text VALUES (22424, 1, 0, '%s pauses briefly before the tree and then heads inside.', 16, 0, 100, 0, 0, 0, 0, 'Skywing');
INSERT INTO creature_text VALUES (22424, 2, 0, '%s seems to be looking for something. He wants you to follow.', 16, 0, 100, 0, 0, 0, 0, 'Skywing');
INSERT INTO creature_text VALUES (22424, 3, 0, '%s flies to the platform below! You''d better jump if you want to keep up. Hurry!', 16, 0, 100, 0, 0, 0, 0, 'Skywing');
INSERT INTO creature_text VALUES (22424, 4, 0, '%s bellows a loud squawk!', 16, 0, 100, 0, 0, 0, 0, 'Skywing');
INSERT INTO creature_text VALUES (22424, 5, 0, 'Free at last from that horrible curse! Thank you! Please send word to Rilak the Redeemed that I am okay. My mission lies in Skettis. Terokk must be defeated!', 12, 0, 100, 0, 0, 0, 0, 'Skywing');
UPDATE creature_template SET speed_run=1, AIName='SmartAI', ScriptName='' WHERE entry=22424;
DELETE FROM smart_scripts WHERE entryorguid=22424 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid=22424*100 AND source_type=9;
INSERT INTO smart_scripts VALUES (22424, 0, 0, 1, 19, 0, 100, 0, 10898, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Skywing - On Quest Taken - Say Line 0');
INSERT INTO smart_scripts VALUES (22424, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 53, 1, 22424, 0, 0, 0, 2, 7, 0, 0, 0, 0, 0, 0, 0, 'Skywing - On Quest Taken - Start WP');
INSERT INTO smart_scripts VALUES (22424, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 2, 250, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Skywing - On Quest Taken - Set Faction');
INSERT INTO smart_scripts VALUES (22424, 0, 3, 4, 40, 0, 100, 0, 13, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Skywing - On WP Reached - Say Line 1');
INSERT INTO smart_scripts VALUES (22424, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 54, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Skywing - On WP Reached - Pause WP');
INSERT INTO smart_scripts VALUES (22424, 0, 5, 6, 40, 0, 100, 0, 41, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Skywing - On WP Reached - Say Line 2');
INSERT INTO smart_scripts VALUES (22424, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 54, 4000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Skywing - On WP Reached - Pause WP');
INSERT INTO smart_scripts VALUES (22424, 0, 7, 8, 40, 0, 100, 0, 72, 0, 0, 0, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Skywing - On WP Reached - Say Line 3');
INSERT INTO smart_scripts VALUES (22424, 0, 8, 0, 61, 0, 100, 0, 0, 0, 0, 0, 97, 10, 15, 0, 0, 0, 0, 1, 0, 0, 0, -3542.31, 4008.05, 92.7418, 0, 'Skywing - On WP Reached - Move Jump');
INSERT INTO smart_scripts VALUES (22424, 0, 9, 10, 40, 0, 100, 0, 92, 0, 0, 0, 1, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Skywing - On WP Reached - Say Line 4');
INSERT INTO smart_scripts VALUES (22424, 0, 10, 0, 61, 0, 100, 0, 0, 0, 0, 0, 12, 18533, 4, 30000, 0, 1, 0, 8, 0, 0, 0, -3506.62, 4079.76, 92.92, 5.0, 'Skywing - On WP Reached - Summon Creature');
INSERT INTO smart_scripts VALUES (22424, 0, 11, 0, 38, 0, 100, 0, 1, 1, 0, 0, 80, 22424*100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Skywing - On Data Set - Run Script');
INSERT INTO smart_scripts VALUES (22424*100, 9, 0, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 11, 39167, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Skywing - On Script - Cast Feathery Cyclone Burst');
INSERT INTO smart_scripts VALUES (22424*100, 9, 1, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 11, 39179, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Skywing - On Script - Cast Rilak the Redeemed');
INSERT INTO smart_scripts VALUES (22424*100, 9, 2, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 1, 5, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Skywing - On Script - Say Line 5');
INSERT INTO smart_scripts VALUES (22424*100, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 15, 10898, 0, 0, 0, 0, 0, 18, 40, 0, 0, 0, 0, 0, 0, 'Skywing - On Script - Area Explored');
INSERT INTO smart_scripts VALUES (22424*100, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Skywing - On Script - Despawn');
DELETE FROM script_waypoint WHERE entry=22424;
DELETE FROM waypoints WHERE entry=22424;
INSERT INTO waypoints VALUES (22424, 1, -3621.26, 4166.26, 1.55941, 'Skywing'),(22424, 2, -3622.62, 4163.42, 2.3166, 'Skywing'),(22424, 3, -3625.33, 4157.74, 4.64548, 'Skywing'),(22424, 4, -3626.41, 4151.19, 7.26294, 'Skywing'),(22424, 5, -3627.35, 4143.9, 10.0512, 'Skywing'),(22424, 6, -3629.69, 4129.33, 18.1097, 'Skywing'),(22424, 7, -3631.48, 4117.94, 26.4851, 'Skywing'),(22424, 8, -3632.15, 4107.83, 33.4808, 'Skywing'),(22424, 9, -3632.53, 4096.64, 42.0827, 'Skywing'),(22424, 10, -3631.44, 4085.52, 49.6244, 'Skywing'),(22424, 11, -3628.18, 4075.53, 54.6938, 'Skywing'),(22424, 12, -3623.41, 4068.62, 58.1745, 'Skywing'),(22424, 13, -3620.17, 4064.05, 60.5942, 'Skywing'),(22424, 14, -3617.24, 4057.31, 62.0534, 'Skywing'),(22424, 15, -3614.1, 4050.66, 63.5004, 'Skywing'),(22424, 16, -3611.12, 4043.95, 64.8479, 'Skywing'),(22424, 17, -3607.23, 4040.94, 65.8665, 'Skywing'),(22424, 18, -3601.09, 4038.44, 67.163, 'Skywing'),(22424, 19, -3597.18, 4033.5, 68.661, 'Skywing'),(22424, 20, -3602.58, 4027.06, 69.5107, 'Skywing'),(22424, 21, -3609.05, 4028.48, 70.5553, 'Skywing'),(22424, 22, -3614.23, 4031.37, 72.286, 'Skywing'),(22424, 23, -3611.68, 4038.97, 74.6319, 'Skywing'),(22424, 24, -3604.73, 4041.35, 76.7952, 'Skywing'),(22424, 25, -3600.63, 4034.93, 79.1791, 'Skywing'),(22424, 26, -3604.06, 4028.03, 81.7191, 'Skywing'),(22424, 27, -3611.94, 4030.77, 84.5613, 'Skywing'),(22424, 28, -3610.29, 4038.51, 87.5848, 'Skywing'),(22424, 29, -3604.54, 4041.08, 89.6741, 'Skywing'),(22424, 30, -3600.75, 4033.58, 92.3198, 'Skywing'),(22424, 31, -3606.45, 4029.13, 95.1272, 'Skywing'),(22424, 32, -3612.6, 4033.16, 98.0352, 'Skywing'),(22424, 33, -3609.07, 4039.61, 100.851, 'Skywing'),(22424, 34, -3601.26, 4036.42, 104.093, 'Skywing'),(22424, 35, -3603.33, 4030.84, 106.335, 'Skywing'),(22424, 36, -3609.56, 4030.06, 109.118, 'Skywing'),(22424, 37, -3610.35, 4037.03, 110.898, 'Skywing'),(22424, 38, -3602.78, 4042.69, 113.026, 'Skywing'),(22424, 39, -3602.09, 4044.07, 113.454, 'Skywing'),(22424, 40, -3601, 4046.27, 111.9, 'Skywing'),(22424, 41, -3598.97, 4050.35, 111.943, 'Skywing'),(22424, 42, -3603.36, 4056.27, 111.966, 'Skywing'),(22424, 43, -3609.93, 4055.32, 112.007, 'Skywing'),(22424, 44, -3616.64, 4053.35, 112.007, 'Skywing'),(22424, 45, -3622.91, 4046.27, 112.005, 'Skywing'),(22424, 46, -3625.73, 4031.57, 112.001, 'Skywing'),(22424, 47, -3623.86, 4024.83, 112.001, 'Skywing'),(22424, 48, -3617.82, 4017.11, 112, 'Skywing'),(22424, 49, -3609.08, 4011.3, 112.006, 'Skywing'),(22424, 50, -3601.41, 4014.74, 111.999, 'Skywing'),(22424, 51, -3590.96, 4021.77, 112.001, 'Skywing'),(22424, 52, -3586.16, 4036.4, 112.002, 'Skywing'),(22424, 53, -3579.69, 4033.69, 111.911, 'Skywing'),(22424, 54, -3573.43, 4033.06, 108.752, 'Skywing'),(22424, 55, -3565.08, 4032.06, 106.208, 'Skywing'),(22424, 56, -3554.29, 4031.13, 105.318, 'Skywing'),(22424, 57, -3545.24, 4030.22, 106.381, 'Skywing'),(22424, 58, -3535.15, 4029.21, 109.962, 'Skywing'),(22424, 59, -3531.33, 4028.81, 111.879, 'Skywing'),(22424, 60, -3523.64, 4028, 112.523, 'Skywing'),(22424, 61, -3520.49, 4034.27, 112.608, 'Skywing'),(22424, 62, -3515.68, 4041.13, 112.647, 'Skywing'),(22424, 63, -3507.02, 4044.92, 112.971, 'Skywing'),(22424, 64, -3500.15, 4043.56, 113.102, 'Skywing'),(22424, 65, -3494.33, 4036.55, 113.115, 'Skywing'),(22424, 66, -3490.92, 4027.38, 113.117, 'Skywing'),(22424, 67, -3489.2, 4021.19, 113.122, 'Skywing'),(22424, 68, -3492.73, 4014.82, 113.116, 'Skywing'),(22424, 69, -3502.03, 4009.95, 113.116, 'Skywing'),(22424, 70, -3512.5, 4009.17, 112.986, 'Skywing'),(22424, 71, -3521.33, 4012.09, 112.916, 'Skywing'),(22424, 72, -3522.77, 4011.08, 112.87, 'Skywing'),(22424, 73, -3542.31, 4008.05, 92.7418, 'Skywing'),(22424, 74, -3550.27, 4006.77, 92.8591, 'Skywing'),(22424, 75, -3555.85, 4001.49, 92.9244, 'Skywing'),(22424, 76, -3555.59, 3991.35, 92.9177, 'Skywing'),(22424, 77, -3550.2, 3984.01, 92.9159, 'Skywing'),(22424, 78, -3542.41, 3981.99, 92.9141, 'Skywing'),(22424, 79, -3531.53, 3987.66, 92.9618, 'Skywing'),(22424, 80, -3530.05, 3994.49, 92.7201, 'Skywing'),(22424, 81, -3533.03, 4002.35, 92.6635, 'Skywing'),(22424, 82, -3535.36, 4009.31, 92.2945, 'Skywing'),(22424, 83, -3532.85, 4014.32, 90.9102, 'Skywing'),(22424, 84, -3531.52, 4021.91, 87.4497, 'Skywing'),(22424, 85, -3529, 4031.39, 85.6917, 'Skywing'),(22424, 86, -3526.64, 4041.28, 86.618, 'Skywing'),(22424, 87, -3524.63, 4050.14, 89.8693, 'Skywing'),(22424, 88, -3523.59, 4055.65, 92.8619, 'Skywing'),(22424, 89, -3520.47, 4058.97, 92.9301, 'Skywing'),(22424, 90, -3512.08, 4062.54, 92.9185, 'Skywing'),(22424, 91, -3506.69, 4067.5, 92.9206, 'Skywing'),(22424, 92, -3505.27, 4072.56, 92.919, 'Skywing');
DELETE FROM creature_text WHERE entry=18533;
INSERT INTO creature_text VALUES (18533, 0, 0, 'Skywing, I will free you from your curse over my dead body!', 14, 0, 100, 0, 0, 0, 0, 'Luanga the Imprisoner');
DELETE FROM creature_addon WHERE guid IN(SELECT guid FROM creature WHERE id=18533);
DELETE FROM creature WHERE id=18533;
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=18533;
DELETE FROM smart_scripts WHERE entryorguid=18533 AND source_type=0;
INSERT INTO smart_scripts VALUES (18533, 0, 0, 0, 4, 0, 100, 257, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Luanga the Imprisoner - On Aggro - Say Line 0');
INSERT INTO smart_scripts VALUES (18533, 0, 1, 0, 0, 0, 100, 0, 5000, 8000, 9000, 16000, 11, 12058, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Luanga the Imprisoner - In Combat - Cast Chain Lightning');
INSERT INTO smart_scripts VALUES (18533, 0, 2, 0, 0, 0, 100, 0, 3000, 8000, 9000, 16000, 11, 11824, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Luanga the Imprisoner - In Combat - Cast Shock');
INSERT INTO smart_scripts VALUES (18533, 0, 3, 0, 0, 0, 100, 0, 13000, 18000, 29000, 36000, 11, 6535, 0, 0, 0, 0, 0, 5, 20, 0, 0, 0, 0, 0, 0, 'Luanga the Imprisoner - In Combat - Cast Lightning Cloud');
INSERT INTO smart_scripts VALUES (18533, 0, 4, 0, 6, 0, 100, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, 'Luanga the Imprisoner - On Death - Set Data');
DELETE FROM spell_script_names WHERE spell_id=39166;
INSERT INTO spell_script_names VALUES (39166, 'spell_q10898_skywing');
-- Digging Through Bones (10922)
DELETE FROM creature_text WHERE entry IN(22458, 22464);
INSERT INTO creature_text VALUES (22458, 0, 0, '''Aright, listen up! Form a circle around me and move out!', 12, 0, 100, 0, 0, 0, 0, 'Chief Archaeologist Letoll');
INSERT INTO creature_text VALUES (22458, 1, 0, 'Aright, $R, just keep us safe from harm while we work. We''ll pay you when we return.', 12, 0, 100, 0, 0, 0, 0, 'Chief Archaeologist Letoll');
INSERT INTO creature_text VALUES (22458, 2, 0, 'The dig site is just north of here.', 12, 0, 100, 0, 0, 0, 0, 'Chief Archaeologist Letoll');
INSERT INTO creature_text VALUES (22458, 3, 0, 'We''re here! Start diggin''!', 12, 0, 100, 0, 0, 0, 0, 'Chief Archaeologist Letoll');
INSERT INTO creature_text VALUES (22458, 4, 0, 'I think there''s somethin'' buried here, beneath the sand!', 12, 0, 100, 0, 0, 0, 0, 'Chief Archaeologist Letoll');
INSERT INTO creature_text VALUES (22458, 5, 0, 'Almost got it!', 12, 0, 100, 0, 0, 0, 0, 'Chief Archaeologist Letoll');
INSERT INTO creature_text VALUES (22458, 6, 0, 'By Brann''s brittle bananas! What is it?! It... It looks like a drum.', 12, 0, 100, 5, 0, 0, 0, 'Chief Archaeologist Letoll');
INSERT INTO creature_text VALUES (22458, 7, 0, 'Have ye gone mad? You expect me to leave behind a drum without first beatin'' on it? Not this son of Ironforge! No sir!', 12, 0, 100, 1, 0, 0, 0, 'Chief Archaeologist Letoll');
INSERT INTO creature_text VALUES (22458, 8, 0, 'Shut yer yaps! I''m gonna bang on this drum and that''s that!', 12, 0, 100, 5, 0, 0, 0, 'Chief Archaeologist Letoll');
INSERT INTO creature_text VALUES (22458, 9, 0, 'IN YOUR FACE! I told you there was somethin'' here!', 12, 0, 100, 0, 0, 0, 0, 'Chief Archaeologist Letoll');
INSERT INTO creature_text VALUES (22458, 10, 0, 'Don''t just stand there! Help him out!', 12, 0, 100, 0, 0, 0, 0, 'Chief Archaeologist Letoll');
INSERT INTO creature_text VALUES (22458, 11, 0, 'You''ve been a tremendous help, $R! Let''s get out of here before more of those things show up! I''ll let Dwarfowitz know you did the job asked of ya'' admirably.', 12, 0, 100, 0, 0, 0, 0, 'Chief Archaeologist Letoll');
INSERT INTO creature_text VALUES (22458, 12, 0, '%s picks up the drum.', 16, 0, 100, 0, 0, 0, 0, 'Chief Archaeologist Letoll');
INSERT INTO creature_text VALUES (22464, 0, 0, 'Wow... a drum.', 12, 0, 100, 1, 0, 0, 0, 'Explorers'' League Researcher');
INSERT INTO creature_text VALUES (22464, 1, 0, 'This discovery will surely rock the foundation of modern archaeology.', 12, 0, 100, 1, 0, 0, 0, 'Explorers'' League Researcher');
INSERT INTO creature_text VALUES (22464, 2, 0, 'Yea, great. Can we leave now? This desert is giving me hives.', 12, 0, 100, 1, 0, 0, 0, 'Explorers'' League Researcher');
INSERT INTO creature_text VALUES (22464, 3, 0, 'This reminds me of that one time where you made us search Silithus for evidence of sand gnomes.', 12, 0, 100, 0, 0, 0, 0, 'Explorers'' League Researcher');
INSERT INTO creature_text VALUES (22464, 4, 0, 'Or that time when you told us that you''d discovered the cure for the plague of the 20th century. What is that even? 20th century?', 12, 0, 100, 0, 0, 0, 0, 'Explorers'' League Researcher');
INSERT INTO creature_text VALUES (22464, 5, 0, 'I don''t think it can top the one time where he told us that he''d heard that Arthas''s cousin''s skeleton was frozen beneath a glacier in Winterspring. I''ll never forgive you for that one, Letoll. I mean honestly... Arthas''s cousin?', 12, 0, 100, 0, 0, 0, 0, 'Explorers'' League Researcher');
INSERT INTO creature_text VALUES (22464, 6, 0, 'I dunno. It can''t possibly beat the time he tried to convince us that we''re all actually a figment of some being''s imagination and that they only use us for their own personal amusement. That went over well during dinner with the family.', 12, 0, 100, 0, 0, 0, 0, 'Explorers'' League Researcher');
INSERT INTO creature_text VALUES (22464, 7, 0, 'Say, do you guys hear that?', 12, 0, 100, 0, 0, 0, 0, 'Explorers'' League Researcher');
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry IN(22458, 22464);
DELETE FROM smart_scripts WHERE entryorguid IN(22458, -78837, -78838, -78839, -78840, 22464) AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid IN(22464*100, 22458*100, 22458*100+1, 22458*100+2) AND source_type=9;
INSERT INTO smart_scripts VALUES (22458, 0, 0, 1, 19, 0, 100, 0, 10922, 0, 0, 0, 53, 0, 22458, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Quest Digging Through Bones Taken - Start Waypoint');
INSERT INTO smart_scripts VALUES (22458, 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, 'Chief Archaeologist Letoll - On Quest Digging Through Bones Taken - Say Line 0');
INSERT INTO smart_scripts VALUES (22458, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 48, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Quest Digging Through Bones Taken - Set Active');
INSERT INTO smart_scripts VALUES (22458, 0, 3, 4, 40, 0, 100, 0, 1, 0, 0, 0, 54, 10000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Waypoint 1 Reached - Pause Waypoint');
INSERT INTO smart_scripts VALUES (22458, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 80, 22458*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Waypoint 1 Reached - Run Script');
INSERT INTO smart_scripts VALUES (22458, 0, 5, 0, 40, 0, 100, 0, 15, 0, 0, 0, 80, 22458*100+1, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Waypoint 15 Reached - Run Script');
INSERT INTO smart_scripts VALUES (22458, 0, 6, 0, 40, 0, 100, 0, 16, 0, 0, 0, 54, 10000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Waypoint 16 Reached - Pause Waypoint');
INSERT INTO smart_scripts VALUES (22458, 0, 7, 0, 40, 0, 100, 0, 17, 0, 0, 0, 80, 22458*100+2, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Waypoint 17 Reached - Run Script');
INSERT INTO smart_scripts VALUES (22458*100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 45, 0, 1, 0, 0, 0, 0, 10, 78837, 22464, 1, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Set Data 0 1');
INSERT INTO smart_scripts VALUES (22458*100, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 45, 0, 2, 0, 0, 0, 0, 10, 78838, 22464, 1, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Set Data 0 2');
INSERT INTO smart_scripts VALUES (22458*100, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 45, 0, 3, 0, 0, 0, 0, 10, 78839, 22464, 1, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Set Data 0 3');
INSERT INTO smart_scripts VALUES (22458*100, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 45, 0, 4, 0, 0, 0, 0, 10, 78840, 22464, 1, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Set Data 0 4');
INSERT INTO smart_scripts VALUES (22458*100, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 45, 3, 0, 0, 0, 0, 0, 11, 22464, 30, 0, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Set Data 3 0');
INSERT INTO smart_scripts VALUES (22458*100, 9, 5, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 12, 0xFFFFFF, 0, 0, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Say Line 1');
INSERT INTO smart_scripts VALUES (22458*100, 9, 6, 0, 0, 0, 100, 0, 7000, 7000, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Say Line 2');
INSERT INTO smart_scripts VALUES (22458*100+1, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 17, 233, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Set Emote State 233');
INSERT INTO smart_scripts VALUES (22458*100+1, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 17, 233, 0, 0, 0, 0, 0, 11, 22464, 30, 0, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Set Emote State 233');
INSERT INTO smart_scripts VALUES (22458*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, 'Chief Archaeologist Letoll - On Script - Say Line 3');
INSERT INTO smart_scripts VALUES (22458*100+1, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 45, 1, 0, 0, 0, 0, 0, 11, 22464, 30, 0, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Set Data 1 0');
INSERT INTO smart_scripts VALUES (22458*100+1, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 45, 2, 1, 0, 0, 0, 0, 10, 78837, 22464, 1, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Set Data 2 1');
INSERT INTO smart_scripts VALUES (22458*100+1, 9, 5, 0, 0, 0, 100, 0, 0, 0, 0, 0, 45, 2, 2, 0, 0, 0, 0, 10, 78838, 22464, 1, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Set Data 2 2');
INSERT INTO smart_scripts VALUES (22458*100+1, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 45, 2, 3, 0, 0, 0, 0, 10, 78839, 22464, 1, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Set Data 2 3');
INSERT INTO smart_scripts VALUES (22458*100+1, 9, 7, 0, 0, 0, 100, 0, 0, 0, 0, 0, 45, 2, 4, 0, 0, 0, 0, 10, 78840, 22464, 1, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Set Data 2 4');
INSERT INTO smart_scripts VALUES (22458*100+2, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 1, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Say Line 4');
INSERT INTO smart_scripts VALUES (22458*100+2, 9, 1, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 1, 5, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Say Line 5');
INSERT INTO smart_scripts VALUES (22458*100+2, 9, 2, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 45, 0, 1, 0, 0, 0, 0, 10, 78837, 22464, 1, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Set Data 0 1');
INSERT INTO smart_scripts VALUES (22458*100+2, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 45, 0, 2, 0, 0, 0, 0, 10, 78838, 22464, 1, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Set Data 0 2');
INSERT INTO smart_scripts VALUES (22458*100+2, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 45, 0, 3, 0, 0, 0, 0, 10, 78839, 22464, 1, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Set Data 0 3');
INSERT INTO smart_scripts VALUES (22458*100+2, 9, 5, 0, 0, 0, 100, 0, 0, 0, 0, 0, 45, 0, 4, 0, 0, 0, 0, 10, 78840, 22464, 1, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Set Data 0 4');
INSERT INTO smart_scripts VALUES (22458*100+2, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Set Emote State 0');
INSERT INTO smart_scripts VALUES (22458*100+2, 9, 7, 0, 0, 0, 100, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 11, 22464, 30, 0, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Set Emote State 0');
INSERT INTO smart_scripts VALUES (22458*100+2, 9, 8, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 1, 6, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Say Line 6');
INSERT INTO smart_scripts VALUES (22458*100+2, 9, 9, 0, 0, 0, 100, 0, 0, 0, 0, 0, 50, 185304, 85, 0, 0, 0, 0, 8, 0, 0, 0, -3547.79, 5456.06, -12.375, 2.26, 'Chief Archaeologist Letoll - On Script - Summon Game Object');
INSERT INTO smart_scripts VALUES (22458*100+2, 9, 10, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 10, 78837, 22464, 1, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Say Line 0 Target');
INSERT INTO smart_scripts VALUES (22458*100+2, 9, 11, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 10, 78838, 22464, 1, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Say Line 1 Target');
INSERT INTO smart_scripts VALUES (22458*100+2, 9, 12, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 1, 2, 0, 0, 0, 0, 0, 10, 78839, 22464, 1, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Say Line 2 Target');
INSERT INTO smart_scripts VALUES (22458*100+2, 9, 13, 0, 0, 0, 100, 0, 4500, 4500, 0, 0, 1, 7, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Say Line 7');
INSERT INTO smart_scripts VALUES (22458*100+2, 9, 14, 0, 0, 0, 100, 0, 10000, 10000, 0, 0, 1, 3, 0, 0, 0, 0, 0, 10, 78837, 22464, 1, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Say Line 3 Target');
INSERT INTO smart_scripts VALUES (22458*100+2, 9, 15, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 1, 4, 0, 0, 0, 0, 0, 10, 78839, 22464, 1, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Say Line 4 Target');
INSERT INTO smart_scripts VALUES (22458*100+2, 9, 16, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 1, 5, 0, 0, 0, 0, 0, 10, 78840, 22464, 1, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Say Line 5 Target');
INSERT INTO smart_scripts VALUES (22458*100+2, 9, 17, 0, 0, 0, 100, 0, 8000, 8000, 0, 0, 1, 6, 0, 0, 0, 0, 0, 10, 78838, 22464, 1, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Say Line 6 Target');
INSERT INTO smart_scripts VALUES (22458*100+2, 9, 18, 0, 0, 0, 100, 0, 11000, 11000, 0, 0, 1, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Say Line 8');
INSERT INTO smart_scripts VALUES (22458*100+2, 9, 19, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 5, 35, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Play Emote');
INSERT INTO smart_scripts VALUES (22458*100+2, 9, 20, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 39217, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Cast Fumper Trap');
INSERT INTO smart_scripts VALUES (22458*100+2, 9, 21, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 1, 7, 0, 0, 0, 0, 0, 10, 78840, 22464, 1, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Say Line 7 Target');
INSERT INTO smart_scripts VALUES (22458*100+2, 9, 22, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 1, 9, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Say Line 9');
INSERT INTO smart_scripts VALUES (22458*100+2, 9, 23, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 1, 10, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Say Line 10');
INSERT INTO smart_scripts VALUES (22458*100+2, 9, 24, 0, 0, 0, 100, 0, 12000, 12000, 0, 0, 1, 11, 0, 0, 0, 0, 0, 12, 0xFFFFFF, 0, 0, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Say Line 11');
INSERT INTO smart_scripts VALUES (22458*100+2, 9, 25, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 12, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Say Line 12');
INSERT INTO smart_scripts VALUES (22458*100+2, 9, 26, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 4000, 0, 0, 0, 0, 0, 11, 22464, 30, 0, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Despawn Target');
INSERT INTO smart_scripts VALUES (22458*100+2, 9, 27, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 4000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Despawn Self');
INSERT INTO smart_scripts VALUES (22458*100+2, 9, 28, 0, 0, 0, 100, 0, 0, 0, 0, 0, 15, 10922, 0, 0, 0, 0, 0, 18, 40, 0, 0, 0, 0, 0, 0, 'Chief Archaeologist Letoll - On Script - Area Explored');
UPDATE gameobject_template SET flags=16 WHERE entry=185304;
INSERT INTO smart_scripts VALUES (22464, 0, 0, 0, 38, 0, 100, 0, 0, 1, 0, 0, 29, 0, 0, 0, 0, 0, 0, 19, 22458, 50, 0, 0, 0, 0, 0, 'Explorers'' League Researcher - On Data Set - Follow');
INSERT INTO smart_scripts VALUES (22464, 0, 1, 0, 38, 0, 100, 0, 0, 2, 0, 0, 29, 0, 90, 0, 0, 0, 0, 19, 22458, 50, 0, 0, 0, 0, 0, 'Explorers'' League Researcher - On Data Set - Follow');
INSERT INTO smart_scripts VALUES (22464, 0, 2, 0, 38, 0, 100, 0, 0, 3, 0, 0, 29, 0, 180, 0, 0, 0, 0, 19, 22458, 50, 0, 0, 0, 0, 0, 'Explorers'' League Researcher - On Data Set - Follow');
INSERT INTO smart_scripts VALUES (22464, 0, 3, 0, 38, 0, 100, 0, 0, 4, 0, 0, 29, 0, 270, 0, 0, 0, 0, 19, 22458, 50, 0, 0, 0, 0, 0, 'Explorers'' League Researcher - On Data Set - Follow');
INSERT INTO smart_scripts VALUES (22464, 0, 4, 0, 38, 0, 100, 0, 1, 0, 0, 0, 29, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Explorers'' League Researcher - On Data Set - Follow Stop');
INSERT INTO smart_scripts VALUES (22464, 0, 5, 0, 38, 0, 100, 0, 2, 1, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, -3537.43, 5452.85, -12.43, 0, 'Explorers'' League Researcher - On Data Set - Move Point');
INSERT INTO smart_scripts VALUES (22464, 0, 6, 0, 38, 0, 100, 0, 2, 2, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, -3543.10, 5468.93, -12.31, 0, 'Explorers'' League Researcher - On Data Set - Move Point');
INSERT INTO smart_scripts VALUES (22464, 0, 7, 0, 38, 0, 100, 0, 2, 3, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, -3565.84, 5460.68, -6.35, 0, 'Explorers'' League Researcher - On Data Set - Move Point');
INSERT INTO smart_scripts VALUES (22464, 0, 8, 0, 38, 0, 100, 0, 2, 4, 0, 0, 69, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, -3549.48, 5470.51, -10.15, 0, 'Explorers'' League Researcher - On Data Set - Move Point');
INSERT INTO smart_scripts VALUES (22464, 0, 9, 0, 38, 0, 100, 0, 3, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Explorers'' League Researcher - On Data Set - Set Walk');
DELETE FROM waypoints WHERE entry=22458;
INSERT INTO waypoints VALUES (22458, 1, -3743.63, 5384.38, -6.24766, 'Chief Archaeologist Letoll'),(22458, 2, -3739.58, 5375.99, -7.65087, 'Chief Archaeologist Letoll'),(22458, 3, -3730.59, 5365.27, -9.40853, 'Chief Archaeologist Letoll'),(22458, 4, -3716.52, 5364.92, -10.0641, 'Chief Archaeologist Letoll'),(22458, 5, -3702.52, 5365.01, -10.6171, 'Chief Archaeologist Letoll'),(22458, 6, -3685.79, 5373.34, -10.346, 'Chief Archaeologist Letoll'),(22458, 7, -3666.99, 5382.7, -11.0679, 'Chief Archaeologist Letoll'),(22458, 8, -3648.26, 5392.03, -11.63, 'Chief Archaeologist Letoll'),(22458, 9, -3630.57, 5400.84, -11.2587, 'Chief Archaeologist Letoll'),(22458, 10, -3613.28, 5403.56, -12.6312, 'Chief Archaeologist Letoll'),(22458, 11, -3595.41, 5412.11, -14.5775, 'Chief Archaeologist Letoll'),(22458, 12, -3576.47, 5421.18, -15.7787, 'Chief Archaeologist Letoll'),(22458, 13, -3563.81, 5431.46, -14.7978, 'Chief Archaeologist Letoll'),(22458, 14, -3559.34, 5444.63, -12.1873, 'Chief Archaeologist Letoll'),
(22458, 15, -3554.7, 5454.06, -11.3631, 'Chief Archaeologist Letoll'),(22458, 16, -3558.27, 5468.99, -7.75, 'Chief Archaeologist Letoll'),(22458, 17, -3548.65, 5457.35, -12.32, 'Chief Archaeologist Letoll');
DELETE FROM spell_target_position WHERE id=39217;
INSERT INTO spell_target_position VALUES (39217, 0, 530, -3567.15, 5428.52, -15.26, 0.92);
REPLACE INTO creature_template_addon VALUES (22466, 0, 0, 9, 0, 0, '');
UPDATE creature_template SET modelid1=11686, mechanic_immune_mask=mechanic_immune_mask|0x20, flags_extra=0x200000, AIName='SmartAI', ScriptName='' WHERE entry=22466;
DELETE FROM smart_scripts WHERE entryorguid=22466 AND source_type=0;
INSERT INTO smart_scripts VALUES (22466, 0, 0, 1, 37, 0, 100, 0, 0, 0, 0, 0, 18, 33554432, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Bone Sifter - On AI Init - Set Unit Flag');
INSERT INTO smart_scripts VALUES (22466, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 19, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Bone Sifter - On AI Init - Remove Unit Flag');
INSERT INTO smart_scripts VALUES (22466, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 11, 37989, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Bone Sifter - On AI Init - Cast Tunnel Bore Passive');
INSERT INTO smart_scripts VALUES (22466, 0, 3, 0, 60, 0, 100, 257, 1000, 1000, 0, 0, 3, 0, 20617, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Bone Sifter - On Update - Change Model');
INSERT INTO smart_scripts VALUES (22466, 0, 4, 0, 60, 0, 100, 257, 0, 0, 0, 0, 69, 1, 0, 1, 0, 0, 0, 8, 0, 0, 0, -3554.25, 5452.71, -11.52, 0, 'Bone Sifter - On Update - Move To Position');
INSERT INTO smart_scripts VALUES (22466, 0, 5, 6, 34, 0, 100, 0, 8, 1, 0, 0, 19, 33554432, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Bone Sifter - Movement Inform - Remove Unit Flag');
INSERT INTO smart_scripts VALUES (22466, 0, 6, 7, 61, 0, 100, 0, 0, 0, 0, 0, 18, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Bone Sifter - Movement Inform - Set Unit Flag');
INSERT INTO smart_scripts VALUES (22466, 0, 7, 8, 61, 0, 100, 0, 0, 0, 0, 0, 28, 37989, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Bone Sifter - Movement Inform - Remove Aura Tunnel Bore Passive');
INSERT INTO smart_scripts VALUES (22466, 0, 8, 0, 61, 0, 100, 0, 0, 0, 0, 0, 91, 9, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Bone Sifter - Movement Inform - Remove Bytes0');
INSERT INTO smart_scripts VALUES (22466, 0, 11, 0, 0, 0, 100, 0, 1000, 6000, 8000, 11000, 11, 32738, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Bone Sifter - In Combat - Cast Bore');
INSERT INTO smart_scripts VALUES (22466, 0, 12, 0, 9, 0, 100, 0, 4, 50, 2000, 3500, 11, 31747, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Bone Sifter - Within Range 5-50yd - Cast Poison');
INSERT INTO smart_scripts VALUES (22466, 0, 13, 0, 1, 0, 100, 1, 15000, 15000, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Bone Sifter - Out of Combat - Despawn');
-- Escaping the Tomb (10887)
DELETE FROM creature_text WHERE entry=22377;
INSERT INTO creature_text VALUES (22377, 0, 0, 'Let us leave this place. I''ve had enough of these madmen!', 12, 0, 100, 0, 0, 0, 0, 'Akuno');
INSERT INTO creature_text VALUES (22377, 1, 0, 'Beware! More cultists come!', 12, 0, 100, 0, 0, 0, 0, 'Akuno');
INSERT INTO creature_text VALUES (22377, 2, 0, 'I can find my way from here. My friend Mekeda will reward you for your kind actions.', 12, 0, 100, 0, 0, 0, 0, 'Akuno');
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=22377;
DELETE FROM smart_scripts WHERE entryorguid=22377 AND source_type=0;
INSERT INTO smart_scripts VALUES (22377, 0, 0, 0, 19, 0, 100, 0, 10887, 0, 0, 0, 53, 0, 22377, 0, 0, 0, 1, 7, 0, 0, 0, 0, 0, 0, 0, 'Akuno - On Quest Accept - Start WP');
INSERT INTO smart_scripts VALUES (22377, 0, 1, 0, 40, 0, 100, 0, 1, 0, 0, 0, 54, 4000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Akuno - On WP Reached - Pause WP');
INSERT INTO smart_scripts VALUES (22377, 0, 2, 3, 56, 0, 100, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Akuno - On WP Resumed - Say Line 0');
INSERT INTO smart_scripts VALUES (22377, 0, 3, 4, 61, 0, 100, 0, 0, 0, 0, 0, 2, 250, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Akuno - On WP Resumed - Set Faction');
INSERT INTO smart_scripts VALUES (22377, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 91, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Akuno - On WP Resumed - Remove Bytes0');
INSERT INTO smart_scripts VALUES (22377, 0, 5, 6, 40, 0, 100, 0, 14, 0, 0, 0, 12, 21661, 4, 30000, 0, 0, 0, 8, 0, 0, 0, -2872.43, 5410.14, -28.26, 0.0, 'Akuno - On WP Resumed - Summon Creature');
INSERT INTO smart_scripts VALUES (22377, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 12, 21661, 4, 30000, 0, 0, 0, 8, 0, 0, 0, -2872.43, 5417.80, -28.26, 0.0, 'Akuno - On WP Resumed - Summon Creature');
INSERT INTO smart_scripts VALUES (22377, 0, 7, 8, 40, 0, 100, 0, 28, 0, 0, 0, 12, 21661, 4, 30000, 0, 0, 0, 8, 0, 0, 0, -2898.74, 5343.49, -12.31, 0.91, 'Akuno - On WP Resumed - Summon Creature');
INSERT INTO smart_scripts VALUES (22377, 0, 8, 9, 61, 0, 100, 0, 0, 0, 0, 0, 12, 21661, 4, 30000, 0, 0, 0, 8, 0, 0, 0, -2893.05, 5334.79, -11.54, 1.52, 'Akuno - On WP Resumed - Summon Creature');
INSERT INTO smart_scripts VALUES (22377, 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, 'Akuno - On WP Resumed - Say Line 1');
INSERT INTO smart_scripts VALUES (22377, 0, 10, 0, 61, 0, 100, 0, 0, 0, 0, 0, 59, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Akuno - On WP Resumed - Set Run');
INSERT INTO smart_scripts VALUES (22377, 0, 11, 12, 40, 0, 100, 0, 35, 0, 0, 0, 15, 10887, 0, 0, 0, 0, 0, 18, 40, 0, 0, 0, 0, 0, 0, 'Akuno - On WP Reached - Area Explored');
INSERT INTO smart_scripts VALUES (22377, 0, 12, 13, 61, 0, 100, 0, 0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Akuno - On WP Reached - Say Line 2');
INSERT INTO smart_scripts VALUES (22377, 0, 13, 14, 61, 0, 100, 0, 0, 0, 0, 0, 41, 3000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Akuno - On WP Reached - Despawn');
INSERT INTO smart_scripts VALUES (22377, 0, 14, 0, 61, 0, 100, 0, 0, 0, 0, 0, 91, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Akuno - On WP Reached - Remove Bytes0');
INSERT INTO smart_scripts VALUES (22377, 0, 20, 0, 0, 0, 100, 0, 3000, 8000, 7000, 11000, 11, 39945, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Akuno - In Combat - Cast Chain Lightning');
DELETE FROM waypoints WHERE entry=22377;
INSERT INTO waypoints VALUES (22377, 1, -2765.98, 5430.21, -34.5376, 'Akuno'),(22377, 2, -2767.97, 5422.27, -34.5376, 'Akuno'),(22377, 3, -2772.73, 5415.69, -34.5376, 'Akuno'),(22377, 4, -2780.92, 5415.52, -34.5376, 'Akuno'),(22377, 5, -2791.42, 5415.29, -34.5375, 'Akuno'),(22377, 6, -2803.1, 5415.04, -34.5369, 'Akuno'),(22377, 7, -2806.53, 5414.83, -34.5369, 'Akuno'),(22377, 8, -2813.41, 5414.9, -34.5354, 'Akuno'),(22377, 9, -2816.91, 5415.05, -34.5304, 'Akuno'),(22377, 10, -2826.27, 5414.4, -29.0183, 'Akuno'),(22377, 11, -2827.44, 5414.62, -28.3213, 'Akuno'),(22377, 12, -2836.74, 5414.38, -28.2617, 'Akuno'),(22377, 13, -2850.74, 5414.03, -28.2604, 'Akuno'),(22377, 14, -2860.05, 5413.79, -28.2604, 'Akuno'),(22377, 15, -2868.12, 5413.59, -28.2604, 'Akuno'),(22377, 16, -2876.3, 5413.28, -28.2604, 'Akuno'),(22377, 17, -2882.05, 5413.08, -26.0908, 'Akuno'),(22377, 18, -2889.05, 5412.85, -21.2303, 'Akuno'),(22377, 19, -2892.84, 5412.9, -18.6032, 'Akuno'),(22377, 20, -2895.87, 5411.14, -18.5903, 'Akuno'),(22377, 21, -2895.84, 5409.21, -18.2705, 'Akuno'),(22377, 22, -2895.75, 5402.21, -12.9085, 'Akuno'),(22377, 23, -2895.67, 5396.85, -8.80455, 'Akuno'),(22377, 24, -2895.65, 5385.91, -9.29342, 'Akuno'),(22377, 25, -2895.61, 5383.6, -9.43076, 'Akuno'),(22377, 26, -2895.27, 5373.11, -9.43076, 'Akuno'),(22377, 27, -2894.88, 5363.73, -10.0105, 'Akuno'),(22377, 28, -2894.08, 5352.07, -11.5885, 'Akuno'),(22377, 29, -2888.83, 5341.71, -11.4291, 'Akuno'),(22377, 30, -2881.96, 5328.16, -10.5961, 'Akuno'),(22377, 31, -2872.98, 5310.43, -10.0183, 'Akuno'),(22377, 32, -2864.02, 5292.76, -10.1313, 'Akuno'),(22377, 33, -2857.69, 5280.27, -10.4824, 'Akuno'),(22377, 34, -2850.32, 5265.72, -10.6026, 'Akuno'),(22377, 35, -2846.06, 5254.76, -9.71436, 'Akuno');

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long