
-- -------------------------------------------
-- CRYSTALSONG FOREST (DALARAN)
-- -------------------------------------------

-- Higher Learning - Kirin Tor November Issue, Polymorphic Rules & Regulations, The Worst Mage in Dalaran: A Children's Book
DELETE FROM page_text WHERE entry IN(3487, 3488, 3489, 3454, 3455, 3456, 3457, 3458, 3459, 3460, 3347, 3348, 3349, 3350, 3351, 3352, 3599, 3600, 3601);
INSERT INTO page_text VALUES (3487, 'Dalaran Dining Guide$BWhen Inzi Charmlight opened A Hero''s Welcome shortly after the city relocated, locals and visitors alike lined up to lay their weapons down and sink their teeth into a tough hunk of bread!  Seating is ample, prices are fair and the full bar offers indulgences from all over the world to help you feel satisfyingly heroic.  No matter what you order, save room for the Mead-Basted Caribou!', 3488, 14007);
INSERT INTO page_text VALUES (3488, 'For regional fare in a less boisterous setting, try the Hocus Pocus Inn near the center of town.  The open, airy inn is easy to find and serves light meals with pleasant conversation in a relaxed, library-like atmosphere.  The regulars are primarily exhausted students of the arcane; no wonder the real star of the show is the incredibly skilled food that prepares and cooks itself at your table!', 3489, 14007);
INSERT INTO page_text VALUES (3489, 'If you are looking for a bed, a bar and not much else, look no further than the Filthy Animal!  The bar area is dark and authentically malodorous, replete at all hours with individuals of questionable character.  The menu boasts such delicacies as Briny Hardcheese and it would take an army of enchanted dancing mops and buckets to make the sleeping quarters habitable.  A Horde paradise indeed!', 0, 14007);
INSERT INTO page_text VALUES (3454, "Species altercation has the highest potential for abuse and disaster, and is the source of the most number of complaints to the Kirin'Tor. Polymorphic study has been under constant scrutiny and threat of removal for years, but only recently have these tribulations increased exponentially. In order for this spell to continue to be sanctioned certain guildless must be put in place to throttle the increasing number of tragedies reckless polymorphs have caused.", 3455, 1);
INSERT INTO page_text VALUES (3455, 'Rule #1: Do not turn a creature of lesser intelligence into a creature of higher intelligence - Cerebral brain function rarely translates in a polymorph... But sometimes it does. Voracious creatures such as serpents and wolves need not have their predatory instincts honed with a human mind. We feel obligated to quote Small Claims Disaster Case 12651-B, Labelled, "Bartholemew: The Bear who Bears Arms.', 3456, 1);
INSERT INTO page_text VALUES (3456, "Rule #2: Use simplified creatures for polymorphs - Many rogue mage disciples sanction exotic creature polymorphic studies. But in a desperate effort to lower Kirin'Tor insurance claims we are ceasing to support these types of creatures. Sheep are acceptable creatures for any situation. But there are several other common creature types that are supported (Read the latest edition of the Kirin'Tor Montly for an up-to-date list). Polymorphing into creatures like oozes, ethereals, silithid, and worst of all dragonkin is severely punishable which brings us to...", 3457, 1);
INSERT INTO page_text VALUES (3457, "Rule #3: Polymorphic debaucheries are to be disposed of in a timely and DISCRETE manner - The Public need not bear witness to the horrendous abominations wrought from a botched polymorph. Accidents happn, and the Kirin'Tor understands this. However public viewing of creatures like the Were-Whale, Mur-Elf, Amphibious Worgen, Flying Ooze, Grypho-Hippo-Wyvern, Qiraji Bunny, and the infamous \"Blue-Checkered Cube\" give us all a bad reputation.", 3458, 1);
INSERT INTO page_text VALUES (3458, "Rule #4: Do not polymorph a creature into another more powerful creature - While this looks like plain commen sense, we feel obligated to quote Mildly Severe Claims Disaster Case 8791-E, Labeled, \"Magus John Quint: Liquefied by Sickly Deer turned Violently Confused Molten Giant.\"", 3459, 1);
INSERT INTO page_text VALUES (3459, "Rule #5: Do not polymorph anything that is halfway through a portal - This has yet to not cause an explosion. This is also covered in \"Thinking with Portals: A Memorandum on Proper Portal Usage.\"", 3460, 1);
INSERT INTO page_text VALUES (3460, "Rule #6: Do not polymorph inanimate objects! - We can't believe the Kirin'Tor is receiving reports of this, but such a heinous act caused the development of the brand new Highly Severe Claims Disaster Case 1-A, \"My Kingdom For A Horse: The One Hundred and Fifty Reasons Why A Kingdom Should Not Be Turned Into A Horse.\" <This goes on for hundreds of pages>", 0, 1);
INSERT INTO page_text VALUES (3347, 'Bungledorf had come to learn with great hopes. He guzzled mana potions before class, mistakenly believing they would increase his skill. But all they ever increased was the number of times he accidentally burped during important invocations, often setting classmates'' robes ablaze or turning his teacher''s beard into sheep''s wool in the process.', 3348, 14007);
INSERT INTO page_text VALUES (3348, 'At his first exam, Bungledorf was asked to cast frost armor correctly. The other students shifted in their seats fearfully as he began the incantation. A blue fog encompassed the young lad and for a moment it looked as though he had succeeded. But then he began to shiver and sneeze violently, and everyone finally realized: he had given himself frostbite.', 3349, 14007);
INSERT INTO page_text VALUES (3349, 'One day Bungledorf was in the park, wondering whether he was cut out to be a mage. He saw some children playing nearby and remembered his dream of being a powerful spellcaster. \"Yes,\" he thought, \"I can do it; I just need to try harder!\" He looked for something to practice on and noticed an unusual tree before him. Summoning his courage, Bungledorf began casting a spell on it. He shut his eyes, afraid to see the result...', 3350, 14007);
INSERT INTO page_text VALUES (3350, 'When he finally looked, the tree was replaced with a beautiful night elf. \"It worked!\" he cried, \"It''s transformed! I am a mage after all!\"The night elf was confused for a moment and then smiled at him gently. \"I am a druid, young one. We take other forms by our own will.\"', 3351, 14007);
INSERT INTO page_text VALUES (3351, 'Bungledorf blushed and stepped away, only to trip over his robes and fall headfirst into the lawn. A chorus of giggles greeted him as he adjusted his long pointed cap and shuffled off toward the dormitory, his head hanging low.', 3352, 14007);
INSERT INTO page_text VALUES (3352, 'The night elf lingered, pondering the boy. When she turned to leave, she caught her foot in something, and nearly lost her balance. Surprised at the unfamiliar obstacle, she looked down to see a glistening crop of mageroyal, its petals slowly unfurling into full bloom, where moments ago there had been nothing. She wondered at this, and then, realizing, turned back in the direction Bungledorf had been walking, but the young mage was already gone.', 0, 14007);
INSERT INTO page_text VALUES (3599, 'Emperor Thaurissan,$b$bBelow is my account of my most recent finding here in Un''Goro Crater.  After the Cataclysm hit, I stopped my current project and began sweeping the Crater for new potential dig sites.  Curiously, the Crater wasn''t hard hit by the Cataclysm, but I did find what appeared to be a monstrous mandible peeking out of the ground in Terror Run!', 3600, 14007);
INSERT INTO page_text VALUES (3600, 'It appears to be an ancestor of the dinosaurs that live here.  I''ve spent the last several weeks digging it out, and it has been my most exciting dig yet.  By my calculations, this beast must be nearly 300 feet long, from tip to tail.  That''s longer than some of the largest dragons, and FAR larger than any dino that currently exists here in the Crater.', 3601, 14007);
INSERT INTO page_text VALUES (3601, 'The going has been slow, mainly because I''ve needed to cover up my work behind me.  That blasted goblin, Nilminer, still has cronies digging in the area, and I mustn''t risk any news of this discovery leaking before I send my final results back to Blackrock Mountain.  This may be the key piece of information that tells us what the Titans were doing in Un''Goro!$b$bRegards,$b$bDurrin Direshovel', 0, 14007);

-- Preparations for War (13418)
-- Preparations for War (13419)
UPDATE creature_template SET speed_run=3, npcflag=16777216, Health_mod=2.344, minlevel=79, maxlevel=79, InhabitType=4, AIName='', ScriptName='npc_preparations_for_war_vehicle' WHERE entry IN (30585, 30470);
UPDATE creature_template SET AIName='SmartAI' WHERE entry IN (31085, 31081);
DELETE FROM npc_spellclick_spells WHERE npc_entry IN (30585, 30470);
INSERT INTO npc_spellclick_spells VALUES (30585, 46598, 1, 0);
INSERT INTO npc_spellclick_spells VALUES (30470, 46598, 1, 0);
DELETE FROM gossip_menu_option WHERE menu_id IN (10026, 10025);
INSERT INTO gossip_menu_option VALUES (10026, 1, 0, 'Take me to the ship.', 1, 1, 0, 0, 0, 0, '');
INSERT INTO gossip_menu_option VALUES (10026, 0, 0, 'Take me to the ship.', 1, 1, 0, 0, 0, 0, '');
INSERT INTO gossip_menu_option VALUES (10025, 1, 0, 'Take me to the ship.', 1, 1, 0, 0, 0, 0, '');
INSERT INTO gossip_menu_option VALUES (10025, 0, 0, 'Take me to the ship.', 1, 1, 0, 0, 0, 0, '');
DELETE FROM creature_template_addon WHERE entry=30585;
INSERT INTO creature_template_addon VALUES (30585, 0, 0, 33554432, 0, 0, '55971');
DELETE FROM creature_template_addon WHERE entry=30470;
INSERT INTO creature_template_addon VALUES (30470, 0, 0, 33554432, 0, 0, '55971');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=15 AND SourceGroup IN (10026, 10025);
INSERT INTO conditions VALUES (15, 10025, 0, 0, 0, 8, 0, 13418, 0, 0, 0, 0, 0, '', 'Officer Van Rossem - Show gossip option only if quest Preparations for War is finished');
INSERT INTO conditions VALUES (15, 10025, 1, 0, 0, 28, 0, 13418, 0, 0, 0, 0, 0, '', 'Officer Van Rossem - Show gossip option only if player has taken quest Preparations for War');
INSERT INTO conditions VALUES (15, 10026, 0, 0, 0, 8, 0, 13419, 0, 0, 0, 0, 0, '', 'Sky-Reaver Klum - Show gossip option only if quest Preparations for War is finished');
INSERT INTO conditions VALUES (15, 10026, 1, 0, 0, 28, 0, 13419, 0, 0, 0, 0, 0, '', 'Sky-Reaver Klum - Show gossip option only if player has taken quest Preparations for War');
DELETE FROM smart_scripts WHERE entryorguid IN(31085, 31081) AND source_type=0;
INSERT INTO smart_scripts VALUES (31085, 0, 0, 2, 62, 0, 100, 0, 10026, 0, 0, 0, 11, 58352, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Sky-Reaver Klum - On Gossip Select - Cast Flight - To Icecrown Airship (H) - Force Cast - Summon Vehicle');
INSERT INTO smart_scripts VALUES (31085, 0, 1, 2, 62, 0, 100, 0, 10026, 1, 0, 0, 11, 58352, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Sky-Reaver Klum - On Gossip Select - Cast Flight - To Icecrown Airship (H) - Force Cast - Summon Vehicle');
INSERT INTO smart_scripts VALUES (31085, 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, 'Sky-Reaver Klum - On Gossip Select - Close Gossip');
INSERT INTO smart_scripts VALUES (31081, 0, 0, 2, 62, 0, 100, 0, 10025, 0, 0, 0, 11, 58349, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Officer Van Rossem - On Gossip Select - Cast Flight - To Icecrown Airship (A) - Force Cast - Summon Vehicle');
INSERT INTO smart_scripts VALUES (31081, 0, 1, 2, 62, 0, 100, 0, 10025, 1, 0, 0, 11, 58349, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Officer Van Rossem - On Gossip Select - Cast Flight - To Icecrown Airship (A) - Force Cast - Summon Vehicle');
INSERT INTO smart_scripts VALUES (31081, 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, 'Officer Van Rossem - On Gossip Select - Close Gossip');
DELETE FROM waypoints WHERE entry IN(30585, 30470);
INSERT INTO waypoints VALUES (30585, 1, 5818.54, 483.97, 660, 'ship'),(30585, 2, 5835.361, 490.0929, 669.2502, 'ship'),(30585, 3, 5845.597, 505.7655, 677.8998, 'ship'),(30585, 4, 5865.832, 544.756, 689.6674, 'ship'),(30585, 5, 5897.429, 586.1177, 689.6674, 'ship'),(30585, 6, 5936.385, 642.625, 682.4179, 'ship'),(30585, 7, 5954.68, 688.5653, 678.1407, 'ship'), 
(30585, 8, 5987.017, 725.1281, 673.5298, 'ship'),(30585, 9, 6055.089, 766.5753, 663.0575, 'ship'),(30585, 10, 6077.21, 796.1387, 663.0575, 'ship'),(30585, 11, 6089.871, 824.1841, 663.0575, 'ship'),(30585, 12, 6133.36, 911.2333, 642.3085, 'ship'),(30585, 13, 6187.39, 959.5966, 625.03, 'ship'),(30585, 14, 6346.116, 1060.051, 631.3358, 'ship'),(30585, 15, 6466.611, 1107.176, 644.8912, 'ship'),(30585, 16, 6626.671, 1136.814, 649.6691, 'ship'),(30585, 17, 6733.844, 1153.338, 658.0303, 'ship');
INSERT INTO waypoints VALUES (30470, 1, 5818.54, 483.97, 660, 'ship'),(30470, 2, 5835.361, 490.0929, 669.2502, 'ship'),(30470, 3, 5845.597, 505.7655, 677.8998, 'ship'),(30470, 4, 5865.832, 544.756, 689.6674, 'ship'),(30470, 5, 5897.429, 586.1177, 689.6674, 'ship'),(30470, 6, 5936.385, 642.625, 682.4179, 'ship'),(30470, 7, 5954.68, 688.5653, 678.1407, 'ship'),(30470, 8, 5987.017, 725.1281, 673.5298, 'ship'), 
(30470, 9, 6055.089, 766.5753, 663.0575, 'ship'),(30470, 10, 6077.21, 796.1387, 663.0575, 'ship'),(30470, 11, 6089.871, 824.1841, 663.0575, 'ship'),(30470, 12, 6133.36, 911.2333, 642.3085, 'ship'),(30470, 13, 6187.39, 959.5966, 625.03, 'ship'),(30470, 14, 6346.116, 1060.051, 631.3358, 'ship'),(30470, 15, 6466.611, 1107.176, 644.8912, 'ship'),(30470, 16, 6626.671, 1136.814, 649.6691, 'ship'),(30470, 17, 6733.844, 1153.338, 658.0303, 'ship');

-- Sartharion Must Die! (24579)
UPDATE quest_template SET OfferRewardText='With Sartharion slain, surely Deathwing and Sinestra''s plans are now stalled.' WHERE Id=24579;

-- Anub'Rekhan Must Die! (24580)
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;

-- Instructor Razuvious Must Die! (24582)
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;

-- Patchwerk Must Die! (24583)
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=24583;

-- XT-002 Deconstructor Must Die! (24588)
UPDATE quest_template SET OfferRewardText='The greatest weakness of Ulduar is its masters'' blind faith in their inventions to protect it.' WHERE Id=24588;


-- -------------------------------------------
-- BATTERED HILT
-- -------------------------------------------

-- A Suitable Disguise (20438)
-- A Suitable Disguise (24556)
UPDATE creature_template SET ScriptName='npc_shandy_dalaran' WHERE entry=36856;
DELETE FROM creature_text WHERE entry IN(36856);
INSERT INTO creature_text VALUES(36856, 0, 0, "You're in luck. I've got just what you need in the load I'm about to wash.", 12, 0, 100, 1, 0, 0, 0, 'Shandy say 1');
INSERT INTO creature_text VALUES(36856, 1, 0, "That's how it's done!", 12, 0, 100, 4, 0, 0, 0, 'Shandy say 2');
INSERT INTO creature_text VALUES(36856, 1, 1, "Well done!", 12, 0, 100, 4, 0, 0, 0, 'Shandy say 2');
INSERT INTO creature_text VALUES(36856, 1, 2, "Aquanos can hardly keep up!", 12, 0, 100, 4, 0, 0, 0, 'Shandy say 2');
INSERT INTO creature_text VALUES(36856, 1, 3, "Nice. Idon't want to know what that stain was.", 12, 0, 100, 4, 0, 0, 0, 'Shandy say 2');
INSERT INTO creature_text VALUES(36856, 2, 0, "See the piles of loundry and the bucket of water? I'll call out what I need next, and you put it in the tub. Ready?", 12, 0, 100, 1, 0, 0, 0, 'Shandy say 3');
INSERT INTO creature_text VALUES(36856, 3, 0, "The tub needs more water!", 12, 0, 100, 25, 0, 0, 0, 'Shandy say water');
INSERT INTO creature_text VALUES(36856, 4, 0, "Quick, add some shirts to the laundry!", 12, 0, 100, 25, 0, 0, 0, 'Shandy say shirts');
INSERT INTO creature_text VALUES(36856, 5, 0, "Toss some pants in to the tub!", 12, 0, 100, 25, 0, 0, 0, 'Shandy say pants');
INSERT INTO creature_text VALUES(36856, 6, 0, "Toss some unmentionables to the tub!", 12, 0, 100, 25, 0, 0, 0, 'Shandy say unmentionables');
INSERT INTO creature_text VALUES(36856, 7, 0, "Aquanos, stop sending the clothes so high! You didn't have to see the look on Aethos Sunreaver's face when he found his pants in the fauntain!", 12, 0, 100, 1, 0, 0, 0, 'Shandy say 4');
INSERT INTO creature_text VALUES(36856, 8, 0, "See how easy that was with everyone working together? Just take what you need from the clean lundry here. But don't forget to return it when you're finished.", 12, 0, 100, 1, 0, 0, 0, 'Shandy say 5');
UPDATE creature_template SET unit_flags=768, AIName='SmartAI' WHERE entry=36851;
REPLACE INTO spell_script_names VALUES(69664, 'spell_q20438_q24556_aquantos_laundry');
DELETE FROM smart_scripts WHERE entryorguid IN(36851) AND source_type=0;
INSERT INTO smart_scripts VALUES (36851, 0, 0, 0, 8, 0, 100, 0, 69548, 0, 0, 0, 45, 1, 0, 0, 0, 0, 0, 19, 36856, 30, 0, 0, 0, 0, 0, 'Set data on spell hit');
INSERT INTO smart_scripts VALUES (36851, 0, 1, 0, 8, 0, 100, 0, 69544, 0, 0, 0, 45, 4, 0, 0, 0, 0, 0, 19, 36856, 30, 0, 0, 0, 0, 0, 'Set data on spell hit');
INSERT INTO smart_scripts VALUES (36851, 0, 2, 0, 8, 0, 100, 0, 69543, 0, 0, 0, 45, 2, 0, 0, 0, 0, 0, 19, 36856, 30, 0, 0, 0, 0, 0, 'Set data on spell hit');
INSERT INTO smart_scripts VALUES (36851, 0, 3, 0, 8, 0, 100, 0, 69542, 0, 0, 0, 45, 3, 0, 0, 0, 0, 0, 19, 36856, 30, 0, 0, 0, 0, 0, 'Set data on spell hit');
UPDATE gameobject_template SET flags=4, data3=2, data10=0, AIName='SmartGameObjectAI', ScriptName='' WHERE entry IN(201298, 201300, 201855, 201301, 201299, 201296, 201295, 201932, 201931, 201297, 201933);
DELETE FROM smart_scripts WHERE entryorguid IN(201298, 201300, 201855, 201301, 201299, 201296, 201295, 201932, 201931, 201297, 201933) AND source_type=1;
-- Water
INSERT INTO smart_scripts VALUES(201298, 1, 0, 0, 64, 0, 100, 0, 0, 0, 0, 0, 85, 69548, 2, 0, 0, 0, 0, 19, 36851, 50, 0, 0, 0, 0, 0, 'On gossip select invoker cast');
INSERT INTO smart_scripts VALUES(201855, 1, 0, 0, 64, 0, 100, 0, 0, 0, 0, 0, 85, 69548, 2, 0, 0, 0, 0, 19, 36851, 50, 0, 0, 0, 0, 0, 'On gossip select invoker cast');
-- Unmentionables
INSERT INTO smart_scripts VALUES(201933, 1, 0, 0, 64, 0, 100, 0, 0, 0, 0, 0, 85, 69544, 2, 0, 0, 0, 0, 19, 36851, 50, 0, 0, 0, 0, 0, 'On gossip select invoker cast');
INSERT INTO smart_scripts VALUES(201297, 1, 0, 0, 64, 0, 100, 0, 0, 0, 0, 0, 85, 69544, 2, 0, 0, 0, 0, 19, 36851, 50, 0, 0, 0, 0, 0, 'On gossip select invoker cast');
INSERT INTO smart_scripts VALUES(201299, 1, 0, 0, 64, 0, 100, 0, 0, 0, 0, 0, 85, 69544, 2, 0, 0, 0, 0, 19, 36851, 50, 0, 0, 0, 0, 0, 'On gossip select invoker cast');
-- Shirts
INSERT INTO smart_scripts VALUES(201300, 1, 0, 0, 64, 0, 100, 0, 0, 0, 0, 0, 85, 69543, 2, 0, 0, 0, 0, 19, 36851, 50, 0, 0, 0, 0, 0, 'On gossip select invoker cast');
INSERT INTO smart_scripts VALUES(201296, 1, 0, 0, 64, 0, 100, 0, 0, 0, 0, 0, 85, 69543, 2, 0, 0, 0, 0, 19, 36851, 50, 0, 0, 0, 0, 0, 'On gossip select invoker cast');
INSERT INTO smart_scripts VALUES(201932, 1, 0, 0, 64, 0, 100, 0, 0, 0, 0, 0, 85, 69543, 2, 0, 0, 0, 0, 19, 36851, 50, 0, 0, 0, 0, 0, 'On gossip select invoker cast');
-- Pants
INSERT INTO smart_scripts VALUES(201301, 1, 0, 0, 64, 0, 100, 0, 0, 0, 0, 0, 85, 69542, 2, 0, 0, 0, 0, 19, 36851, 50, 0, 0, 0, 0, 0, 'On gossip select invoker cast');
INSERT INTO smart_scripts VALUES(201295, 1, 0, 0, 64, 0, 100, 0, 0, 0, 0, 0, 85, 69542, 2, 0, 0, 0, 0, 19, 36851, 50, 0, 0, 0, 0, 0, 'On gossip select invoker cast');
INSERT INTO smart_scripts VALUES(201931, 1, 0, 0, 64, 0, 100, 0, 0, 0, 0, 0, 85, 69542, 2, 0, 0, 0, 0, 19, 36851, 50, 0, 0, 0, 0, 0, 'On gossip select invoker cast');
DELETE FROM gameobject WHERE id IN(201298, 201300, 201855, 201301, 201299, 201296, 201295, 201932, 201931, 201297, 201933);
INSERT INTO gameobject VALUES (NULL, 201298, 571, 1, 1, 5807.28, 690.745, 659.15, 3.269, 0, 0, 0.997971, -0.0636625, 300, 0, 1, 0);
INSERT INTO gameobject VALUES (NULL, 201300, 571, 1, 1, 5806.83, 692.873, 658.366, 1.67373, 0, 0, 0.742547, 0.669794, 300, 0, 1, 0);
INSERT INTO gameobject VALUES (NULL, 201855, 571, 1, 1, 5806.75, 691.274, 657.951, 4.17217, 0, 0, 0.87015, -0.492787, 300, 0, 1, 0);
INSERT INTO gameobject VALUES (NULL, 201301, 571, 1, 1, 5806.62, 693.616, 658.447, 3.12345, 0, 0, 0.999959, 0.00907178, 300, 0, 1, 0);
INSERT INTO gameobject VALUES (NULL, 201299, 571, 1, 1, 5805.96, 697.469, 658.282, 1.80376, 0, 0, 0.784495, 0.620135, 300, 0, 1, 0);
INSERT INTO gameobject VALUES (NULL, 201299, 571, 1, 1, 5805.9, 697.858, 658.282, 0.233185, 0, 0, 0.116329, 0.993211, 300, 0, 1, 0);
INSERT INTO gameobject VALUES (NULL, 201296, 571, 1, 1, 5806.8, 692.833, 657.95, 3.34514, 0, 0, 0.994825, -0.1016, 300, 0, 1, 0);
INSERT INTO gameobject VALUES (NULL, 201932, 571, 1, 1, 5806.9, 692.681, 658.365, 1.74948, 0, 0, 0.767376, 0.641198, 300, 0, 1, 0);
INSERT INTO gameobject VALUES (NULL, 201295, 571, 1, 1, 5806.32, 693.684, 657.949, 1.65332, 0, 0, 0.735675, 0.677335, 300, 0, 1, 0);
INSERT INTO gameobject VALUES (NULL, 201931, 571, 1, 1, 5806.44, 693.699, 658.447, 3.22124, 0, 0, 0.999207, -0.039813, 300, 0, 1, 0);
INSERT INTO gameobject VALUES (NULL, 201297, 571, 1, 1, 5806, 697.65, 657.95, 3.43308, 0, 0, 0.989398, -0.145228, 300, 0, 1, 0);
INSERT INTO gameobject VALUES (NULL, 201933, 571, 1, 1, 5806.04, 697.517, 658.282, 1.69691, 0, 0, 0.750261, 0.661142, 300, 0, 1, 0);
-- Addition for scene after this part of quest
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=71365;
INSERT INTO conditions VALUES (13, 1, 71365, 0, 0, 31, 0, 3, 36657, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES (13, 1, 71365, 0, 1, 31, 0, 3, 36656, 0, 0, 0, 0, '', '');
-- loot
UPDATE gameobject_template SET flags=0 WHERE entry=201384;

-- Return to Myralion Sunblaze (24558)
UPDATE smart_scripts SET action_param5=500 WHERE entryorguid=37845 AND source_type=0 AND event_type=54 AND action_type=53;
DELETE FROM smart_scripts WHERE entryorguid=37846 AND source_type=0 AND ((id=4 AND action_type=8) OR (id=5 AND action_type=101));
INSERT INTO `smart_scripts` VALUES (37846, 0, 4, 5, 54, 0, 100, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On spawn - passive');
INSERT INTO `smart_scripts` VALUES (37846, 0, 5, 0, 61, 0, 100, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 8115.65, 780.131, 481.611, 5.9, 'Linked - home position');

-- Return to Caladis Brightspear (24454)
UPDATE smart_scripts SET action_param1=3664200 WHERE entryorguid=36624 AND source_type=0 AND action_type=80 AND action_param1=3662400;

-- The Halls of Reflection (24480)
-- The Halls of Reflection (24561)
REPLACE INTO areatrigger_scripts VALUES(5632, 'at_hor_battered_hilt_start');
REPLACE INTO areatrigger_scripts VALUES(5660, 'at_hor_battered_hilt_throw');
DELETE FROM spell_script_names WHERE spell_id IN(73036, -73036, 73035, -73035, 70720, -70720, 70719, -70719);
DELETE FROM spell_scripts WHERE id IN(73036, -73036, 73035, -73035, 70720, -70720, 70719, -70719);
DELETE FROM spell_linked_spell WHERE spell_trigger IN(73036, -73036, 73035, -73035, 70720, -70720, 70719, -70719) OR spell_effect IN(73036, -73036, 73035, -73035, 70720, -70720, 70719, -70719);
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry IN(73036, -73036, 73035, -73035, 70720, -70720, 70719, -70719);
REPLACE INTO spell_target_position VALUES(70719, 0, 668, 5300.53, 1987.80, 707.70, 3.89);
INSERT INTO `conditions` VALUES (13, 1, 73035, 0, 0, 31, 0, 3, 37704, 0, 0, 0, 0, '', 'Essence of the Captured (Battered Hilt, Quel''Delar, Halls of Reflections HoR, Uther)');
DELETE FROM spell_script_names WHERE spell_id IN(69966, 70698, 70700, -69966, -70698, -70700);
DELETE FROM spell_scripts WHERE id IN(69966, 70698, 70700, -69966, -70698, -70700);
DELETE FROM spell_linked_spell WHERE spell_trigger IN(69966, 70698, 70700, -69966, -70698, -70700) OR spell_effect IN(69966, 70698, 70700, -69966, -70698, -70700);
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry IN(69966, 70698, 70700, -69966, -70698, -70700);
REPLACE INTO spell_target_position VALUES(70700, 0, 668, 5296.53, 1992.97, 712.70, 3.98);
REPLACE INTO spell_target_position VALUES(69966, 0, 668, 5296.53, 1992.97, 712.70, 3.98);
UPDATE creature_template SET modelid1=30547, modelid2=0, speed_run=2.0, unit_flags=256+512, lootid=37158, InhabitType=4, AIName='SmartAI', ScriptName='', flags_extra=0 WHERE entry=37158;
REPLACE INTO creature_loot_template VALUES(37158, 50254, -100, 1, 0, 1, 1);
REPLACE INTO creature_template_addon VALUES(37158, 0, 0, 50331648, 1, 0, '');
DELETE FROM smart_scripts WHERE entryorguid IN(37158) AND source_type=0;
INSERT INTO `smart_scripts` VALUES (37158, 0, 0, 0, 0, 0, 100, 0, 1000, 3000, 6000, 8000, 11, 29426, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Heroic Strike');
INSERT INTO `smart_scripts` VALUES (37158, 0, 1, 0, 0, 0, 100, 0, 3000, 5000, 6000, 9000, 11, 16856, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Mortal Strike');
INSERT INTO `smart_scripts` VALUES (37158, 0, 2, 0, 0, 0, 100, 0, 7000, 9000, 15000, 20000, 11, 67541, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Bladestorm');
INSERT INTO `smart_scripts` VALUES (37158, 0, 3, 0, 58, 0, 100, 0, 0, 0, 0, 0, 34, 6, 5, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Set inst data on finish movement');
INSERT INTO `smart_scripts` VALUES (37158, 0, 4, 0, 37, 0, 100, 0, 0, 0, 0, 0, 11, 70300, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Cast aura on AI init');
INSERT INTO `smart_scripts` VALUES (37158, 0, 5, 0, 1, 0, 100, 1, 2000, 2000, 0, 0, 53, 1, 3715800, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Start movement');
DELETE FROM waypoints WHERE entry=3715800;
INSERT INTO waypoints VALUES (3715800, 1, 5288.35, 2001.96, 715.839, 'Quel''Delar in HoR');
INSERT INTO waypoints VALUES (3715800, 2, 5287.78, 2012.3, 718.648, 'Quel''Delar in HoR');
INSERT INTO waypoints VALUES (3715800, 3, 5293.66, 2022.44, 721.733, 'Quel''Delar in HoR');
INSERT INTO waypoints VALUES (3715800, 4, 5304.64, 2024.97, 724.804, 'Quel''Delar in HoR');
INSERT INTO waypoints VALUES (3715800, 5, 5322.97, 2022.09, 728.212, 'Quel''Delar in HoR');
INSERT INTO waypoints VALUES (3715800, 6, 5330.45, 2013.93, 729.987, 'Quel''Delar in HoR');
INSERT INTO waypoints VALUES (3715800, 7, 5329.63, 2000.81, 731.98, 'Quel''Delar in HoR');
INSERT INTO waypoints VALUES (3715800, 8, 5318.02, 1988.14, 733.196, 'Quel''Delar in HoR');
INSERT INTO waypoints VALUES (3715800, 9, 5296.81, 1986.27, 732.414, 'Quel''Delar in HoR');
INSERT INTO waypoints VALUES (3715800, 10, 5288.66, 1999.81, 733.286, 'Quel''Delar in HoR');
INSERT INTO waypoints VALUES (3715800, 11, 5291.78, 2015.84, 732.737, 'Quel''Delar in HoR');
INSERT INTO waypoints VALUES (3715800, 12, 5306.19, 2029.22, 732.899, 'Quel''Delar in HoR');
INSERT INTO waypoints VALUES (3715800, 13, 5327.48, 2022, 730.3, 'Quel''Delar in HoR');
INSERT INTO waypoints VALUES (3715800, 14, 5331.94, 2004.94, 726.963, 'Quel''Delar in HoR');
INSERT INTO waypoints VALUES (3715800, 15, 5325.13, 1990.92, 722.842, 'Quel''Delar in HoR');
INSERT INTO waypoints VALUES (3715800, 16, 5313.1, 1984.14, 719.322, 'Quel''Delar in HoR');
INSERT INTO waypoints VALUES (3715800, 17, 5303.81, 1984.66, 717.071, 'Quel''Delar in HoR');
INSERT INTO waypoints VALUES (3715800, 18, 5296.86, 1993.15, 716.888, 'Quel''Delar in HoR');

-- Thalorien Dawnseeker (24535)
-- Thalorien Dawnseeker (24563)
DELETE FROM spell_area WHERE spell=70193;
INSERT INTO spell_area VALUES(70193, 4092, 24535, 0, 0, 0, 2, 1, 10, 0);
INSERT INTO spell_area VALUES(70193, 4092, 24563, 0, 0, 0, 2, 1, 10, 0);
-- npc Thalorien Dawnseeker's Remains (37552)
UPDATE creature_template SET `exp`=2, minlevel=80, maxlevel=80, gossip_menu_id=37552, AIName='SmartAI', ScriptName='' WHERE entry=37552;
REPLACE INTO creature_template_addon VALUES(37552, 0, 0, 7, 1, 0, '');
DELETE FROM creature_addon WHERE guid IN( SELECT guid FROM creature WHERE id IN(37552));
DELETE FROM creature WHERE id IN(37552);
INSERT INTO `creature` VALUES (NULL, 37552, 530, 1, 2048, 0, 0, 11781.6, -7068.71, 24.9312, 3.10074, 300, 0, 0, 123, 180, 0, 1, 256+512, 32);
REPLACE INTO gossip_menu VALUES(37552, 15155);
DELETE FROM gossip_menu_option WHERE menu_id=37552 AND option_text LIKE '%Examine the remains%';
REPLACE INTO gossip_menu_option VALUES(37552, 0, 0, 'Examine the remains.', 1, 1, 0, 0, 0, 0, '');
DELETE FROM smart_scripts WHERE entryorguid IN(37552) AND source_type=0;
INSERT INTO `smart_scripts` VALUES (37552, 0, 0, 1, 62, 0, 100, 0, 37552, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'close gossip menu');
INSERT INTO `smart_scripts` VALUES (37552, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 19, 37205, 100, 0, 0, 0, 0, 0, 'call DoAction on nearby Thalorien');
INSERT INTO `smart_scripts` VALUES (37552, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 83, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'remove gossip flag');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=15 AND SourceGroup=37552;
INSERT INTO conditions VALUES(15, 37552, 0, 0, 0, 9, 0, 24535, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(15, 37552, 0, 0, 1, 9, 0, 24563, 0, 0, 0, 0, 0, '', '');
-- go Aura Trap Yellow Tall (scale 2.00) (185579)
DELETE FROM gameobject WHERE id=185579 AND `map`=530 AND phaseMask=2048;
INSERT INTO `gameobject` VALUES (NULL, 185579, 530, 1, 2048, 11781.6, -7068.48, 24.9352, 3.43394, 0, 0, 0.989336, -0.145654, 300, 0, 1, 0);
-- npc Thalorien Dawnseeker (37205)
UPDATE creature_template SET `exp`=2, faction=42, minlevel=80, maxlevel=80, mindmg=500, maxdmg=700, attackpower=300, dmg_multiplier=5, unit_flags=0, AIName='', ScriptName='npc_bh_thalorien_dawnseeker' WHERE entry=37205;
REPLACE INTO creature_template_addon VALUES(37205, 0, 0, 0, 1, 0, '');
DELETE FROM creature_addon WHERE guid IN( SELECT guid FROM creature WHERE id IN(37205));
DELETE FROM creature WHERE id IN(37205);
INSERT INTO `creature` VALUES (NULL, 37205, 530, 1, 2048, 0, 1, 11787.2, -7070.58, 25.8613, 5.92758, 300, 0, 0, 144, 180, 0, 0, 0, 0);
DELETE FROM creature_text WHERE entry=37205;
INSERT INTO creature_text VALUES (37205, 0, 0, 'We must defend the sunwell from the enemy at all costs.', 12, 0, 100, 1, 0, 16769, 0, 'Thalorien Dawnseeker');
INSERT INTO creature_text VALUES (37205, 1, 0, 'I am ordering you to withdraw to the sunwell proper to help prepare the defences.', 12, 0, 100, 25, 0, 16770, 0, 'Thalorien Dawnseeker');
INSERT INTO creature_text VALUES (37205, 2, 0, 'I will make my stand here and buy you as much as time as I am able. Use it well, and make our prince proud.', 12, 0, 100, 1, 0, 16771, 0, 'Thalorien Dawnseeker');
INSERT INTO creature_text VALUES (37205, 3, 0, 'It has been a great honour to fight beside you in defence of our land, and our people.', 12, 0, 100, 2, 0, 16772, 0, 'Thalorien Dawnseeker');
INSERT INTO creature_text VALUES (37205, 4, 0, 'You, stranger! You are not one of my soldiers! Will you stay and stand with me to face the enemy?', 12, 0, 100, 0, 0, 16773, 0, 'Thalorien Dawnseeker');
INSERT INTO creature_text VALUES (37205, 5, 0, 'Listen well, scourge defilers! None of you will reach the sunwell, so long as I stand!', 14, 0, 100, 1, 0, 16774, 0, 'Thalorien Dawnseeker');
INSERT INTO creature_text VALUES (37205, 6, 0, 'I... I wasn''t meant to survive this attack!', 12, 0, 100, 1, 0, 16775, 0, 'Thalorien Dawnseeker');
INSERT INTO creature_text VALUES (37205, 7, 0, 'Why has this happened? Why have you come here?', 12, 0, 100, 1, 0, 16776, 0, 'Thalorien Dawnseeker');
INSERT INTO creature_text VALUES (37205, 8, 0, 'It''s Quel''Delar! You possess the sword!', 12, 0, 100, 1, 0, 16777, 0, 'Thalorien Dawnseeker');
INSERT INTO creature_text VALUES (37205, 9, 0, 'I don''t know how, but the blade has chosen you to be its new wielder. Take it, with my blessing, and wield it against the scourge as I once did!', 12, 0, 100, 1, 0, 16778, 0, 'Thalorien Dawnseeker');
-- npc Sunwell Defender (37211)
UPDATE creature_template SET `exp`=2, minlevel=80, maxlevel=80, unit_flags=256+512, AIName='NullCreatureAI', ScriptName='' WHERE entry=37211;
DELETE FROM creature_template_addon WHERE entry=37211;
DELETE FROM creature_addon WHERE guid IN( SELECT guid FROM creature WHERE id IN(37211));
DELETE FROM creature WHERE id IN(37211);
-- npc Morlen Coldgrip (37542)
UPDATE creature_template SET `exp`=2, minlevel=80, maxlevel=80, faction=14, mindmg=500, maxdmg=700, attackpower=100, dmg_multiplier=3, unit_flags=256+512, AIName='SmartAI', ScriptName='' WHERE entry=37542;
REPLACE INTO creature_template_addon VALUES(37542, 0, 25278, 0, 1, 0, '');
DELETE FROM smart_scripts WHERE entryorguid IN(37542) AND source_type=0;
INSERT INTO `smart_scripts` VALUES (37542, 0, 0, 0, 0, 0, 100, 30, 2000, 3000, 6000, 8000, 11, 50688, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Plague Strike');
DELETE FROM creature_text WHERE entry=37542;
INSERT INTO creature_text VALUES (37542, 0, 0, 'You will fall as your lands and your city have before you. My lord will win a great victory here, and none will remember your name!', 14, 0, 100, 0, 0, 0, 0, 'Morlen Coldgrip');
INSERT INTO creature_text VALUES (37542, 1, 0, 'Forward!', 14, 0, 100, 0, 0, 0, 0, 'Morlen Coldgrip');
INSERT INTO creature_text VALUES (37542, 2, 0, 'Ghouls, slay this pathetic high elf!', 14, 0, 100, 0, 0, 0, 0, 'Morlen Coldgrip');
INSERT INTO creature_text VALUES (37542, 3, 0, 'You will fall before the might of the Scourge. Crypt raiders, attack!', 14, 0, 100, 0, 0, 0, 0, 'Morlen Coldgrip');
INSERT INTO creature_text VALUES (37542, 4, 0, 'I shall kill you myself!', 14, 0, 100, 0, 0, 0, 0, 'Morlen Coldgrip');
-- npc Scourge Zombie (37538)
UPDATE creature_template SET `exp`=2, minlevel=80, maxlevel=80, faction=14, mindmg=500, maxdmg=700, attackpower=100, dmg_multiplier=1, unit_flags=256+512, AIName='SmartAI', ScriptName='' WHERE entry=37538;
DELETE FROM smart_scripts WHERE entryorguid IN(37538) AND source_type=0;
INSERT INTO `smart_scripts` VALUES (37538, 0, 0, 0, 0, 0, 100, 0, 3000, 5000, 9000, 10000, 11, 49861, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Infected Bite');
-- npc Ghoul Invader (37539)
UPDATE creature_template SET `exp`=2, minlevel=80, maxlevel=80, faction=14, mindmg=500, maxdmg=700, attackpower=100, dmg_multiplier=1.5, unit_flags=256+512, AIName='SmartAI', ScriptName='' WHERE entry=37539;
DELETE FROM smart_scripts WHERE entryorguid IN(37539) AND source_type=0;
INSERT INTO `smart_scripts` VALUES (37539, 0, 0, 0, 0, 0, 100, 0, 3000, 5000, 9000, 10000, 11, 38056, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Flesh Rip');
-- npc Crypt Raider (37541)
UPDATE creature_template SET `exp`=2, minlevel=80, maxlevel=80, faction=14, unit_flags=unit_flags|4, mindmg=500, maxdmg=700, attackpower=100, dmg_multiplier=1.5, unit_flags=4+256+512, AIName='SmartAI', ScriptName='' WHERE entry=37541;
DELETE FROM smart_scripts WHERE entryorguid IN(37541) AND source_type=0;
INSERT INTO `smart_scripts` VALUES (37541, 0, 0, 0, 0, 0, 100, 0, 1000, 2000, 3000, 4000, 11, 31600, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Crypt Scarabs');
INSERT INTO `smart_scripts` VALUES (37541, 0, 1, 0, 37, 0, 100, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Disable combat movement');

-- The Purification of Quel'Delar (24553)
-- The Purification of Quel'Delar (24564)
-- The Purification of Quel'Delar (24594)
-- The Purification of Quel'Delar (24595)
-- The Purification of Quel'Delar (24596)
-- The Purification of Quel'Delar (24598)
UPDATE quest_template SET RequiredClasses=431, RequiredRaces=1101 WHERE Id=24553;
UPDATE quest_template SET RequiredClasses=431, RequiredRaces=178 WHERE Id=24564;
UPDATE quest_template SET RequiredClasses=1519, RequiredRaces=512 WHERE Id=24594;
UPDATE quest_template SET RequiredClasses=1104, RequiredRaces=1101 WHERE Id=24595;
UPDATE quest_template SET RequiredClasses=16, RequiredRaces=512 WHERE Id=24596;
UPDATE quest_template SET RequiredClasses=1104, RequiredRaces=178 WHERE Id=24598;
DELETE FROM disables WHERE sourceType=1 AND entry IN(SELECT Id FROM quest_template WHERE Title='The purification of Quel''Delar');
INSERT INTO disables SELECT 1, Id, 0, '', '', 'Invalid version of quest The purification of Quel''Delar' FROM quest_template WHERE Title='The purification of Quel''Delar' AND Id NOT IN(24553,24564,24594,24595,24596,24598);
DELETE FROM spell_area WHERE spell=70193 AND area=4075;
INSERT INTO spell_area VALUES(70193, 4075, 24553, 0, 0, 0, 2, 1, 10, 0);
INSERT INTO spell_area VALUES(70193, 4075, 24564, 0, 0, 0, 2, 1, 10, 0);
INSERT INTO spell_area VALUES(70193, 4075, 24594, 0, 0, 0, 2, 1, 10, 0);
INSERT INTO spell_area VALUES(70193, 4075, 24595, 0, 0, 0, 2, 1, 10, 0);
INSERT INTO spell_area VALUES(70193, 4075, 24596, 0, 0, 0, 2, 1, 10, 0);
INSERT INTO spell_area VALUES(70193, 4075, 24598, 0, 0, 0, 2, 1, 10, 0);
UPDATE creature_template SET minlevel=80, maxlevel=80, Health_mod=2.9480580, Mana_mod=1, npcflag=1, gossip_menu_id=37523, AIname='SmartAI' WHERE entry=37523;
DELETE FROM smart_scripts WHERE entryorguid IN(37523) AND source_type=0;
INSERT INTO `smart_scripts` VALUES (37523, 0, 0, 1, 62, 0, 100, 0, 37523, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'close gossip menu');
INSERT INTO `smart_scripts` VALUES (37523, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 85, 70746, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'invoker cast teleport spell');
DELETE FROM spell_target_position WHERE id=70746;
INSERT INTO spell_target_position VALUES(70746, 0, 580, 1783.02, 659.59, 71.20, 2.20);
DELETE FROM creature_addon WHERE guid IN( SELECT guid FROM creature WHERE id IN(37523));
DELETE FROM creature WHERE id IN(37523);
INSERT INTO `creature` VALUES (NULL, 37523, 530, 1, 1, 0, 0, 12556.9, -6770.12, 15.0919, 6.25983, 300, 0, 0, 41, 60, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 37523, 530, 1, 1, 0, 0, 12556.7, -6779.32, 15.0386, 0.000207424, 300, 0, 0, 41, 60, 0, 0, 0, 0);
DELETE FROM gossip_menu WHERE entry=37523 AND text_id=15240;
INSERT INTO gossip_menu VALUES(37523, 15240);
DELETE FROM gossip_menu_option WHERE menu_id=37523 AND option_text LIKE '%I''m ready to enter the Sunwell%';
REPLACE INTO gossip_menu_option VALUES(37523, 0, 0, 'I''m ready to enter the Sunwell.', 1, 1, 0, 0, 0, 0, '');
DELETE FROM conditions WHERE SourceTypeOrReferenceId IN(14,15) AND SourceGroup=37523;
INSERT INTO conditions VALUES(14, 37523, 15240, 0, 0, 9, 0, 24553, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(14, 37523, 15240, 0, 1, 9, 0, 24564, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(14, 37523, 15240, 0, 2, 9, 0, 24594, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(14, 37523, 15240, 0, 3, 9, 0, 24595, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(14, 37523, 15240, 0, 4, 9, 0, 24596, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(14, 37523, 15240, 0, 5, 9, 0, 24598, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(15, 37523, 0, 0, 0, 9, 0, 24553, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(15, 37523, 0, 0, 1, 9, 0, 24564, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(15, 37523, 0, 0, 2, 9, 0, 24594, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(15, 37523, 0, 0, 3, 9, 0, 24595, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(15, 37523, 0, 0, 4, 9, 0, 24596, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(15, 37523, 0, 0, 5, 9, 0, 24598, 0, 0, 0, 0, 0, '', '');
UPDATE item_template SET ScriptName='' WHERE entry IN(49879, 49889);
REPLACE INTO spell_script_names VALUES(70548, 'spell_bh_cleanse_quel_delar');
REPLACE INTO spell_script_names VALUES(70477, 'spell_bh_cleanse_quel_delar');
UPDATE gameobject_template SET flags=16 WHERE entry=201794;
DELETE FROM gameobject WHERE id=201794;
DELETE FROM event_scripts WHERE id IN(22833, 22854);
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=70466;
INSERT INTO `conditions` VALUES (13, 1, 70466, 0, 0, 31, 0, 3, 37000, 0, 0, 0, 0, '', 'Sunwell Light Ray (The Purification of Quel''Delar)');
DELETE FROM waypoint_data WHERE id IN(3776300, 3776400, 3776500);
INSERT INTO `waypoint_data` VALUES (3776300, 1, 1671.68, 618.795, 28.0503, 0, 0, 0, 0, 100, 0);
INSERT INTO `waypoint_data` VALUES (3776300, 2, 1679.77, 621.26, 28.1748, 0, 0, 0, 0, 100, 0);
INSERT INTO `waypoint_data` VALUES (3776400, 1, 1674.75, 616.184, 28.0504, 0, 0, 0, 0, 100, 0);
INSERT INTO `waypoint_data` VALUES (3776400, 2, 1680.19, 618.883, 28.2728, 0, 0, 0, 0, 100, 0);
INSERT INTO `waypoint_data` VALUES (3776500, 1, 1681.22, 612.877, 28.4345, 0, 0, 0, 0, 100, 0);
INSERT INTO `waypoint_data` VALUES (3776500, 2, 1683.17, 614.606, 28.2502, 0, 0, 0, 0, 100, 0);
-- go Portal to Dalaran (195682)
DELETE FROM gameobject WHERE id=195682 AND `map`=580;
INSERT INTO `gameobject` VALUES (NULL, 195682, 580, 1, 2048, 1666.13, 662.584, 28.0504, 5.44551, 0, 0, 0.916432, -0.400191, 300, 0, 1, 0);
INSERT INTO `gameobject` VALUES (NULL, 195682, 580, 1, 2048, 1732.62, 594.658, 28.0503, 2.27643, 0, 0, 0.907888, 0.419214, 300, 0, 1, 0);
-- go TEMP Sunwell (201796)
DELETE FROM gameobject WHERE id IN(201796, 300246) AND `map`=580;
INSERT INTO `gameobject` VALUES (NULL, 201796, 580, 1, 2048, 1689.47, 622.197, 27.8568, 3.69591, 0, 0, 0.961836, -0.273625, 300, 0, 1, 0);
-- npc Sunwell Honor Guard (37781)
UPDATE creature_template SET IconName='', minlevel=80, maxlevel=80, unit_flags=0, AIName='NullCreatureAI', ScriptName='' WHERE entry=37781;
DELETE FROM creature_addon WHERE guid IN( SELECT guid FROM creature WHERE id IN(37781));
DELETE FROM creature WHERE id IN(37781);
INSERT INTO `creature` VALUES (NULL, 37781, 580, 1, 2048, 0, 0, 1793.8, 661.515, 71.1943, 2.194, 300, 0, 0, 126, 0, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 37781, 580, 1, 2048, 0, 0, 1776.09, 652.853, 71.1943, 2.17044, 300, 0, 0, 126, 0, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 37781, 580, 1, 2048, 0, 0, 1769.97, 650.558, 71.1914, 1.95623, 300, 0, 0, 126, 0, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 37781, 580, 1, 2048, 0, 0, 1764.82, 663.761, 71.1902, 0.638909, 300, 0, 0, 126, 0, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 37781, 580, 1, 2048, 0, 0, 1760.28, 670.492, 71.1902, 0.674254, 300, 0, 0, 126, 0, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 37781, 580, 1, 2048, 0, 0, 1748.59, 683.721, 71.1902, 0.623205, 300, 0, 0, 126, 0, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 37781, 580, 1, 2048, 0, 0, 1742.9, 688.146, 71.1902, 1.0591, 300, 0, 0, 126, 0, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 37781, 580, 1, 2048, 0, 0, 1727.47, 696.601, 71.1902, 1.10622, 300, 0, 0, 126, 0, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 37781, 580, 1, 2048, 0, 0, 1718.79, 698.847, 71.1902, 1.34184, 300, 0, 0, 126, 0, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 37781, 580, 1, 2048, 0, 0, 1704.8, 720.264, 71.058, 4.78581, 300, 0, 0, 126, 0, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 37781, 580, 1, 2048, 0, 0, 1727.06, 716.86, 71.1904, 4.48343, 300, 0, 0, 126, 0, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 37781, 580, 1, 2048, 0, 0, 1748.77, 709.204, 71.1904, 4.24389, 300, 0, 0, 126, 0, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 37781, 580, 1, 2048, 0, 0, 1767.5, 697.132, 71.1904, 3.91795, 300, 0, 0, 126, 0, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 37781, 580, 1, 2048, 0, 0, 1781.84, 680.202, 71.1904, 3.67448, 300, 0, 0, 126, 0, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 37781, 580, 1, 2048, 0, 0, 1683.62, 624.152, 27.3538, 3.42313, 300, 0, 0, 126, 0, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 37781, 580, 1, 2048, 0, 0, 1688.26, 616.497, 27.3452, 3.95328, 300, 0, 0, 126, 0, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 37781, 580, 1, 2048, 0, 0, 1672.48, 631.053, 28.0503, 4.5541, 300, 0, 0, 126, 0, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 37781, 580, 1, 2048, 0, 0, 1674.14, 638.984, 28.0503, 4.49519, 300, 0, 0, 126, 0, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 37781, 580, 1, 2048, 0, 0, 1665.48, 640.896, 28.0503, 4.49519, 300, 0, 0, 126, 0, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 37781, 580, 1, 2048, 0, 0, 1663.75, 633.058, 28.0503, 4.49519, 300, 0, 0, 126, 0, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 37781, 580, 1, 2048, 0, 0, 1662.86, 658.458, 28.0503, 5.59866, 300, 0, 0, 126, 0, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 37781, 580, 1, 2048, 0, 0, 1670.23, 665.44, 28.0503, 5.41408, 300, 0, 0, 126, 0, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 37781, 580, 1, 2048, 0, 0, 1727.98, 591.396, 28.0505, 2.23714, 300, 0, 0, 126, 0, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 37781, 580, 1, 2048, 0, 0, 1735.87, 599.171, 28.0505, 2.41386, 300, 0, 0, 126, 0, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 37781, 580, 1, 2048, 0, 0, 1632.77, 627.612, 32.9608, 3.26994, 300, 0, 0, 126, 0, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 37781, 580, 1, 2048, 0, 0, 1635.69, 610.968, 33.3212, 3.45451, 300, 0, 0, 126, 0, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 37781, 580, 1, 2048, 0, 0, 1638.94, 602.943, 33.3212, 3.5252, 300, 0, 0, 126, 0, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 37781, 580, 1, 2048, 0, 0, 1649.73, 588.163, 33.3212, 3.86292, 300, 0, 0, 126, 0, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 37781, 580, 1, 2048, 0, 0, 1654.74, 583.131, 33.3212, 4.03963, 300, 0, 0, 126, 0, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 37781, 580, 1, 2048, 0, 0, 1669.38, 573.631, 33.3212, 4.2242, 300, 0, 0, 126, 0, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 37781, 580, 1, 2048, 0, 0, 1677.1, 570.175, 33.3212, 4.29488, 300, 0, 0, 126, 0, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 37781, 580, 1, 2048, 0, 0, 1614.89, 598.706, 33.3211, 0.367885, 300, 0, 0, 126, 0, 0, 0, 0, 0);
DELETE FROM creature_text WHERE entry=37781;
INSERT INTO creature_text VALUES (37781, 0, 0, 'Can that really be Quel''Delar?', 12, 0, 100, 1, 0, 0, 0, 'Sunwell Honor Guard');
-- npc Sunwell Guardian (36991)
UPDATE creature_template SET minlevel=80, maxlevel=80, unit_flags=0, AIName='NullCreatureAI', ScriptName='' WHERE entry=36991;
DELETE FROM creature_addon WHERE guid IN( SELECT guid FROM creature WHERE id IN(36991));
DELETE FROM creature WHERE id IN(36991);
INSERT INTO `creature` VALUES (NULL, 36991, 580, 1, 2048, 0, 0, 1744.84, 621.776, 28.0503, 3.00868, 300, 0, 0, 84, 0, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 36991, 580, 1, 2048, 0, 0, 1694.93, 674.09, 28.0503, 4.76796, 300, 0, 0, 84, 0, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 36991, 580, 1, 2048, 0, 0, 1653.75, 634.033, 28.085, 6.10314, 300, 0, 0, 84, 0, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 36991, 580, 1, 2048, 0, 0, 1704.09, 583.276, 28.182, 1.75203, 300, 0, 0, 84, 0, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 36991, 580, 1, 2048, 0, 0, 1658.87, 545.124, 33.3213, 1.16691, 300, 0, 0, 84, 0, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 36991, 580, 1, 2048, 0, 0, 1640.45, 558.392, 33.3213, 0.856672, 300, 0, 0, 84, 0, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 36991, 580, 1, 2048, 0, 0, 1625.67, 577.498, 33.3213, 0.628905, 300, 0, 0, 84, 0, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 36991, 580, 1, 2048, 0, 0, 1619.75, 634.382, 33.486, 4.90934, 300, 0, 0, 84, 0, 0, 0, 0, 0);
-- npc Blood Elf Pilgrim (38047)
UPDATE creature_template SET minlevel=80, maxlevel=80, unit_flags=0, AIName='NullCreatureAI', ScriptName='' WHERE entry=38047;
DELETE FROM creature_addon WHERE guid IN( SELECT guid FROM creature WHERE id IN(38047));
DELETE FROM creature WHERE id IN(38047);
INSERT INTO `creature` VALUES (NULL, 38047, 580, 1, 2048, 0, 0, 1704.05, 656.947, 28.0503, 4.53049, 300, 0, 0, 41, 60, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 38047, 580, 1, 2048, 0, 0, 1701.32, 657.371, 28.0503, 4.61296, 300, 0, 0, 41, 60, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 38047, 580, 1, 2048, 0, 0, 1707.11, 656.197, 28.0503, 4.4873, 300, 0, 0, 41, 60, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 38047, 580, 1, 2048, 0, 0, 1706.31, 658.903, 28.0503, 4.53049, 300, 0, 0, 41, 60, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 38047, 580, 1, 2048, 0, 0, 1702.88, 659.398, 28.0503, 4.55014, 300, 0, 0, 41, 60, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 38047, 580, 1, 2048, 0, 0, 1699.66, 659.52, 28.0503, 4.68366, 300, 0, 0, 41, 60, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 38047, 580, 1, 2048, 0, 0, 1682.23, 633.38, 27.638, 6.01488, 300, 0, 0, 41, 60, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 38047, 580, 1, 2048, 0, 0, 1683.64, 636.337, 27.6529, 5.82246, 300, 0, 0, 41, 60, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 38047, 580, 1, 2048, 0, 0, 1685.62, 638.985, 27.6363, 5.59078, 300, 0, 0, 41, 60, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 38047, 580, 1, 2048, 0, 0, 1700.1, 610.616, 27.6777, 1.69127, 300, 0, 0, 41, 60, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 38047, 580, 1, 2048, 0, 0, 1702.86, 611.087, 27.6827, 1.85227, 300, 0, 0, 41, 60, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 38047, 580, 1, 2048, 0, 0, 1705.7, 612.287, 27.6113, 1.99757, 300, 0, 0, 41, 60, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 38047, 580, 1, 2048, 0, 0, 1716.75, 632.675, 27.7991, 3.43485, 300, 0, 0, 41, 60, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 38047, 580, 1, 2048, 0, 0, 1667.75, 625.38, 28.0504, 5.73998, 300, 0, 0, 41, 60, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 38047, 580, 1, 2048, 0, 0, 1669.28, 624.177, 28.0504, 2.57876, 300, 0, 0, 41, 60, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 38047, 580, 1, 2048, 0, 0, 1690.91, 605.88, 28.3581, 3.61548, 300, 0, 0, 41, 60, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 38047, 580, 1, 2048, 0, 0, 1688.99, 604.902, 28.0608, 0.489597, 300, 0, 0, 41, 60, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 38047, 580, 1, 2048, 0, 0, 1692.36, 582.342, 29.06, 0.230404, 300, 0, 0, 41, 60, 0, 0, 0, 0);
INSERT INTO `creature` VALUES (NULL, 38047, 580, 1, 2048, 0, 0, 1695.1, 583.061, 28.2018, 3.56442, 300, 0, 0, 41, 60, 0, 0, 0, 0);
INSERT INTO creature_addon (SELECT guid, 0, 0, 8, 1, 0, '' FROM creature WHERE id=38047 ORDER BY guid ASC LIMIT 0,13);
INSERT INTO creature_addon (SELECT guid, 0, 0, 0, 1, 378, '' FROM creature WHERE id=38047 ORDER BY guid ASC LIMIT 13, 6);
-- npc Sunwell Caster Bunny (37746)
UPDATE creature_template SET modelid1=11686, modelid2=0, scale=1, minlevel=80, maxlevel=80, unit_flags=33554432, InhabitType=4, AIName='NullCreatureAI', ScriptName='', flags_extra=0 WHERE entry=37746;
REPLACE INTO creature_template_addon VALUES(37746, 0, 0, 50331648, 1, 0, '46822 70474');
DELETE FROM creature_addon WHERE guid IN( SELECT guid FROM creature WHERE id IN(37746));
DELETE FROM creature WHERE id IN(37746);
INSERT INTO `creature` VALUES (NULL, 37746, 580, 1, 2048, 0, 0, 1698.87, 628.417, 28.1989, 3.6959, 300, 0, 0, 42, 0, 0, 0, 0, 0);
-- npc Sunwell Visual Bunny (37000)
UPDATE creature_template SET modelid1=11686, modelid2=0, unit_flags=33554432, InhabitType=4, AIName='NullCreatureAI', ScriptName='', flags_extra=0 WHERE entry=37000;
DELETE FROM creature_addon WHERE guid IN( SELECT guid FROM creature WHERE id IN(37000));
DELETE FROM creature WHERE id IN(37000);
-- Grand Magister Rommath (37763)
UPDATE creature_template SET minlevel=80, maxlevel=80, unit_flags=0, AIName='', ScriptName='npc_grand_magister_rommath' WHERE entry=37763;
DELETE FROM creature_addon WHERE guid IN( SELECT guid FROM creature WHERE id IN(37763));
DELETE FROM creature WHERE id IN(37763);
INSERT INTO `creature` VALUES (NULL, 37763, 580, 1, 2048, 0, 0, 1662.56, 622.758, 28.0502, 4.8897, 300, 0, 0, 8200, 1200, 0, 0, 0, 0);
DELETE FROM creature_text WHERE entry=37763;
INSERT INTO creature_text VALUES (37763, 0, 0, 'Look at it, Lor''themar. It is certainly Quel''Delar.', 12, 0, 100, 1, 0, 0, 0, 'Grand Magister Rommath');
INSERT INTO creature_text VALUES (37763, 1, 0, 'The regent speaks truly, $N. Thalorien''s sacrifice could not prevent the fall of this very Sunwell.', 12, 0, 100, 1, 0, 0, 0, 'Grand Magister Rommath');
INSERT INTO creature_text VALUES (37763, 2, 0, 'When you found the sword, it was broken and abandoned, much like Silvermoon after Kael''thas''s betrayal.', 12, 0, 100, 1, 0, 0, 0, 'Grand Magister Rommath');
INSERT INTO creature_text VALUES (37763, 3, 0, 'Let Quel''Delar be a sign that we will never give up, that we will face any enemy without fear.', 12, 0, 100, 1, 0, 0, 0, 'Grand Magister Rommath');
INSERT INTO creature_text VALUES (37763, 4, 0, 'Reclaim the sword, $N, and bear it through that portal to Dalaran. Archmage Aethas Sunreaver will be waiting to congratulate you.', 12, 0, 100, 1, 0, 0, 0, 'Grand Magister Rommath');
INSERT INTO creature_text VALUES (37763, 5, 0, 'Reclaim the sword, $N, and bear it through that portal to Dalaran. Vereesa Windrunner will be waiting to congratulate you.', 12, 0, 100, 1, 0, 0, 0, 'Grand Magister Rommath');
-- Chamberlain Galiros (38056)
UPDATE creature_template SET minlevel=80, maxlevel=80, unit_flags=0, AIName='NullCreatureAI', ScriptName='' WHERE entry=38056;
DELETE FROM creature_addon WHERE guid IN( SELECT guid FROM creature WHERE id IN(38056));
DELETE FROM creature WHERE id IN(38056);
INSERT INTO `creature` VALUES (NULL, 38056, 580, 1, 2048, 0, 0, 1671.49, 606.427, 28.0503, 3.79407, 300, 0, 0, 41, 60, 0, 0, 0, 0);
DELETE FROM creature_text WHERE entry=38056;
INSERT INTO creature_text VALUES (38056, 0, 0, 'My lords and ladies, I present $N, bearer of Quel''Delar.', 14, 0, 100, 1, 0, 0, 0, 'Chamberlain Galiros');
-- Lor'themar Theron (37764)
UPDATE creature_template SET minlevel=80, maxlevel=80, unit_flags=0, AIName='NullCreatureAI', ScriptName='' WHERE entry=37764;
DELETE FROM creature_addon WHERE guid IN( SELECT guid FROM creature WHERE id IN(37764));
DELETE FROM creature WHERE id IN(37764);
INSERT INTO `creature` VALUES (NULL, 37764, 580, 1, 2048, 0, 0, 1666.48, 620.999, 28.0504, 5.00359, 300, 0, 0, 16400, 1800, 0, 0, 0, 0);
DELETE FROM creature_text WHERE entry=37764;
INSERT INTO creature_text VALUES (37764, 0, 0, 'We shall see.', 12, 0, 100, 1, 0, 0, 0, 'Lor''themar Theron');
INSERT INTO creature_text VALUES (37764, 1, 0, 'It is indeed Quel''Delar. I had not thought I''d live to see the day when Thalorien Dawnseeker''s legendary sword would be restored to us.', 12, 0, 100, 1, 0, 0, 0, 'Lor''themar Theron');
INSERT INTO creature_text VALUES (37764, 2, 0, 'You are a hero and an inspiration to the sin''dorei, $N, a symbol of our endurance in the face of tragedy and treachery.', 12, 0, 100, 1, 0, 0, 0, 'Lor''themar Theron');
-- Captain Auric Sunchaser (37765)
UPDATE creature_template SET minlevel=80, maxlevel=80, unit_flags=0, AIName='NullCreatureAI', ScriptName='' WHERE entry=37765;
DELETE FROM creature_addon WHERE guid IN( SELECT guid FROM creature WHERE id IN(37765));
DELETE FROM creature WHERE id IN(37765);
INSERT INTO `creature` VALUES (NULL, 37765, 580, 1, 2048, 0, 0, 1686.1, 607.186, 28.1281, 1.99552, 300, 0, 0, 42, 0, 0, 0, 0, 0);
DELETE FROM creature_text WHERE entry=37765;
INSERT INTO creature_text VALUES (37765, 0, 0, 'Quel''Delar is not held in high esteem by the sin''dorei alone. It holds a place in the heart of all children of Silvermoon.', 12, 0, 100, 1, 0, 0, 0, 'Captain Auric Sunchaser');
INSERT INTO creature_text VALUES (37765, 1, 0, 'This blade has been returned to us for a reason, my lords. Now is the time to rally behind the bearer of Quel''Delar and avenge the destruction of Silvermoon and the Sunwell.', 12, 0, 100, 1, 0, 0, 0, 'Captain Auric Sunchaser');

-- -------------------------------------------
-- SHADOWMOURNE CHAIN
-- -------------------------------------------

-- quest The Sacred and the Corrupt (24545)
REPLACE INTO areatrigger_scripts VALUES(5650, 'at_q24545_frostmourne_cavern');
-- spells: phase (70889), stun (70583), repel hammer (70590), throw (70595), light (70571), summon go (70603), despawn anim (70673), zap player (70653)
-- summon ghouls (70612, 70614, 70617), summon vegard (70644), shield of the lk (70692), vegard summon ghouls (70737, 70743), summon veh2 (70606), hammer shield (70970), holy bomb (70785, 70786)
-- ghoul explode (70787), zap ghouls aura (70789, 70790), kill vegard (70792), vegard shield 2 (70731), summon LV2 (70894), summon LV3 (70967), vegard death (70822), summon vegard skeleton (70862)
DELETE FROM spell_script_names WHERE spell_id IN(70889, 70583, 70590, 70595, 70571, 70603, 70673, 70653, 70612, 70614, 70617, 70644, 70692, 70737, 70743, 70606, 70970, 70785, 70786, 70787, 70789, 70790, 70792, 70731, 70894, 70967, 70822, 70862, -70889, -70583, -70590, -70595, -70571, -70603, -70673, -70653, -70612, -70614, -70617, -70644, -70692, -70737, -70743, -70606, -70970, -70785, -70786, -70787, -70789, -70790, -70792, -70731, -70894, -70967, -70822, -70862);
DELETE FROM spell_scripts WHERE id IN(70889, 70583, 70590, 70595, 70571, 70603, 70673, 70653, 70612, 70614, 70617, 70644, 70692, 70737, 70743, 70606, 70970, 70785, 70786, 70787, 70789, 70790, 70792, 70731, 70894, 70967, 70822, 70862, -70889, -70583, -70590, -70595, -70571, -70603, -70673, -70653, -70612, -70614, -70617, -70644, -70692, -70737, -70743, -70606, -70970, -70785, -70786, -70787, -70789, -70790, -70792, -70731, -70894, -70967, -70822, -70862);
DELETE FROM spell_linked_spell WHERE spell_trigger IN(70889, 70583, 70590, 70595, 70571, 70603, 70673, 70653, 70612, 70614, 70617, 70644, 70692, 70737, 70743, 70606, 70970, 70785, 70786, 70787, 70789, 70790, 70792, 70731, 70894, 70967, 70822, 70862, -70889, -70583, -70590, -70595, -70571, -70603, -70673, -70653, -70612, -70614, -70617, -70644, -70692, -70737, -70743, -70606, -70970, -70785, -70786, -70787, -70789, -70790, -70792, -70731, -70894, -70967, -70822, -70862) OR spell_effect IN(70889, 70583, 70590, 70595, 70571, 70603, 70673, 70653, 70612, 70614, 70617, 70644, 70692, 70737, 70743, 70606, 70970, 70785, 70786, 70787, 70789, 70790, 70792, 70731, 70894, 70967, 70822, 70862, -70889, -70583, -70590, -70595, -70571, -70603, -70673, -70653, -70612, -70614, -70617, -70644, -70692, -70737, -70743, -70606, -70970, -70785, -70786, -70787, -70789, -70790, -70792, -70731, -70894, -70967, -70822, -70862);
DELETE FROM conditions WHERE SourceTypeOrReferenceId IN(13, 17) AND SourceEntry IN(70889, 70583, 70590, 70595, 70571, 70603, 70673, 70653, 70612, 70614, 70617, 70644, 70692, 70737, 70743, 70606, 70970, 70785, 70786, 70787, 70789, 70790, 70792, 70731, 70894, 70967, 70822, 70862, -70889, -70583, -70590, -70595, -70571, -70603, -70673, -70653, -70612, -70614, -70617, -70644, -70692, -70737, -70743, -70606, -70970, -70785, -70786, -70787, -70789, -70790, -70792, -70731, -70894, -70967, -70822, -70862);
DELETE FROM spell_area WHERE spell=70889 AND quest_start=24545;
INSERT INTO spell_area VALUES(70889, 4192, 24545, 0, 0, 0, 2, 1, 10, 0);
INSERT INTO conditions VALUES (13, 3, 70590, 0, 0, 31, 0, 3, 37826, 0, 0, 0, 0, '', 'The Sacred and the Corrupt');
INSERT INTO conditions VALUES (13, 1, 70595, 0, 0, 31, 0, 3, 38001, 0, 0, 0, 0, '', 'The Sacred and the Corrupt');
INSERT INTO conditions VALUES (13, 1, 70614, 0, 0, 31, 0, 3, 37881, 0, 0, 0, 0, '', 'The Sacred and the Corrupt');
INSERT INTO conditions VALUES (13, 1, 70743, 0, 0, 31, 0, 3, 37881, 0, 0, 0, 0, '', 'The Sacred and the Corrupt');
INSERT INTO conditions VALUES (13, 1, 70790, 0, 0, 31, 0, 3, 37881, 0, 0, 0, 0, '', 'The Sacred and the Corrupt');
INSERT INTO spell_linked_spell VALUES(70590, 70595, 1, 'The Sacred and the Corrupt');
INSERT INTO spell_script_names VALUES(70614, 'spell_q24545_aod_special');
INSERT INTO spell_linked_spell VALUES(70653, -70583, 1, 'The Sacred and the Corrupt');
INSERT INTO spell_script_names VALUES(70743, 'spell_q24545_aod_special');
REPLACE INTO spell_target_position VALUES(70606, 0, 571, 4812.09, -585.55, 172.03, 3.75);
INSERT INTO spell_script_names VALUES(70790, 'spell_q24545_aod_special');
INSERT INTO conditions VALUES (13, 1, 70792, 0, 0, 31, 0, 3, 37893, 0, 0, 0, 0, '', 'The Sacred and the Corrupt');
UPDATE creature_template SET mindmg=140, maxdmg=180, attackpower=0, dmg_multiplier=1 WHERE entry=37881;


-- Lich King (37857)
UPDATE creature_template SET exp=2, speed_walk=1.4, minlevel=83, maxlevel=83, faction=14, unit_flags=2, flags_extra=2, AIName='', ScriptName='npc_q24545_lich_king' WHERE entry=37857;
DELETE FROM creature_addon WHERE guid IN( SELECT guid FROM creature WHERE id IN(37857) );
DELETE FROM creature WHERE id IN(37857);
DELETE FROM creature_template_addon WHERE entry=37857;
INSERT INTO `creature` VALUES (NULL, 37857, 571, 1, 2, 0, 0, 4839.46, -590.619, 160.111, 2.75749, 300, 0, 0, 82000, 120000, 0, 0, 0, 0);
DELETE FROM creature_text WHERE entry=37857;
INSERT INTO creature_text VALUES (37857, 0, 0, 'So predictable...', 12, 0, 100, 1, 0, 17252, 0, 'Lich King');
INSERT INTO creature_text VALUES (37857, 1, 0, 'Did you truly expect to fulfil Mograine''s task unopposed?', 12, 0, 100, 1, 0, 17253, 0, 'Lich King');
INSERT INTO creature_text VALUES (37857, 2, 0, 'You shall both suffer as his father does...', 12, 0, 100, 1, 0, 17254, 0, 'Lich King');
INSERT INTO creature_text VALUES (37857, 3, 0, '...in eternal unrest!', 12, 0, 100, 1, 0, 17255, 0, 'Lich King');
INSERT INTO creature_text VALUES (37857, 4, 0, 'Die well, fool.', 12, 0, 100, 1, 0, 17256, 0, 'Lich King');

-- Light's Vengeance (37826)
UPDATE creature_template SET modelid1=30792, modelid2=0, unit_flags=33554432, flags_extra=2, AIName='NullCreatureAI', ScriptName='' WHERE entry=37826;
DELETE FROM creature_addon WHERE guid IN( SELECT guid FROM creature WHERE id IN(37826) );
DELETE FROM creature WHERE id IN(37826);
DELETE FROM creature_template_addon WHERE entry=37826;

-- Light's Vengeance Vehicle Bunny (37827)
UPDATE creature_template SET modelid1=26241, modelid2=0, unit_flags=33554432, flags_extra=2, AIName='NullCreatureAI', ScriptName='' WHERE entry=37827;
DELETE FROM creature_addon WHERE guid IN( SELECT guid FROM creature WHERE id IN(37827) );
DELETE FROM creature WHERE id IN(37827);
DELETE FROM creature_template_addon WHERE entry=37827;
INSERT INTO creature VALUES (NULL, 37827, 571, 1, 2, 0, 0, 4812.28, -585.435, 162.473, 6.24075, 300, 0, 0, 42, 0, 0, 0, 0, 0);
DELETE FROM vehicle_template_accessory WHERE entry=37827;

-- Light's Vengeance Vehicle Bunny 2 (37952)
UPDATE creature_template SET modelid1=26241, modelid2=0, unit_flags=33554432, flags_extra=2, AIName='NullCreatureAI', ScriptName='' WHERE entry=37952;
DELETE FROM creature_addon WHERE guid IN( SELECT guid FROM creature WHERE id IN(37952) );
DELETE FROM creature WHERE id IN(37952);
DELETE FROM creature_template_addon WHERE entry=37952;
DELETE FROM vehicle_template_accessory WHERE entry=37952;

-- Light's Vengeance Bunny 2 (38001)
UPDATE creature_template SET modelid1=21342, modelid2=0, unit_flags=33554432, flags_extra=2, AIName='NullCreatureAI', ScriptName='' WHERE entry=38001;
DELETE FROM creature_addon WHERE guid IN( SELECT guid FROM creature WHERE id IN(38001) );
DELETE FROM creature WHERE id IN(38001);
DELETE FROM creature_template_addon WHERE entry=38001;
INSERT INTO `creature` VALUES (NULL, 38001, 571, 1, 2, 0, 0, 4802.14, -628.632, 159.93, 1.7247, 300, 0, 0, 41, 60, 0, 0, 0, 0);

-- Light's Vengeance (201844) -- the one without loot
REPLACE INTO `gameobject_template` VALUES (201844, 10, 8213, 'Light''s Vengeance', '', 'Opening', '', 0, 16, 2, 0, 0, 0, 0, 0, 0, 1691, 0, 22966, 3, 0, 1, 0, 0, 0, 0, 70606, 0, 0, 0, 37521, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'SmartGameObjectAI', '', 11723);
DELETE FROM gameobject WHERE id=201844;
DELETE FROM event_scripts WHERE id=22966;
DELETE FROM smart_scripts WHERE entryorguid=201844 AND source_type=1;
INSERT INTO `smart_scripts` VALUES (201844, 1, 0, 0, 64, 0, 100, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 19, 37857, 150, 0, 0, 0, 0, 0, 'On gossip hello');

-- Wretched Ghoul (37881)
UPDATE creature_template SET exp=2, minlevel=80, maxlevel=80, faction=14, mindmg=225, maxdmg=280, dmg_multiplier=1, attackpower=0, unit_flags=0, AIName='', ScriptName='npc_q24545_wretched_ghoul' WHERE entry=37881;
DELETE FROM creature_addon WHERE guid IN( SELECT guid FROM creature WHERE id IN(37881) );
DELETE FROM creature WHERE id IN(37881);
DELETE FROM creature_template_addon WHERE entry=37881;
INSERT INTO `creature` VALUES (NULL, 37881, 571, 1, 2, 0, 0, 4788.87, -591.278, 160.685, 6.07812, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4782.1, -595.865, 161.623, 1.14975, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4779.36, -589.88, 162.02, 0.427186, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4776.23, -595.374, 162.528, 5.73648, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4771.56, -592.481, 163.213, 1.20081, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4771.94, -598.419, 163.274, 5.29665, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4781.69, -603.517, 161.652, 4.41702, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4789.41, -604.319, 160.572, 5.88571, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4793.75, -601.728, 160.265, 1.46785, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4799.79, -602.21, 159.613, 1.81342, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4806, -604.486, 159.325, 5.88572, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4800.63, -606.173, 159.563, 3.31354, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4794.19, -606.728, 159.864, 2.56348, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4789.79, -611.41, 159.989, 4.00861, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4790.36, -618.609, 159.635, 4.71547, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4793.98, -613.599, 159.808, 1.95873, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4798.23, -610.508, 159.634, 1.75452, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4800.96, -615.105, 159.585, 5.49302, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4806.06, -611.083, 159.39, 0.839535, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4807.81, -618.722, 159.332, 4.19711, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4799.68, -620.129, 159.778, 3.61592, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4792.5, -623.816, 159.662, 3.61592, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4792.06, -629.227, 159.942, 4.8215, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4794.94, -634.321, 160.338, 5.75612, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4801.45, -635.345, 160.071, 1.00446, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4799.61, -629.666, 160.202, 1.94694, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4797.09, -625.085, 159.881, 1.3736, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4803.37, -624.783, 159.746, 1.3736, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4807.62, -625.632, 159.317, 1.3736, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4805.03, -629.707, 159.637, 3.4824, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4809.64, -632.055, 159.142, 3.40778, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4813.11, -627.492, 158.792, 3.41956, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4806.84, -636.231, 159.544, 3.28998, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4799.16, -639.599, 160.446, 3.32925, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4798.58, -634.014, 160.378, 2.159, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4795.76, -628.323, 160.022, 1.8527, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4803.62, -619.741, 159.712, 3.67875, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4795.38, -617.104, 159.733, 2.71664, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4802.76, -609.556, 159.494, 2.97188, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4810.49, -614.486, 159.121, 5.10816, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4813.96, -620.089, 158.71, 4.77044, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4811.73, -608.189, 159.574, 1.95478, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4801.28, -625.861, 159.983, 5.26131, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4804.28, -641.322, 160.041, 4.80971, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4811.82, -637.026, 158.922, 0.270107, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4790.59, -637.229, 161.362, 3.39207, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4794.49, -596.024, 160.094, 1.30291, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4809.68, -558.498, 162.1, 4.68798, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4824.73, -560.372, 160.361, 6.06636, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4832.98, -564.232, 160.937, 3.56487, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4791.54, -562.263, 162.06, 4.7783, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4817.73, -640.568, 158.151, 3.25071, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4810.56, -643.095, 159.119, 3.22715, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4816.99, -632.972, 158.36, 1.33042, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4826.6, -628.041, 157.768, 2.72842, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4824.64, -633.93, 157.742, 2.51244, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4822.04, -637.816, 157.846, 2.55171, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4820.63, -644.616, 157.853, 2.80697, 6, 0, 0, 13, 0, 0, 0, 0, 0),(NULL, 37881, 571, 1, 2, 0, 0, 4824.09, -619.479, 157.964, 4.32671, 6, 0, 0, 13, 0, 0, 0, 0, 0);

-- Vegard the Unforgiven (37893)
UPDATE creature_template SET exp=2, minlevel=80, maxlevel=80, faction=14, unit_flags=2, AIName='', ScriptName='npc_q24545_vegard_dummy' WHERE entry=37893;
DELETE FROM creature_addon WHERE guid IN( SELECT guid FROM creature WHERE id IN(37893) );
DELETE FROM creature WHERE id IN(37893);
DELETE FROM creature_template_addon WHERE entry=37893;
DELETE FROM creature_text WHERE entry=37893;
INSERT INTO creature_text VALUES (37893, 0, 0, 'I hear and obey, master...', 12, 0, 100, 1, 0, 17073, 0, 'Vegard the Unforgiven');

-- Lich King Stun Bunny (37832)
UPDATE creature_template SET modelid1=11686, modelid2=0 WHERE entry=37832;

-- Light's Vengeance (201922)
DELETE FROM gameobject WHERE id=201922;
REPLACE INTO `gameobject_template` VALUES (201922, 10, 8213, 'Light''s Vengeance', '', 'Opening', '', 0, 0, 2, 0, 0, 0, 0, 0, 0, 1691, 0, 23299, 3, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 37521, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'SmartGameObjectAI', '', 11723);
DELETE FROM event_scripts WHERE id=23299;
DELETE FROM smart_scripts WHERE entryorguid=201922 AND source_type=1;
INSERT INTO `smart_scripts` VALUES (201922, 1, 0, 0, 64, 0, 100, 0, 0, 0, 0, 0, 45, 2, 2, 0, 0, 0, 0, 19, 37857, 150, 0, 0, 0, 0, 0, 'On gossip hello');

-- Vegard the Unforgiven (37976)
UPDATE creature_template SET exp=2, minlevel=80, maxlevel=80, faction=14, mindmg=1500, maxdmg=2000, dmg_multiplier=1, attackpower=0, unit_flags=0, AIName='', ScriptName='npc_q24545_vegard' WHERE entry=37976;
DELETE FROM creature_addon WHERE guid IN( SELECT guid FROM creature WHERE id IN(37976) );
DELETE FROM creature WHERE id IN(37976);
DELETE FROM creature_template_addon WHERE entry=37976;
DELETE FROM creature_text WHERE entry=37976;
INSERT INTO creature_text VALUES (37976, 0, 0, 'The enemy shall suffer greatly, master!', 12, 0, 100, 1, 0, 17074, 0, 'Vegard the Unforgiven');
INSERT INTO creature_text VALUES (37976, 0, 1, 'Fear not, master. I shall rend the flesh of your enemy!', 12, 0, 100, 1, 0, 17077, 0, 'Vegard the Unforgiven');
INSERT INTO creature_text VALUES (37976, 1, 0, 'Master... I have... failed.', 12, 0, 100, 1, 0, 17076, 0, 'Vegard the Unforgiven');
INSERT INTO creature_text VALUES (37976, 2, 0, 'It is done, master!', 12, 0, 100, 1, 0, 17075, 0, 'Vegard the Unforgiven');

-- Light's Vengeance (201937)
DELETE FROM gameobject WHERE id=201937;
REPLACE INTO gameobject_template VALUES (201937, 3, 8213, "Light's Vengeance", '', '', '', 0, 16, 2, 49869, 0, 0, 0, 0, 0, 1691, 27787, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', '', 11723);

-- A Feast of Souls (24547)
UPDATE quest_template SET OfferRewardText="<Highlord Mograine eyes you in silence for a moment.>$b$bYou seem to have endured this leg of your trial admirably, $r.$b$bPray that fate continues to smile upon you in your endeavor..." WHERE Id=24547;
-- Lich King (37181) (used in ICC Intro)
DELETE FROM creature_text WHERE entry=37181 AND groupid>=20;
INSERT INTO creature_text VALUES (37181, 20, 0, 'Take them mortal! These souls will again be mine soon enough...', 15, 0, 100, 0, 0, 17235, 0, 'A Feast of Souls Lich King (Also ICC Intro)');
INSERT INTO creature_text VALUES (37181, 21, 0, 'Soon, mortal, you too shall have a blade for a prison.', 15, 0, 100, 0, 0, 17236, 0, 'A Feast of Souls Lich King (Also ICC Intro)');
INSERT INTO creature_text VALUES (37181, 22, 0, 'Remember hero: I, too, once sought a weapon of great power...', 15, 0, 100, 0, 0, 17237, 0, 'A Feast of Souls Lich King (Also ICC Intro)');
INSERT INTO creature_text VALUES (37181, 23, 0, 'I see you too are gathering souls for your own ends. Are we really so different, champion?', 15, 0, 100, 0, 0, 17238, 0, 'A Feast of Souls Lich King (Also ICC Intro)');
INSERT INTO creature_text VALUES (37181, 24, 0, 'Yes, do it! Create your monstrous new weapon. It too will serve me when your soul is mine!', 15, 0, 100, 0, 0, 17239, 0, 'A Feast of Souls Lich King (Also ICC Intro)');
INSERT INTO creature_text VALUES (37181, 25, 0, 'Bring me your weapon champion and I might feed it with the souls of its master...', 15, 0, 100, 0, 0, 17240, 0, 'A Feast of Souls Lich King (Also ICC Intro)');
INSERT INTO creature_text VALUES (37181, 26, 0, 'Look at you, child; would-be wielder of souls... You cannot fathom the power that lies at my command.', 15, 0, 100, 0, 0, 17241, 0, 'A Feast of Souls Lich King (Also ICC Intro)');
INSERT INTO creature_text VALUES (37181, 27, 0, 'Come to me, pretender! Feed MY blade!', 15, 0, 100, 0, 0, 17242, 0, 'A Feast of Souls Lich King (Also ICC Intro)');
INSERT INTO creature_text VALUES (37181, 28, 0, 'My challenges have strengthened you champion, you shall serve me well!', 15, 0, 100, 0, 0, 17243, 0, 'A Feast of Souls Lich King (Also ICC Intro)');
INSERT INTO creature_text VALUES (37181, 29, 0, 'Never have I had cause to regret sparing your life, mortal. Always, you find ways to amuse me.', 15, 0, 100, 0, 0, 17244, 0, 'A Feast of Souls Lich King (Also ICC Intro)');
INSERT INTO creature_text VALUES (37181, 30, 0, 'The moment is soon at hand mortal. You shall toil for eternity in a new Azeroth!', 15, 0, 100, 0, 0, 17245, 0, 'A Feast of Souls Lich King (Also ICC Intro)');
INSERT INTO creature_text VALUES (37181, 31, 0, 'More souls, yes, more! You will find it hard to stop.', 15, 0, 100, 0, 0, 17246, 0, 'A Feast of Souls Lich King (Also ICC Intro)');
INSERT INTO creature_text VALUES (37181, 32, 0, 'The hunger your weapon feels is but a shade of what awaits. Do you want to see real hunger? Real power? continue onwards hero! I am waiting.', 15, 0, 100, 0, 0, 17247, 0, 'A Feast of Souls Lich King (Also ICC Intro)');
INSERT INTO creature_text VALUES (37181, 33, 0, 'You stumble about in darkness. There is no light here. No mercy. Icecrown has claimed the souls of better heroes than you.', 15, 0, 100, 0, 0, 17248, 0, 'A Feast of Souls Lich King (Also ICC Intro)');
INSERT INTO creature_text VALUES (37181, 34, 0, 'Your heart... its incessant drumming disgusts me. I will silence it, as I did my own.', 15, 0, 100, 0, 0, 17249, 0, 'A Feast of Souls Lich King (Also ICC Intro)');
INSERT INTO creature_text VALUES (37181, 35, 0, 'The Light will abandon you, hero, just as it did me.', 15, 0, 100, 0, 0, 17250, 0, 'A Feast of Souls Lich King (Also ICC Intro)');

-- Unholy Infusion (24749)
UPDATE quest_template SET OfferRewardText="Well done, $c.$b$bThe completion of our work draws near." WHERE Id=24749;

-- Blood Infusion (24756)
UPDATE quest_template SET OfferRewardText="Well done, $c.$b$bShadowmourne is nearly within reach." WHERE Id=24756;

-- Frost Infusion (24757)
UPDATE quest_template SET OfferRewardText="The axe has drunk its fill, $r, and the forge is nearly ready for the creation of Shadowmourne..." WHERE Id=24757;

-- The Splintered Throne (24548)
UPDATE quest_template SET OfferRewardText="These should suffice, $c.$b$bSpeak to me when Shadow's Edge has been thoroughly empowered and I will attempt its completion." WHERE Id=24548;

-- Shadowmourne... (24549)
UPDATE quest_template SET OfferRewardText="Congratulations, $c.$b$bAgainst insurmountable odds, you have weathered the storm.$b$bI trust that you shall find your reward proportionate to your conviction..." WHERE Id=24549;

-- The Lich King's Last Stand (24748)
UPDATE quest_template SET OfferRewardText="So, at last it is done.$b$bMay the people of Azeroth remember our deeds here forevermore. May the sacrifices of so many burn in their hearts eternally. May they never fail to risk mortal peril in the face of great evil." WHERE Id=24748;

-- Lord Marrowgar Must Die! (24590)
UPDATE quest_template SET OfferRewardText="The Frozen Throne is without its chief guardian thanks to you. Our attacks upon the Lich King's forces will be all the more successful now." WHERE Id=24590;


-- -------------------------------------------
-- ARGENT TOURNAMENT (ICECROWN)
-- -------------------------------------------

-- Rescue At Sea (14136)
-- Rescue At Sea (14152)
DELETE FROM creature_addon WHERE guid IN(SELECT guid FROM creature WHERE id IN(34947, 34907));
DELETE FROM creature WHERE id IN(34947, 34907);
INSERT INTO creature VALUES (53768, 34907, 571, 1, 1, 25632, 1, 9551.43, 966.751, 1.697, 5.58416, 120, 0, 0, 1, 0, 0, 0, 0, 0);
INSERT INTO creature VALUES (53769, 34947, 571, 1, 1, 25632, 1, 9549.13, 957.506, 1.70439, 5.80014, 120, 0, 0, 1, 0, 0, 0, 0, 0);
INSERT INTO creature VALUES (53770, 34907, 571, 1, 1, 25774, 1, 9489.36, 1211.9, 1.34048, 3.17692, 120, 0, 0, 1, 0, 0, 0, 0, 0);
INSERT INTO creature VALUES (53771, 34907, 571, 1, 1, 25633, 1, 9484.2, 1216.99, 1.32919, 3.19323, 120, 0, 0, 1, 0, 0, 0, 0, 0);
INSERT INTO creature VALUES (53772, 34907, 571, 1, 1, 25633, 1, 9428.33, 1190.03, 0.197032, 0.243451, 120, 0, 0, 1, 0, 0, 0, 0, 0);
INSERT INTO creature VALUES (53773, 34907, 571, 1, 1, 25632, 1, 9487.15, 1217.85, 1.32455, 3.23189, 120, 0, 0, 1, 0, 0, 0, 0, 0);
INSERT INTO creature VALUES (53774, 34907, 571, 1, 1, 25772, 1, 9428.36, 1185.18, 0.206631, 0.34948, 120, 0, 0, 1, 0, 0, 0, 0, 0);
INSERT INTO creature VALUES (53775, 34947, 571, 1, 1, 25633, 1, 9550.2, 961.923, 1.71085, 5.8669, 120, 0, 0, 1, 0, 0, 0, 0, 0);
INSERT INTO creature VALUES (53776, 34907, 571, 1, 1, 25633, 1, 9487.81, 1221.41, 1.31369, 3.27902, 120, 0, 0, 1, 0, 0, 0, 0, 0);
INSERT INTO creature VALUES (53833, 34907, 571, 1, 1, 25774, 1, 9602.55, 929.272, 0.355535, 2.95366, 120, 0, 0, 1, 0, 0, 0, 0, 0);
INSERT INTO creature VALUES (53834, 34907, 571, 1, 1, 25772, 1, 9600.76, 918.903, 0.388437, 3.03162, 120, 0, 0, 1, 0, 0, 0, 0, 0);
INSERT INTO creature VALUES (53872, 34947, 571, 1, 1, 25633, 1, 9554.08, 970.196, 1.69319, 5.85512, 120, 0, 0, 1, 0, 0, 0, 0, 0);
INSERT INTO creature VALUES (53873, 34907, 571, 1, 1, 25633, 1, 9601.24, 928.23, 0.356095, 3.4361, 120, 0, 0, 1, 0, 0, 0, 0, 0);
INSERT INTO creature VALUES (53874, 34947, 571, 1, 1, 25633, 1, 9602.27, 932.437, 0.351324, 3.36934, 120, 0, 0, 1, 0, 0, 0, 0, 0);
INSERT INTO creature VALUES (53876, 34947, 571, 1, 1, 25632, 1, 9603.91, 929.085, 0.354932, 3.06303, 120, 0, 0, 1, 0, 0, 0, 0, 0);
INSERT INTO creature VALUES (53877, 34947, 571, 1, 1, 25775, 1, 9487.53, 1226.41, 1.3297, 3.34578, 120, 0, 0, 1, 0, 0, 0, 0, 0);
INSERT INTO creature VALUES (53879, 34947, 571, 1, 1, 25632, 1, 9432.43, 1172.14, 0.240173, 0.334384, 120, 0, 0, 1, 0, 0, 0, 0, 0);
INSERT INTO creature VALUES (53880, 34947, 571, 1, 1, 25633, 1, 9430.09, 1180.24, 0.212892, 0.125641, 120, 0, 0, 1, 0, 0, 0, 0, 0);
INSERT INTO creature VALUES (53881, 34947, 571, 1, 1, 25773, 1, 9429.25, 1192.45, 2.11359, 5.41202, 120, 0, 0, 1, 0, 0, 0, 0, 0);
DELETE FROM creature_text WHERE entry IN(34907, 34947);
INSERT INTO creature_text VALUES (34907, 0, 0, 'Be consumed by the mist!', 12, 0, 100, 0, 0, 0, 0, 'Kvaldir Harpooner');
INSERT INTO creature_text VALUES (34907, 0, 1, 'I shall draw your soul into the mist!', 12, 0, 100, 0, 0, 0, 0, 'Kvaldir Harpooner');
INSERT INTO creature_text VALUES (34907, 0, 2, 'I will heave your carcass into the ocean myself!', 12, 0, 100, 0, 0, 0, 0, 'Kvaldir Harpooner');
INSERT INTO creature_text VALUES (34907, 0, 3, 'Look what''s lost its way...', 12, 0, 100, 0, 0, 0, 0, 'Kvaldir Harpooner');
INSERT INTO creature_text VALUES (34907, 0, 4, 'YAAARRRGH!', 12, 0, 100, 0, 0, 0, 0, 'Kvaldir Harpooner');
INSERT INTO creature_text VALUES (34907, 0, 5, 'You''re not even fit to be fed to Leviroth.', 12, 0, 100, 0, 0, 0, 0, 'Kvaldir Harpooner');
INSERT INTO creature_text VALUES (34907, 0, 6, 'You''ve strayed too far from your comfortable soil, $N.', 12, 0, 100, 0, 0, 0, 0, 'Kvaldir Harpooner');
INSERT INTO creature_text VALUES (34947, 0, 0, 'Be consumed by the mist!', 12, 0, 100, 0, 0, 0, 0, 'Kvaldir Berserker');
INSERT INTO creature_text VALUES (34947, 0, 1, 'I shall draw your soul into the mist!', 12, 0, 100, 0, 0, 0, 0, 'Kvaldir Berserker');
INSERT INTO creature_text VALUES (34947, 0, 2, 'I will heave your carcass into the ocean myself!', 12, 0, 100, 0, 0, 0, 0, 'Kvaldir Berserker');
INSERT INTO creature_text VALUES (34947, 0, 3, 'Look what''s lost its way...', 12, 0, 100, 0, 0, 0, 0, 'Kvaldir Berserker');
INSERT INTO creature_text VALUES (34947, 0, 4, 'YAAARRRGH!', 12, 0, 100, 0, 0, 0, 0, 'Kvaldir Berserker');
INSERT INTO creature_text VALUES (34947, 0, 5, 'You''re not even fit to be fed to Leviroth.', 12, 0, 100, 0, 0, 0, 0, 'Kvaldir Berserker');
INSERT INTO creature_text VALUES (34947, 0, 6, 'You''ve strayed too far from your comfortable soil, $N.', 12, 0, 100, 0, 0, 0, 0, 'Kvaldir Berserker');
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry IN(34947, 34907);
DELETE FROM smart_scripts WHERE entryorguid IN(34947, 34907) AND source_type=0;
INSERT INTO smart_scripts VALUES (34907, 0, 0, 0, 1, 0, 100, 0, 0, 0, 10000, 10000, 49, 0, 0, 0, 0, 0, 0, 11, 35098, 30, 0, 0, 0, 0, 0, 'Kvaldir Harpooner - Out Of Combat - Attack Start');
INSERT INTO smart_scripts VALUES (34907, 0, 1, 0, 1, 0, 100, 0, 0, 0, 10000, 10000, 49, 0, 0, 0, 0, 0, 0, 11, 35070, 30, 0, 0, 0, 0, 0, 'Kvaldir Harpooner - Out Of Combat - Attack Start');
INSERT INTO smart_scripts VALUES (34907, 0, 2, 0, 0, 0, 100, 1, 1000, 1000, 0, 0, 97, 17, 12, 1, 0, 0, 0, 2, 0, 0, 0, -1, -1, 0, 0, 'Kvaldir Harpooner - In Combat - Jump To Pos');
INSERT INTO smart_scripts VALUES (34907, 0, 3, 0, 0, 0, 100, 0, 0, 0, 2300, 3900, 11, 66489, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Kvaldir Harpooner - In Combat - Cast Spear Throw');
INSERT INTO smart_scripts VALUES (34907, 0, 4, 0, 0, 0, 20, 1, 5000, 5000, 0, 0, 1, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Kvaldir Harpooner - In Combat - Say Line 0');
INSERT INTO smart_scripts VALUES (34947, 0, 0, 0, 1, 0, 100, 0, 0, 0, 10000, 10000, 49, 0, 0, 0, 0, 0, 0, 11, 35098, 30, 0, 0, 0, 0, 0, 'Kvaldir Harpooner - Out Of Combat - Attack Start');
INSERT INTO smart_scripts VALUES (34947, 0, 1, 0, 1, 0, 100, 0, 0, 0, 10000, 10000, 49, 0, 0, 0, 0, 0, 0, 11, 35070, 30, 0, 0, 0, 0, 0, 'Kvaldir Harpooner - Out Of Combat - Attack Start');
INSERT INTO smart_scripts VALUES (34947, 0, 2, 0, 0, 0, 100, 1, 1000, 1000, 0, 0, 97, 17, 12, 1, 0, 0, 0, 2, 0, 0, 0, -1, 1, 0, 0, 'Kvaldir Harpooner - In Combat - Jump To Pos');
INSERT INTO smart_scripts VALUES (34947, 0, 3, 0, 0, 0, 100, 0, 1000, 1000, 8000, 11000, 11, 38557, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Kvaldir Berserker - In Combat - Cast Throw');
INSERT INTO smart_scripts VALUES (34947, 0, 4, 0, 9, 0, 100, 0, 0, 5, 5000, 7000, 11, 43410, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Kvaldir Berserker - Within 0-5 Range - Cast Chop');
INSERT INTO smart_scripts VALUES (34947, 0, 5, 0, 2, 0, 100, 1, 0, 30, 40000, 40000, 11, 3019, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Kvaldir Berserker - Between 0-30% Health - Cast Frenzy');
INSERT INTO smart_scripts VALUES (34947, 0, 6, 0, 0, 0, 20, 1, 5000, 5000, 0, 0, 1, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Kvaldir Berserker - In Combat - Say Line 0');

-- A Worthy Weapon
UPDATE creature_template SET HoverHeight=0 WHERE entry=33273;
DELETE FROM smart_scripts WHERE entryorguid=33273 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid=33273*100 AND source_type=9;
INSERT INTO smart_scripts (entryorguid, source_type, id, link, event_type, event_phase_mask, event_chance, event_flags, event_param1, event_param2, event_param3, event_param4, action_type, action_param1, action_param2, action_param3, action_param4, action_param5, action_param6, target_type, target_param1, target_param2, target_param3, target_x, target_y, target_z, target_o, comment) VALUES
(33273, 0, 0, 1, 54, 0, 100, 0, 0, 0, 0, 0, 133, 1024, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,  'Maiden of DrakMar - On spawn - Set Unit Movement flags'),
(33273, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 80, 33273*100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,  'Maiden of DrakMar - On spawn - Run script'), 
(33273*100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 50, 194239, 42, 0, 0, 0, 0, 8, 0, 0, 0, 4602.977, -1600.141, 156.7834, 0,  'Maiden of DrakMar - On script - Summon GO DrakMar Lily Pad'), 
(33273*100, 9, 1, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,  'Maiden of DrakMar - On script - Say 0'), 
(33273*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,  'Maiden of DrakMar - On script - Say 1'), 
(33273*100, 9, 3, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,  'Maiden of DrakMar - On script - Say 2'), 
(33273*100, 9, 4, 0, 0, 0, 100, 0, 7000, 7000, 0, 0, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,  'Maiden of DrakMar - On script - Say 3'), 
(33273*100, 9, 5, 0, 0, 0, 100, 0, 0, 0, 0, 0, 50, 194238, 20, 0, 0, 0, 0, 8, 0, 0, 0, 4603.351, -1599.288, 156.8822, 2.234018,  'Maiden of DrakMar - On script - Summon GO Blade of DrakMar');

-- What Do You Feed a Yeti, Anyway?
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry IN(35060, 35061, 35071, 35072);
DELETE FROM smart_scripts WHERE entryorguid IN(35060, 35061, 35071, 35072) AND source_type=0;
INSERT INTO smart_scripts VALUES (35060, 0, 0, 0, 54, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'North Sea Thresher - Is Summoned - Attack Summoner');
INSERT INTO smart_scripts VALUES (35061, 0, 0, 0, 54, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'North Sea Blue Shark - Is Summoned - Attack Summoner');
INSERT INTO smart_scripts VALUES (35071, 0, 0, 0, 54, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'North Sea Mako - Is Summoned - Attack Summoner');
INSERT INTO smart_scripts VALUES (35072, 0, 0, 0, 54, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Angry Kvaldir - Is Summoned - Attack Summoner');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=17 AND SourceEntry=66741;
INSERT INTO conditions VALUES(17, 0, 66741, 0, 0, 40, 0, 0, 0, 0, 0, 0, 0, '', 'Chum the Water can only be used in water');

-- A Blade Fit For A Champion
DELETE FROM gossip_menu_option WHERE menu_id=10316 AND id=1 AND action_menu_id=0;

-- The Aspirants's Challenge
UPDATE creature_template SET AIName='SmartAI' WHERE entry=33448;
REPLACE INTO creature_template_addon VALUES (33448, 0, 28918, 0, 0, 0, '63500 62847 64723');
DELETE FROM smart_scripts WHERE entryorguid=33448 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid=33448*100 AND source_type=9;
INSERT INTO smart_scripts VALUES (33448, 0, 0, 0, 25, 0, 100, 0, 0, 0, 0, 0, 28, 64223, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Valiant Champion - On Reset - Remove auras from Defend');
INSERT INTO smart_scripts VALUES (33448, 0, 1, 0, 63, 0, 100, 0, 0, 0, 0, 0, 80, 33448*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Valiant Champion - Just created - Call timed actionlist');
INSERT INTO smart_scripts VALUES (33448, 0, 2, 0, 52, 0, 100, 0, 0, 33448, 0, 0, 11, 63010, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Valiant Champion - On text over - Cast Charge');
INSERT INTO smart_scripts VALUES (33448, 0, 3, 0, 0, 0, 100, 0, 0, 0, 1500, 4000, 11, 62544, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Valiant Champion - IC - Cast Thrust');
INSERT INTO smart_scripts VALUES (33448, 0, 4, 0, 9, 0, 100, 0, 5, 5, 4000, 7000, 11, 62575, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Valiant Champion - On more than 5 yard range - Cast Shield-Breaker');
INSERT INTO smart_scripts VALUES (33448, 0, 5, 0, 0, 0, 100, 0, 9000, 11000, 9000, 10000, 46, 20, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Valiant Champion - IC - Move forward 20 yards');
INSERT INTO smart_scripts VALUES (33448, 0, 6, 7, 9, 0, 100, 0, 9, 15, 3000, 3000, 11, 63010, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Valiant Champion - On 10-12 yard range - Cast Charge');
INSERT INTO smart_scripts VALUES (33448, 0, 7, 0, 61, 0, 100, 0, 0, 0, 0, 0, 11, 62575, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Valiant Champion - Linked with previous event - Cast Shield-Breaker');
INSERT INTO smart_scripts VALUES (33448, 0, 8, 9, 2, 0, 100, 1, 1, 6, 60000, 60000, 2, 35, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Valiant Champion - On HP% between 1% and 6% - Change faction to 35');
INSERT INTO smart_scripts VALUES (33448, 0, 9, 10, 61, 0, 100, 0, 0, 0, 0, 0, 86, 63049, 2, 12, 2, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 'Valiant Champion - On HP% between 1% and 6% - Cross Cast Mounted Melee Victory');
INSERT INTO smart_scripts VALUES (33448, 0, 10, 11, 61, 0, 100, 0, 0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 'Valiant Champion - Linked with previous event - Say text');
INSERT INTO smart_scripts VALUES (33448, 0, 11, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 3000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Valiant Champion - Linked with previous event - Despawn in 3 sec');
INSERT INTO smart_scripts VALUES (33448, 0, 12, 13, 5, 0, 100, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 'Valiant Champion - On player killed - Say text');
INSERT INTO smart_scripts VALUES (33448, 0, 13, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 2000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Valiant Champion - Linked with previous event - Despawn');
INSERT INTO smart_scripts VALUES (33448, 0, 14, 0, 7, 0, 100, 0, 0, 0, 0, 0, 41, 4000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Valiant Champion - On Evade - Despawn');
INSERT INTO smart_scripts VALUES (33448, 0, 15, 16, 54, 0, 100, 0, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 0, 'Valiant Champion - Is Summoned - Store Invoker Vehicle');
INSERT INTO smart_scripts VALUES (33448, 0, 16, 0, 61, 0, 100, 0, 0, 0, 0, 0, 64, 2, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Valiant Champion - Is Summoned - Store Invoker');
INSERT INTO smart_scripts VALUES (3344800, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 59, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Valiant Champion - Script 1 - Set run ON');
INSERT INTO smart_scripts VALUES (3344800, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 42, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Valiant Champion - Script 1 - Set INVINCIBILITY');
INSERT INTO smart_scripts VALUES (3344800, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 62719, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Valiant Champion - Script 1 - Cast Defend on self/Layer 1/');
INSERT INTO smart_scripts VALUES (3344800, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 62719, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Valiant Champion - Script 1 - Cast Defend on self/Layer 2/');
INSERT INTO smart_scripts VALUES (3344800, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 62719, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Valiant Champion - Script 1 - Cast Defend on self/Layer 3/');
INSERT INTO smart_scripts VALUES (3344800, 9, 5, 0, 0, 0, 100, 0, 0, 0, 0, 0, 69, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 8579.50, 956.74, 547.6, 0, 'Valiant Champion - Script 1 - Move to pos'); 
INSERT INTO smart_scripts VALUES (3344800, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Valiant Champion - Script 1 - Set run Off');
INSERT INTO smart_scripts VALUES (3344800, 9, 7, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 64223, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Valiant Champion - Script 1 - Cast aura TriggerS for Defend /10 sec one/');
INSERT INTO smart_scripts VALUES (3344800, 9, 8, 0, 0, 0, 100, 0, 3500, 3500, 0, 0, 2, 14, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Valiant Champion - Script 1 - Change faction to 14');
INSERT INTO smart_scripts VALUES (3344800, 9, 9, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 0, 1500, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 'Valiant Champion - Script 1 - Say text');
DELETE FROM creature_text WHERE entry= 33448;
INSERT INTO creature_text VALUES (33448, 0, 1, 'Ready yourself!', 12, 0, 100, 1, 1000, 0, 0, 'Valiant Champion');
INSERT INTO creature_text VALUES (33448, 0, 2, 'Prepare yourself!', 12, 0, 100, 1, 1000, 0, 0, 'Valiant Champion');
INSERT INTO creature_text VALUES (33448, 0, 3, 'On your guard!', 12, 0, 100, 1, 1000, 0, 0, 'Valiant Champion');
INSERT INTO creature_text VALUES (33448, 0, 4, 'On your guard!', 12, 0, 100, 1, 1000, 0, 0, 'Valiant Champion');
INSERT INTO creature_text VALUES (33448, 0, 5, 'Let it begin!', 12, 0, 100, 1, 1000, 0, 0, 'Valiant Champion');
INSERT INTO creature_text VALUES (33448, 0, 6, 'Argent Champion is looking winded!', 12, 0, 100, 1, 1000, 0, 0, 'Valiant Champion');
INSERT INTO creature_text VALUES (33448, 1, 7, 'Victory is mine!', 12, 0, 100, 1, 1000, 0, 0, 'Valiant Champion');
INSERT INTO creature_text VALUES (33448, 1, 8, 'It seems you still need more practice. Perhaps another time.', 12, 0, 100, 1, 1000, 0, 0, 'Valiant Champion');
INSERT INTO creature_text VALUES (33448, 1, 9, 'I have won. Better luck another time,  friend.', 12, 0, 100, 1, 1000, 0, 0, 'Valiant Champion');
INSERT INTO creature_text VALUES (33448, 1, 10, 'I am afraid you will need more practice to defeat me.', 12, 0, 100, 1, 1000, 0, 0, 'Valiant Champion');
INSERT INTO creature_text VALUES (33448, 2, 11, 'I yield to you.', 12, 0, 100, 1, 1000, 0, 0, 'Valiant Champion');
INSERT INTO creature_text VALUES (33448, 2, 12, 'That was a well fought battle. I yield to you.', 12, 0, 100, 1, 1000, 0, 0, 'Valiant Champion');
INSERT INTO creature_text VALUES (33448, 2, 13, 'It would seem I underestimated your skills. Well done..', 12, 0, 100, 1, 1000, 0, 0, 'Valiant Champion');
INSERT INTO creature_text VALUES (33448, 2, 14, 'I have been defeated. Good fight!', 12, 0, 100, 1, 1000, 0, 0, 'Valiant Champion');

-- The Valiant's Challenge
UPDATE creature_template SET AIName='SmartAI' WHERE entry=33707;
REPLACE INTO creature_template_addon VALUES (33707, 0, 28918, 0, 0, 0, '63501 62852 64723');
DELETE FROM smart_scripts WHERE entryorguid=33707 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid=33707*100 AND source_type=9;
INSERT INTO smart_scripts VALUES (33707, 0, 0, 0, 25, 0, 100, 0, 0, 0, 0, 0, 28, 64223, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Arg Champion - On Reset - Remove auras from Defend');
INSERT INTO smart_scripts VALUES (33707, 0, 1, 0, 63, 0, 100, 0, 0, 0, 0, 0, 80, 33707*100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Arg Champion - Just created - Call timed actionlist');
INSERT INTO smart_scripts VALUES (33707, 0, 2, 0, 52, 0, 100, 0, 0, 33707, 0, 0, 11, 63010, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 'Arg Champion - On text over - Cast Charge');
INSERT INTO smart_scripts VALUES (33707, 0, 3, 0, 0, 0, 100, 0, 0, 0, 1500, 4000, 11, 62544, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Arg Champion - IC - Cast Thrust');
INSERT INTO smart_scripts VALUES (33707, 0, 4, 0, 9, 0, 100, 0, 5, 5, 4000, 7000, 11, 62575, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Arg Champion - On more than 5 yard range - Cast Shield-Breaker');
INSERT INTO smart_scripts VALUES (33707, 0, 5, 0, 0, 0, 100, 0, 9000, 11000, 9000, 10000, 46, 20, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Arg Champion - IC - Move forward 20 yards');
INSERT INTO smart_scripts VALUES (33707, 0, 6, 7, 9, 0, 100, 0, 9, 15, 3000, 3000, 11, 63010, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Arg Champion - On 10-12 yard range - Cast Charge');
INSERT INTO smart_scripts VALUES (33707, 0, 7, 0, 61, 0, 100, 0, 0, 0, 0, 0, 11, 62575, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Arg Champion - Linked with previous event - Cast Shield-Breaker');
INSERT INTO smart_scripts VALUES (33707, 0, 8, 9, 2, 0, 100, 1, 1, 6, 60000, 60000, 2, 35, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Arg Champion - On HP% between 1% and 6% - Change faction to 35');
INSERT INTO smart_scripts VALUES (33707, 0, 9, 10, 61, 0, 100, 0, 0, 0, 0, 0, 86, 63516, 2, 12, 2, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 'Arg Champion - On HP% between 1% and 6% - Cross Cast Mounted Melee Victory');
INSERT INTO smart_scripts VALUES (33707, 0, 10, 11, 61, 0, 100, 0, 0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 'Arg Champion - Linked with previous event - Say text');
INSERT INTO smart_scripts VALUES (33707, 0, 11, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 3000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Arg Champion - Linked with previous event - Despawn in 3 sec');
INSERT INTO smart_scripts VALUES (33707, 0, 12, 13, 5, 0, 100, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 'Arg Champion - On player killed - Say text');
INSERT INTO smart_scripts VALUES (33707, 0, 13, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 2000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Arg Champion - Linked with previous event - Despawn');
INSERT INTO smart_scripts VALUES (33707, 0, 14, 0, 7, 0, 100, 0, 0, 0, 0, 0, 41, 4000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Arg Champion - On Evade - Despawn ');
INSERT INTO smart_scripts VALUES (33707, 0, 15, 16, 54, 0, 100, 0, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 0, 'Arg Champion - Is Summoned - Store Invoker Vehicle');
INSERT INTO smart_scripts VALUES (33707, 0, 16, 0, 61, 0, 100, 0, 0, 0, 0, 0, 64, 2, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Arg Champion - Is Summoned - Store Invoker');
INSERT INTO smart_scripts VALUES (3370700, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 59, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Arg Champion - Script 1 - Set run ON');
INSERT INTO smart_scripts VALUES (3370700, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 42, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Arg Champion - Script 1 - Set INVINCIBILITY');
INSERT INTO smart_scripts VALUES (3370700, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 62719, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Arg Champion - Script 1 - Cast Defend on self/Layer 1/');
INSERT INTO smart_scripts VALUES (3370700, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 62719, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Arg Champion - Script 1 - Cast Defend on self/Layer 2/');
INSERT INTO smart_scripts VALUES (3370700, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 62719, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Arg Champion - Script 1 - Cast Defend on self/Layer 3/');
INSERT INTO smart_scripts VALUES (3370700, 9, 5, 0, 0, 0, 100, 0, 0, 0, 0, 0, 69, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 8562.076172, 1115.047119, 556.787231, 2.587977, 'Arg Champion - Script 1 - Move to pos'); 
INSERT INTO smart_scripts VALUES (3370700, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Arg Champion - Script 1 - Set run Off');
INSERT INTO smart_scripts VALUES (3370700, 9, 7, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 64223, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Arg Champion - Script 1 - Cast aura TriggerS for Defend /10 sec one/');
INSERT INTO smart_scripts VALUES (3370700, 9, 8, 0, 0, 0, 100, 0, 3500, 3500, 0, 0, 2, 14, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Arg Champion - Script 1 - Change faction to 14');
INSERT INTO smart_scripts VALUES (3370700, 9, 9, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 0, 1500, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 'Arg Champion - Script 1 - Say text');
DELETE FROM creature_text WHERE entry= 33707;
INSERT INTO creature_text VALUES (33707, 0, 1, 'Ready yourself!', 12, 0, 100, 1, 1000, 0, 0, 'Argent Champion');
INSERT INTO creature_text VALUES (33707, 0, 2, 'Prepare yourself!', 12, 0, 100, 1, 1000, 0, 0, 'Argent Champion');
INSERT INTO creature_text VALUES (33707, 0, 3, 'On your guard!', 12, 0, 100, 1, 1000, 0, 0, 'Argent Champion');
INSERT INTO creature_text VALUES (33707, 0, 4, 'On your guard!', 12, 0, 100, 1, 1000, 0, 0, 'Argent Champion');
INSERT INTO creature_text VALUES (33707, 0, 5, 'Let it begin!', 12, 0, 100, 1, 1000, 0, 0, 'Argent Champion');
INSERT INTO creature_text VALUES (33707, 0, 6, 'Argent Champion is looking winded!', 12, 0, 100, 1, 1000, 0, 0, 'Argent Champion');
INSERT INTO creature_text VALUES (33707, 1, 7, 'Victory is mine!', 12, 0, 100, 1, 1000, 0, 0, 'Argent Champion');
INSERT INTO creature_text VALUES (33707, 1, 8, 'It seems you still need more practice. Perhaps another time.', 12, 0, 100, 1, 1000, 0, 0, 'Argent Champion');
INSERT INTO creature_text VALUES (33707, 1, 9, 'I have won. Better luck another time,  friend.', 12, 0, 100, 1, 1000, 0, 0, 'Argent Champion');
INSERT INTO creature_text VALUES (33707, 1, 10, 'I am afraid you will need more practice to defeat me.', 12, 0, 100, 1, 1000, 0, 0, 'Argent Champion');
INSERT INTO creature_text VALUES (33707, 2, 11, 'I yield to you.', 12, 0, 100, 1, 1000, 0, 0, 'Argent Champion');
INSERT INTO creature_text VALUES (33707, 2, 12, 'That was a well fought battle. I yield to you.', 12, 0, 100, 1, 1000, 0, 0, 'Argent Champion');
INSERT INTO creature_text VALUES (33707, 2, 13, 'It would seem I underestimated your skills. Well done..', 12, 0, 100, 1, 1000, 0, 0, 'Argent Champion');
INSERT INTO creature_text VALUES (33707, 2, 14, 'I have been defeated. Good fight!', 12, 0, 100, 1, 1000, 0, 0, 'Argent Champion');


-- Eradic the Pure (13794), fix requires
-- The Scourgebane (13795), fix requires
UPDATE quest_template SET RequiredClasses=32 WHERE Id=13795;
DELETE FROM conditions WHERE SourceEntry IN(13794, 13795) AND SourceTypeOrReferenceId IN(19, 20);
INSERT INTO conditions VALUES(19, 0, 13794, 0, 0, 8, 0, 13702, 0, 0, 0, 0, 0, "", "Eradic the Pure - A Champion Rises");
INSERT INTO conditions VALUES(19, 0, 13794, 0, 1, 8, 0, 13732, 0, 0, 0, 0, 0, "", "Eradic the Pure - A Champion Rises");
INSERT INTO conditions VALUES(19, 0, 13794, 0, 2, 8, 0, 13733, 0, 0, 0, 0, 0, "", "Eradic the Pure - A Champion Rises");
INSERT INTO conditions VALUES(19, 0, 13794, 0, 3, 8, 0, 13734, 0, 0, 0, 0, 0, "", "Eradic the Pure - A Champion Rises");
INSERT INTO conditions VALUES(19, 0, 13794, 0, 4, 8, 0, 13735, 0, 0, 0, 0, 0, "", "Eradic the Pure - A Champion Rises");
INSERT INTO conditions VALUES(19, 0, 13794, 0, 5, 8, 0, 13736, 0, 0, 0, 0, 0, "", "Eradic the Pure - A Champion Rises");
INSERT INTO conditions VALUES(19, 0, 13794, 0, 6, 8, 0, 13737, 0, 0, 0, 0, 0, "", "Eradic the Pure - A Champion Rises");
INSERT INTO conditions VALUES(19, 0, 13794, 0, 7, 8, 0, 13738, 0, 0, 0, 0, 0, "", "Eradic the Pure - A Champion Rises");
INSERT INTO conditions VALUES(19, 0, 13794, 0, 8, 8, 0, 13739, 0, 0, 0, 0, 0, "", "Eradic the Pure - A Champion Rises");
INSERT INTO conditions VALUES(19, 0, 13794, 0, 9, 8, 0, 13740, 0, 0, 0, 0, 0, "", "Eradic the Pure - A Champion Rises");
INSERT INTO conditions VALUES(20, 0, 13794, 0, 0, 8, 0, 13702, 0, 0, 0, 0, 0, "", "Eradic the Pure - A Champion Rises");
INSERT INTO conditions VALUES(20, 0, 13794, 0, 1, 8, 0, 13732, 0, 0, 0, 0, 0, "", "Eradic the Pure - A Champion Rises");
INSERT INTO conditions VALUES(20, 0, 13794, 0, 2, 8, 0, 13733, 0, 0, 0, 0, 0, "", "Eradic the Pure - A Champion Rises");
INSERT INTO conditions VALUES(20, 0, 13794, 0, 3, 8, 0, 13734, 0, 0, 0, 0, 0, "", "Eradic the Pure - A Champion Rises");
INSERT INTO conditions VALUES(20, 0, 13794, 0, 4, 8, 0, 13735, 0, 0, 0, 0, 0, "", "Eradic the Pure - A Champion Rises");
INSERT INTO conditions VALUES(20, 0, 13794, 0, 5, 8, 0, 13736, 0, 0, 0, 0, 0, "", "Eradic the Pure - A Champion Rises");
INSERT INTO conditions VALUES(20, 0, 13794, 0, 6, 8, 0, 13737, 0, 0, 0, 0, 0, "", "Eradic the Pure - A Champion Rises");
INSERT INTO conditions VALUES(20, 0, 13794, 0, 7, 8, 0, 13738, 0, 0, 0, 0, 0, "", "Eradic the Pure - A Champion Rises");
INSERT INTO conditions VALUES(20, 0, 13794, 0, 8, 8, 0, 13739, 0, 0, 0, 0, 0, "", "Eradic the Pure - A Champion Rises");
INSERT INTO conditions VALUES(20, 0, 13794, 0, 9, 8, 0, 13740, 0, 0, 0, 0, 0, "", "Eradic the Pure - A Champion Rises");
INSERT INTO conditions VALUES(19, 0, 13795, 0, 0, 8, 0, 13702, 0, 0, 0, 0, 0, "", "The Scourgebane - A Champion Rises");
INSERT INTO conditions VALUES(19, 0, 13795, 0, 1, 8, 0, 13732, 0, 0, 0, 0, 0, "", "The Scourgebane - A Champion Rises");
INSERT INTO conditions VALUES(19, 0, 13795, 0, 2, 8, 0, 13733, 0, 0, 0, 0, 0, "", "The Scourgebane - A Champion Rises");
INSERT INTO conditions VALUES(19, 0, 13795, 0, 3, 8, 0, 13734, 0, 0, 0, 0, 0, "", "The Scourgebane - A Champion Rises");
INSERT INTO conditions VALUES(19, 0, 13795, 0, 4, 8, 0, 13735, 0, 0, 0, 0, 0, "", "The Scourgebane - A Champion Rises");
INSERT INTO conditions VALUES(19, 0, 13795, 0, 5, 8, 0, 13736, 0, 0, 0, 0, 0, "", "The Scourgebane - A Champion Rises");
INSERT INTO conditions VALUES(19, 0, 13795, 0, 6, 8, 0, 13737, 0, 0, 0, 0, 0, "", "The Scourgebane - A Champion Rises");
INSERT INTO conditions VALUES(19, 0, 13795, 0, 7, 8, 0, 13738, 0, 0, 0, 0, 0, "", "The Scourgebane - A Champion Rises");
INSERT INTO conditions VALUES(19, 0, 13795, 0, 8, 8, 0, 13739, 0, 0, 0, 0, 0, "", "The Scourgebane - A Champion Rises");
INSERT INTO conditions VALUES(19, 0, 13795, 0, 9, 8, 0, 13740, 0, 0, 0, 0, 0, "", "The Scourgebane - A Champion Rises");
INSERT INTO conditions VALUES(20, 0, 13795, 0, 0, 8, 0, 13702, 0, 0, 0, 0, 0, "", "The Scourgebane - A Champion Rises");
INSERT INTO conditions VALUES(20, 0, 13795, 0, 1, 8, 0, 13732, 0, 0, 0, 0, 0, "", "The Scourgebane - A Champion Rises");
INSERT INTO conditions VALUES(20, 0, 13795, 0, 2, 8, 0, 13733, 0, 0, 0, 0, 0, "", "The Scourgebane - A Champion Rises");
INSERT INTO conditions VALUES(20, 0, 13795, 0, 3, 8, 0, 13734, 0, 0, 0, 0, 0, "", "The Scourgebane - A Champion Rises");
INSERT INTO conditions VALUES(20, 0, 13795, 0, 4, 8, 0, 13735, 0, 0, 0, 0, 0, "", "The Scourgebane - A Champion Rises");
INSERT INTO conditions VALUES(20, 0, 13795, 0, 5, 8, 0, 13736, 0, 0, 0, 0, 0, "", "The Scourgebane - A Champion Rises");
INSERT INTO conditions VALUES(20, 0, 13795, 0, 6, 8, 0, 13737, 0, 0, 0, 0, 0, "", "The Scourgebane - A Champion Rises");
INSERT INTO conditions VALUES(20, 0, 13795, 0, 7, 8, 0, 13738, 0, 0, 0, 0, 0, "", "The Scourgebane - A Champion Rises");
INSERT INTO conditions VALUES(20, 0, 13795, 0, 8, 8, 0, 13739, 0, 0, 0, 0, 0, "", "The Scourgebane - A Champion Rises");
INSERT INTO conditions VALUES(20, 0, 13795, 0, 9, 8, 0, 13740, 0, 0, 0, 0, 0, "", "The Scourgebane - A Champion Rises");

-- Battle Before the Citadel
DELETE FROM conditions WHERE SourceGroup=34125 AND ConditionTypeOrReference=1 AND SourceTypeOrReferenceId=18;
INSERT INTO conditions VALUES(18, 34125, 63215, 0, 1, 1, 0, 62853, 0, 0, 0, 0, 0, '', 'Requires lance aura to see spellclick');
INSERT INTO conditions VALUES(18, 34125, 63215, 0, 2, 1, 0, 62853, 0, 0, 0, 0, 0, '', 'Requires lance aura to see spellclick');
INSERT INTO conditions VALUES(18, 34125, 63215, 0, 3, 1, 0, 62853, 0, 0, 0, 0, 0, '', 'Requires lance aura to see spellclick');
INSERT INTO conditions VALUES(18, 34125, 63215, 0, 4, 1, 0, 62853, 0, 0, 0, 0, 0, '', 'Requires lance aura to see spellclick');
INSERT INTO conditions VALUES(18, 34125, 63215, 0, 5, 1, 0, 62853, 0, 0, 0, 0, 0, '', 'Requires lance aura to see spellclick');
INSERT INTO conditions VALUES(18, 34125, 63215, 0, 6, 1, 0, 62853, 0, 0, 0, 0, 0, '', 'Requires lance aura to see spellclick');
INSERT INTO conditions VALUES(18, 34125, 63215, 0, 7, 1, 0, 62853, 0, 0, 0, 0, 0, '', 'Requires lance aura to see spellclick');
INSERT INTO conditions VALUES(18, 34125, 63215, 0, 8, 1, 0, 62853, 0, 0, 0, 0, 0, '', 'Requires lance aura to see spellclick');
INSERT INTO conditions VALUES(18, 34125, 63215, 0, 9, 1, 0, 62853, 0, 0, 0, 0, 0, '', 'Requires lance aura to see spellclick');
INSERT INTO conditions VALUES(18, 34125, 63215, 0, 10, 1, 0, 62853, 0, 0, 0, 0, 0, '', 'Requires lance aura to see spellclick');
INSERT INTO conditions VALUES(18, 34125, 63215, 0, 11, 1, 0, 62853, 0, 0, 0, 0, 0, '', 'Requires lance aura to see spellclick');
INSERT INTO conditions VALUES(18, 34125, 63215, 0, 12, 1, 0, 62853, 0, 0, 0, 0, 0, '', 'Requires lance aura to see spellclick');
INSERT INTO conditions VALUES(18, 34125, 63215, 0, 13, 1, 0, 62853, 0, 0, 0, 0, 0, '', 'Requires lance aura to see spellclick');
INSERT INTO conditions VALUES(18, 34125, 63215, 0, 14, 1, 0, 62853, 0, 0, 0, 0, 0, '', 'Requires lance aura to see spellclick');
UPDATE quest_template SET RequiredClasses=1503, RequiredRaces=1101, PrevQuestId=13794 WHERE Id=13861; -- all except death knight
UPDATE quest_template SET RequiredClasses=1503, RequiredRaces=690, PrevQuestId=13794 WHERE Id=13862; -- all except death knight
UPDATE quest_template SET RequiredClasses=32, RequiredRaces=1101, PrevQuestId=13795 WHERE Id=13864; -- death knight
UPDATE quest_template SET RequiredClasses=32, RequiredRaces=690, PrevQuestId=13795 WHERE Id=13863; -- death knight
UPDATE creature_template SET AIName='SmartAI' WHERE entry=33550;
DELETE FROM smart_scripts WHERE entryorguid=33550 AND source_type=0;
INSERT INTO smart_scripts VALUES(33550, 0, 0, 0, 0, 0, 100, 0, 2000, 4000, 8000, 10000, 11, 63233, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "IC Update - Cast Spell Necrocution");
DELETE FROM spell_script_names WHERE spell_id=63233;
INSERT INTO spell_script_names VALUES (63233, 'spell_gen_break_shield');
UPDATE creature_template SET AIName='SmartAI' WHERE entry=33429;
DELETE FROM smart_scripts WHERE entryorguid=33429 AND source_type=0;
INSERT INTO smart_scripts VALUES(33429, 0, 0, 0, 60, 0, 100, 0, 1000, 1000, 61000, 61000, 11, 62719, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On Update - Cast Spell Defend");
INSERT INTO smart_scripts VALUES(33429, 0, 1, 0, 1, 0, 100, 0, 2000, 2000, 60000, 60000, 11, 62710, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "IC Update - Cast Spell Strong Guy Sundering Thrust Aura");
DELETE FROM spell_script_names WHERE spell_id=63825;
INSERT INTO spell_script_names VALUES (63825, 'spell_gen_break_shield');
UPDATE creature_template SET flags_extra=flags_extra|64, AIName='', ScriptName='npc_boneguard_footman' WHERE entry=33438;
UPDATE creature_template SET AIName='SmartAI' WHERE entry=34127;
DELETE FROM smart_scripts WHERE entryorguid=34127 AND source_type=0;
INSERT INTO smart_scripts VALUES(34127, 0, 0, 0, 60, 0, 100, 0, 1000, 1000, 10000, 10000, 11, 62719, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On Update - Cast Spell Defend");
INSERT INTO smart_scripts VALUES(34127, 0, 1, 0, 1, 0, 100, 0, 2000, 2000, 60000, 60000, 11, 60023, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "IC Update - Cast Spell Scourge Banner Aura");
INSERT INTO smart_scripts VALUES(34127, 0, 2, 0, 9, 0, 100, 0, 9, 25, 10000, 10000, 11, 63010, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "Range (9 - 25yd) Update - Cast Charge");
DELETE FROM spell_area WHERE spell=64576;
INSERT INTO spell_area VALUES (64576, 4519, 13847, 13847, 0, 0, 2, 1, 74, 11),(64576, 4519, 13851, 13851, 0, 0, 2, 1, 74, 11),(64576, 4519, 13852, 13852, 0, 0, 2, 1, 74, 11),(64576, 4519, 13854, 13854, 0, 0, 2, 1, 74, 11),(64576, 4519, 13855, 13855, 0, 0, 2, 1, 74, 11),(64576, 4519, 13856, 13856, 0, 0, 2, 1, 74, 11),(64576, 4519, 13857, 13857, 0, 0, 2, 1, 74, 11),
(64576, 4519, 13858, 13858, 0, 0, 2, 1, 74, 11),(64576, 4519, 13859, 13859, 0, 0, 2, 1, 74, 11),(64576, 4519, 13860, 13860, 0, 0, 2, 1, 74, 11),(64576, 4519, 13861, 13861, 0, 0, 2, 1, 74, 11),(64576, 4519, 13862, 13862, 0, 0, 2, 1, 74, 11),(64576, 4519, 13863, 13863, 0, 0, 2, 1, 74, 11),(64576, 4519, 13864, 13864, 0, 0, 2, 1, 74, 11),
(64576, 4522, 13847, 13847, 0, 0, 2, 1, 74, 11),(64576, 4522, 13851, 13851, 0, 0, 2, 1, 74, 11),(64576, 4522, 13852, 13852, 0, 0, 2, 1, 74, 11),(64576, 4522, 13854, 13854, 0, 0, 2, 1, 74, 11),(64576, 4522, 13855, 13855, 0, 0, 2, 1, 74, 11),(64576, 4522, 13856, 13856, 0, 0, 2, 1, 74, 11),(64576, 4522, 13857, 13857, 0, 0, 2, 1, 74, 11),
(64576, 4522, 13858, 13858, 0, 0, 2, 1, 74, 11),(64576, 4522, 13859, 13859, 0, 0, 2, 1, 74, 11),(64576, 4522, 13860, 13860, 0, 0, 2, 1, 74, 11),(64576, 4522, 13861, 13861, 0, 0, 2, 1, 74, 11),(64576, 4522, 13862, 13862, 0, 0, 2, 1, 74, 11),(64576, 4522, 13863, 13863, 0, 0, 2, 1, 74, 11),(64576, 4522, 13864, 13864, 0, 0, 2, 1, 74, 11);


-- Taking Battle To The Enemy
UPDATE quest_template SET RequiredClasses=1503, RequiredRaces=1101, PrevQuestId=13794 WHERE Id=13789; -- all except death knight
UPDATE quest_template SET RequiredClasses=1503, RequiredRaces=690, PrevQuestId=13794 WHERE Id=13810; -- all except death knight
UPDATE quest_template SET RequiredClasses=32, RequiredRaces=1101, PrevQuestId=13795 WHERE Id=13791; -- death knight
UPDATE quest_template SET RequiredClasses=32, RequiredRaces=690, PrevQuestId=13795 WHERE Id=13813; -- death knight

-- Among the Champions
UPDATE quest_template SET RequiredClasses=1503, RequiredRaces=1101, PrevQuestId=13794 WHERE Id=13790; -- all except death knight
UPDATE quest_template SET RequiredClasses=1503, RequiredRaces=690, PrevQuestId=13794 WHERE Id=13811; -- all except death knight
UPDATE quest_template SET RequiredClasses=32, RequiredRaces=1101, PrevQuestId=13795 WHERE Id=13793; -- death knight
UPDATE quest_template SET RequiredClasses=32, RequiredRaces=690, PrevQuestId=13795 WHERE Id=13814; -- death knight
UPDATE creature_template SET flags_extra=2, ScriptName="" WHERE entry IN(33738, 33739, 33740, 33743, 33744, 33745, 33746, 33747, 33748, 33749);

-- Grand Melee
SET @Sen_Valiant := 33285;
SET @Script := 3328500;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@Sen_Valiant;
DELETE FROM `smart_scripts` WHERE `source_type`=9 AND `entryorguid`=@Script;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@Sen_Valiant,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Valiant - On Reset - Remove auras from Defend'),
(@Sen_Valiant,0,1,2,62,0,100,0,10469,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'Sen Valiant - On gossip select - Close gossip'),
(@Sen_Valiant,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,'Sen Valiant - Linked with previous event - store target'),
(@Sen_Valiant,0,3,4,61,0,100,0,0,0,0,0,64,2,0,0,0,0,0,22,0,0,0,0,0,0,0,'Sen Valiant - Linked with previous event - store target'),
(@Sen_Valiant,0,4,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Valiant - Linked with previous event - Call timed actionlist'),
(@Sen_Valiant,0,20,0,52,0,100,0,0,@Sen_Valiant,0,0,11,63010,0,0,0,0,0,12,2,0,0,0,0,0,0,'Sen Valiant - On text over - Cast Charge'),
(@Sen_Valiant,0,21,0,52,0,100,0,0,@Sen_Valiant,0,0,49,0,0,0,0,0,0,12,2,0,0,0,0,0,0,'Sen Valiant - On text over - Cast Attack Start'),
(@Sen_Valiant,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'Sen Valiant - IC - Cast Thrust'),
(@Sen_Valiant,0,6,0,9,0,100,0,5,5,4000,7000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'Sen Valiant - On more than 5 yard range - Cast Shield-Breaker'),
(@Sen_Valiant,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Valiant - IC - Move forward 12 yards'),
(@Sen_Valiant,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'Sen Valiant - On 10-12 yard range - Cast Charge'),
(@Sen_Valiant,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'Sen Valiant - Linked with previous event - Cast Shield-Breaker'),
(@Sen_Valiant,0,10,11,2,0,100,1,1,3,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Valiant - On HP% between 1% and 3% - Change faction to 35'),
(@Sen_Valiant,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Valiant - Linked with previous event - Say text'),
(@Sen_Valiant,0,12,13,61,0,100,0,0,0,0,0,86,62724,2,12,1,0,0,12,1,0,0,0,0,0,0,'Sen Valiant - Linked with previous event - Cast Mounted Melee Victory /item/'),
(@Sen_Valiant,0,13,14,61,0,100,0,0,0,0,0,86,64812,2,12,1,0,0,12,1,0,0,0,0,0,0,'Sen Valiant - Linked with previous event - Cast credit'),
(@Sen_Valiant,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Valiant - Linked with previous event - Evade'),
(@Sen_Valiant,0,15,16,5,0,100,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Valiant - On player killed - Say text'),
(@Sen_Valiant,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Valiant - Linked with previous event - Set unseen'),
(@Sen_Valiant,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Valiant - Linked with previous event - Despawn in 1 ms'),
(@Sen_Valiant,0,18,0,7,0,100,0,0,0,0,0,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Valiant - On Evade - Change faction to 35'),
(@Sen_Valiant,0,19,16,0,0,100,0,3000,3000,3000,3000,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Valiant - On Update - Say text'),
-- Timed actionlist 1
(@Script,9,1,0,0,0,100,0,0,0,0,0,42,0,1,0,0,0,0,1,0,0,0,0,0,0,0,'All champions - Script 1 - Set INVINCIBILITY'),
(@Script,9,2,0,0,0,100,0,0,0,0,0,59,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'All champions - Script 1 - Set run ON'),
(@Script,9,3,0,0,0,100,0,0,0,0,0,11,62719,0,0,0,0,0,1,0,0,0,0,0,0,0,'All champions - Script 1 - Cast Defend on self/Layer 1/'),
(@Script,9,4,0,0,0,100,0,0,0,0,0,11,62719,0,0,0,0,0,1,0,0,0,0,0,0,0,'All champions - Script 1 - Cast Defend on self/Layer 2/'),
(@Script,9,5,0,0,0,100,0,0,0,0,0,11,62719,0,0,0,0,0,1,0,0,0,0,0,0,0,'All champions - Script 1 - Cast Defend on self/Layer 3/'),
(@Script,9,6,0,0,0,100,0,0,0,0,0,46,20,0,0,0,0,0,1,0,0,0,0,0,0,0,'All champions - Script 1 - Move forward 15 yards'),
(@Script,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,'All champions - Script 1 - Set run Off'),
(@Script,9,8,0,0,0,100,0,0,0,0,0,11,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'All champions - Script 1 - Cast aura TriggerS for Defend /10 sec one/'),
(@Script,9,9,0,0,0,100,0,3500,3500,0,0,2,14,0,0,0,0,0,1,0,0,0,0,0,0,0,'All champions - Script 1 - Change faction to 14'),
(@Script,9,10,0,0,0,100,0,0,0,0,0,1,0,1500,0,0,0,0,2,0,0,0,0,0,0,0,'All champions - Script 1 - Say text');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=22 AND SourceEntry=@Sen_Valiant;
INSERT INTO conditions VALUES (22, 20, @Sen_Valiant, 0, 0, 31, 2, 4, 0, 0, 0, 0, 0, '', 'Run action if victim is player');

SET @Orgri_Valiant := 33306;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@Orgri_Valiant;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@Orgri_Valiant,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri Valiant - On Reset - Remove auras from Defend'),
(@Orgri_Valiant,0,1,2,62,0,100,0,10468,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'Orgri Valiant - On gossip select - Close gossip'),
(@Orgri_Valiant,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,'Orgri Valiant - Linked with previous event - store target'),
(@Orgri_Valiant,0,3,4,61,0,100,0,0,0,0,0,64,2,0,0,0,0,0,22,0,0,0,0,0,0,0,'Orgri Valiant - Linked with previous event - store target'),
(@Orgri_Valiant,0,4,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri Valiant - Linked with previous event - Call timed actionlist'),
(@Orgri_Valiant,0,20,0,52,0,100,0,0,@Orgri_Valiant,0,0,11,63010,0,0,0,0,0,7,0,0,0,0,0,0,0,'Orgri Valiant - On text over - Cast Charge'),
(@Orgri_Valiant,0,21,0,52,0,100,0,0,@Orgri_Valiant,0,0,49,0,0,0,0,0,0,12,2,0,0,0,0,0,0,'Orgri Valiant - On text over - Cast Attack Start'),
(@Orgri_Valiant,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'Orgri Valiant - IC - Cast Thrust'),
(@Orgri_Valiant,0,6,0,9,0,100,0,5,5,9000,10000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'Orgri Valiant - On more than 5 yard range - Cast Shield-Breaker'),
(@Orgri_Valiant,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri Valiant - IC - Move forward 12 yards'),
(@Orgri_Valiant,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'Orgri Valiant - On 10-12 yard range - Cast Charge'),
(@Orgri_Valiant,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'Orgri Valiant - Linked with previous event - Cast Shield-Breaker'),
(@Orgri_Valiant,0,10,11,2,0,100,1,1,3,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri Valiant - On HP% between 1% and 3% - Change faction to 35'),
(@Orgri_Valiant,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri Valiant - Linked with previous event - Say text'),
(@Orgri_Valiant,0,12,13,61,0,100,0,0,0,0,0,86,62724,2,12,1,0,0,12,1,0,0,0,0,0,0,'Orgri Valiant - Linked with previous event - Cast Mounted Melee Victory /item/'),
(@Orgri_Valiant,0,13,14,61,0,100,0,0,0,0,0,86,64811,2,12,1,0,0,12,1,0,0,0,0,0,0,'Orgri Valiant - Linked with previous event - Cast credit'),
(@Orgri_Valiant,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri_Valiant - Linked with previous event - Evade'),
(@Orgri_Valiant,0,15,16,5,0,100,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri Valiant - On player killed - Say text'),
(@Orgri_Valiant,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri Valiant - Linked with previous event - Set unseen'),
(@Orgri_Valiant,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri Valiant - Linked with previous event - Despawn in 1 ms'),
(@Orgri_Valiant,0,18,0,7,0,100,0,0,0,0,0,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri Valiant - On Evade - Change faction to 35'),
(@Orgri_Valiant,0,19,16,0,0,100,0,3000,3000,3000,3000,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri Valiant - On Update - Say text');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=22 AND SourceEntry=@Orgri_Valiant;
INSERT INTO conditions VALUES (22, 20, @Orgri_Valiant, 0, 0, 31, 2, 4, 0, 0, 0, 0, 0, '', 'Run action if victim is player');

SET @TB_Valiant := 33383;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@TB_Valiant;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@TB_Valiant,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'TB Valiant - On Reset - Remove auras from Defend'),
(@TB_Valiant,0,1,2,62,0,100,0,10472,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'TB Valiant - On gossip select - Close gossip'),
(@TB_Valiant,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,'TB_Valiant - Linked with previous event - store target'),
(@TB_Valiant,0,3,4,61,0,100,0,0,0,0,0,64,2,0,0,0,0,0,22,0,0,0,0,0,0,0,'TB_Valiant - Linked with previous event - store target'),
(@TB_Valiant,0,4,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'TB Valiant - Linked with previous event - Call timed actionlist'),
(@TB_Valiant,0,20,0,52,0,100,0,0,@TB_Valiant,0,0,11,63010,0,0,0,0,0,7,0,0,0,0,0,0,0,'TB Valiant - On text over - Cast Charge'),
(@TB_Valiant,0,21,0,52,0,100,0,0,@TB_Valiant,0,0,49,0,0,0,0,0,0,12,2,0,0,0,0,0,0,'TB Valiant - On text over - Cast Attack Start'),
(@TB_Valiant,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'TB Valiant - IC - Cast Thrust'),
(@TB_Valiant,0,6,0,9,0,100,0,5,5,9000,10000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'TB Valiant - On more than 5 yard range - Cast Shield-Breaker'),
(@TB_Valiant,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'TB Valiant - IC - Move forward 12 yards'),
(@TB_Valiant,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'TB Valiant - On 10-12 yard range - Cast Charge'),
(@TB_Valiant,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'TB Valiant - Linked with previous event - Cast Shield-Breaker'),
(@TB_Valiant,0,10,11,2,0,100,1,1,3,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'TB Valiant - On HP% between 1% and 3% - Change faction to 35'),
(@TB_Valiant,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'TB Valiant - Linked with previous event - Say text'),
(@TB_Valiant,0,12,13,61,0,100,0,0,0,0,0,86,62724,2,12,1,0,0,12,1,0,0,0,0,0,0,'TB Valiant - Linked with previous event - Cast Mounted Melee Victory /item/'),
(@TB_Valiant,0,13,14,61,0,100,0,0,0,0,0,86,64815,2,12,1,0,0,12,1,0,0,0,0,0,0,'TB Valiant - Linked with previous event - Cast credit'),
(@TB_Valiant,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'TB_Valiant - Linked with previous event - Evade'),
(@TB_Valiant,0,15,16,5,0,100,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'TB Valiant - On player killed - Say text'),
(@TB_Valiant,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'TB Valiant - Linked with previous event - Set unseen'),
(@TB_Valiant,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'TB Valiant - Linked with previous event - Despawn in 1 ms'),
(@TB_Valiant,0,18,0,7,0,100,0,0,0,0,0,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'TB Valiant - On Evade - Change faction to 35'),
(@TB_Valiant,0,19,16,0,0,100,0,3000,3000,3000,3000,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'TB Valiant - On Update - Say text');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=22 AND SourceEntry=@TB_Valiant;
INSERT INTO conditions VALUES (22, 20, @TB_Valiant, 0, 0, 31, 2, 4, 0, 0, 0, 0, 0, '', 'Run action if victim is player');

SET @SM_Valiant := 33382;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@SM_Valiant;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@SM_Valiant,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'SM Valiant - On Reset - Remove auras from Defend'),
(@SM_Valiant,0,1,2,62,0,100,0,10470,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'SM Valiant - On gossip select - Close gossip'),
(@SM_Valiant,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,'SM_Valiant - Linked with previous event - store target'),
(@SM_Valiant,0,3,4,61,0,100,0,0,0,0,0,64,2,0,0,0,0,0,22,0,0,0,0,0,0,0,'SM_Valiant - Linked with previous event - store target'),
(@SM_Valiant,0,4,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'SM Valiant - Linked with previous event - Call timed actionlist'),
(@SM_Valiant,0,20,0,52,0,100,0,0,@SM_Valiant,0,0,11,63010,0,0,0,0,0,7,0,0,0,0,0,0,0,'SM Valiant - On text over - Cast Charge'),
(@SM_Valiant,0,21,0,52,0,100,0,0,@SM_Valiant,0,0,49,0,0,0,0,0,0,12,2,0,0,0,0,0,0,'SM Valiant - On text over - Cast Attack Start'),
(@SM_Valiant,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'SM Valiant - IC - Cast Thrust'),
(@SM_Valiant,0,6,0,9,0,100,0,5,5,9000,10000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'SM Valiant - On more than 5 yard range - Cast Shield-Breaker'),
(@SM_Valiant,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'SM Valiant - IC - Move forward 12 yards'),
(@SM_Valiant,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'SM Valiant - On 10-12 yard range - Cast Charge'),
(@SM_Valiant,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'SM Valiant - Linked with previous event - Cast Shield-Breaker'),
(@SM_Valiant,0,10,11,2,0,100,1,1,3,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'SM Valiant - On HP% between 1% and 3% - Change faction to 35'),
(@SM_Valiant,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'SM Valiant - Linked with previous event - Say text'),
(@SM_Valiant,0,12,13,61,0,100,0,0,0,0,0,86,62724,2,12,1,0,0,12,1,0,0,0,0,0,0,'SM Valiant - Linked with previous event - Cast Mounted Melee Victory /item/'),
(@SM_Valiant,0,13,14,61,0,100,0,0,0,0,0,86,64813,2,12,1,0,0,12,1,0,0,0,0,0,0,'SM Valiant - Linked with previous event - Cast credit'),
(@SM_Valiant,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'SM_Valiant - Linked with previous event - Evade'),
(@SM_Valiant,0,15,16,5,0,100,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'SM Valiant - On player killed - Say text'),
(@SM_Valiant,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'SM Valiant - Linked with previous event - Set unseen'),
(@SM_Valiant,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'SM Valiant - Linked with previous event - Despawn in 1 ms'),
(@SM_Valiant,0,18,0,7,0,100,0,0,0,0,0,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'SM Valiant - On Evade - Change faction to 35'),
(@SM_Valiant,0,19,16,0,0,100,0,3000,3000,3000,3000,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'SM Valiant - On Update - Say text');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=22 AND SourceEntry=@SM_Valiant;
INSERT INTO conditions VALUES (22, 20, @SM_Valiant, 0, 0, 31, 2, 4, 0, 0, 0, 0, 0, '', 'Run action if victim is player');

SET @GR_Valiant := 33558;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@GR_Valiant;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@GR_Valiant,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'GR Valiant - On Reset - Remove auras from Defend'),
(@GR_Valiant,0,1,2,62,0,100,0,10466,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'GR Valiant - On gossip select - Close gossip'),
(@GR_Valiant,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,'GR_Valiant - Linked with previous event - store target'),
(@GR_Valiant,0,3,4,61,0,100,0,0,0,0,0,64,2,0,0,0,0,0,22,0,0,0,0,0,0,0,'GR_Valiant - Linked with previous event - store target'),
(@GR_Valiant,0,4,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'GR Valiant - Linked with previous event - Call timed actionlist'),
(@GR_Valiant,0,20,0,52,0,100,0,0,@GR_Valiant,0,0,11,63010,0,0,0,0,0,7,0,0,0,0,0,0,0,'GR Valiant - On text over - Cast Charge'),
(@GR_Valiant,0,21,0,52,0,100,0,0,@GR_Valiant,0,0,49,0,0,0,0,0,0,12,2,0,0,0,0,0,0,'GR Valiant - On text over - Cast Attack Start'),
(@GR_Valiant,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'GR Valiant - IC - Cast Thrust'),
(@GR_Valiant,0,6,0,9,0,100,0,5,5,9000,10000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'GR Valiant - On more than 5 yard range - Cast Shield-Breaker'),
(@GR_Valiant,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'GR Valiant - IC - Move forward 12 yards'),
(@GR_Valiant,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'GR Valiant - On 10-12 yard range - Cast Charge'),
(@GR_Valiant,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'GR Valiant - Linked with previous event - Cast Shield-Breaker'),
(@GR_Valiant,0,10,11,2,0,100,1,1,3,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'GR Valiant - On HP% between 1% and 3% - Change faction to 35'),
(@GR_Valiant,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'GR Valiant - Linked with previous event - Say text'),
(@GR_Valiant,0,12,13,61,0,100,0,0,0,0,0,86,62724,2,12,1,0,0,12,1,0,0,0,0,0,0,'GR Valiant - Linked with previous event - Cast Mounted Melee Victory /item/'),
(@GR_Valiant,0,13,14,61,0,100,0,0,0,0,0,86,64809,2,12,1,0,0,12,1,0,0,0,0,0,0,'GR Valiant - Linked with previous event - Cast credit'),
(@GR_Valiant,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'GR_Valiant - Linked with previous event - Evade'),
(@GR_Valiant,0,15,16,5,0,100,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'GR Valiant - On player killed - Say text'),
(@GR_Valiant,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'GR Valiant - Linked with previous event - Set unseen'),
(@GR_Valiant,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'GR Valiant - Linked with previous event - Despawn in 1 ms'),
(@GR_Valiant,0,18,0,7,0,100,0,0,0,0,0,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'GR Valiant - On Evade - Change faction to 35'),
(@GR_Valiant,0,19,16,0,0,100,0,3000,3000,3000,3000,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'GR Valiant - On Update - Say text');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=22 AND SourceEntry=@GR_Valiant;
INSERT INTO conditions VALUES (22, 20, @GR_Valiant, 0, 0, 31, 2, 4, 0, 0, 0, 0, 0, '', 'Run action if victim is player');

SET @IF_Valiant := 33564;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@IF_Valiant;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@IF_Valiant,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'IF Valiant - On Reset - Remove auras from Defend'),
(@IF_Valiant,0,1,2,62,0,100,0,10467,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'IF Valiant - On gossip select - Close gossip'),
(@IF_Valiant,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,'IF_Valiant - Linked with previous event - store target'),
(@IF_Valiant,0,3,4,61,0,100,0,0,0,0,0,64,2,0,0,0,0,0,22,0,0,0,0,0,0,0,'IF_Valiant - Linked with previous event - store target'),
(@IF_Valiant,0,4,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'IF Valiant - Linked with previous event - Call timed actionlist'),
(@IF_Valiant,0,20,0,52,0,100,0,0,@IF_Valiant,0,0,11,63010,0,0,0,0,0,7,0,0,0,0,0,0,0,'IF Valiant - On text over - Cast Charge'),
(@IF_Valiant,0,21,0,52,0,100,0,0,@IF_Valiant,0,0,49,0,0,0,0,0,0,12,2,0,0,0,0,0,0,'IF Valiant - On text over - Cast Attack Start'),
(@IF_Valiant,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'IF Valiant - IC - Cast Thrust'),
(@IF_Valiant,0,6,0,9,0,100,0,5,5,9000,10000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'IF Valiant - On more than 5 yard range - Cast Shield-Breaker'),
(@IF_Valiant,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'IF Valiant - IC - Move forward 12 yards'),
(@IF_Valiant,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'IF Valiant - On 10-12 yard range - Cast Charge'),
(@IF_Valiant,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'IF Valiant - Linked with previous event - Cast Shield-Breaker'),
(@IF_Valiant,0,10,11,2,0,100,1,1,3,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'IF Valiant - On HP% between 1% and 3% - Change faction to 35'),
(@IF_Valiant,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'IF Valiant - Linked with previous event - Say text'),
(@IF_Valiant,0,12,13,61,0,100,0,0,0,0,0,86,62724,2,12,1,0,0,12,1,0,0,0,0,0,0,'IF Valiant - Linked with previous event - Cast Mounted Melee Victory /item/'),
(@IF_Valiant,0,13,14,61,0,100,0,0,0,0,0,86,64810,2,12,1,0,0,12,1,0,0,0,0,0,0,'IF Valiant - Linked with previous event - Cast credit'),
(@IF_Valiant,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'IF_Valiant - Linked with previous event - Evade'),
(@IF_Valiant,0,15,16,5,0,100,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'IF Valiant - On player killed - Say text'),
(@IF_Valiant,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'IF Valiant - Linked with previous event - Set unseen'),
(@IF_Valiant,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'IF Valiant - Linked with previous event - Despawn in 1 ms'),
(@IF_Valiant,0,18,0,7,0,100,0,0,0,0,0,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'IF Valiant - On Evade - Change faction to 35'),
(@IF_Valiant,0,19,16,0,0,100,0,3000,3000,3000,3000,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'IF Valiant - On Update - Say text');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=22 AND SourceEntry=@IF_Valiant;
INSERT INTO conditions VALUES (22, 20, @IF_Valiant, 0, 0, 31, 2, 4, 0, 0, 0, 0, 0, '', 'Run action if victim is player');

SET @SW_Valiant := 33561;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@SW_Valiant;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@SW_Valiant,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'SW Valiant - On Reset - Remove auras from Defend'),
(@SW_Valiant,0,1,2,62,0,100,0,10471,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'SW Valiant - On gossip select - Close gossip'),
(@SW_Valiant,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,'SW_Valiant - Linked with previous event - store target'),
(@SW_Valiant,0,3,4,61,0,100,0,0,0,0,0,64,2,0,0,0,0,0,22,0,0,0,0,0,0,0,'SW_Valiant - Linked with previous event - store target'),
(@SW_Valiant,0,4,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'SW Valiant - Linked with previous event - Call timed actionlist'),
(@SW_Valiant,0,20,0,52,0,100,0,0,@SW_Valiant,0,0,11,63010,0,0,0,0,0,7,0,0,0,0,0,0,0,'SW Valiant - On text over - Cast Charge'),
(@SW_Valiant,0,21,0,52,0,100,0,0,@SW_Valiant,0,0,49,0,0,0,0,0,0,12,2,0,0,0,0,0,0,'SW Valiant - On text over - Cast Attack Start'),
(@SW_Valiant,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'SW Valiant - IC - Cast Thrust'),
(@SW_Valiant,0,6,0,9,0,100,0,5,5,9000,10000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'SW Valiant - On more than 5 yard range - Cast Shield-Breaker'),
(@SW_Valiant,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'SW Valiant - IC - Move forward 12 yards'),
(@SW_Valiant,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'SW Valiant - On 10-12 yard range - Cast Charge'),
(@SW_Valiant,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'SW Valiant - Linked with previous event - Cast Shield-Breaker'),
(@SW_Valiant,0,10,11,2,0,100,1,1,3,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'SW Valiant - On HP% between 1% and 3% - Change faction to 35'),
(@SW_Valiant,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'SW Valiant - Linked with previous event - Say text'),
(@SW_Valiant,0,12,13,61,0,100,0,0,0,0,0,86,62724,2,12,1,0,0,12,1,0,0,0,0,0,0,'SW Valiant - Linked with previous event - Cast Mounted Melee Victory /item/'),
(@SW_Valiant,0,13,14,61,0,100,0,0,0,0,0,86,64814,2,12,1,0,0,12,1,0,0,0,0,0,0,'SW Valiant - Linked with previous event - Cast credit'),
(@SW_Valiant,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'SW_Valiant - Linked with previous event - Evade'),
(@SW_Valiant,0,15,16,5,0,100,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'SW Valiant - On player killed - Say text'),
(@SW_Valiant,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'SW Valiant - Linked with previous event - Set unseen'),
(@SW_Valiant,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'SW Valiant - Linked with previous event - Despawn in 1 ms'),
(@SW_Valiant,0,18,0,7,0,100,0,0,0,0,0,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'SW Valiant - On Evade - Change faction to 35'),
(@SW_Valiant,0,19,16,0,0,100,0,3000,3000,3000,3000,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'SW Valiant - On Update - Say text');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=22 AND SourceEntry=@SW_Valiant;
INSERT INTO conditions VALUES (22, 20, @SW_Valiant, 0, 0, 31, 2, 4, 0, 0, 0, 0, 0, '', 'Run action if victim is player');

SET @Darn_Valiant := 33559;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@Darn_Valiant;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@Darn_Valiant,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'Darn Valiant - On Reset - Remove auras from Defend'),
(@Darn_Valiant,0,1,2,62,0,100,0,10464,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'Darn Valiant - On gossip select - Close gossip'),
(@Darn_Valiant,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,'Darn_Valiant - Linked with previous event - store target'),
(@Darn_Valiant,0,3,4,61,0,100,0,0,0,0,0,64,2,0,0,0,0,0,22,0,0,0,0,0,0,0,'Darn_Valiant - Linked with previous event - store target'),
(@Darn_Valiant,0,4,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'Darn Valiant - Linked with previous event - Call timed actionlist'),
(@Darn_Valiant,0,20,0,52,0,100,0,0,@Darn_Valiant,0,0,11,63010,0,0,0,0,0,7,0,0,0,0,0,0,0,'Darn Valiant - On text over - Cast Charge'),
(@Darn_Valiant,0,21,0,52,0,100,0,0,@Darn_Valiant,0,0,49,0,0,0,0,0,0,12,2,0,0,0,0,0,0,'Darn Valiant - On text over - Cast Attack Start'),
(@Darn_Valiant,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'Darn Valiant - IC - Cast Thrust'),
(@Darn_Valiant,0,6,0,9,0,100,0,5,5,9000,10000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'Darn Valiant - On more than 5 yard range - Cast Shield-Breaker'),
(@Darn_Valiant,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'Darn Valiant - IC - Move forward 12 yards'),
(@Darn_Valiant,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'Darn Valiant - On 10-12 yard range - Cast Charge'),
(@Darn_Valiant,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'Darn Valiant - Linked with previous event - Cast Shield-Breaker'),
(@Darn_Valiant,0,10,11,2,0,100,1,1,3,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'Darn Valiant - On HP% between 1% and 3% - Change faction to 35'),
(@Darn_Valiant,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'Darn Valiant - Linked with previous event - Say text'),
(@Darn_Valiant,0,12,13,61,0,100,0,0,0,0,0,86,62724,2,12,1,0,0,12,1,0,0,0,0,0,0,'Darn Valiant - Linked with previous event - Cast Mounted Melee Victory /item/'),
(@Darn_Valiant,0,13,14,61,0,100,0,0,0,0,0,86,64805,2,12,1,0,0,12,1,0,0,0,0,0,0,'Darn Valiant - Linked with previous event - Cast credit'),
(@Darn_Valiant,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Darn_Valiant - Linked with previous event - Evade'),
(@Darn_Valiant,0,15,16,5,0,100,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Darn Valiant - On player killed - Say text'),
(@Darn_Valiant,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Darn Valiant - Linked with previous event - Set unseen'),
(@Darn_Valiant,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Darn Valiant - Linked with previous event - Despawn in 1 ms'),
(@Darn_Valiant,0,18,0,7,0,100,0,0,0,0,0,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'Darn Valiant - On Evade - Change faction to 35'),
(@Darn_Valiant,0,19,16,0,0,100,0,3000,3000,3000,3000,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Darn Valiant - On Update - Say text');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=22 AND SourceEntry=@Darn_Valiant;
INSERT INTO conditions VALUES (22, 20, @Darn_Valiant, 0, 0, 31, 2, 4, 0, 0, 0, 0, 0, '', 'Run action if victim is player');

SET @Exo_Valiant := 33562;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@Exo_Valiant;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@Exo_Valiant,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'Exo Valiant - On Reset - Remove auras from Defend'),
(@Exo_Valiant,0,1,2,62,0,100,0,10465,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'Exo Valiant - On gossip select - Close gossip'),
(@Exo_Valiant,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,'Exo_Valiant - Linked with previous event - store target'),
(@Exo_Valiant,0,3,4,61,0,100,0,0,0,0,0,64,2,0,0,0,0,0,22,0,0,0,0,0,0,0,'Exo_Valiant - Linked with previous event - store target'),
(@Exo_Valiant,0,4,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'Exo Valiant - Linked with previous event - Call timed actionlist'),
(@Exo_Valiant,0,20,0,52,0,100,0,0,@Exo_Valiant,0,0,11,63010,0,0,0,0,0,7,0,0,0,0,0,0,0,'Exo Valiant - On text over - Cast Charge'),
(@Exo_Valiant,0,21,0,52,0,100,0,0,@Exo_Valiant,0,0,49,0,0,0,0,0,0,12,2,0,0,0,0,0,0,'Exo Valiant - On text over - Cast Attack Start'),
(@Exo_Valiant,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'Exo Valiant - IC - Cast Thrust'),
(@Exo_Valiant,0,6,0,9,0,100,0,5,5,9000,10000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'Exo Valiant - On more than 5 yard range - Cast Shield-Breaker'),
(@Exo_Valiant,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'Exo Valiant - IC - Move forward 12 yards'),
(@Exo_Valiant,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'Exo Valiant - On 10-12 yard range - Cast Charge'),
(@Exo_Valiant,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'Exo Valiant - Linked with previous event - Cast Shield-Breaker'),
(@Exo_Valiant,0,10,11,2,0,100,1,1,3,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'Exo Valiant - On HP% between 1% and 3% - Change faction to 35'),
(@Exo_Valiant,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'Exo Valiant - Linked with previous event - Say text'),
(@Exo_Valiant,0,12,13,61,0,100,0,0,0,0,0,86,62724,2,12,1,0,0,12,1,0,0,0,0,0,0,'Exo Valiant - Linked with previous event - Cast Mounted Melee Victory /item/'),
(@Exo_Valiant,0,13,14,61,0,100,0,0,0,0,0,86,64808,2,12,1,0,0,12,1,0,0,0,0,0,0,'Exo Valiant - Linked with previous event - Cast credit'),
(@Exo_Valiant,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Exo_Valiant - Linked with previous event - Evade'),
(@Exo_Valiant,0,15,16,5,0,100,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Exo Valiant - On player killed - Say text'),
(@Exo_Valiant,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Exo Valiant - Linked with previous event - Set unseen'),
(@Exo_Valiant,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Exo Valiant - Linked with previous event - Despawn in 1 ms'),
(@Exo_Valiant,0,18,0,7,0,100,0,0,0,0,0,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'Exo Valiant - On Evade - Change faction to 35'),
(@Exo_Valiant,0,19,16,0,0,100,0,3000,3000,3000,3000,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Exo Valiant - On Update - Say text');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=22 AND SourceEntry=@Exo_Valiant;
INSERT INTO conditions VALUES (22, 20, @Exo_Valiant, 0, 0, 31, 2, 4, 0, 0, 0, 0, 0, '', 'Run action if victim is player');

SET @UC_Valiant := 33384;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@UC_Valiant;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@UC_Valiant,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'UC Valiant - On Reset - Remove auras from Defend'),
(@UC_Valiant,0,1,2,62,0,100,0,10473,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'UC Valiant - On gossip select - Close gossip'),
(@UC_Valiant,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,'UC_Valiant - Linked with previous event - store target'),
(@UC_Valiant,0,3,4,61,0,100,0,0,0,0,0,64,2,0,0,0,0,0,22,0,0,0,0,0,0,0,'UC_Valiant - Linked with previous event - store target'),
(@UC_Valiant,0,4,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'UC Valiant - Linked with previous event - Call timed actionlist'),
(@UC_Valiant,0,20,0,52,0,100,0,0,@UC_Valiant,0,0,11,63010,0,0,0,0,0,7,0,0,0,0,0,0,0,'UC Valiant - On text over - Cast Charge'),
(@UC_Valiant,0,21,0,52,0,100,0,0,@UC_Valiant,0,0,49,0,0,0,0,0,0,12,2,0,0,0,0,0,0,'UC Valiant - On text over - Cast Attack Start'),
(@UC_Valiant,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'UC Valiant - IC - Cast Thrust'),
(@UC_Valiant,0,6,0,9,0,100,0,5,5,9000,10000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'UC Valiant - On more than 5 yard range - Cast Shield-Breaker'),
(@UC_Valiant,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'UC Valiant - IC - Move forward 12 yards'),
(@UC_Valiant,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'UC Valiant - On 10-12 yard range - Cast Charge'),
(@UC_Valiant,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'UC Valiant - Linked with previous event - Cast Shield-Breaker'),
(@UC_Valiant,0,10,11,2,0,100,1,1,3,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'UC Valiant - On HP% between 1% and 3% - Change faction to 35'),
(@UC_Valiant,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'UC Valiant - Linked with previous event - Say text'),
(@UC_Valiant,0,12,13,61,0,100,0,0,0,0,0,86,62724,2,12,1,0,0,12,1,0,0,0,0,0,0,'UC Valiant - Linked with previous event - Cast Mounted Melee Victory /item/'),
(@UC_Valiant,0,13,14,61,0,100,0,0,0,0,0,86,64816,2,12,1,0,0,12,1,0,0,0,0,0,0,'UC Valiant - Linked with previous event - Cast credit'),
(@UC_Valiant,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'UC_Valiant - Linked with previous event - Evade'),
(@UC_Valiant,0,15,16,5,0,100,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'UC Valiant - On player killed - Say text'),
(@UC_Valiant,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'UC Valiant - Linked with previous event - Set unseen'),
(@UC_Valiant,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'UC Valiant - Linked with previous event - Despawn in 1 ms'),
(@UC_Valiant,0,18,0,7,0,100,0,0,0,0,0,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'UC Valiant - On Evade - Change faction to 35'),
(@UC_Valiant,0,19,16,0,0,100,0,3000,3000,3000,3000,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'UC Valiant - On Update - Say text');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=22 AND SourceEntry=@UC_Valiant;
INSERT INTO conditions VALUES (22, 20, @UC_Valiant, 0, 0, 31, 2, 4, 0, 0, 0, 0, 0, '', 'Run action if victim is player');

-- Among the Champions
SET @Sen_Champion := 33745;
SET @Script := 3374500;
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@Sen_Champion;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@Sen_Champion;
DELETE FROM `smart_scripts` WHERE `source_type`=9 AND `entryorguid`=@Script;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@Sen_Champion,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Champion - On Reset - Remove auras from Defend'),
(@Sen_Champion,0,1,2,62,0,100,0,10458,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'Sen Champion - On gossip select - Close gossip'),
(@Sen_Champion,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,'Sen Champion - Linked with previous event - store target'),
(@Sen_Champion,0,3,4,61,0,100,0,0,0,0,0,64,2,0,0,0,0,0,22,0,0,0,0,0,0,0,'Sen Champion - Linked with previous event - store target'),
(@Sen_Champion,0,4,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Champion - Linked with previous event - Call timed actionlist'),
(@Sen_Champion,0,20,0,52,0,100,0,0,@Sen_Champion,0,0,11,63010,0,0,0,0,0,12,2,0,0,0,0,0,0,'Sen Champion - On text over - Cast Charge'),
(@Sen_Champion,0,21,0,52,0,100,0,0,@Sen_Champion,0,0,49,0,0,0,0,0,0,12,2,0,0,0,0,0,0,'Sen Champion - On text over - Attack Start'),
(@Sen_Champion,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'Sen Champion - IC - Cast Thrust'),
(@Sen_Champion,0,6,0,9,0,100,0,5,5,4000,7000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'Sen Champion - On more than 5 yard range - Cast Shield-Breaker'),
(@Sen_Champion,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Champion - IC - Move forward 12 yards'),
(@Sen_Champion,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'Sen Champion - On 10-12 yard range - Cast Charge'),
(@Sen_Champion,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'Sen Champion - Linked with previous event - Cast Shield-Breaker'),
(@Sen_Champion,0,10,11,2,0,100,1,1,6,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Champion - On HP% between 1% and 6% - Change faction to 35'),
(@Sen_Champion,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Champion - Linked with previous event - Say text'),
(@Sen_Champion,0,12,13,61,0,100,0,0,0,0,0,86,63596,2,12,1,0,0,12,1,0,0,0,0,0,0,'Sen Champion - Linked with previous event - Cast Mounted Melee Victory /item/'),
(@Sen_Champion,0,13,14,61,0,100,0,0,0,0,0,86,64812,2,12,1,0,0,12,1,0,0,0,0,0,0,'Sen Champion - Linked with previous event - Cast credit'),
(@Sen_Champion,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Champion - Linked with previous event - Evade'),
(@Sen_Champion,0,15,16,5,0,100,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Champion - On player killed - Say text'),
(@Sen_Champion,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Champion - Linked with previous event - Set unseen'),
(@Sen_Champion,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Champion - Linked with previous event - Despawn in 1 ms'),
(@Sen_Champion,0,18,0,7,0,100,0,0,0,0,0,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Champion - On Evade - Change faction to 35'),
(@Sen_Champion,0,19,16,0,0,100,0,3000,3000,3000,3000,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Sen Champion - On Update - Say text'),
-- Timed actionlist 1
(@Script,9,1,0,0,0,100,0,0,0,0,0,42,0,1,0,0,0,0,1,0,0,0,0,0,0,0,'All champions - Script 1 - Set INVINCIBILITY'),
(@Script,9,2,0,0,0,100,0,0,0,0,0,59,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'All champions - Script 1 - Set run ON'),
(@Script,9,3,0,0,0,100,0,0,0,0,0,11,62719,0,0,0,0,0,1,0,0,0,0,0,0,0,'All champions - Script 1 - Cast Defend on self/Layer 1/'),
(@Script,9,4,0,0,0,100,0,0,0,0,0,11,62719,0,0,0,0,0,1,0,0,0,0,0,0,0,'All champions - Script 1 - Cast Defend on self/Layer 2/'),
(@Script,9,5,0,0,0,100,0,0,0,0,0,11,62719,0,0,0,0,0,1,0,0,0,0,0,0,0,'All champions - Script 1 - Cast Defend on self/Layer 3/'),
(@Script,9,6,0,0,0,100,0,0,0,0,0,46,20,0,0,0,0,0,1,0,0,0,0,0,0,0,'All champions - Script 1 - Move forward 15 yards'),
(@Script,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,'All champions - Script 1 - Set run Off'),
(@Script,9,8,0,0,0,100,0,0,0,0,0,11,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'All champions - Script 1 - Cast aura TriggerS for Defend /10 sec one/'),
(@Script,9,9,0,0,0,100,0,3500,3500,0,0,2,14,0,0,0,0,0,1,0,0,0,0,0,0,0,'All champions - Script 1 - Change faction to 14'),
(@Script,9,10,0,0,0,100,0,0,0,0,0,1,0,1500,0,0,0,0,2,0,0,0,0,0,0,0,'All champions - Script 1 - Say text');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=22 AND SourceEntry=@Sen_Champion;
INSERT INTO conditions VALUES (22, 20, @Sen_Champion, 0, 0, 31, 2, 4, 0, 0, 0, 0, 0, '', 'Run action if victim is player');

SET @Orgri_Champion := 33744;
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@Orgri_Champion;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@Orgri_Champion;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@Orgri_Champion,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri Champion - On Reset - Remove auras from Defend'),
(@Orgri_Champion,0,1,2,62,0,100,0,10457,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'Orgri Champion - On gossip select - Close gossip'),
(@Orgri_Champion,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,'Orgri Champion - Linked with previous event - store target'),
(@Orgri_Champion,0,3,4,61,0,100,0,0,0,0,0,64,2,0,0,0,0,0,22,0,0,0,0,0,0,0,'Orgri Champion - Linked with previous event - store target'),
(@Orgri_Champion,0,4,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri Champion - Linked with previous event - Call timed actionlist'),
(@Orgri_Champion,0,20,0,52,0,100,0,0,@Orgri_Champion,0,0,11,63010,0,0,0,0,0,12,2,0,0,0,0,0,0,'Orgri Champion - On text over - Cast Charge'),
(@Orgri_Champion,0,21,0,52,0,100,0,0,@Orgri_Champion,0,0,49,0,0,0,0,0,0,12,2,0,0,0,0,0,0,'Orgri Champion - On text over - Attack Start'),
(@Orgri_Champion,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'Orgri Champion - IC - Cast Thrust'),
(@Orgri_Champion,0,6,0,9,0,100,0,5,5,9000,10000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'Orgri Champion - On more than 5 yard range - Cast Shield-Breaker'),
(@Orgri_Champion,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri Champion - IC - Move forward 12 yards'),
(@Orgri_Champion,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'Orgri Champion - On 10-12 yard range - Cast Charge'),
(@Orgri_Champion,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'Orgri Champion - Linked with previous event - Cast Shield-Breaker'),
(@Orgri_Champion,0,10,11,2,0,100,1,1,6,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri Champion - On HP% between 1% and 6% - Change faction to 35'),
(@Orgri_Champion,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri Champion - Linked with previous event - Say text'),
(@Orgri_Champion,0,12,13,61,0,100,0,0,0,0,0,86,63596,2,12,1,0,0,12,1,0,0,0,0,0,0,'Orgri Champion - Linked with previous event - Cast Mounted Melee Victory /item/'),
(@Orgri_Champion,0,13,14,61,0,100,0,0,0,0,0,86,64811,2,12,1,0,0,12,1,0,0,0,0,0,0,'Orgri Champion - Linked with previous event - Cast credit'),
(@Orgri_Champion,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri Champion - Linked with previous event - Evade'),
(@Orgri_Champion,0,15,16,5,0,100,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri Champion - On player killed - Say text'),
(@Orgri_Champion,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri Champion - Linked with previous event - Set unseen'),
(@Orgri_Champion,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri Champion - Linked with previous event - Despawn in 1 ms'),
(@Orgri_Champion,0,18,0,7,0,100,0,0,0,0,0,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri Champion - On Evade - Change faction to 35'),
(@Orgri_Champion,0,19,16,0,0,100,0,3000,3000,3000,3000,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Orgri Champion - On Update - Say text');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=22 AND SourceEntry=@Orgri_Champion;
INSERT INTO conditions VALUES (22, 20, @Orgri_Champion, 0, 0, 31, 2, 4, 0, 0, 0, 0, 0, '', 'Run action if victim is player');

SET @TB_Champion := 33748;
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@TB_Champion;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@TB_Champion;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@TB_Champion,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'TB Champion - On Reset - Remove auras from Defend'),
(@TB_Champion,0,1,2,62,0,100,0,10461,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'TB Champion - On gossip select - Close gossip'),
(@TB_Champion,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,'TB Champion - Linked with previous event - store target'),
(@TB_Champion,0,3,4,61,0,100,0,0,0,0,0,64,2,0,0,0,0,0,22,0,0,0,0,0,0,0,'TB Champion - Linked with previous event - store target'),
(@TB_Champion,0,4,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'TB Champion - Linked with previous event - Call timed actionlist'),
(@TB_Champion,0,20,0,52,0,100,0,0,@TB_Champion,0,0,11,63010,0,0,0,0,0,12,2,0,0,0,0,0,0,'TB Champion - On text over - Cast Charge'),
(@TB_Champion,0,21,0,52,0,100,0,0,@TB_Champion,0,0,49,0,0,0,0,0,0,12,2,0,0,0,0,0,0,'TB Champion - On text over - Attack Start'),
(@TB_Champion,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'TB Champion - IC - Cast Thrust'),
(@TB_Champion,0,6,0,9,0,100,0,5,5,9000,10000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'TB Champion - On more than 5 yard range - Cast Shield-Breaker'),
(@TB_Champion,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'TB Champion - IC - Move forward 12 yards'),
(@TB_Champion,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'TB Champion - On 10-12 yard range - Cast Charge'),
(@TB_Champion,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'TB Champion - Linked with previous event - Cast Shield-Breaker'),
(@TB_Champion,0,10,11,2,0,100,1,1,6,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'TB Champion - On HP% between 1% and 6% - Change faction to 35'),
(@TB_Champion,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'TB Champion - Linked with previous event - Say text'),
(@TB_Champion,0,12,13,61,0,100,0,0,0,0,0,86,63596,2,12,1,0,0,12,1,0,0,0,0,0,0,'TB Champion - Linked with previous event - Cast Mounted Melee Victory /item/'),
(@TB_Champion,0,13,14,61,0,100,0,0,0,0,0,86,64815,2,12,1,0,0,12,1,0,0,0,0,0,0,'TB Champion - Linked with previous event - Cast credit'),
(@TB_Champion,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'TB_Valiant - Linked with previous event - Evade'),
(@TB_Champion,0,15,16,5,0,100,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'TB Champion - On player killed - Say text'),
(@TB_Champion,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'TB Champion - Linked with previous event - Set unseen'),
(@TB_Champion,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'TB Champion - Linked with previous event - Despawn in 1 ms'),
(@TB_Champion,0,18,0,7,0,100,0,0,0,0,0,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'TB Champion - On Evade - Change faction to 35'),
(@TB_Champion,0,19,16,0,0,100,0,3000,3000,3000,3000,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'TB Champion - On Update - Say text');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=22 AND SourceEntry=@TB_Champion;
INSERT INTO conditions VALUES (22, 20, @TB_Champion, 0, 0, 31, 2, 4, 0, 0, 0, 0, 0, '', 'Run action if victim is player');

SET @SM_Champion := 33746;
UPDATE `creature_template` SET `AIName`='SmartAI'  WHERE `entry`=@SM_Champion;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@SM_Champion;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@SM_Champion,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'SM Champion - On Reset - Remove auras from Defend'),
(@SM_Champion,0,1,2,62,0,100,0,10459,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'SM Champion - On gossip select - Close gossip'),
(@SM_Champion,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,'SM Champion - Linked with previous event - store target'),
(@SM_Champion,0,3,4,61,0,100,0,0,0,0,0,64,2,0,0,0,0,0,22,0,0,0,0,0,0,0,'SM Champion - Linked with previous event - store target'),
(@SM_Champion,0,4,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'SM Champion - Linked with previous event - Call timed actionlist'),
(@SM_Champion,0,20,0,52,0,100,0,0,@SM_Champion,0,0,11,63010,0,0,0,0,0,12,2,0,0,0,0,0,0,'SM Champion - On text over - Cast Charge'),
(@SM_Champion,0,21,0,52,0,100,0,0,@SM_Champion,0,0,49,0,0,0,0,0,0,12,2,0,0,0,0,0,0,'SM Champion - On text over - Attack Start'),
(@SM_Champion,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'SM Champion - IC - Cast Thrust'),
(@SM_Champion,0,6,0,9,0,100,0,5,5,9000,10000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'SM Champion - On more than 5 yard range - Cast Shield-Breaker'),
(@SM_Champion,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'SM Champion - IC - Move forward 12 yards'),
(@SM_Champion,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'SM Champion - On 10-12 yard range - Cast Charge'),
(@SM_Champion,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'SM Champion - Linked with previous event - Cast Shield-Breaker'),
(@SM_Champion,0,10,11,2,0,100,1,1,6,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'SM Champion - On HP% between 1% and 6% - Change faction to 35'),
(@SM_Champion,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'SM Champion - Linked with previous event - Say text'),
(@SM_Champion,0,12,13,61,0,100,0,0,0,0,0,86,63596,2,12,1,0,0,12,1,0,0,0,0,0,0,'SM Champion - Linked with previous event - Cast Mounted Melee Victory /item/'),
(@SM_Champion,0,13,14,61,0,100,0,0,0,0,0,86,64813,2,12,1,0,0,12,1,0,0,0,0,0,0,'SM Champion - Linked with previous event - Cast credit'),
(@SM_Champion,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'SM Champion - Linked with previous event - Evade'),
(@SM_Champion,0,15,16,5,0,100,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'SM Champion - On player killed - Say text'),
(@SM_Champion,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'SM Champion - Linked with previous event - Set unseen'),
(@SM_Champion,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'SM Champion - Linked with previous event - Despawn in 1 ms'),
(@SM_Champion,0,18,0,7,0,100,0,0,0,0,0,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'SM Champion - On Evade - Change faction to 35'),
(@SM_Champion,0,19,16,0,0,100,0,3000,3000,3000,3000,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'SM Champion - On Update - Say text');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=22 AND SourceEntry=@SM_Champion;
INSERT INTO conditions VALUES (22, 20, @SM_Champion, 0, 0, 31, 2, 4, 0, 0, 0, 0, 0, '', 'Run action if victim is player');

SET @GR_Champion := 33740;
UPDATE `creature_template` SET `AIName`='SmartAI',`ScriptName`='' WHERE `entry`=@GR_Champion;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@GR_Champion;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@GR_Champion,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'GR Champion - On Reset - Remove auras from Defend'),
(@GR_Champion,0,1,2,62,0,100,0,10455,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'GR Champion - On gossip select - Close gossip'),
(@GR_Champion,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,'GR Champion - Linked with previous event - store target'),
(@GR_Champion,0,3,4,61,0,100,0,0,0,0,0,64,2,0,0,0,0,0,22,0,0,0,0,0,0,0,'GR Champion - Linked with previous event - store target'),
(@GR_Champion,0,4,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'GR Champion - Linked with previous event - Call timed actionlist'),
(@GR_Champion,0,20,0,52,0,100,0,0,@GR_Champion,0,0,11,63010,0,0,0,0,0,12,2,0,0,0,0,0,0,'GR Champion - On text over - Cast Charge'),
(@GR_Champion,0,21,0,52,0,100,0,0,@GR_Champion,0,0,49,0,0,0,0,0,0,12,2,0,0,0,0,0,0,'GR Champion - On text over - Attack Start'),
(@GR_Champion,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'GR Champion - IC - Cast Thrust'),
(@GR_Champion,0,6,0,9,0,100,0,5,5,9000,10000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'GR Champion - On more than 5 yard range - Cast Shield-Breaker'),
(@GR_Champion,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'GR Champion - IC - Move forward 12 yards'),
(@GR_Champion,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'GR Champion - On 10-12 yard range - Cast Charge'),
(@GR_Champion,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'GR Champion - Linked with previous event - Cast Shield-Breaker'),
(@GR_Champion,0,10,11,2,0,100,1,1,6,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'GR Champion - On HP% between 1% and 6% - Change faction to 35'),
(@GR_Champion,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'GR Champion - Linked with previous event - Say text'),
(@GR_Champion,0,12,13,61,0,100,0,0,0,0,0,86,63596,2,12,1,0,0,12,1,0,0,0,0,0,0,'GR Champion - Linked with previous event - Cast Mounted Melee Victory /item/'),
(@GR_Champion,0,13,14,61,0,100,0,0,0,0,0,86,64809,2,12,1,0,0,12,1,0,0,0,0,0,0,'GR Champion - Linked with previous event - Cast credit'),
(@GR_Champion,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'GR Champion - Linked with previous event - Evade'),
(@GR_Champion,0,15,16,5,0,100,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'GR Champion - On player killed - Say text'),
(@GR_Champion,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'GR Champion - Linked with previous event - Set unseen'),
(@GR_Champion,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'GR Champion - Linked with previous event - Despawn in 1 ms'),
(@GR_Champion,0,18,0,7,0,100,0,0,0,0,0,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'GR Champion - On Evade - Change faction to 35'),
(@GR_Champion,0,19,16,0,0,100,0,3000,3000,3000,3000,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'GR Champion - On Update - Say text');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=22 AND SourceEntry=@GR_Champion;
INSERT INTO conditions VALUES (22, 20, @GR_Champion, 0, 0, 31, 2, 4, 0, 0, 0, 0, 0, '', 'Run action if victim is player');

SET @IF_Champion := 33743;
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@IF_Champion;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@IF_Champion;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@IF_Champion,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'IF Champion - On Reset - Remove auras from Defend'),
(@IF_Champion,0,1,2,62,0,100,0,10456,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'IF Champion - On gossip select - Close gossip'),
(@IF_Champion,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,'IF Champion - Linked with previous event - store target'),
(@IF_Champion,0,3,4,61,0,100,0,0,0,0,0,64,2,0,0,0,0,0,22,0,0,0,0,0,0,0,'IF Champion - Linked with previous event - store target'),
(@IF_Champion,0,4,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'IF Champion - Linked with previous event - Call timed actionlist'),
(@IF_Champion,0,20,0,52,0,100,0,0,@IF_Champion,0,0,11,63010,0,0,0,0,0,12,2,0,0,0,0,0,0,'IF Champion - On text over - Cast Charge'),
(@IF_Champion,0,21,0,52,0,100,0,0,@IF_Champion,0,0,49,0,0,0,0,0,0,12,2,0,0,0,0,0,0,'IF Champion - On text over - Attack Start'),
(@IF_Champion,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'IF Champion - IC - Cast Thrust'),
(@IF_Champion,0,6,0,9,0,100,0,5,5,9000,10000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'IF Champion - On more than 5 yard range - Cast Shield-Breaker'),
(@IF_Champion,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'IF Champion - IC - Move forward 12 yards'),
(@IF_Champion,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'IF Champion - On 10-12 yard range - Cast Charge'),
(@IF_Champion,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'IF Champion - Linked with previous event - Cast Shield-Breaker'),
(@IF_Champion,0,10,11,2,0,100,1,1,6,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'IF Champion - On HP% between 1% and 6% - Change faction to 35'),
(@IF_Champion,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'IF Champion - Linked with previous event - Say text'),
(@IF_Champion,0,12,13,61,0,100,0,0,0,0,0,86,63596,2,12,1,0,0,12,1,0,0,0,0,0,0,'IF Champion - Linked with previous event - Cast Mounted Melee Victory /item/'),
(@IF_Champion,0,13,14,61,0,100,0,0,0,0,0,86,64810,2,12,1,0,0,12,1,0,0,0,0,0,0,'IF Champion - Linked with previous event - Cast credit'),
(@IF_Champion,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'IF Champion - Linked with previous event - Evade'),
(@IF_Champion,0,15,16,5,0,100,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'IF Champion - On player killed - Say text'),
(@IF_Champion,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'IF Champion - Linked with previous event - Set unseen'),
(@IF_Champion,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'IF Champion - Linked with previous event - Despawn in 1 ms'),
(@IF_Champion,0,18,0,7,0,100,0,0,0,0,0,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'IF Champion - On Evade - Change faction to 35'),
(@IF_Champion,0,19,16,0,0,100,0,3000,3000,3000,3000,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'IF Champion - On Update - Say text');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=22 AND SourceEntry=@IF_Champion;
INSERT INTO conditions VALUES (22, 20, @IF_Champion, 0, 0, 31, 2, 4, 0, 0, 0, 0, 0, '', 'Run action if victim is player');

SET @SW_Champion := 33747;
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@SW_Champion;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@SW_Champion;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@SW_Champion,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'SW Champion - On Reset - Remove auras from Defend'),
(@SW_Champion,0,1,2,62,0,100,0,10460,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'SW Champion - On gossip select - Close gossip'),
(@SW_Champion,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,'SW Champion - Linked with previous event - store target'),
(@SW_Champion,0,3,4,61,0,100,0,0,0,0,0,64,2,0,0,0,0,0,22,0,0,0,0,0,0,0,'SW Champion - Linked with previous event - store target'),
(@SW_Champion,0,4,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'SW Champion - Linked with previous event - Call timed actionlist'),
(@SW_Champion,0,20,0,52,0,100,0,0,@SW_Champion,0,0,11,63010,0,0,0,0,0,12,2,0,0,0,0,0,0,'SW Champion - On text over - Cast Charge'),
(@SW_Champion,0,21,0,52,0,100,0,0,@SW_Champion,0,0,49,0,0,0,0,0,0,12,2,0,0,0,0,0,0,'SW Champion - On text over - Attack Start'),
(@SW_Champion,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'SW Champion - IC - Cast Thrust'),
(@SW_Champion,0,6,0,9,0,100,0,5,5,9000,10000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'SW Champion - On more than 5 yard range - Cast Shield-Breaker'),
(@SW_Champion,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'SW Champion - IC - Move forward 12 yards'),
(@SW_Champion,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'SW Champion - On 10-12 yard range - Cast Charge'),
(@SW_Champion,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'SW Champion - Linked with previous event - Cast Shield-Breaker'),
(@SW_Champion,0,10,11,2,0,100,1,1,6,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'SW Champion - On HP% between 1% and 6% - Change faction to 35'),
(@SW_Champion,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'SW Champion - Linked with previous event - Say text'),
(@SW_Champion,0,12,13,61,0,100,0,0,0,0,0,86,63596,2,12,1,0,0,12,1,0,0,0,0,0,0,'SW Champion - Linked with previous event - Cast Mounted Melee Victory /item/'),
(@SW_Champion,0,13,14,61,0,100,0,0,0,0,0,86,64814,2,12,1,0,0,12,1,0,0,0,0,0,0,'SW Champion - Linked with previous event - Cast credit'),
(@SW_Champion,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'SW Champion - Linked with previous event - Evade'),
(@SW_Champion,0,15,16,5,0,100,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'SW Champion - On player killed - Say text'),
(@SW_Champion,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'SW Champion - Linked with previous event - Set unseen'),
(@SW_Champion,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'SW Champion - Linked with previous event - Despawn in 1 ms'),
(@SW_Champion,0,18,0,7,0,100,0,0,0,0,0,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'SW Champion - On Evade - Change faction to 35'),
(@SW_Champion,0,19,16,0,0,100,0,3000,3000,3000,3000,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'SW Champion - On Update - Say text');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=22 AND SourceEntry=@SW_Champion;
INSERT INTO conditions VALUES (22, 20, @SW_Champion, 0, 0, 31, 2, 4, 0, 0, 0, 0, 0, '', 'Run action if victim is player');

SET @Darn_Champion := 33738;
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@Darn_Champion;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@Darn_Champion;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@Darn_Champion,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'Darn Champion - On Reset - Remove auras from Defend'),
(@Darn_Champion,0,1,2,62,0,100,0,10453,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'Darn Champion - On gossip select - Close gossip'),
(@Darn_Champion,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,'Darn Champion - Linked with previous event - store target'),
(@Darn_Champion,0,3,4,61,0,100,0,0,0,0,0,64,2,0,0,0,0,0,22,0,0,0,0,0,0,0,'Darn Champion - Linked with previous event - store target'),
(@Darn_Champion,0,4,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'Darn Champion - Linked with previous event - Call timed actionlist'),
(@Darn_Champion,0,20,0,52,0,100,0,0,@Darn_Champion,0,0,11,63010,0,0,0,0,0,12,2,0,0,0,0,0,0,'Darn Champion - On text over - Cast Charge'),
(@Darn_Champion,0,21,0,52,0,100,0,0,@Darn_Champion,0,0,49,0,0,0,0,0,0,12,2,0,0,0,0,0,0,'Darn Champion - On text over - Attack Start'),
(@Darn_Champion,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'Darn Champion - IC - Cast Thrust'),
(@Darn_Champion,0,6,0,9,0,100,0,5,5,9000,10000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'Darn Champion - On more than 5 yard range - Cast Shield-Breaker'),
(@Darn_Champion,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'Darn Champion - IC - Move forward 12 yards'),
(@Darn_Champion,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'Darn Champion - On 10-12 yard range - Cast Charge'),
(@Darn_Champion,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'Darn Champion - Linked with previous event - Cast Shield-Breaker'),
(@Darn_Champion,0,10,11,2,0,100,1,1,6,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'Darn Champion - On HP% between 1% and 6% - Change faction to 35'),
(@Darn_Champion,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'Darn Champion - Linked with previous event - Say text'),
(@Darn_Champion,0,12,13,61,0,100,0,0,0,0,0,86,63596,2,12,1,0,0,12,1,0,0,0,0,0,0,'Darn Champion - Linked with previous event - Cast Mounted Melee Victory /item/'),
(@Darn_Champion,0,13,14,61,0,100,0,0,0,0,0,86,64805,2,12,1,0,0,12,1,0,0,0,0,0,0,'Darn Champion - Linked with previous event - Cast credit'),
(@Darn_Champion,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Darn Champion - Linked with previous event - Evade'),
(@Darn_Champion,0,15,16,5,0,100,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Darn Champion - On player killed - Say text'),
(@Darn_Champion,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Darn Champion - Linked with previous event - Set unseen'),
(@Darn_Champion,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Darn Champion - Linked with previous event - Despawn in 1 ms'),
(@Darn_Champion,0,18,0,7,0,100,0,0,0,0,0,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'Darn Champion - On Evade - Change faction to 35'),
(@Darn_Champion,0,19,16,0,0,100,0,3000,3000,3000,3000,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Darn Champion - On Update - Say text');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=22 AND SourceEntry=@Darn_Champion;
INSERT INTO conditions VALUES (22, 20, @Darn_Champion, 0, 0, 31, 2, 4, 0, 0, 0, 0, 0, '', 'Run action if victim is player');

SET @Exo_Champion := 33739;
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@Exo_Champion;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@Exo_Champion;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@Exo_Champion,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'Exo Champion - On Reset - Remove auras from Defend'),
(@Exo_Champion,0,1,2,62,0,100,0,10454,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'Exo Champion - On gossip select - Close gossip'),
(@Exo_Champion,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,'Exo Champion - Linked with previous event - store target'),
(@Exo_Champion,0,3,4,61,0,100,0,0,0,0,0,64,2,0,0,0,0,0,22,0,0,0,0,0,0,0,'Exo Champion - Linked with previous event - store target'),
(@Exo_Champion,0,4,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'Exo Champion - Linked with previous event - Call timed actionlist'),
(@Exo_Champion,0,20,0,52,0,100,0,0,@Exo_Champion,0,0,11,63010,0,0,0,0,0,12,2,0,0,0,0,0,0,'Exo Champion - On text over - Cast Charge'),
(@Exo_Champion,0,21,0,52,0,100,0,0,@Exo_Champion,0,0,49,0,0,0,0,0,0,12,2,0,0,0,0,0,0,'Exo Champion - On text over - Attack Start'),
(@Exo_Champion,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'Exo Champion - IC - Cast Thrust'),
(@Exo_Champion,0,6,0,9,0,100,0,5,5,9000,10000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'Exo Champion - On more than 5 yard range - Cast Shield-Breaker'),
(@Exo_Champion,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'Exo Champion - IC - Move forward 12 yards'),
(@Exo_Champion,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'Exo Champion - On 10-12 yard range - Cast Charge'),
(@Exo_Champion,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'Exo Champion - Linked with previous event - Cast Shield-Breaker'),
(@Exo_Champion,0,10,11,2,0,100,1,1,6,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'Exo Champion - On HP% between 1% and 6% - Change faction to 35'),
(@Exo_Champion,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'Exo Champion - Linked with previous event - Say text'),
(@Exo_Champion,0,12,13,61,0,100,0,0,0,0,0,86,63596,2,12,1,0,0,12,1,0,0,0,0,0,0,'Exo Champion - Linked with previous event - Cast Mounted Melee Victory /item/'),
(@Exo_Champion,0,13,14,61,0,100,0,0,0,0,0,86,64808,2,12,1,0,0,12,1,0,0,0,0,0,0,'Exo Champion - Linked with previous event - Cast credit'),
(@Exo_Champion,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Exo Champion - Linked with previous event - Evade'),
(@Exo_Champion,0,15,16,5,0,100,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Exo Champion - On player killed - Say text'),
(@Exo_Champion,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Exo Champion - Linked with previous event - Set unseen'),
(@Exo_Champion,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Exo Champion - Linked with previous event - Despawn in 1 ms'),
(@Exo_Champion,0,18,0,7,0,100,0,0,0,0,0,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'Exo Champion - On Evade - Change faction to 35'),
(@Exo_Champion,0,19,16,0,0,100,0,3000,3000,3000,3000,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Exo Champion - On Update - Say text');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=22 AND SourceEntry=@Exo_Champion;
INSERT INTO conditions VALUES (22, 20, @Exo_Champion, 0, 0, 31, 2, 4, 0, 0, 0, 0, 0, '', 'Run action if victim is player');

SET @UC_Champion := 33749;
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@UC_Champion;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@UC_Champion;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@UC_Champion,0,0,0,25,0,100,0,0,0,0,0,28,64223,0,0,0,0,0,1,0,0,0,0,0,0,0,'UC Champion - On Reset - Remove auras from Defend'),
(@UC_Champion,0,1,2,62,0,100,0,10462,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'UC Champion - On gossip select - Close gossip'),
(@UC_Champion,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,'UC Champion - Linked with previous event - store target'),
(@UC_Champion,0,3,4,61,0,100,0,0,0,0,0,64,2,0,0,0,0,0,22,0,0,0,0,0,0,0,'UC Champion - Linked with previous event - store target'),
(@UC_Champion,0,4,0,61,0,100,0,0,0,0,0,80,@Script,2,0,0,0,0,1,0,0,0,0,0,0,0,'UC Champion - Linked with previous event - Call timed actionlist'),
(@UC_Champion,0,20,0,52,0,100,0,0,@UC_Champion,0,0,11,63010,0,0,0,0,0,12,2,0,0,0,0,0,0,'UC Champion - On text over - Cast Charge'),
(@UC_Champion,0,21,0,52,0,100,0,0,@UC_Champion,0,0,49,0,0,0,0,0,0,12,2,0,0,0,0,0,0,'UC Champion - On text over - Attack Start'),
(@UC_Champion,0,5,0,0,0,100,0,0,0,1500,4000,11,62544,0,0,0,0,0,2,0,0,0,0,0,0,0,'UC Champion - IC - Cast Thrust'),
(@UC_Champion,0,6,0,9,0,100,0,5,5,9000,10000,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'UC Champion - On more than 5 yard range - Cast Shield-Breaker'),
(@UC_Champion,0,7,0,0,0,100,0,9000,11000,9000,10000,46,12,0,0,0,0,0,1,0,0,0,0,0,0,0,'UC Champion - IC - Move forward 12 yards'),
(@UC_Champion,0,8,9,9,0,100,0,9,15,3000,3000,11,63010,0,0,0,0,0,2,0,0,0,0,0,0,0,'UC Champion - On 10-12 yard range - Cast Charge'),
(@UC_Champion,0,9,0,61,0,100,0,0,0,0,0,11,62575,0,0,0,0,0,2,0,0,0,0,0,0,0,'UC Champion - Linked with previous event - Cast Shield-Breaker'),
(@UC_Champion,0,10,11,2,0,100,1,1,6,60000,60000,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'UC Champion - On HP% between 1% and 6% - Change faction to 35'),
(@UC_Champion,0,11,12,61,0,100,0,0,0,0,0,1,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'UC Champion - Linked with previous event - Say text'),
(@UC_Champion,0,12,13,61,0,100,0,0,0,0,0,86,63596,2,12,1,0,0,12,1,0,0,0,0,0,0,'UC Champion - Linked with previous event - Cast Mounted Melee Victory /item/'),
(@UC_Champion,0,13,14,61,0,100,0,0,0,0,0,86,64816,2,12,1,0,0,12,1,0,0,0,0,0,0,'UC Champion - Linked with previous event - Cast credit'),
(@UC_Champion,0,14,0,61,0,100,0,0,0,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'UC Champion - Linked with previous event - Evade'),
(@UC_Champion,0,15,16,5,0,100,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'UC Champion - On player killed - Say text'),
(@UC_Champion,0,16,17,61,0,100,0,0,0,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'UC Champion - Linked with previous event - Set unseen'),
(@UC_Champion,0,17,0,61,0,100,0,0,0,0,0,41,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'UC Champion - Linked with previous event - Despawn in 1 ms'),
(@UC_Champion,0,18,0,7,0,100,0,0,0,0,0,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'UC Champion - On Evade - Change faction to 35'),
(@UC_Champion,0,19,16,0,0,100,0,3000,3000,3000,3000,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'UC Champion - On Update - Say text');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=22 AND SourceEntry=@UC_Champion;
INSERT INTO conditions VALUES (22, 20, @UC_Champion, 0, 0, 31, 2, 4, 0, 0, 0, 0, 0, '', 'Run action if victim is player');

-- Threat From Above
UPDATE quest_template SET RequiredClasses=1503, RequiredRaces=1101, PrevQuestId=13794 WHERE Id=13682; -- all except death knight
UPDATE quest_template SET RequiredClasses=1503, RequiredRaces=690, PrevQuestId=13794 WHERE Id=13809; -- all except death knight
UPDATE quest_template SET RequiredClasses=32, RequiredRaces=1101, PrevQuestId=13795 WHERE Id=13788; -- death knight
UPDATE quest_template SET RequiredClasses=32, RequiredRaces=690, PrevQuestId=13795 WHERE Id=13812; -- death knight
UPDATE creature_template SET InhabitType=7, AIName="SmartAI" WHERE entry=33687;
UPDATE vehicle_template_accessory SET minion=1 WHERE entry=33687;
DELETE FROM smart_scripts WHERE entryorguid=33687 AND source_type=0;
INSERT INTO smart_scripts VALUES(33687, 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 event phase on reset");
INSERT INTO smart_scripts VALUES(33687, 0, 1, 0, 0, 0, 100, 0, 5000, 7000, 8000, 12000, 11, 65248, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "cast frost breath in combat");
INSERT INTO smart_scripts VALUES(33687, 0, 2, 0, 0, 0, 100, 0, 8000, 9000, 10000, 13000, 11, 65260, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "wing buffet in combat");
INSERT INTO smart_scripts VALUES(33687, 0, 3, 4, 2, 1, 100, 0, 0, 80, 1000, 1000, 12, 33695, 4, 30000, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "check health and spawn third bombardier");
INSERT INTO smart_scripts VALUES(33687, 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, "Go to next phase");
INSERT INTO smart_scripts VALUES(33687, 0, 5, 6, 2, 2, 100, 0, 0, 50, 1000, 1000, 12, 33695, 4, 30000, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "check health and spawn third bombardier");
INSERT INTO smart_scripts VALUES(33687, 0, 6, 0, 61, 2, 100, 0, 0, 0, 0, 0, 22, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Go to next phase");
INSERT INTO smart_scripts VALUES(33687, 0, 7, 8, 2, 4, 100, 0, 0, 30, 1000, 1000, 12, 33695, 4, 30000, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "check health and spawn third bombardier");
INSERT INTO smart_scripts VALUES(33687, 0, 8, 0, 61, 4, 100, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Go to next phase");
UPDATE creature_template SET AIName="SmartAI" WHERE entry=33695;
DELETE FROM smart_scripts WHERE entryorguid=33695 AND source_type=0;
INSERT INTO smart_scripts VALUES(33695, 0, 0, 0, 0, 0, 100, 0, 5000, 6000, 8000, 12000, 11, 65128, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "cast throw dynamite in combat");
INSERT INTO smart_scripts VALUES(33695, 0, 1, 0, 0, 0, 100, 0, 8000, 9000, 6000, 13000, 11, 65130, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "time bomb in combat");
UPDATE creature_template SET AIName="SmartAI", faction=14, unit_flags=262144+33554432+131072+4 WHERE entry=34307;
DELETE FROM smart_scripts WHERE entryorguid=34307 AND source_type=0;
INSERT INTO smart_scripts VALUES(34307, 0, 0, 0, 60, 0, 100, 0, 1, 1, 30000, 30000, 11, 59686, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "apply aura on spawn");
INSERT INTO smart_scripts VALUES(34307, 0, 1, 2, 60, 0, 100, 0, 5000, 5000, 5000, 5000, 11, 59687, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "explode!");
INSERT INTO smart_scripts VALUES(34307, 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, "despawn on explode");

-- Some dailies, fix combat reach as spells have low range, and retards tends to cast spells from edges
UPDATE creature_model_info SET combat_reach=5 WHERE modelid IN(28972, 28855, 28704, 28630, 29683, 29684, 29685, 29686, 29497);

-- There's Something About the Squire (13654)
REPLACE INTO npc_spellclick_spells VALUES(33498, 63126, 3, 0);
DELETE FROM smart_scripts WHERE entryorguid=33498 AND source_type=0;
INSERT INTO smart_scripts VALUES(33498, 0, 0, 0, 23, 0, 100, 0, 63124, 1, 2000, 2000, 81, 16777216, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Maloric - On Has Aura Incapacitate Maloric - Set Npc Flag Spellclick');
INSERT INTO smart_scripts VALUES(33498, 0, 1, 0, 23, 0, 100, 0, 63124, 0, 2000, 2000, 81, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Maloric - On Has Aura Incapacitate Maloric - Set Npc Flag');

-- Black Knight Orders
DELETE FROM smart_scripts WHERE entryorguid=33519 AND source_type=0;
INSERT INTO smart_scripts VALUES(33519, 0, 0, 0, 27, 0, 100, 0, 0, 0, 0, 0, 53, 0, 33519, 0, 13663, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Black Knight''s Gryphon - On passenger - Start WP movement');
INSERT INTO smart_scripts VALUES(33519, 0, 1, 0, 40, 0, 100, 0, 40, 33519, 0, 0, 33, 33519, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Black Knight''s Gryphon - On WP 40 - Quest Credit');
INSERT INTO smart_scripts VALUES(33519, 0, 2, 0, 40, 0, 100, 0, 43, 33519, 0, 0, 11, 50630, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Black Knight''s Gryphon - On WP 43 - Dismount Spell');
INSERT INTO smart_scripts VALUES(33519, 0, 3, 0, 40, 0, 100, 0, 44, 33519, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Black Knight''s Gryphon - On WP 44 - Despawn');
INSERT INTO smart_scripts VALUES(33519, 0, 4, 0, 1, 0, 100, 1, 2000, 2000, 0, 0, 60, 1, 700, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Black Knight''s Gryphon - Set fly speed');

-- The Black Knight's Curse (14016)
UPDATE creature_template SET flags_extra=130, ScriptName="npc_black_knight_graveyard" WHERE entry=34735;
UPDATE creature_template SET AIName="SmartAI" WHERE entry=35127;
DELETE FROM smart_scripts WHERE entryorguid=35127 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid=35127*100 AND source_type=9;
INSERT INTO smart_scripts VALUES(35127, 0, 0, 0, 11, 0, 100, 0, 0, 0, 0, 0, 80, 35127*100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "run script on respawn");
INSERT INTO smart_scripts VALUES(35127, 0, 1, 0, 6, 0, 100, 0, 0, 0, 0, 0, 26, 14016, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "complete quest on kill");
INSERT INTO smart_scripts VALUES(35127*100, 9, 0, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 11, 35116, 30, 0, 0, 0, 0, 0, "say text 0");
INSERT INTO smart_scripts VALUES(35127*100, 9, 1, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 11, 35116, 30, 0, 0, 0, 0, 0, "say text 1");
INSERT INTO smart_scripts VALUES(35127*100, 9, 2, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 1, 2, 0, 0, 0, 0, 0, 11, 35116, 30, 0, 0, 0, 0, 0, "say text 2");
INSERT INTO smart_scripts VALUES(35127*100, 9, 3, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "say text 3");
INSERT INTO smart_scripts VALUES(35127*100, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 100, 0, 0, 0, 0, 0, 11, 35116, 30, 0, 0, 0, 0, 0, "Despawn Target");
INSERT INTO smart_scripts VALUES(35127*100, 9, 5, 0, 0, 0, 100, 0, 0, 0, 0, 0, 2, 14, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Set Faction");
REPLACE INTO creature_text VALUES(35116, 0, 0, "What do you think you're doing?", 12, 0, 100, 0, 0, 0, 0, "");
REPLACE INTO creature_text VALUES(35116, 1, 0, "You're too late to stop our plan.", 12, 0, 100, 0, 0, 0, 0, "");
REPLACE INTO creature_text VALUES(35116, 2, 0, "See to it that I'm not followed.", 12, 0, 100, 0, 0, 0, 0, "");
REPLACE INTO creature_text VALUES(35127, 0, 0, "Gladly.", 12, 0, 100, 0, 0, 0, 0, "");

-- Mount spells, can be used only on other mounts, quest npcs
-- Thurst
DELETE FROM conditions WHERE SourceTypeOrReferenceId=17 AND SourceEntry IN(62544, 62575, 62960);
INSERT INTO conditions VALUES(17, 0, 62544, 0, 0, 31, 1, 3, 33217, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62544, 0, 1, 31, 1, 3, 33285, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62544, 0, 2, 31, 1, 3, 33306, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62544, 0, 3, 31, 1, 3, 33316, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62544, 0, 4, 31, 1, 3, 33317, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62544, 0, 5, 31, 1, 3, 33318, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62544, 0, 6, 31, 1, 3, 33319, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62544, 0, 7, 31, 1, 3, 33320, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62544, 0, 8, 31, 1, 3, 33321, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62544, 0, 9, 31, 1, 3, 33322, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62544, 0, 10, 31, 1, 3, 33323, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62544, 0, 11, 31, 1, 3, 33324, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62544, 0, 12, 31, 1, 3, 33382, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62544, 0, 13, 31, 1, 3, 33383, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62544, 0, 14, 31, 1, 3, 33384, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62544, 0, 15, 31, 1, 3, 33448, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62544, 0, 16, 31, 1, 3, 33558, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62544, 0, 17, 31, 1, 3, 33559, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62544, 0, 18, 31, 1, 3, 33561, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62544, 0, 19, 31, 1, 3, 33562, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62544, 0, 20, 31, 1, 3, 33564, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62544, 0, 21, 31, 1, 3, 33707, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62544, 0, 22, 31, 1, 3, 33738, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62544, 0, 23, 31, 1, 3, 33739, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62544, 0, 24, 31, 1, 3, 33740, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62544, 0, 25, 31, 1, 3, 33743, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62544, 0, 26, 31, 1, 3, 33744, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62544, 0, 27, 31, 1, 3, 33745, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62544, 0, 28, 31, 1, 3, 33746, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62544, 0, 29, 31, 1, 3, 33747, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62544, 0, 30, 31, 1, 3, 33748, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62544, 0, 31, 31, 1, 3, 33749, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62544, 0, 32, 31, 1, 3, 33782, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62544, 0, 33, 31, 1, 3, 33785, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62544, 0, 34, 31, 1, 3, 33844, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62544, 0, 35, 31, 1, 3, 33845, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62544, 0, 36, 31, 1, 3, 33229, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62544, 0, 37, 31, 1, 3, 33243, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62544, 0, 38, 31, 1, 3, 33272, 0, 0, 0, 0, '', '');
-- Shield Breaker
INSERT INTO conditions VALUES(17, 0, 62575, 0, 0, 31, 1, 3, 33217, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 1, 31, 1, 3, 33285, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 2, 31, 1, 3, 33306, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 3, 31, 1, 3, 33316, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 4, 31, 1, 3, 33317, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 5, 31, 1, 3, 33318, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 6, 31, 1, 3, 33319, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 7, 31, 1, 3, 33320, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 8, 31, 1, 3, 33321, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 9, 31, 1, 3, 33322, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 10, 31, 1, 3, 33323, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 11, 31, 1, 3, 33324, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 12, 31, 1, 3, 33382, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 13, 31, 1, 3, 33383, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 14, 31, 1, 3, 33384, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 15, 31, 1, 3, 33448, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 16, 31, 1, 3, 33558, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 17, 31, 1, 3, 33559, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 18, 31, 1, 3, 33561, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 19, 31, 1, 3, 33562, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 20, 31, 1, 3, 33564, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 21, 31, 1, 3, 33707, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 22, 31, 1, 3, 33738, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 23, 31, 1, 3, 33739, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 24, 31, 1, 3, 33740, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 25, 31, 1, 3, 33743, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 26, 31, 1, 3, 33744, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 27, 31, 1, 3, 33745, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 28, 31, 1, 3, 33746, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 29, 31, 1, 3, 33747, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 30, 31, 1, 3, 33748, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 31, 31, 1, 3, 33749, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 32, 31, 1, 3, 33782, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 33, 31, 1, 3, 33785, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 34, 31, 1, 3, 33844, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 35, 31, 1, 3, 33845, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 36, 31, 1, 3, 33229, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 37, 31, 1, 3, 33243, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 38, 31, 1, 3, 33272, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 39, 31, 1, 3, 34657, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 40, 31, 1, 3, 34701, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 41, 31, 1, 3, 34702, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 42, 31, 1, 3, 34703, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 43, 31, 1, 3, 34705, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 44, 31, 1, 3, 35569, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 45, 31, 1, 3, 35570, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 46, 31, 1, 3, 35571, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 47, 31, 1, 3, 35572, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 48, 31, 1, 3, 35617, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 49, 31, 1, 3, 35314, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 50, 31, 1, 3, 35323, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 51, 31, 1, 3, 35325, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 52, 31, 1, 3, 35326, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 53, 31, 1, 3, 35327, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 54, 31, 1, 3, 35328, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 55, 31, 1, 3, 35329, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 56, 31, 1, 3, 35330, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 57, 31, 1, 3, 35331, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62575, 0, 58, 31, 1, 3, 35332, 0, 0, 0, 0, '', '');
-- Charge
INSERT INTO conditions VALUES(17, 0, 62960, 0, 0, 31, 1, 3, 33217, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62960, 0, 1, 31, 1, 3, 33285, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62960, 0, 2, 31, 1, 3, 33306, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62960, 0, 3, 31, 1, 3, 33316, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62960, 0, 4, 31, 1, 3, 33317, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62960, 0, 5, 31, 1, 3, 33318, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62960, 0, 6, 31, 1, 3, 33319, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62960, 0, 7, 31, 1, 3, 33320, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62960, 0, 8, 31, 1, 3, 33321, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62960, 0, 9, 31, 1, 3, 33322, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62960, 0, 10, 31, 1, 3, 33323, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62960, 0, 11, 31, 1, 3, 33324, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62960, 0, 12, 31, 1, 3, 33382, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62960, 0, 13, 31, 1, 3, 33383, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62960, 0, 14, 31, 1, 3, 33384, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62960, 0, 15, 31, 1, 3, 33448, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62960, 0, 16, 31, 1, 3, 33558, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62960, 0, 17, 31, 1, 3, 33559, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62960, 0, 18, 31, 1, 3, 33561, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62960, 0, 19, 31, 1, 3, 33562, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62960, 0, 20, 31, 1, 3, 33564, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62960, 0, 21, 31, 1, 3, 33707, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62960, 0, 22, 31, 1, 3, 33738, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62960, 0, 23, 31, 1, 3, 33739, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62960, 0, 24, 31, 1, 3, 33740, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62960, 0, 25, 31, 1, 3, 33743, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62960, 0, 26, 31, 1, 3, 33744, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62960, 0, 27, 31, 1, 3, 33745, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62960, 0, 28, 31, 1, 3, 33746, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62960, 0, 29, 31, 1, 3, 33747, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62960, 0, 30, 31, 1, 3, 33748, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62960, 0, 31, 31, 1, 3, 33749, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62960, 0, 32, 31, 1, 3, 33782, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62960, 0, 33, 31, 1, 3, 33785, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62960, 0, 34, 31, 1, 3, 33844, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62960, 0, 35, 31, 1, 3, 33845, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62960, 0, 36, 31, 1, 3, 33229, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62960, 0, 37, 31, 1, 3, 33243, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62960, 0, 38, 31, 1, 3, 33272, 0, 0, 0, 0, '', '');

-- Charger skills
DELETE FROM conditions WHERE SourceTypeOrReferenceId=17 AND SourceEntry IN(64588, 64595, 62563);
INSERT INTO conditions VALUES(17, 0, 64588, 0, 0, 31, 1, 3, 33438, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 64588, 0, 1, 31, 1, 3, 34127, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 64588, 0, 2, 31, 1, 3, 33550, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 64588, 0, 3, 31, 1, 3, 33429, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 64595, 0, 0, 31, 1, 3, 33438, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 64595, 0, 1, 31, 1, 3, 34127, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 64595, 0, 2, 31, 1, 3, 33550, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 64595, 0, 3, 31, 1, 3, 33429, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62563, 0, 0, 31, 1, 3, 33438, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62563, 0, 1, 31, 1, 3, 34127, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62563, 0, 2, 31, 1, 3, 33550, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(17, 0, 62563, 0, 3, 31, 1, 3, 33429, 0, 0, 0, 0, '', '');


-- Some quest requirements
-- Aspirant Quest's (Till aspirant path finished)
DELETE FROM conditions WHERE SourceTypeOrReferenceId IN(19, 20) AND SourceEntry IN(13671, 13670, 13669, 13666, 13625, 13677, 13676, 13675, 13674, 13673);
INSERT INTO conditions VALUES(19, 0, 13671, 0, 0, 8, 0, 13835, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(19, 0, 13671, 0, 0, 8, 0, 13837, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(19, 0, 13671, 0, 0, 8, 0, 13828, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(19, 0, 13671, 0, 0, 8, 0, 13672, 0, 0, 1, 0, 0, '', 'Not Rewarded Aspirant');
INSERT INTO conditions VALUES(19, 0, 13669, 0, 0, 8, 0, 13837, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(19, 0, 13669, 0, 0, 8, 0, 13828, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(19, 0, 13669, 0, 0, 8, 0, 13835, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(19, 0, 13669, 0, 0, 8, 0, 13672, 0, 0, 1, 0, 0, '', 'Not Rewarded Aspirant');
INSERT INTO conditions VALUES(19, 0, 13666, 0, 0, 8, 0, 13835, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(19, 0, 13666, 0, 0, 8, 0, 13837, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(19, 0, 13666, 0, 0, 8, 0, 13828, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(19, 0, 13666, 0, 0, 8, 0, 13672, 0, 0, 1, 0, 0, '', 'Not Rewarded Aspirant');
INSERT INTO conditions VALUES(19, 0, 13625, 0, 0, 8, 0, 13837, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(19, 0, 13625, 0, 0, 8, 0, 13835, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(19, 0, 13625, 0, 0, 8, 0, 13828, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(19, 0, 13625, 0, 0, 8, 0, 13672, 0, 0, 1, 0, 0, '', 'Not Rewarded Aspirant');
INSERT INTO conditions VALUES(19, 0, 13670, 0, 0, 8, 0, 13837, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(19, 0, 13670, 0, 0, 8, 0, 13835, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(19, 0, 13670, 0, 0, 8, 0, 13828, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(19, 0, 13670, 0, 0, 8, 0, 13672, 0, 0, 1, 0, 0, '', 'Not Rewarded Aspirant');
INSERT INTO conditions VALUES(19, 0, 13674, 0, 0, 8, 0, 13839, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(19, 0, 13674, 0, 0, 8, 0, 13838, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(19, 0, 13674, 0, 0, 8, 0, 13829, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(19, 0, 13674, 0, 0, 8, 0, 13678, 0, 0, 1, 0, 0, '', 'Not Rewarded Aspirant');
INSERT INTO conditions VALUES(19, 0, 13676, 0, 0, 8, 0, 13838, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(19, 0, 13676, 0, 0, 8, 0, 13839, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(19, 0, 13676, 0, 0, 8, 0, 13829, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(19, 0, 13676, 0, 0, 8, 0, 13678, 0, 0, 1, 0, 0, '', 'Not Rewarded Aspirant');
INSERT INTO conditions VALUES(19, 0, 13675, 0, 0, 8, 0, 13829, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(19, 0, 13675, 0, 0, 8, 0, 13839, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(19, 0, 13675, 0, 0, 8, 0, 13838, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(19, 0, 13675, 0, 0, 8, 0, 13678, 0, 0, 1, 0, 0, '', 'Not Rewarded Aspirant');
INSERT INTO conditions VALUES(19, 0, 13677, 0, 0, 8, 0, 13838, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(19, 0, 13677, 0, 0, 8, 0, 13839, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(19, 0, 13677, 0, 0, 8, 0, 13829, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(19, 0, 13677, 0, 0, 8, 0, 13678, 0, 0, 1, 0, 0, '', 'Not Rewarded Aspirant');
INSERT INTO conditions VALUES(19, 0, 13673, 0, 0, 8, 0, 13829, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(19, 0, 13673, 0, 0, 8, 0, 13839, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(19, 0, 13673, 0, 0, 8, 0, 13838, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(19, 0, 13673, 0, 0, 8, 0, 13678, 0, 0, 1, 0, 0, '', 'Not Rewarded Aspirant');
INSERT INTO conditions VALUES(20, 0, 13671, 0, 0, 8, 0, 13835, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(20, 0, 13671, 0, 0, 8, 0, 13837, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(20, 0, 13671, 0, 0, 8, 0, 13828, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(20, 0, 13671, 0, 0, 8, 0, 13672, 0, 0, 1, 0, 0, '', 'Not Rewarded Aspirant');
INSERT INTO conditions VALUES(20, 0, 13669, 0, 0, 8, 0, 13837, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(20, 0, 13669, 0, 0, 8, 0, 13828, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(20, 0, 13669, 0, 0, 8, 0, 13835, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(20, 0, 13669, 0, 0, 8, 0, 13672, 0, 0, 1, 0, 0, '', 'Not Rewarded Aspirant');
INSERT INTO conditions VALUES(20, 0, 13666, 0, 0, 8, 0, 13835, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(20, 0, 13666, 0, 0, 8, 0, 13837, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(20, 0, 13666, 0, 0, 8, 0, 13828, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(20, 0, 13666, 0, 0, 8, 0, 13672, 0, 0, 1, 0, 0, '', 'Not Rewarded Aspirant');
INSERT INTO conditions VALUES(20, 0, 13625, 0, 0, 8, 0, 13837, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(20, 0, 13625, 0, 0, 8, 0, 13835, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(20, 0, 13625, 0, 0, 8, 0, 13828, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(20, 0, 13625, 0, 0, 8, 0, 13672, 0, 0, 1, 0, 0, '', 'Not Rewarded Aspirant');
INSERT INTO conditions VALUES(20, 0, 13670, 0, 0, 8, 0, 13837, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(20, 0, 13670, 0, 0, 8, 0, 13835, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(20, 0, 13670, 0, 0, 8, 0, 13828, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(20, 0, 13670, 0, 0, 8, 0, 13672, 0, 0, 1, 0, 0, '', 'Not Rewarded Aspirant');
INSERT INTO conditions VALUES(20, 0, 13674, 0, 0, 8, 0, 13839, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(20, 0, 13674, 0, 0, 8, 0, 13838, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(20, 0, 13674, 0, 0, 8, 0, 13829, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(20, 0, 13674, 0, 0, 8, 0, 13678, 0, 0, 1, 0, 0, '', 'Not Rewarded Aspirant');
INSERT INTO conditions VALUES(20, 0, 13676, 0, 0, 8, 0, 13838, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(20, 0, 13676, 0, 0, 8, 0, 13839, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(20, 0, 13676, 0, 0, 8, 0, 13829, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(20, 0, 13676, 0, 0, 8, 0, 13678, 0, 0, 1, 0, 0, '', 'Not Rewarded Aspirant');
INSERT INTO conditions VALUES(20, 0, 13675, 0, 0, 8, 0, 13829, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(20, 0, 13675, 0, 0, 8, 0, 13839, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(20, 0, 13675, 0, 0, 8, 0, 13838, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(20, 0, 13675, 0, 0, 8, 0, 13678, 0, 0, 1, 0, 0, '', 'Not Rewarded Aspirant');
INSERT INTO conditions VALUES(20, 0, 13677, 0, 0, 8, 0, 13838, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(20, 0, 13677, 0, 0, 8, 0, 13839, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(20, 0, 13677, 0, 0, 8, 0, 13829, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(20, 0, 13677, 0, 0, 8, 0, 13678, 0, 0, 1, 0, 0, '', 'Not Rewarded Aspirant');
INSERT INTO conditions VALUES(20, 0, 13673, 0, 0, 8, 0, 13829, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(20, 0, 13673, 0, 0, 8, 0, 13839, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(20, 0, 13673, 0, 0, 8, 0, 13838, 0, 0, 0, 0, 0, '', '');
INSERT INTO conditions VALUES(20, 0, 13673, 0, 0, 8, 0, 13678, 0, 0, 1, 0, 0, '', 'Not Rewarded Aspirant');
-- Valiant Quest's
-- Stormwind
UPDATE quest_template SET RequiredRaces=1, PrevQuestId=13679, NextQuestId=0 WHERE Id=13684;
UPDATE quest_template SET RequiredRaces=1101, PrevQuestId=13718, NextQuestId=0 WHERE Id=13699;
UPDATE quest_template SET RequiredRaces=1101, PrevQuestId=0, NextQuestId=0 WHERE Id IN(13593, 13718, 13847, 13665, 13592, 13616, 13600, 13603);
DELETE FROM conditions WHERE SourceTypeOrReferenceId IN(19, 20) AND SourceEntry IN(13684, 13593, 13718, 13847, 13665, 13592, 13616, 13600, 13603);
-- Valiant of Stormwind
INSERT INTO conditions VALUES(19, 0, 13593, 0, 0, 8, 0, 13700, 0, 0, 0, 0, 0, '', 'Alliance Champion Marker Rewarded');
INSERT INTO conditions VALUES(19, 0, 13593, 0, 0, 8, 0, 13686, 0, 0, 1, 0, 0, '', 'Alliance Tournament Eligibility Marker Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13593, 0, 0, 8, 0, 13684, 0, 0, 1, 0, 0, '', 'A Valiant of Stormwind Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13593, 0, 0, 8, 0, 13700, 0, 0, 0, 0, 0, '', 'Alliance Champion Marker Rewarded');
INSERT INTO conditions VALUES(20, 0, 13593, 0, 0, 8, 0, 13686, 0, 0, 1, 0, 0, '', 'Alliance Tournament Eligibility Marker Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13593, 0, 0, 8, 0, 13684, 0, 0, 1, 0, 0, '', 'A Valiant of Stormwind Not Rewarded');
-- Dailies
INSERT INTO conditions VALUES(19, 0, 13718, 0, 0, 8, 0, 13593, 0, 0, 0, 0, 0, '', 'Valiant of Stormwind Rewarded');
INSERT INTO conditions VALUES(19, 0, 13718, 0, 1, 8, 0, 13684, 0, 0, 0, 0, 0, '', 'A Valiant of Stormwind Rewarded');
INSERT INTO conditions VALUES(19, 0, 13665, 0, 0, 8, 0, 13593, 0, 0, 0, 0, 0, '', 'Valiant of Stormwind Rewarded');
INSERT INTO conditions VALUES(19, 0, 13665, 0, 0, 8, 0, 13718, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13665, 0, 1, 8, 0, 13684, 0, 0, 0, 0, 0, '', 'A Valiant of Stormwind Rewarded');
INSERT INTO conditions VALUES(19, 0, 13665, 0, 1, 8, 0, 13718, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13847, 0, 0, 8, 0, 13593, 0, 0, 0, 0, 0, '', 'Valiant of Stormwind Rewarded');
INSERT INTO conditions VALUES(19, 0, 13847, 0, 0, 8, 0, 13718, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13847, 0, 1, 8, 0, 13684, 0, 0, 0, 0, 0, '', 'A Valiant of Stormwind Rewarded');
INSERT INTO conditions VALUES(19, 0, 13847, 0, 1, 8, 0, 13718, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13592, 0, 0, 8, 0, 13593, 0, 0, 0, 0, 0, '', 'Valiant of Stormwind Rewarded');
INSERT INTO conditions VALUES(19, 0, 13592, 0, 0, 8, 0, 13718, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13592, 0, 1, 8, 0, 13684, 0, 0, 0, 0, 0, '', 'A Valiant of Stormwind Rewarded');
INSERT INTO conditions VALUES(19, 0, 13592, 0, 1, 8, 0, 13718, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13616, 0, 0, 8, 0, 13593, 0, 0, 0, 0, 0, '', 'Valiant of Stormwind Rewarded');
INSERT INTO conditions VALUES(19, 0, 13616, 0, 0, 8, 0, 13718, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13616, 0, 1, 8, 0, 13684, 0, 0, 0, 0, 0, '', 'A Valiant of Stormwind Rewarded');
INSERT INTO conditions VALUES(19, 0, 13616, 0, 1, 8, 0, 13718, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13600, 0, 0, 8, 0, 13593, 0, 0, 0, 0, 0, '', 'Valiant of Stormwind Rewarded');
INSERT INTO conditions VALUES(19, 0, 13600, 0, 0, 8, 0, 13718, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13600, 0, 1, 8, 0, 13684, 0, 0, 0, 0, 0, '', 'A Valiant of Stormwind Rewarded');
INSERT INTO conditions VALUES(19, 0, 13600, 0, 1, 8, 0, 13718, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13603, 0, 0, 8, 0, 13593, 0, 0, 0, 0, 0, '', 'Valiant of Stormwind Rewarded');
INSERT INTO conditions VALUES(19, 0, 13603, 0, 0, 8, 0, 13718, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13603, 0, 1, 8, 0, 13684, 0, 0, 0, 0, 0, '', 'A Valiant of Stormwind Rewarded');
INSERT INTO conditions VALUES(19, 0, 13603, 0, 1, 8, 0, 13718, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13718, 0, 0, 8, 0, 13593, 0, 0, 0, 0, 0, '', 'Valiant of Stormwind Rewarded');
INSERT INTO conditions VALUES(20, 0, 13718, 0, 1, 8, 0, 13684, 0, 0, 0, 0, 0, '', 'A Valiant of Stormwind Rewarded');
INSERT INTO conditions VALUES(20, 0, 13665, 0, 0, 8, 0, 13593, 0, 0, 0, 0, 0, '', 'Valiant of Stormwind Rewarded');
INSERT INTO conditions VALUES(20, 0, 13665, 0, 0, 8, 0, 13718, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13665, 0, 1, 8, 0, 13684, 0, 0, 0, 0, 0, '', 'A Valiant of Stormwind Rewarded');
INSERT INTO conditions VALUES(20, 0, 13665, 0, 1, 8, 0, 13718, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13847, 0, 0, 8, 0, 13593, 0, 0, 0, 0, 0, '', 'Valiant of Stormwind Rewarded');
INSERT INTO conditions VALUES(20, 0, 13847, 0, 0, 8, 0, 13718, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13847, 0, 1, 8, 0, 13684, 0, 0, 0, 0, 0, '', 'A Valiant of Stormwind Rewarded');
INSERT INTO conditions VALUES(20, 0, 13847, 0, 1, 8, 0, 13718, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13592, 0, 0, 8, 0, 13593, 0, 0, 0, 0, 0, '', 'Valiant of Stormwind Rewarded');
INSERT INTO conditions VALUES(20, 0, 13592, 0, 0, 8, 0, 13718, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13592, 0, 1, 8, 0, 13684, 0, 0, 0, 0, 0, '', 'A Valiant of Stormwind Rewarded');
INSERT INTO conditions VALUES(20, 0, 13592, 0, 1, 8, 0, 13718, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13616, 0, 0, 8, 0, 13593, 0, 0, 0, 0, 0, '', 'Valiant of Stormwind Rewarded');
INSERT INTO conditions VALUES(20, 0, 13616, 0, 0, 8, 0, 13718, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13616, 0, 1, 8, 0, 13684, 0, 0, 0, 0, 0, '', 'A Valiant of Stormwind Rewarded');
INSERT INTO conditions VALUES(20, 0, 13616, 0, 1, 8, 0, 13718, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13600, 0, 0, 8, 0, 13593, 0, 0, 0, 0, 0, '', 'Valiant of Stormwind Rewarded');
INSERT INTO conditions VALUES(20, 0, 13600, 0, 0, 8, 0, 13718, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13600, 0, 1, 8, 0, 13684, 0, 0, 0, 0, 0, '', 'A Valiant of Stormwind Rewarded');
INSERT INTO conditions VALUES(20, 0, 13600, 0, 1, 8, 0, 13718, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13603, 0, 0, 8, 0, 13593, 0, 0, 0, 0, 0, '', 'Valiant of Stormwind Rewarded');
INSERT INTO conditions VALUES(20, 0, 13603, 0, 0, 8, 0, 13718, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13603, 0, 1, 8, 0, 13684, 0, 0, 0, 0, 0, '', 'A Valiant of Stormwind Rewarded');
INSERT INTO conditions VALUES(20, 0, 13603, 0, 1, 8, 0, 13718, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
-- Ironforge
UPDATE quest_template SET RequiredRaces=4, PrevQuestId=13679, NextQuestId=0 WHERE Id=13685;
UPDATE quest_template SET RequiredRaces=1101, PrevQuestId=13714, NextQuestId=0 WHERE Id=13713;
UPDATE quest_template SET RequiredRaces=1101, PrevQuestId=0, NextQuestId=0 WHERE Id IN(13703, 13714, 13851, 13745, 13744, 13743, 13742, 13741);
DELETE FROM conditions WHERE SourceTypeOrReferenceId IN(19, 20) AND SourceEntry IN(13685, 13703, 13714, 13851, 13745, 13744, 13743, 13742, 13741);
-- Valiant of Ironforge
INSERT INTO conditions VALUES(19, 0, 13703, 0, 0, 8, 0, 13700, 0, 0, 0, 0, 0, '', 'Alliance Champion Marker Rewarded');
INSERT INTO conditions VALUES(19, 0, 13703, 0, 0, 8, 0, 13686, 0, 0, 1, 0, 0, '', 'Alliance Tournament Eligibility Marker Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13703, 0, 0, 8, 0, 13685, 0, 0, 1, 0, 0, '', 'A Valiant of Ironforge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13703, 0, 0, 8, 0, 13700, 0, 0, 0, 0, 0, '', 'Alliance Champion Marker Rewarded');
INSERT INTO conditions VALUES(20, 0, 13703, 0, 0, 8, 0, 13686, 0, 0, 1, 0, 0, '', 'Alliance Tournament Eligibility Marker Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13703, 0, 0, 8, 0, 13685, 0, 0, 1, 0, 0, '', 'A Valiant of Ironforge Not Rewarded');
-- Dailies
INSERT INTO conditions VALUES(19, 0, 13714, 0, 0, 8, 0, 13703, 0, 0, 0, 0, 0, '', 'Valiant of Ironforge Rewarded');
INSERT INTO conditions VALUES(19, 0, 13714, 0, 1, 8, 0, 13685, 0, 0, 0, 0, 0, '', 'A Valiant of Ironforge Rewarded');
INSERT INTO conditions VALUES(19, 0, 13745, 0, 0, 8, 0, 13703, 0, 0, 0, 0, 0, '', 'Valiant of Ironforge Rewarded');
INSERT INTO conditions VALUES(19, 0, 13745, 0, 0, 8, 0, 13714, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13745, 0, 1, 8, 0, 13685, 0, 0, 0, 0, 0, '', 'A Valiant of Ironforge Rewarded');
INSERT INTO conditions VALUES(19, 0, 13745, 0, 1, 8, 0, 13714, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13851, 0, 0, 8, 0, 13703, 0, 0, 0, 0, 0, '', 'Valiant of Ironforge Rewarded');
INSERT INTO conditions VALUES(19, 0, 13851, 0, 0, 8, 0, 13714, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13851, 0, 1, 8, 0, 13685, 0, 0, 0, 0, 0, '', 'A Valiant of Ironforge Rewarded');
INSERT INTO conditions VALUES(19, 0, 13851, 0, 1, 8, 0, 13714, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13744, 0, 0, 8, 0, 13703, 0, 0, 0, 0, 0, '', 'Valiant of Ironforge Rewarded');
INSERT INTO conditions VALUES(19, 0, 13744, 0, 0, 8, 0, 13714, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13744, 0, 1, 8, 0, 13685, 0, 0, 0, 0, 0, '', 'A Valiant of Ironforge Rewarded');
INSERT INTO conditions VALUES(19, 0, 13744, 0, 1, 8, 0, 13714, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13743, 0, 0, 8, 0, 13703, 0, 0, 0, 0, 0, '', 'Valiant of Ironforge Rewarded');
INSERT INTO conditions VALUES(19, 0, 13743, 0, 0, 8, 0, 13714, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13743, 0, 1, 8, 0, 13685, 0, 0, 0, 0, 0, '', 'A Valiant of Ironforge Rewarded');
INSERT INTO conditions VALUES(19, 0, 13743, 0, 1, 8, 0, 13714, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13742, 0, 0, 8, 0, 13703, 0, 0, 0, 0, 0, '', 'Valiant of Ironforge Rewarded');
INSERT INTO conditions VALUES(19, 0, 13742, 0, 0, 8, 0, 13714, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13742, 0, 1, 8, 0, 13685, 0, 0, 0, 0, 0, '', 'A Valiant of Ironforge Rewarded');
INSERT INTO conditions VALUES(19, 0, 13742, 0, 1, 8, 0, 13714, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13741, 0, 0, 8, 0, 13703, 0, 0, 0, 0, 0, '', 'Valiant of Ironforge Rewarded');
INSERT INTO conditions VALUES(19, 0, 13741, 0, 0, 8, 0, 13714, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13741, 0, 1, 8, 0, 13685, 0, 0, 0, 0, 0, '', 'A Valiant of Ironforge Rewarded');
INSERT INTO conditions VALUES(19, 0, 13741, 0, 1, 8, 0, 13714, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13714, 0, 0, 8, 0, 13703, 0, 0, 0, 0, 0, '', 'Valiant of Ironforge Rewarded');
INSERT INTO conditions VALUES(20, 0, 13714, 0, 1, 8, 0, 13685, 0, 0, 0, 0, 0, '', 'A Valiant of Ironforge Rewarded');
INSERT INTO conditions VALUES(20, 0, 13745, 0, 0, 8, 0, 13703, 0, 0, 0, 0, 0, '', 'Valiant of Ironforge Rewarded');
INSERT INTO conditions VALUES(20, 0, 13745, 0, 0, 8, 0, 13714, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13745, 0, 1, 8, 0, 13685, 0, 0, 0, 0, 0, '', 'A Valiant of Ironforge Rewarded');
INSERT INTO conditions VALUES(20, 0, 13745, 0, 1, 8, 0, 13714, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13851, 0, 0, 8, 0, 13703, 0, 0, 0, 0, 0, '', 'Valiant of Ironforge Rewarded');
INSERT INTO conditions VALUES(20, 0, 13851, 0, 0, 8, 0, 13714, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13851, 0, 1, 8, 0, 13685, 0, 0, 0, 0, 0, '', 'A Valiant of Ironforge Rewarded');
INSERT INTO conditions VALUES(20, 0, 13851, 0, 1, 8, 0, 13714, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13744, 0, 0, 8, 0, 13703, 0, 0, 0, 0, 0, '', 'Valiant of Ironforge Rewarded');
INSERT INTO conditions VALUES(20, 0, 13744, 0, 0, 8, 0, 13714, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13744, 0, 1, 8, 0, 13685, 0, 0, 0, 0, 0, '', 'A Valiant of Ironforge Rewarded');
INSERT INTO conditions VALUES(20, 0, 13744, 0, 1, 8, 0, 13714, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13743, 0, 0, 8, 0, 13703, 0, 0, 0, 0, 0, '', 'Valiant of Ironforge Rewarded');
INSERT INTO conditions VALUES(20, 0, 13743, 0, 0, 8, 0, 13714, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13743, 0, 1, 8, 0, 13685, 0, 0, 0, 0, 0, '', 'A Valiant of Ironforge Rewarded');
INSERT INTO conditions VALUES(20, 0, 13743, 0, 1, 8, 0, 13714, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13742, 0, 0, 8, 0, 13703, 0, 0, 0, 0, 0, '', 'Valiant of Ironforge Rewarded');
INSERT INTO conditions VALUES(20, 0, 13742, 0, 0, 8, 0, 13714, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13742, 0, 1, 8, 0, 13685, 0, 0, 0, 0, 0, '', 'A Valiant of Ironforge Rewarded');
INSERT INTO conditions VALUES(20, 0, 13742, 0, 1, 8, 0, 13714, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13741, 0, 0, 8, 0, 13703, 0, 0, 0, 0, 0, '', 'Valiant of Ironforge Rewarded');
INSERT INTO conditions VALUES(20, 0, 13741, 0, 0, 8, 0, 13714, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13741, 0, 1, 8, 0, 13685, 0, 0, 0, 0, 0, '', 'A Valiant of Ironforge Rewarded');
INSERT INTO conditions VALUES(20, 0, 13741, 0, 1, 8, 0, 13714, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
-- Darnassus
UPDATE quest_template SET RequiredRaces=8, PrevQuestId=13679, NextQuestId=0 WHERE Id=13689;
UPDATE quest_template SET RequiredRaces=1101, PrevQuestId=13717, NextQuestId=0 WHERE Id=13725;
UPDATE quest_template SET RequiredRaces=1101, PrevQuestId=0, NextQuestId=0 WHERE Id IN(13706, 13717, 13855, 13761, 13760, 13759, 13758, 13757);
DELETE FROM conditions WHERE SourceTypeOrReferenceId IN(19, 20) AND SourceEntry IN(13689, 13706, 13717, 13855, 13761, 13760, 13759, 13758, 13757);
-- Valiant of Darnassus
INSERT INTO conditions VALUES(19, 0, 13706, 0, 0, 8, 0, 13700, 0, 0, 0, 0, 0, '', 'Alliance Champion Marker Rewarded');
INSERT INTO conditions VALUES(19, 0, 13706, 0, 0, 8, 0, 13686, 0, 0, 1, 0, 0, '', 'Alliance Tournament Eligibility Marker Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13706, 0, 0, 8, 0, 13689, 0, 0, 1, 0, 0, '', 'A Valiant of Darnassus Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13706, 0, 0, 8, 0, 13700, 0, 0, 0, 0, 0, '', 'Alliance Champion Marker Rewarded');
INSERT INTO conditions VALUES(20, 0, 13706, 0, 0, 8, 0, 13686, 0, 0, 1, 0, 0, '', 'Alliance Tournament Eligibility Marker Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13706, 0, 0, 8, 0, 13689, 0, 0, 1, 0, 0, '', 'A Valiant of Darnassus Not Rewarded');
-- Dailies
INSERT INTO conditions VALUES(19, 0, 13717, 0, 0, 8, 0, 13706, 0, 0, 0, 0, 0, '', 'Valiant of Darnassus Rewarded');
INSERT INTO conditions VALUES(19, 0, 13717, 0, 1, 8, 0, 13689, 0, 0, 0, 0, 0, '', 'A Valiant of Darnassus Rewarded');
INSERT INTO conditions VALUES(19, 0, 13761, 0, 0, 8, 0, 13706, 0, 0, 0, 0, 0, '', 'Valiant of Darnassus Rewarded');
INSERT INTO conditions VALUES(19, 0, 13761, 0, 0, 8, 0, 13717, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13761, 0, 1, 8, 0, 13689, 0, 0, 0, 0, 0, '', 'A Valiant of Darnassus Rewarded');
INSERT INTO conditions VALUES(19, 0, 13761, 0, 1, 8, 0, 13717, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13855, 0, 0, 8, 0, 13706, 0, 0, 0, 0, 0, '', 'Valiant of Darnassus Rewarded');
INSERT INTO conditions VALUES(19, 0, 13855, 0, 0, 8, 0, 13717, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13855, 0, 1, 8, 0, 13689, 0, 0, 0, 0, 0, '', 'A Valiant of Darnassus Rewarded');
INSERT INTO conditions VALUES(19, 0, 13855, 0, 1, 8, 0, 13717, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13760, 0, 0, 8, 0, 13706, 0, 0, 0, 0, 0, '', 'Valiant of Darnassus Rewarded');
INSERT INTO conditions VALUES(19, 0, 13760, 0, 0, 8, 0, 13717, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13760, 0, 1, 8, 0, 13689, 0, 0, 0, 0, 0, '', 'A Valiant of Darnassus Rewarded');
INSERT INTO conditions VALUES(19, 0, 13760, 0, 1, 8, 0, 13717, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13759, 0, 0, 8, 0, 13706, 0, 0, 0, 0, 0, '', 'Valiant of Darnassus Rewarded');
INSERT INTO conditions VALUES(19, 0, 13759, 0, 0, 8, 0, 13717, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13759, 0, 1, 8, 0, 13689, 0, 0, 0, 0, 0, '', 'A Valiant of Darnassus Rewarded');
INSERT INTO conditions VALUES(19, 0, 13759, 0, 1, 8, 0, 13717, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13758, 0, 0, 8, 0, 13706, 0, 0, 0, 0, 0, '', 'Valiant of Darnassus Rewarded');
INSERT INTO conditions VALUES(19, 0, 13758, 0, 0, 8, 0, 13717, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13758, 0, 1, 8, 0, 13689, 0, 0, 0, 0, 0, '', 'A Valiant of Darnassus Rewarded');
INSERT INTO conditions VALUES(19, 0, 13758, 0, 1, 8, 0, 13717, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13757, 0, 0, 8, 0, 13706, 0, 0, 0, 0, 0, '', 'Valiant of Darnassus Rewarded');
INSERT INTO conditions VALUES(19, 0, 13757, 0, 0, 8, 0, 13717, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13757, 0, 1, 8, 0, 13689, 0, 0, 0, 0, 0, '', 'A Valiant of Darnassus Rewarded');
INSERT INTO conditions VALUES(19, 0, 13757, 0, 1, 8, 0, 13717, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13717, 0, 0, 8, 0, 13706, 0, 0, 0, 0, 0, '', 'Valiant of Darnassus Rewarded');
INSERT INTO conditions VALUES(20, 0, 13717, 0, 1, 8, 0, 13689, 0, 0, 0, 0, 0, '', 'A Valiant of Darnassus Rewarded');
INSERT INTO conditions VALUES(20, 0, 13761, 0, 0, 8, 0, 13706, 0, 0, 0, 0, 0, '', 'Valiant of Darnassus Rewarded');
INSERT INTO conditions VALUES(20, 0, 13761, 0, 0, 8, 0, 13717, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13761, 0, 1, 8, 0, 13689, 0, 0, 0, 0, 0, '', 'A Valiant of Darnassus Rewarded');
INSERT INTO conditions VALUES(20, 0, 13761, 0, 1, 8, 0, 13717, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13855, 0, 0, 8, 0, 13706, 0, 0, 0, 0, 0, '', 'Valiant of Darnassus Rewarded');
INSERT INTO conditions VALUES(20, 0, 13855, 0, 0, 8, 0, 13717, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13855, 0, 1, 8, 0, 13689, 0, 0, 0, 0, 0, '', 'A Valiant of Darnassus Rewarded');
INSERT INTO conditions VALUES(20, 0, 13855, 0, 1, 8, 0, 13717, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13760, 0, 0, 8, 0, 13706, 0, 0, 0, 0, 0, '', 'Valiant of Darnassus Rewarded');
INSERT INTO conditions VALUES(20, 0, 13760, 0, 0, 8, 0, 13717, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13760, 0, 1, 8, 0, 13689, 0, 0, 0, 0, 0, '', 'A Valiant of Darnassus Rewarded');
INSERT INTO conditions VALUES(20, 0, 13760, 0, 1, 8, 0, 13717, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13759, 0, 0, 8, 0, 13706, 0, 0, 0, 0, 0, '', 'Valiant of Darnassus Rewarded');
INSERT INTO conditions VALUES(20, 0, 13759, 0, 0, 8, 0, 13717, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13759, 0, 1, 8, 0, 13689, 0, 0, 0, 0, 0, '', 'A Valiant of Darnassus Rewarded');
INSERT INTO conditions VALUES(20, 0, 13759, 0, 1, 8, 0, 13717, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13758, 0, 0, 8, 0, 13706, 0, 0, 0, 0, 0, '', 'Valiant of Darnassus Rewarded');
INSERT INTO conditions VALUES(20, 0, 13758, 0, 0, 8, 0, 13717, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13758, 0, 1, 8, 0, 13689, 0, 0, 0, 0, 0, '', 'A Valiant of Darnassus Rewarded');
INSERT INTO conditions VALUES(20, 0, 13758, 0, 1, 8, 0, 13717, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13757, 0, 0, 8, 0, 13706, 0, 0, 0, 0, 0, '', 'Valiant of Darnassus Rewarded');
INSERT INTO conditions VALUES(20, 0, 13757, 0, 0, 8, 0, 13717, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13757, 0, 1, 8, 0, 13689, 0, 0, 0, 0, 0, '', 'A Valiant of Darnassus Rewarded');
INSERT INTO conditions VALUES(20, 0, 13757, 0, 1, 8, 0, 13717, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
-- Exodar
UPDATE quest_template SET RequiredRaces=1024, PrevQuestId=13679, NextQuestId=0 WHERE Id=13690;
UPDATE quest_template SET RequiredRaces=1101, PrevQuestId=13716, NextQuestId=0 WHERE Id=13724;
UPDATE quest_template SET RequiredRaces=1101, PrevQuestId=0, NextQuestId=0 WHERE Id IN(13705, 13716, 13854, 13756, 13755, 13754, 13753, 13752);
DELETE FROM conditions WHERE SourceTypeOrReferenceId IN(19, 20) AND SourceEntry IN(13690, 13705, 13716, 13854, 13756, 13755, 13754, 13753, 13752);
-- Valiant of Exodar
INSERT INTO conditions VALUES(19, 0, 13705, 0, 0, 8, 0, 13700, 0, 0, 0, 0, 0, '', 'Alliance Champion Marker Rewarded');
INSERT INTO conditions VALUES(19, 0, 13705, 0, 0, 8, 0, 13686, 0, 0, 1, 0, 0, '', 'Alliance Tournament Eligibility Marker Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13705, 0, 0, 8, 0, 13690, 0, 0, 1, 0, 0, '', 'A Valiant of Exodar Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13705, 0, 0, 8, 0, 13700, 0, 0, 0, 0, 0, '', 'Alliance Champion Marker Rewarded');
INSERT INTO conditions VALUES(20, 0, 13705, 0, 0, 8, 0, 13686, 0, 0, 1, 0, 0, '', 'Alliance Tournament Eligibility Marker Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13705, 0, 0, 8, 0, 13690, 0, 0, 1, 0, 0, '', 'A Valiant of Exodar Not Rewarded');
-- Dailies
INSERT INTO conditions VALUES(19, 0, 13716, 0, 0, 8, 0, 13705, 0, 0, 0, 0, 0, '', 'Valiant of Exodar Rewarded');
INSERT INTO conditions VALUES(19, 0, 13716, 0, 1, 8, 0, 13690, 0, 0, 0, 0, 0, '', 'A Valiant of Exodar Rewarded');
INSERT INTO conditions VALUES(19, 0, 13756, 0, 0, 8, 0, 13705, 0, 0, 0, 0, 0, '', 'Valiant of Exodar Rewarded');
INSERT INTO conditions VALUES(19, 0, 13756, 0, 0, 8, 0, 13716, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13756, 0, 1, 8, 0, 13690, 0, 0, 0, 0, 0, '', 'A Valiant of Exodar Rewarded');
INSERT INTO conditions VALUES(19, 0, 13756, 0, 1, 8, 0, 13716, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13854, 0, 0, 8, 0, 13705, 0, 0, 0, 0, 0, '', 'Valiant of Exodar Rewarded');
INSERT INTO conditions VALUES(19, 0, 13854, 0, 0, 8, 0, 13716, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13854, 0, 1, 8, 0, 13690, 0, 0, 0, 0, 0, '', 'A Valiant of Exodar Rewarded');
INSERT INTO conditions VALUES(19, 0, 13854, 0, 1, 8, 0, 13716, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13755, 0, 0, 8, 0, 13705, 0, 0, 0, 0, 0, '', 'Valiant of Exodar Rewarded');
INSERT INTO conditions VALUES(19, 0, 13755, 0, 0, 8, 0, 13716, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13755, 0, 1, 8, 0, 13690, 0, 0, 0, 0, 0, '', 'A Valiant of Exodar Rewarded');
INSERT INTO conditions VALUES(19, 0, 13755, 0, 1, 8, 0, 13716, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13754, 0, 0, 8, 0, 13705, 0, 0, 0, 0, 0, '', 'Valiant of Exodar Rewarded');
INSERT INTO conditions VALUES(19, 0, 13754, 0, 0, 8, 0, 13716, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13754, 0, 1, 8, 0, 13690, 0, 0, 0, 0, 0, '', 'A Valiant of Exodar Rewarded');
INSERT INTO conditions VALUES(19, 0, 13754, 0, 1, 8, 0, 13716, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13753, 0, 0, 8, 0, 13705, 0, 0, 0, 0, 0, '', 'Valiant of Exodar Rewarded');
INSERT INTO conditions VALUES(19, 0, 13753, 0, 0, 8, 0, 13716, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13753, 0, 1, 8, 0, 13690, 0, 0, 0, 0, 0, '', 'A Valiant of Exodar Rewarded');
INSERT INTO conditions VALUES(19, 0, 13753, 0, 1, 8, 0, 13716, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13752, 0, 0, 8, 0, 13705, 0, 0, 0, 0, 0, '', 'Valiant of Exodar Rewarded');
INSERT INTO conditions VALUES(19, 0, 13752, 0, 0, 8, 0, 13716, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13752, 0, 1, 8, 0, 13690, 0, 0, 0, 0, 0, '', 'A Valiant of Exodar Rewarded');
INSERT INTO conditions VALUES(19, 0, 13752, 0, 1, 8, 0, 13716, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13716, 0, 0, 8, 0, 13705, 0, 0, 0, 0, 0, '', 'Valiant of Exodar Rewarded');
INSERT INTO conditions VALUES(20, 0, 13716, 0, 1, 8, 0, 13690, 0, 0, 0, 0, 0, '', 'A Valiant of Exodar Rewarded');
INSERT INTO conditions VALUES(20, 0, 13756, 0, 0, 8, 0, 13705, 0, 0, 0, 0, 0, '', 'Valiant of Exodar Rewarded');
INSERT INTO conditions VALUES(20, 0, 13756, 0, 0, 8, 0, 13716, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13756, 0, 1, 8, 0, 13690, 0, 0, 0, 0, 0, '', 'A Valiant of Exodar Rewarded');
INSERT INTO conditions VALUES(20, 0, 13756, 0, 1, 8, 0, 13716, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13854, 0, 0, 8, 0, 13705, 0, 0, 0, 0, 0, '', 'Valiant of Exodar Rewarded');
INSERT INTO conditions VALUES(20, 0, 13854, 0, 0, 8, 0, 13716, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13854, 0, 1, 8, 0, 13690, 0, 0, 0, 0, 0, '', 'A Valiant of Exodar Rewarded');
INSERT INTO conditions VALUES(20, 0, 13854, 0, 1, 8, 0, 13716, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13755, 0, 0, 8, 0, 13705, 0, 0, 0, 0, 0, '', 'Valiant of Exodar Rewarded');
INSERT INTO conditions VALUES(20, 0, 13755, 0, 0, 8, 0, 13716, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13755, 0, 1, 8, 0, 13690, 0, 0, 0, 0, 0, '', 'A Valiant of Exodar Rewarded');
INSERT INTO conditions VALUES(20, 0, 13755, 0, 1, 8, 0, 13716, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13754, 0, 0, 8, 0, 13705, 0, 0, 0, 0, 0, '', 'Valiant of Exodar Rewarded');
INSERT INTO conditions VALUES(20, 0, 13754, 0, 0, 8, 0, 13716, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13754, 0, 1, 8, 0, 13690, 0, 0, 0, 0, 0, '', 'A Valiant of Exodar Rewarded');
INSERT INTO conditions VALUES(20, 0, 13754, 0, 1, 8, 0, 13716, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13753, 0, 0, 8, 0, 13705, 0, 0, 0, 0, 0, '', 'Valiant of Exodar Rewarded');
INSERT INTO conditions VALUES(20, 0, 13753, 0, 0, 8, 0, 13716, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13753, 0, 1, 8, 0, 13690, 0, 0, 0, 0, 0, '', 'A Valiant of Exodar Rewarded');
INSERT INTO conditions VALUES(20, 0, 13753, 0, 1, 8, 0, 13716, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13752, 0, 0, 8, 0, 13705, 0, 0, 0, 0, 0, '', 'Valiant of Exodar Rewarded');
INSERT INTO conditions VALUES(20, 0, 13752, 0, 0, 8, 0, 13716, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13752, 0, 1, 8, 0, 13690, 0, 0, 0, 0, 0, '', 'A Valiant of Exodar Rewarded');
INSERT INTO conditions VALUES(20, 0, 13752, 0, 1, 8, 0, 13716, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
-- Gnomeregan
UPDATE quest_template SET RequiredRaces=64, PrevQuestId=13679, NextQuestId=0 WHERE Id=13688;
UPDATE quest_template SET RequiredRaces=1101, PrevQuestId=13715, NextQuestId=0 WHERE Id=13723;
UPDATE quest_template SET RequiredRaces=1101, PrevQuestId=0, NextQuestId=0 WHERE Id IN(13704, 13715, 13852, 13750, 13749, 13748, 13747, 13746);
DELETE FROM conditions WHERE SourceTypeOrReferenceId IN(19, 20) AND SourceEntry IN(13688, 13704, 13715, 13852, 13750, 13749, 13748, 13747, 13746);
-- Valiant of Gnomeregan
INSERT INTO conditions VALUES(19, 0, 13704, 0, 0, 8, 0, 13700, 0, 0, 0, 0, 0, '', 'Alliance Champion Marker Rewarded');
INSERT INTO conditions VALUES(19, 0, 13704, 0, 0, 8, 0, 13686, 0, 0, 1, 0, 0, '', 'Alliance Tournament Eligibility Marker Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13704, 0, 0, 8, 0, 13688, 0, 0, 1, 0, 0, '', 'A Valiant of Gnomeregan Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13704, 0, 0, 8, 0, 13700, 0, 0, 0, 0, 0, '', 'Alliance Champion Marker Rewarded');
INSERT INTO conditions VALUES(20, 0, 13704, 0, 0, 8, 0, 13686, 0, 0, 1, 0, 0, '', 'Alliance Tournament Eligibility Marker Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13704, 0, 0, 8, 0, 13688, 0, 0, 1, 0, 0, '', 'A Valiant of Gnomeregan Not Rewarded');
-- Dailies
INSERT INTO conditions VALUES(19, 0, 13715, 0, 0, 8, 0, 13704, 0, 0, 0, 0, 0, '', 'Valiant of Gnomeregan Rewarded');
INSERT INTO conditions VALUES(19, 0, 13715, 0, 1, 8, 0, 13688, 0, 0, 0, 0, 0, '', 'A Valiant of Gnomeregan Rewarded');
INSERT INTO conditions VALUES(19, 0, 13750, 0, 0, 8, 0, 13704, 0, 0, 0, 0, 0, '', 'Valiant of Gnomeregan Rewarded');
INSERT INTO conditions VALUES(19, 0, 13750, 0, 0, 8, 0, 13715, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13750, 0, 1, 8, 0, 13688, 0, 0, 0, 0, 0, '', 'A Valiant of Gnomeregan Rewarded');
INSERT INTO conditions VALUES(19, 0, 13750, 0, 1, 8, 0, 13715, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13852, 0, 0, 8, 0, 13704, 0, 0, 0, 0, 0, '', 'Valiant of Gnomeregan Rewarded');
INSERT INTO conditions VALUES(19, 0, 13852, 0, 0, 8, 0, 13715, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13852, 0, 1, 8, 0, 13688, 0, 0, 0, 0, 0, '', 'A Valiant of Gnomeregan Rewarded');
INSERT INTO conditions VALUES(19, 0, 13852, 0, 1, 8, 0, 13715, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13749, 0, 0, 8, 0, 13704, 0, 0, 0, 0, 0, '', 'Valiant of Gnomeregan Rewarded');
INSERT INTO conditions VALUES(19, 0, 13749, 0, 0, 8, 0, 13715, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13749, 0, 1, 8, 0, 13688, 0, 0, 0, 0, 0, '', 'A Valiant of Gnomeregan Rewarded');
INSERT INTO conditions VALUES(19, 0, 13749, 0, 1, 8, 0, 13715, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13748, 0, 0, 8, 0, 13704, 0, 0, 0, 0, 0, '', 'Valiant of Gnomeregan Rewarded');
INSERT INTO conditions VALUES(19, 0, 13748, 0, 0, 8, 0, 13715, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13748, 0, 1, 8, 0, 13688, 0, 0, 0, 0, 0, '', 'A Valiant of Gnomeregan Rewarded');
INSERT INTO conditions VALUES(19, 0, 13748, 0, 1, 8, 0, 13715, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13747, 0, 0, 8, 0, 13704, 0, 0, 0, 0, 0, '', 'Valiant of Gnomeregan Rewarded');
INSERT INTO conditions VALUES(19, 0, 13747, 0, 0, 8, 0, 13715, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13747, 0, 1, 8, 0, 13688, 0, 0, 0, 0, 0, '', 'A Valiant of Gnomeregan Rewarded');
INSERT INTO conditions VALUES(19, 0, 13747, 0, 1, 8, 0, 13715, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13746, 0, 0, 8, 0, 13704, 0, 0, 0, 0, 0, '', 'Valiant of Gnomeregan Rewarded');
INSERT INTO conditions VALUES(19, 0, 13746, 0, 0, 8, 0, 13715, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13746, 0, 1, 8, 0, 13688, 0, 0, 0, 0, 0, '', 'A Valiant of Gnomeregan Rewarded');
INSERT INTO conditions VALUES(19, 0, 13746, 0, 1, 8, 0, 13715, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13715, 0, 0, 8, 0, 13704, 0, 0, 0, 0, 0, '', 'Valiant of Gnomeregan Rewarded');
INSERT INTO conditions VALUES(20, 0, 13715, 0, 1, 8, 0, 13688, 0, 0, 0, 0, 0, '', 'A Valiant of Gnomeregan Rewarded');
INSERT INTO conditions VALUES(20, 0, 13750, 0, 0, 8, 0, 13704, 0, 0, 0, 0, 0, '', 'Valiant of Gnomeregan Rewarded');
INSERT INTO conditions VALUES(20, 0, 13750, 0, 0, 8, 0, 13715, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13750, 0, 1, 8, 0, 13688, 0, 0, 0, 0, 0, '', 'A Valiant of Gnomeregan Rewarded');
INSERT INTO conditions VALUES(20, 0, 13750, 0, 1, 8, 0, 13715, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13852, 0, 0, 8, 0, 13704, 0, 0, 0, 0, 0, '', 'Valiant of Gnomeregan Rewarded');
INSERT INTO conditions VALUES(20, 0, 13852, 0, 0, 8, 0, 13715, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13852, 0, 1, 8, 0, 13688, 0, 0, 0, 0, 0, '', 'A Valiant of Gnomeregan Rewarded');
INSERT INTO conditions VALUES(20, 0, 13852, 0, 1, 8, 0, 13715, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13749, 0, 0, 8, 0, 13704, 0, 0, 0, 0, 0, '', 'Valiant of Gnomeregan Rewarded');
INSERT INTO conditions VALUES(20, 0, 13749, 0, 0, 8, 0, 13715, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13749, 0, 1, 8, 0, 13688, 0, 0, 0, 0, 0, '', 'A Valiant of Gnomeregan Rewarded');
INSERT INTO conditions VALUES(20, 0, 13749, 0, 1, 8, 0, 13715, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13748, 0, 0, 8, 0, 13704, 0, 0, 0, 0, 0, '', 'Valiant of Gnomeregan Rewarded');
INSERT INTO conditions VALUES(20, 0, 13748, 0, 0, 8, 0, 13715, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13748, 0, 1, 8, 0, 13688, 0, 0, 0, 0, 0, '', 'A Valiant of Gnomeregan Rewarded');
INSERT INTO conditions VALUES(20, 0, 13748, 0, 1, 8, 0, 13715, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13747, 0, 0, 8, 0, 13704, 0, 0, 0, 0, 0, '', 'Valiant of Gnomeregan Rewarded');
INSERT INTO conditions VALUES(20, 0, 13747, 0, 0, 8, 0, 13715, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13747, 0, 1, 8, 0, 13688, 0, 0, 0, 0, 0, '', 'A Valiant of Gnomeregan Rewarded');
INSERT INTO conditions VALUES(20, 0, 13747, 0, 1, 8, 0, 13715, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13746, 0, 0, 8, 0, 13704, 0, 0, 0, 0, 0, '', 'Valiant of Gnomeregan Rewarded');
INSERT INTO conditions VALUES(20, 0, 13746, 0, 0, 8, 0, 13715, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13746, 0, 1, 8, 0, 13688, 0, 0, 0, 0, 0, '', 'A Valiant of Gnomeregan Rewarded');
INSERT INTO conditions VALUES(20, 0, 13746, 0, 1, 8, 0, 13715, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
-- Silvermoon
UPDATE quest_template SET RequiredRaces=512, PrevQuestId=13680, NextQuestId=0 WHERE Id=13696;
UPDATE quest_template SET RequiredRaces=690, PrevQuestId=13722, NextQuestId=0 WHERE Id=13731;
UPDATE quest_template SET RequiredRaces=690, PrevQuestId=0, NextQuestId=0 WHERE Id IN(13711, 13722, 13859, 13787, 13786, 13785, 13784, 13783);
DELETE FROM conditions WHERE SourceTypeOrReferenceId IN(19, 20) AND SourceEntry IN(13696, 13711, 13722, 13859, 13787, 13786, 13785, 13784, 13783);
-- Valiant of Silvermoon
INSERT INTO conditions VALUES(19, 0, 13711, 0, 0, 8, 0, 13701, 0, 0, 0, 0, 0, '', 'Horde Champion Marker Rewarded');
INSERT INTO conditions VALUES(19, 0, 13711, 0, 0, 8, 0, 13687, 0, 0, 1, 0, 0, '', 'Horde Tournament Eligibility Marker Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13711, 0, 0, 8, 0, 13696, 0, 0, 1, 0, 0, '', 'A Valiant of Silvermoon Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13711, 0, 0, 8, 0, 13701, 0, 0, 0, 0, 0, '', 'Horde Champion Marker Rewarded');
INSERT INTO conditions VALUES(20, 0, 13711, 0, 0, 8, 0, 13687, 0, 0, 1, 0, 0, '', 'Horde Tournament Eligibility Marker Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13711, 0, 0, 8, 0, 13696, 0, 0, 1, 0, 0, '', 'A Valiant of Silvermoon Not Rewarded');
-- Dailies
INSERT INTO conditions VALUES(19, 0, 13722, 0, 0, 8, 0, 13711, 0, 0, 0, 0, 0, '', 'Valiant of Silvermoon Rewarded');
INSERT INTO conditions VALUES(19, 0, 13722, 0, 1, 8, 0, 13696, 0, 0, 0, 0, 0, '', 'A Valiant of Silvermoon Rewarded');
INSERT INTO conditions VALUES(19, 0, 13787, 0, 0, 8, 0, 13711, 0, 0, 0, 0, 0, '', 'Valiant of Silvermoon Rewarded');
INSERT INTO conditions VALUES(19, 0, 13787, 0, 0, 8, 0, 13722, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13787, 0, 1, 8, 0, 13696, 0, 0, 0, 0, 0, '', 'A Valiant of Silvermoon Rewarded');
INSERT INTO conditions VALUES(19, 0, 13787, 0, 1, 8, 0, 13722, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13859, 0, 0, 8, 0, 13711, 0, 0, 0, 0, 0, '', 'Valiant of Silvermoon Rewarded');
INSERT INTO conditions VALUES(19, 0, 13859, 0, 0, 8, 0, 13722, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13859, 0, 1, 8, 0, 13696, 0, 0, 0, 0, 0, '', 'A Valiant of Silvermoon Rewarded');
INSERT INTO conditions VALUES(19, 0, 13859, 0, 1, 8, 0, 13722, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13786, 0, 0, 8, 0, 13711, 0, 0, 0, 0, 0, '', 'Valiant of Silvermoon Rewarded');
INSERT INTO conditions VALUES(19, 0, 13786, 0, 0, 8, 0, 13722, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13786, 0, 1, 8, 0, 13696, 0, 0, 0, 0, 0, '', 'A Valiant of Silvermoon Rewarded');
INSERT INTO conditions VALUES(19, 0, 13786, 0, 1, 8, 0, 13722, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13785, 0, 0, 8, 0, 13711, 0, 0, 0, 0, 0, '', 'Valiant of Silvermoon Rewarded');
INSERT INTO conditions VALUES(19, 0, 13785, 0, 0, 8, 0, 13722, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13785, 0, 1, 8, 0, 13696, 0, 0, 0, 0, 0, '', 'A Valiant of Silvermoon Rewarded');
INSERT INTO conditions VALUES(19, 0, 13785, 0, 1, 8, 0, 13722, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13784, 0, 0, 8, 0, 13711, 0, 0, 0, 0, 0, '', 'Valiant of Silvermoon Rewarded');
INSERT INTO conditions VALUES(19, 0, 13784, 0, 0, 8, 0, 13722, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13784, 0, 1, 8, 0, 13696, 0, 0, 0, 0, 0, '', 'A Valiant of Silvermoon Rewarded');
INSERT INTO conditions VALUES(19, 0, 13784, 0, 1, 8, 0, 13722, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13783, 0, 0, 8, 0, 13711, 0, 0, 0, 0, 0, '', 'Valiant of Silvermoon Rewarded');
INSERT INTO conditions VALUES(19, 0, 13783, 0, 0, 8, 0, 13722, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13783, 0, 1, 8, 0, 13696, 0, 0, 0, 0, 0, '', 'A Valiant of Silvermoon Rewarded');
INSERT INTO conditions VALUES(19, 0, 13783, 0, 1, 8, 0, 13722, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13722, 0, 0, 8, 0, 13711, 0, 0, 0, 0, 0, '', 'Valiant of Silvermoon Rewarded');
INSERT INTO conditions VALUES(20, 0, 13722, 0, 1, 8, 0, 13696, 0, 0, 0, 0, 0, '', 'A Valiant of Silvermoon Rewarded');
INSERT INTO conditions VALUES(20, 0, 13787, 0, 0, 8, 0, 13711, 0, 0, 0, 0, 0, '', 'Valiant of Silvermoon Rewarded');
INSERT INTO conditions VALUES(20, 0, 13787, 0, 0, 8, 0, 13722, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13787, 0, 1, 8, 0, 13696, 0, 0, 0, 0, 0, '', 'A Valiant of Silvermoon Rewarded');
INSERT INTO conditions VALUES(20, 0, 13787, 0, 1, 8, 0, 13722, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13859, 0, 0, 8, 0, 13711, 0, 0, 0, 0, 0, '', 'Valiant of Silvermoon Rewarded');
INSERT INTO conditions VALUES(20, 0, 13859, 0, 0, 8, 0, 13722, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13859, 0, 1, 8, 0, 13696, 0, 0, 0, 0, 0, '', 'A Valiant of Silvermoon Rewarded');
INSERT INTO conditions VALUES(20, 0, 13859, 0, 1, 8, 0, 13722, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13786, 0, 0, 8, 0, 13711, 0, 0, 0, 0, 0, '', 'Valiant of Silvermoon Rewarded');
INSERT INTO conditions VALUES(20, 0, 13786, 0, 0, 8, 0, 13722, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13786, 0, 1, 8, 0, 13696, 0, 0, 0, 0, 0, '', 'A Valiant of Silvermoon Rewarded');
INSERT INTO conditions VALUES(20, 0, 13786, 0, 1, 8, 0, 13722, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13785, 0, 0, 8, 0, 13711, 0, 0, 0, 0, 0, '', 'Valiant of Silvermoon Rewarded');
INSERT INTO conditions VALUES(20, 0, 13785, 0, 0, 8, 0, 13722, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13785, 0, 1, 8, 0, 13696, 0, 0, 0, 0, 0, '', 'A Valiant of Silvermoon Rewarded');
INSERT INTO conditions VALUES(20, 0, 13785, 0, 1, 8, 0, 13722, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13784, 0, 0, 8, 0, 13711, 0, 0, 0, 0, 0, '', 'Valiant of Silvermoon Rewarded');
INSERT INTO conditions VALUES(20, 0, 13784, 0, 0, 8, 0, 13722, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13784, 0, 1, 8, 0, 13696, 0, 0, 0, 0, 0, '', 'A Valiant of Silvermoon Rewarded');
INSERT INTO conditions VALUES(20, 0, 13784, 0, 1, 8, 0, 13722, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13783, 0, 0, 8, 0, 13711, 0, 0, 0, 0, 0, '', 'Valiant of Silvermoon Rewarded');
INSERT INTO conditions VALUES(20, 0, 13783, 0, 0, 8, 0, 13722, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13783, 0, 1, 8, 0, 13696, 0, 0, 0, 0, 0, '', 'A Valiant of Silvermoon Rewarded');
INSERT INTO conditions VALUES(20, 0, 13783, 0, 1, 8, 0, 13722, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
-- Undercity
UPDATE quest_template SET RequiredRaces=16, PrevQuestId=13680, NextQuestId=0 WHERE Id=13695;
UPDATE quest_template SET RequiredRaces=690, PrevQuestId=13721, NextQuestId=0 WHERE Id=13729;
UPDATE quest_template SET RequiredRaces=690, PrevQuestId=0, NextQuestId=0 WHERE Id IN(13710, 13721, 13860, 13782, 13781, 13780, 13779, 13778);
DELETE FROM conditions WHERE SourceTypeOrReferenceId IN(19, 20) AND SourceEntry IN(13695, 13710, 13721, 13860, 13782, 13781, 13780, 13779, 13778);
-- Valiant of Undercity
INSERT INTO conditions VALUES(19, 0, 13710, 0, 0, 8, 0, 13701, 0, 0, 0, 0, 0, '', 'Horde Champion Marker Rewarded');
INSERT INTO conditions VALUES(19, 0, 13710, 0, 0, 8, 0, 13687, 0, 0, 1, 0, 0, '', 'Horde Tournament Eligibility Marker Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13710, 0, 0, 8, 0, 13695, 0, 0, 1, 0, 0, '', 'A Valiant of Undercity Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13710, 0, 0, 8, 0, 13701, 0, 0, 0, 0, 0, '', 'Horde Champion Marker Rewarded');
INSERT INTO conditions VALUES(20, 0, 13710, 0, 0, 8, 0, 13687, 0, 0, 1, 0, 0, '', 'Horde Tournament Eligibility Marker Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13710, 0, 0, 8, 0, 13695, 0, 0, 1, 0, 0, '', 'A Valiant of Undercity Not Rewarded');
-- Dailies
INSERT INTO conditions VALUES(19, 0, 13721, 0, 0, 8, 0, 13710, 0, 0, 0, 0, 0, '', 'Valiant of Undercity Rewarded');
INSERT INTO conditions VALUES(19, 0, 13721, 0, 1, 8, 0, 13695, 0, 0, 0, 0, 0, '', 'A Valiant of Undercity Rewarded');
INSERT INTO conditions VALUES(19, 0, 13782, 0, 0, 8, 0, 13710, 0, 0, 0, 0, 0, '', 'Valiant of Undercity Rewarded');
INSERT INTO conditions VALUES(19, 0, 13782, 0, 0, 8, 0, 13721, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13782, 0, 1, 8, 0, 13695, 0, 0, 0, 0, 0, '', 'A Valiant of Undercity Rewarded');
INSERT INTO conditions VALUES(19, 0, 13782, 0, 1, 8, 0, 13721, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13860, 0, 0, 8, 0, 13710, 0, 0, 0, 0, 0, '', 'Valiant of Undercity Rewarded');
INSERT INTO conditions VALUES(19, 0, 13860, 0, 0, 8, 0, 13721, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13860, 0, 1, 8, 0, 13695, 0, 0, 0, 0, 0, '', 'A Valiant of Undercity Rewarded');
INSERT INTO conditions VALUES(19, 0, 13860, 0, 1, 8, 0, 13721, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13781, 0, 0, 8, 0, 13710, 0, 0, 0, 0, 0, '', 'Valiant of Undercity Rewarded');
INSERT INTO conditions VALUES(19, 0, 13781, 0, 0, 8, 0, 13721, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13781, 0, 1, 8, 0, 13695, 0, 0, 0, 0, 0, '', 'A Valiant of Undercity Rewarded');
INSERT INTO conditions VALUES(19, 0, 13781, 0, 1, 8, 0, 13721, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13780, 0, 0, 8, 0, 13710, 0, 0, 0, 0, 0, '', 'Valiant of Undercity Rewarded');
INSERT INTO conditions VALUES(19, 0, 13780, 0, 0, 8, 0, 13721, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13780, 0, 1, 8, 0, 13695, 0, 0, 0, 0, 0, '', 'A Valiant of Undercity Rewarded');
INSERT INTO conditions VALUES(19, 0, 13780, 0, 1, 8, 0, 13721, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13779, 0, 0, 8, 0, 13710, 0, 0, 0, 0, 0, '', 'Valiant of Undercity Rewarded');
INSERT INTO conditions VALUES(19, 0, 13779, 0, 0, 8, 0, 13721, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13779, 0, 1, 8, 0, 13695, 0, 0, 0, 0, 0, '', 'A Valiant of Undercity Rewarded');
INSERT INTO conditions VALUES(19, 0, 13779, 0, 1, 8, 0, 13721, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13778, 0, 0, 8, 0, 13710, 0, 0, 0, 0, 0, '', 'Valiant of Undercity Rewarded');
INSERT INTO conditions VALUES(19, 0, 13778, 0, 0, 8, 0, 13721, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13778, 0, 1, 8, 0, 13695, 0, 0, 0, 0, 0, '', 'A Valiant of Undercity Rewarded');
INSERT INTO conditions VALUES(19, 0, 13778, 0, 1, 8, 0, 13721, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13721, 0, 0, 8, 0, 13710, 0, 0, 0, 0, 0, '', 'Valiant of Undercity Rewarded');
INSERT INTO conditions VALUES(20, 0, 13721, 0, 1, 8, 0, 13695, 0, 0, 0, 0, 0, '', 'A Valiant of Undercity Rewarded');
INSERT INTO conditions VALUES(20, 0, 13782, 0, 0, 8, 0, 13710, 0, 0, 0, 0, 0, '', 'Valiant of Undercity Rewarded');
INSERT INTO conditions VALUES(20, 0, 13782, 0, 0, 8, 0, 13721, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13782, 0, 1, 8, 0, 13695, 0, 0, 0, 0, 0, '', 'A Valiant of Undercity Rewarded');
INSERT INTO conditions VALUES(20, 0, 13782, 0, 1, 8, 0, 13721, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13860, 0, 0, 8, 0, 13710, 0, 0, 0, 0, 0, '', 'Valiant of Undercity Rewarded');
INSERT INTO conditions VALUES(20, 0, 13860, 0, 0, 8, 0, 13721, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13860, 0, 1, 8, 0, 13695, 0, 0, 0, 0, 0, '', 'A Valiant of Undercity Rewarded');
INSERT INTO conditions VALUES(20, 0, 13860, 0, 1, 8, 0, 13721, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13781, 0, 0, 8, 0, 13710, 0, 0, 0, 0, 0, '', 'Valiant of Undercity Rewarded');
INSERT INTO conditions VALUES(20, 0, 13781, 0, 0, 8, 0, 13721, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13781, 0, 1, 8, 0, 13695, 0, 0, 0, 0, 0, '', 'A Valiant of Undercity Rewarded');
INSERT INTO conditions VALUES(20, 0, 13781, 0, 1, 8, 0, 13721, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13780, 0, 0, 8, 0, 13710, 0, 0, 0, 0, 0, '', 'Valiant of Undercity Rewarded');
INSERT INTO conditions VALUES(20, 0, 13780, 0, 0, 8, 0, 13721, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13780, 0, 1, 8, 0, 13695, 0, 0, 0, 0, 0, '', 'A Valiant of Undercity Rewarded');
INSERT INTO conditions VALUES(20, 0, 13780, 0, 1, 8, 0, 13721, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13779, 0, 0, 8, 0, 13710, 0, 0, 0, 0, 0, '', 'Valiant of Undercity Rewarded');
INSERT INTO conditions VALUES(20, 0, 13779, 0, 0, 8, 0, 13721, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13779, 0, 1, 8, 0, 13695, 0, 0, 0, 0, 0, '', 'A Valiant of Undercity Rewarded');
INSERT INTO conditions VALUES(20, 0, 13779, 0, 1, 8, 0, 13721, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13778, 0, 0, 8, 0, 13710, 0, 0, 0, 0, 0, '', 'Valiant of Undercity Rewarded');
INSERT INTO conditions VALUES(20, 0, 13778, 0, 0, 8, 0, 13721, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13778, 0, 1, 8, 0, 13695, 0, 0, 0, 0, 0, '', 'A Valiant of Undercity Rewarded');
INSERT INTO conditions VALUES(20, 0, 13778, 0, 1, 8, 0, 13721, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
-- Thunder Bluff
UPDATE quest_template SET RequiredRaces=32, PrevQuestId=13680, NextQuestId=0 WHERE Id=13694;
UPDATE quest_template SET RequiredRaces=690, PrevQuestId=13720, NextQuestId=0 WHERE Id=13728;
UPDATE quest_template SET RequiredRaces=690, PrevQuestId=0, NextQuestId=0 WHERE Id IN(13709, 13720, 13858, 13777, 13776, 13775, 13774, 13773);
DELETE FROM conditions WHERE SourceTypeOrReferenceId IN(19, 20) AND SourceEntry IN(13694, 13709, 13720, 13858, 13777, 13776, 13775, 13774, 13773);
-- Valiant of Thunder Bluff
INSERT INTO conditions VALUES(19, 0, 13709, 0, 0, 8, 0, 13701, 0, 0, 0, 0, 0, '', 'Horde Champion Marker Rewarded');
INSERT INTO conditions VALUES(19, 0, 13709, 0, 0, 8, 0, 13687, 0, 0, 1, 0, 0, '', 'Horde Tournament Eligibility Marker Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13709, 0, 0, 8, 0, 13694, 0, 0, 1, 0, 0, '', 'A Valiant of Thuder Bluff Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13709, 0, 0, 8, 0, 13701, 0, 0, 0, 0, 0, '', 'Horde Champion Marker Rewarded');
INSERT INTO conditions VALUES(20, 0, 13709, 0, 0, 8, 0, 13687, 0, 0, 1, 0, 0, '', 'Horde Tournament Eligibility Marker Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13709, 0, 0, 8, 0, 13694, 0, 0, 1, 0, 0, '', 'A Valiant of Thuder Bluff Not Rewarded');
-- Dailies
INSERT INTO conditions VALUES(19, 0, 13720, 0, 0, 8, 0, 13709, 0, 0, 0, 0, 0, '', 'Valiant of Thunder Bluff Rewarded');
INSERT INTO conditions VALUES(19, 0, 13720, 0, 1, 8, 0, 13694, 0, 0, 0, 0, 0, '', 'A Valiant of Thunder Bluff Rewarded');
INSERT INTO conditions VALUES(19, 0, 13777, 0, 0, 8, 0, 13709, 0, 0, 0, 0, 0, '', 'Valiant of Thunder Bluff Rewarded');
INSERT INTO conditions VALUES(19, 0, 13777, 0, 0, 8, 0, 13720, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13777, 0, 1, 8, 0, 13694, 0, 0, 0, 0, 0, '', 'A Valiant of Thunder Bluff Rewarded');
INSERT INTO conditions VALUES(19, 0, 13777, 0, 1, 8, 0, 13720, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13858, 0, 0, 8, 0, 13709, 0, 0, 0, 0, 0, '', 'Valiant of Thunder Bluff Rewarded');
INSERT INTO conditions VALUES(19, 0, 13858, 0, 0, 8, 0, 13720, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13858, 0, 1, 8, 0, 13694, 0, 0, 0, 0, 0, '', 'A Valiant of Thunder Bluff Rewarded');
INSERT INTO conditions VALUES(19, 0, 13858, 0, 1, 8, 0, 13720, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13776, 0, 0, 8, 0, 13709, 0, 0, 0, 0, 0, '', 'Valiant of Thunder Bluff Rewarded');
INSERT INTO conditions VALUES(19, 0, 13776, 0, 0, 8, 0, 13720, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13776, 0, 1, 8, 0, 13694, 0, 0, 0, 0, 0, '', 'A Valiant of Thunder Bluff Rewarded');
INSERT INTO conditions VALUES(19, 0, 13776, 0, 1, 8, 0, 13720, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13775, 0, 0, 8, 0, 13709, 0, 0, 0, 0, 0, '', 'Valiant of Thunder Bluff Rewarded');
INSERT INTO conditions VALUES(19, 0, 13775, 0, 0, 8, 0, 13720, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13775, 0, 1, 8, 0, 13694, 0, 0, 0, 0, 0, '', 'A Valiant of Thunder Bluff Rewarded');
INSERT INTO conditions VALUES(19, 0, 13775, 0, 1, 8, 0, 13720, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13774, 0, 0, 8, 0, 13709, 0, 0, 0, 0, 0, '', 'Valiant of Thunder Bluff Rewarded');
INSERT INTO conditions VALUES(19, 0, 13774, 0, 0, 8, 0, 13720, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13774, 0, 1, 8, 0, 13694, 0, 0, 0, 0, 0, '', 'A Valiant of Thunder Bluff Rewarded');
INSERT INTO conditions VALUES(19, 0, 13774, 0, 1, 8, 0, 13720, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13773, 0, 0, 8, 0, 13709, 0, 0, 0, 0, 0, '', 'Valiant of Thunder Bluff Rewarded');
INSERT INTO conditions VALUES(19, 0, 13773, 0, 0, 8, 0, 13720, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13773, 0, 1, 8, 0, 13694, 0, 0, 0, 0, 0, '', 'A Valiant of Thunder Bluff Rewarded');
INSERT INTO conditions VALUES(19, 0, 13773, 0, 1, 8, 0, 13720, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13720, 0, 0, 8, 0, 13709, 0, 0, 0, 0, 0, '', 'Valiant of Thunder Bluff Rewarded');
INSERT INTO conditions VALUES(20, 0, 13720, 0, 1, 8, 0, 13694, 0, 0, 0, 0, 0, '', 'A Valiant of Thunder Bluff Rewarded');
INSERT INTO conditions VALUES(20, 0, 13777, 0, 0, 8, 0, 13709, 0, 0, 0, 0, 0, '', 'Valiant of Thunder Bluff Rewarded');
INSERT INTO conditions VALUES(20, 0, 13777, 0, 0, 8, 0, 13720, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13777, 0, 1, 8, 0, 13694, 0, 0, 0, 0, 0, '', 'A Valiant of Thunder Bluff Rewarded');
INSERT INTO conditions VALUES(20, 0, 13777, 0, 1, 8, 0, 13720, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13858, 0, 0, 8, 0, 13709, 0, 0, 0, 0, 0, '', 'Valiant of Thunder Bluff Rewarded');
INSERT INTO conditions VALUES(20, 0, 13858, 0, 0, 8, 0, 13720, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13858, 0, 1, 8, 0, 13694, 0, 0, 0, 0, 0, '', 'A Valiant of Thunder Bluff Rewarded');
INSERT INTO conditions VALUES(20, 0, 13858, 0, 1, 8, 0, 13720, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13776, 0, 0, 8, 0, 13709, 0, 0, 0, 0, 0, '', 'Valiant of Thunder Bluff Rewarded');
INSERT INTO conditions VALUES(20, 0, 13776, 0, 0, 8, 0, 13720, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13776, 0, 1, 8, 0, 13694, 0, 0, 0, 0, 0, '', 'A Valiant of Thunder Bluff Rewarded');
INSERT INTO conditions VALUES(20, 0, 13776, 0, 1, 8, 0, 13720, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13775, 0, 0, 8, 0, 13709, 0, 0, 0, 0, 0, '', 'Valiant of Thunder Bluff Rewarded');
INSERT INTO conditions VALUES(20, 0, 13775, 0, 0, 8, 0, 13720, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13775, 0, 1, 8, 0, 13694, 0, 0, 0, 0, 0, '', 'A Valiant of Thunder Bluff Rewarded');
INSERT INTO conditions VALUES(20, 0, 13775, 0, 1, 8, 0, 13720, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13774, 0, 0, 8, 0, 13709, 0, 0, 0, 0, 0, '', 'Valiant of Thunder Bluff Rewarded');
INSERT INTO conditions VALUES(20, 0, 13774, 0, 0, 8, 0, 13720, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13774, 0, 1, 8, 0, 13694, 0, 0, 0, 0, 0, '', 'A Valiant of Thunder Bluff Rewarded');
INSERT INTO conditions VALUES(20, 0, 13774, 0, 1, 8, 0, 13720, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13773, 0, 0, 8, 0, 13709, 0, 0, 0, 0, 0, '', 'Valiant of Thunder Bluff Rewarded');
INSERT INTO conditions VALUES(20, 0, 13773, 0, 0, 8, 0, 13720, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13773, 0, 1, 8, 0, 13694, 0, 0, 0, 0, 0, '', 'A Valiant of Thunder Bluff Rewarded');
INSERT INTO conditions VALUES(20, 0, 13773, 0, 1, 8, 0, 13720, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
-- Senjin
UPDATE quest_template SET RequiredRaces=128, PrevQuestId=13680, NextQuestId=0 WHERE Id=13693;
UPDATE quest_template SET RequiredRaces=690, PrevQuestId=13719, NextQuestId=0 WHERE Id=13727;
UPDATE quest_template SET RequiredRaces=690, PrevQuestId=0, NextQuestId=0 WHERE Id IN(13708, 13719, 13857, 13772, 13771, 13770, 13769, 13768);
DELETE FROM conditions WHERE SourceTypeOrReferenceId IN(19, 20) AND SourceEntry IN(13693, 13708, 13719, 13857, 13772, 13771, 13770, 13769, 13768);
-- Valiant of Senjin
INSERT INTO conditions VALUES(19, 0, 13708, 0, 0, 8, 0, 13701, 0, 0, 0, 0, 0, '', 'Horde Champion Marker Rewarded');
INSERT INTO conditions VALUES(19, 0, 13708, 0, 0, 8, 0, 13687, 0, 0, 1, 0, 0, '', 'Horde Tournament Eligibility Marker Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13708, 0, 0, 8, 0, 13693, 0, 0, 1, 0, 0, '', 'A Valiant of Senjin Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13708, 0, 0, 8, 0, 13701, 0, 0, 0, 0, 0, '', 'Horde Champion Marker Rewarded');
INSERT INTO conditions VALUES(20, 0, 13708, 0, 0, 8, 0, 13687, 0, 0, 1, 0, 0, '', 'Horde Tournament Eligibility Marker Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13708, 0, 0, 8, 0, 13693, 0, 0, 1, 0, 0, '', 'A Valiant of Senjin Not Rewarded');
-- Dailies
INSERT INTO conditions VALUES(19, 0, 13719, 0, 0, 8, 0, 13708, 0, 0, 0, 0, 0, '', 'Valiant of Senjin Rewarded');
INSERT INTO conditions VALUES(19, 0, 13719, 0, 1, 8, 0, 13693, 0, 0, 0, 0, 0, '', 'A Valiant of Senjin Rewarded');
INSERT INTO conditions VALUES(19, 0, 13772, 0, 0, 8, 0, 13708, 0, 0, 0, 0, 0, '', 'Valiant of Senjin Rewarded');
INSERT INTO conditions VALUES(19, 0, 13772, 0, 0, 8, 0, 13719, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13772, 0, 1, 8, 0, 13693, 0, 0, 0, 0, 0, '', 'A Valiant of Senjin Rewarded');
INSERT INTO conditions VALUES(19, 0, 13772, 0, 1, 8, 0, 13719, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13857, 0, 0, 8, 0, 13708, 0, 0, 0, 0, 0, '', 'Valiant of Senjin Rewarded');
INSERT INTO conditions VALUES(19, 0, 13857, 0, 0, 8, 0, 13719, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13857, 0, 1, 8, 0, 13693, 0, 0, 0, 0, 0, '', 'A Valiant of Senjin Rewarded');
INSERT INTO conditions VALUES(19, 0, 13857, 0, 1, 8, 0, 13719, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13771, 0, 0, 8, 0, 13708, 0, 0, 0, 0, 0, '', 'Valiant of Senjin Rewarded');
INSERT INTO conditions VALUES(19, 0, 13771, 0, 0, 8, 0, 13719, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13771, 0, 1, 8, 0, 13693, 0, 0, 0, 0, 0, '', 'A Valiant of Senjin Rewarded');
INSERT INTO conditions VALUES(19, 0, 13771, 0, 1, 8, 0, 13719, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13770, 0, 0, 8, 0, 13708, 0, 0, 0, 0, 0, '', 'Valiant of Senjin Rewarded');
INSERT INTO conditions VALUES(19, 0, 13770, 0, 0, 8, 0, 13719, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13770, 0, 1, 8, 0, 13693, 0, 0, 0, 0, 0, '', 'A Valiant of Senjin Rewarded');
INSERT INTO conditions VALUES(19, 0, 13770, 0, 1, 8, 0, 13719, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13769, 0, 0, 8, 0, 13708, 0, 0, 0, 0, 0, '', 'Valiant of Senjin Rewarded');
INSERT INTO conditions VALUES(19, 0, 13769, 0, 0, 8, 0, 13719, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13769, 0, 1, 8, 0, 13693, 0, 0, 0, 0, 0, '', 'A Valiant of Senjin Rewarded');
INSERT INTO conditions VALUES(19, 0, 13769, 0, 1, 8, 0, 13719, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13768, 0, 0, 8, 0, 13708, 0, 0, 0, 0, 0, '', 'Valiant of Senjin Rewarded');
INSERT INTO conditions VALUES(19, 0, 13768, 0, 0, 8, 0, 13719, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13768, 0, 1, 8, 0, 13693, 0, 0, 0, 0, 0, '', 'A Valiant of Senjin Rewarded');
INSERT INTO conditions VALUES(19, 0, 13768, 0, 1, 8, 0, 13719, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13719, 0, 0, 8, 0, 13708, 0, 0, 0, 0, 0, '', 'Valiant of Senjin Rewarded');
INSERT INTO conditions VALUES(20, 0, 13719, 0, 1, 8, 0, 13693, 0, 0, 0, 0, 0, '', 'A Valiant of Senjin Rewarded');
INSERT INTO conditions VALUES(20, 0, 13772, 0, 0, 8, 0, 13708, 0, 0, 0, 0, 0, '', 'Valiant of Senjin Rewarded');
INSERT INTO conditions VALUES(20, 0, 13772, 0, 0, 8, 0, 13719, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13772, 0, 1, 8, 0, 13693, 0, 0, 0, 0, 0, '', 'A Valiant of Senjin Rewarded');
INSERT INTO conditions VALUES(20, 0, 13772, 0, 1, 8, 0, 13719, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13857, 0, 0, 8, 0, 13708, 0, 0, 0, 0, 0, '', 'Valiant of Senjin Rewarded');
INSERT INTO conditions VALUES(20, 0, 13857, 0, 0, 8, 0, 13719, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13857, 0, 1, 8, 0, 13693, 0, 0, 0, 0, 0, '', 'A Valiant of Senjin Rewarded');
INSERT INTO conditions VALUES(20, 0, 13857, 0, 1, 8, 0, 13719, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13771, 0, 0, 8, 0, 13708, 0, 0, 0, 0, 0, '', 'Valiant of Senjin Rewarded');
INSERT INTO conditions VALUES(20, 0, 13771, 0, 0, 8, 0, 13719, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13771, 0, 1, 8, 0, 13693, 0, 0, 0, 0, 0, '', 'A Valiant of Senjin Rewarded');
INSERT INTO conditions VALUES(20, 0, 13771, 0, 1, 8, 0, 13719, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13770, 0, 0, 8, 0, 13708, 0, 0, 0, 0, 0, '', 'Valiant of Senjin Rewarded');
INSERT INTO conditions VALUES(20, 0, 13770, 0, 0, 8, 0, 13719, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13770, 0, 1, 8, 0, 13693, 0, 0, 0, 0, 0, '', 'A Valiant of Senjin Rewarded');
INSERT INTO conditions VALUES(20, 0, 13770, 0, 1, 8, 0, 13719, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13769, 0, 0, 8, 0, 13708, 0, 0, 0, 0, 0, '', 'Valiant of Senjin Rewarded');
INSERT INTO conditions VALUES(20, 0, 13769, 0, 0, 8, 0, 13719, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13769, 0, 1, 8, 0, 13693, 0, 0, 0, 0, 0, '', 'A Valiant of Senjin Rewarded');
INSERT INTO conditions VALUES(20, 0, 13769, 0, 1, 8, 0, 13719, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13768, 0, 0, 8, 0, 13708, 0, 0, 0, 0, 0, '', 'Valiant of Senjin Rewarded');
INSERT INTO conditions VALUES(20, 0, 13768, 0, 0, 8, 0, 13719, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13768, 0, 1, 8, 0, 13693, 0, 0, 0, 0, 0, '', 'A Valiant of Senjin Rewarded');
INSERT INTO conditions VALUES(20, 0, 13768, 0, 1, 8, 0, 13719, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
-- Orgrimmar
UPDATE quest_template SET RequiredRaces=2, PrevQuestId=13680, NextQuestId=0 WHERE Id=13691;
UPDATE quest_template SET RequiredRaces=690, PrevQuestId=13697, NextQuestId=0 WHERE Id=13726;
UPDATE quest_template SET RequiredRaces=690, PrevQuestId=0, NextQuestId=0 WHERE Id IN(13707, 13697, 13856, 13767, 13765, 13764, 13763, 13762);
DELETE FROM conditions WHERE SourceTypeOrReferenceId IN(19, 20) AND SourceEntry IN(13691, 13707, 13697, 13856, 13767, 13765, 13764, 13763, 13762);
-- Valiant of Orgrimmar
INSERT INTO conditions VALUES(19, 0, 13707, 0, 0, 8, 0, 13701, 0, 0, 0, 0, 0, '', 'Horde Champion Marker Rewarded');
INSERT INTO conditions VALUES(19, 0, 13707, 0, 0, 8, 0, 13687, 0, 0, 1, 0, 0, '', 'Horde Tournament Eligibility Marker Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13707, 0, 0, 8, 0, 13691, 0, 0, 1, 0, 0, '', 'A Valiant of Orgrimmar Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13707, 0, 0, 8, 0, 13701, 0, 0, 0, 0, 0, '', 'Horde Champion Marker Rewarded');
INSERT INTO conditions VALUES(20, 0, 13707, 0, 0, 8, 0, 13687, 0, 0, 1, 0, 0, '', 'Horde Tournament Eligibility Marker Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13707, 0, 0, 8, 0, 13691, 0, 0, 1, 0, 0, '', 'A Valiant of Orgrimmar Not Rewarded');
-- Dailies
INSERT INTO conditions VALUES(19, 0, 13697, 0, 0, 8, 0, 13707, 0, 0, 0, 0, 0, '', 'Valiant of Orgrimmar Rewarded');
INSERT INTO conditions VALUES(19, 0, 13697, 0, 1, 8, 0, 13691, 0, 0, 0, 0, 0, '', 'A Valiant of Orgrimmar Rewarded');
INSERT INTO conditions VALUES(19, 0, 13767, 0, 0, 8, 0, 13707, 0, 0, 0, 0, 0, '', 'Valiant of Orgrimmar Rewarded');
INSERT INTO conditions VALUES(19, 0, 13767, 0, 0, 8, 0, 13697, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13767, 0, 1, 8, 0, 13691, 0, 0, 0, 0, 0, '', 'A Valiant of Orgrimmar Rewarded');
INSERT INTO conditions VALUES(19, 0, 13767, 0, 1, 8, 0, 13697, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13856, 0, 0, 8, 0, 13707, 0, 0, 0, 0, 0, '', 'Valiant of Orgrimmar Rewarded');
INSERT INTO conditions VALUES(19, 0, 13856, 0, 0, 8, 0, 13697, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13856, 0, 1, 8, 0, 13691, 0, 0, 0, 0, 0, '', 'A Valiant of Orgrimmar Rewarded');
INSERT INTO conditions VALUES(19, 0, 13856, 0, 1, 8, 0, 13697, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13765, 0, 0, 8, 0, 13707, 0, 0, 0, 0, 0, '', 'Valiant of Orgrimmar Rewarded');
INSERT INTO conditions VALUES(19, 0, 13765, 0, 0, 8, 0, 13697, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13765, 0, 1, 8, 0, 13691, 0, 0, 0, 0, 0, '', 'A Valiant of Orgrimmar Rewarded');
INSERT INTO conditions VALUES(19, 0, 13765, 0, 1, 8, 0, 13697, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13764, 0, 0, 8, 0, 13707, 0, 0, 0, 0, 0, '', 'Valiant of Orgrimmar Rewarded');
INSERT INTO conditions VALUES(19, 0, 13764, 0, 0, 8, 0, 13697, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13764, 0, 1, 8, 0, 13691, 0, 0, 0, 0, 0, '', 'A Valiant of Orgrimmar Rewarded');
INSERT INTO conditions VALUES(19, 0, 13764, 0, 1, 8, 0, 13697, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13763, 0, 0, 8, 0, 13707, 0, 0, 0, 0, 0, '', 'Valiant of Orgrimmar Rewarded');
INSERT INTO conditions VALUES(19, 0, 13763, 0, 0, 8, 0, 13697, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13763, 0, 1, 8, 0, 13691, 0, 0, 0, 0, 0, '', 'A Valiant of Orgrimmar Rewarded');
INSERT INTO conditions VALUES(19, 0, 13763, 0, 1, 8, 0, 13697, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13762, 0, 0, 8, 0, 13707, 0, 0, 0, 0, 0, '', 'Valiant of Orgrimmar Rewarded');
INSERT INTO conditions VALUES(19, 0, 13762, 0, 0, 8, 0, 13697, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(19, 0, 13762, 0, 1, 8, 0, 13691, 0, 0, 0, 0, 0, '', 'A Valiant of Orgrimmar Rewarded');
INSERT INTO conditions VALUES(19, 0, 13762, 0, 1, 8, 0, 13697, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13697, 0, 0, 8, 0, 13707, 0, 0, 0, 0, 0, '', 'Valiant of Orgrimmar Rewarded');
INSERT INTO conditions VALUES(20, 0, 13697, 0, 1, 8, 0, 13691, 0, 0, 0, 0, 0, '', 'A Valiant of Orgrimmar Rewarded');
INSERT INTO conditions VALUES(20, 0, 13767, 0, 0, 8, 0, 13707, 0, 0, 0, 0, 0, '', 'Valiant of Orgrimmar Rewarded');
INSERT INTO conditions VALUES(20, 0, 13767, 0, 0, 8, 0, 13697, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13767, 0, 1, 8, 0, 13691, 0, 0, 0, 0, 0, '', 'A Valiant of Orgrimmar Rewarded');
INSERT INTO conditions VALUES(20, 0, 13767, 0, 1, 8, 0, 13697, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13856, 0, 0, 8, 0, 13707, 0, 0, 0, 0, 0, '', 'Valiant of Orgrimmar Rewarded');
INSERT INTO conditions VALUES(20, 0, 13856, 0, 0, 8, 0, 13697, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13856, 0, 1, 8, 0, 13691, 0, 0, 0, 0, 0, '', 'A Valiant of Orgrimmar Rewarded');
INSERT INTO conditions VALUES(20, 0, 13856, 0, 1, 8, 0, 13697, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13765, 0, 0, 8, 0, 13707, 0, 0, 0, 0, 0, '', 'Valiant of Orgrimmar Rewarded');
INSERT INTO conditions VALUES(20, 0, 13765, 0, 0, 8, 0, 13697, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13765, 0, 1, 8, 0, 13691, 0, 0, 0, 0, 0, '', 'A Valiant of Orgrimmar Rewarded');
INSERT INTO conditions VALUES(20, 0, 13765, 0, 1, 8, 0, 13697, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13764, 0, 0, 8, 0, 13707, 0, 0, 0, 0, 0, '', 'Valiant of Orgrimmar Rewarded');
INSERT INTO conditions VALUES(20, 0, 13764, 0, 0, 8, 0, 13697, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13764, 0, 1, 8, 0, 13691, 0, 0, 0, 0, 0, '', 'A Valiant of Orgrimmar Rewarded');
INSERT INTO conditions VALUES(20, 0, 13764, 0, 1, 8, 0, 13697, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13763, 0, 0, 8, 0, 13707, 0, 0, 0, 0, 0, '', 'Valiant of Orgrimmar Rewarded');
INSERT INTO conditions VALUES(20, 0, 13763, 0, 0, 8, 0, 13697, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13763, 0, 1, 8, 0, 13691, 0, 0, 0, 0, 0, '', 'A Valiant of Orgrimmar Rewarded');
INSERT INTO conditions VALUES(20, 0, 13763, 0, 1, 8, 0, 13697, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13762, 0, 0, 8, 0, 13707, 0, 0, 0, 0, 0, '', 'Valiant of Orgrimmar Rewarded');
INSERT INTO conditions VALUES(20, 0, 13762, 0, 0, 8, 0, 13697, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');
INSERT INTO conditions VALUES(20, 0, 13762, 0, 1, 8, 0, 13691, 0, 0, 0, 0, 0, '', 'A Valiant of Orgrimmar Rewarded');
INSERT INTO conditions VALUES(20, 0, 13762, 0, 1, 8, 0, 13697, 0, 0, 1, 0, 0, '', 'The Valiant''s Charge Not Rewarded');

-- Champion seals
DELETE FROM conditions WHERE SourceTypeOrReferenceId IN(19,20) AND SourceEntry IN(14101, 14102, 14104, 14105, 14107, 14108);
INSERT INTO conditions VALUES(19, 0, 14105, 0, 0, 17, 0, 2817, 0, 0, 0, 0, 0, "", "Deathspeaker Kharos requires crusader");
INSERT INTO conditions VALUES(19, 0, 14105, 0, 1, 17, 0, 2816, 0, 0, 0, 0, 0, "", "Deathspeaker Kharos requires crusader");
INSERT INTO conditions VALUES(19, 0, 14101, 0, 0, 17, 0, 2817, 0, 0, 0, 0, 0, "", "Drottinn Hrothgar requires crusader");
INSERT INTO conditions VALUES(19, 0, 14101, 0, 1, 17, 0, 2816, 0, 0, 0, 0, 0, "", "Drottinn Hrothgar requires crusader");
INSERT INTO conditions VALUES(19, 0, 14102, 0, 0, 17, 0, 2817, 0, 0, 0, 0, 0, "", "Mistcaller Yngvar requires crusader");
INSERT INTO conditions VALUES(19, 0, 14102, 0, 1, 17, 0, 2816, 0, 0, 0, 0, 0, "", "Mistcaller Yngvar requires crusader");
INSERT INTO conditions VALUES(19, 0, 14104, 0, 0, 17, 0, 2817, 0, 0, 0, 0, 0, "", "Ornolf The Scarred requires crusader");
INSERT INTO conditions VALUES(19, 0, 14104, 0, 1, 17, 0, 2816, 0, 0, 0, 0, 0, "", "Ornolf The Scarred requires crusader");
INSERT INTO conditions VALUES(20, 0, 14105, 0, 0, 17, 0, 2817, 0, 0, 0, 0, 0, "", "Deathspeaker Kharos requires crusader");
INSERT INTO conditions VALUES(20, 0, 14105, 0, 1, 17, 0, 2816, 0, 0, 0, 0, 0, "", "Deathspeaker Kharos requires crusader");
INSERT INTO conditions VALUES(20, 0, 14101, 0, 0, 17, 0, 2817, 0, 0, 0, 0, 0, "", "Drottinn Hrothgar requires crusader");
INSERT INTO conditions VALUES(20, 0, 14101, 0, 1, 17, 0, 2816, 0, 0, 0, 0, 0, "", "Drottinn Hrothgar requires crusader");
INSERT INTO conditions VALUES(20, 0, 14102, 0, 0, 17, 0, 2817, 0, 0, 0, 0, 0, "", "Mistcaller Yngvar requires crusader");
INSERT INTO conditions VALUES(20, 0, 14102, 0, 1, 17, 0, 2816, 0, 0, 0, 0, 0, "", "Mistcaller Yngvar requires crusader");
INSERT INTO conditions VALUES(20, 0, 14104, 0, 0, 17, 0, 2817, 0, 0, 0, 0, 0, "", "Ornolf The Scarred requires crusader");
INSERT INTO conditions VALUES(20, 0, 14104, 0, 1, 17, 0, 2816, 0, 0, 0, 0, 0, "", "Ornolf The Scarred requires crusader");
INSERT INTO conditions VALUES(19, 0, 14107, 0, 0, 17, 0, 2817, 0, 0, 0, 0, 0, "", "The Fate Of The Fallen requires crusader");
INSERT INTO conditions VALUES(19, 0, 14107, 0, 1, 17, 0, 2816, 0, 0, 0, 0, 0, "", "The Fate Of The Fallen requires crusader");
INSERT INTO conditions VALUES(19, 0, 14108, 0, 0, 17, 0, 2817, 0, 0, 0, 0, 0, "", "Get Kraken! requires crusader");
INSERT INTO conditions VALUES(19, 0, 14108, 0, 1, 17, 0, 2816, 0, 0, 0, 0, 0, "", "Get Kraken! requires crusader");
INSERT INTO conditions VALUES(20, 0, 14107, 0, 0, 17, 0, 2817, 0, 0, 0, 0, 0, "", "The Fate Of The Fallen requires crusader");
INSERT INTO conditions VALUES(20, 0, 14107, 0, 1, 17, 0, 2816, 0, 0, 0, 0, 0, "", "The Fate Of The Fallen requires crusader");
INSERT INTO conditions VALUES(20, 0, 14108, 0, 0, 17, 0, 2817, 0, 0, 0, 0, 0, "", "Get Kraken! requires crusader");
INSERT INTO conditions VALUES(20, 0, 14108, 0, 1, 17, 0, 2816, 0, 0, 0, 0, 0, "", "Get Kraken! requires crusader");
DELETE FROM conditions WHERE SourceTypeOrReferenceId IN(19,20) AND SourceEntry IN(14074, 14076, 14077, 14080, 14090, 14096, 14112, 14152, 14092, 14136, 14140, 14141, 14142, 14143, 14144, 14145);
INSERT INTO conditions VALUES(19, 0, 14074, 0, 0, 17, 0, 3676, 0, 0, 0, 0, 0, '', 'A Leg Up requires A silver confident');
INSERT INTO conditions VALUES(19, 0, 14076, 0, 0, 17, 0, 3676, 0, 0, 0, 0, 0, '', 'Breakfast Of Champions requires A silver confident');
INSERT INTO conditions VALUES(19, 0, 14077, 0, 0, 17, 0, 3676, 0, 0, 0, 0, 0, '', 'The Light''s Mercy requires A silver confident');
INSERT INTO conditions VALUES(19, 0, 14080, 0, 0, 17, 0, 3676, 0, 0, 0, 0, 0, '', 'Stop The Aggressors requires A silver confident');
INSERT INTO conditions VALUES(19, 0, 14090, 0, 0, 17, 0, 3676, 0, 0, 0, 0, 0, '', 'Gormok Wants His Snobolds requires A silver confident');
INSERT INTO conditions VALUES(19, 0, 14096, 0, 0, 17, 0, 3676, 0, 0, 0, 0, 0, '', 'You''ve Really Done It This Time, Kul requires A silver confident');
INSERT INTO conditions VALUES(19, 0, 14112, 0, 0, 17, 0, 3676, 0, 0, 0, 0, 0, '', 'What Do You Feed a Yeti, Anyway? requires A silver confident');
INSERT INTO conditions VALUES(19, 0, 14152, 0, 0, 17, 0, 3676, 0, 0, 0, 0, 0, '', 'Rescue at Sea requires A silver confident');
INSERT INTO conditions VALUES(19, 0, 14092, 0, 0, 17, 0, 3677, 0, 0, 0, 0, 0, '', 'Breakfast Of Champions requires The sunreavers');
INSERT INTO conditions VALUES(19, 0, 14136, 0, 0, 17, 0, 3677, 0, 0, 0, 0, 0, '', 'Rescue at Sea requires The sunreavers');
INSERT INTO conditions VALUES(19, 0, 14140, 0, 0, 17, 0, 3677, 0, 0, 0, 0, 0, '', 'Stop The Aggressors requires The sunreavers');
INSERT INTO conditions VALUES(19, 0, 14141, 0, 0, 17, 0, 3677, 0, 0, 0, 0, 0, '', 'Gormok Wants His Snobolds requires The sunreavers');
INSERT INTO conditions VALUES(19, 0, 14142, 0, 0, 17, 0, 3677, 0, 0, 0, 0, 0, '', 'You''ve Really Done It This Time, Kul requires The sunreavers');
INSERT INTO conditions VALUES(19, 0, 14143, 0, 0, 17, 0, 3677, 0, 0, 0, 0, 0, '', 'A Leg Up requires The sunreavers');
INSERT INTO conditions VALUES(19, 0, 14144, 0, 0, 17, 0, 3677, 0, 0, 0, 0, 0, '', 'The Light''s Mercy requires The sunreavers');
INSERT INTO conditions VALUES(19, 0, 14145, 0, 0, 17, 0, 3677, 0, 0, 0, 0, 0, '', 'What Do You Feed a Yeti, Anyway? requires The sunreavers');
INSERT INTO conditions VALUES(20, 0, 14074, 0, 0, 17, 0, 3676, 0, 0, 0, 0, 0, '', 'A Leg Up requires A silver confident');
INSERT INTO conditions VALUES(20, 0, 14076, 0, 0, 17, 0, 3676, 0, 0, 0, 0, 0, '', 'Breakfast Of Champions requires A silver confident');
INSERT INTO conditions VALUES(20, 0, 14077, 0, 0, 17, 0, 3676, 0, 0, 0, 0, 0, '', 'The Light''s Mercy requires A silver confident');
INSERT INTO conditions VALUES(20, 0, 14080, 0, 0, 17, 0, 3676, 0, 0, 0, 0, 0, '', 'Stop The Aggressors requires A silver confident');
INSERT INTO conditions VALUES(20, 0, 14090, 0, 0, 17, 0, 3676, 0, 0, 0, 0, 0, '', 'Gormok Wants His Snobolds requires A silver confident');
INSERT INTO conditions VALUES(20, 0, 14096, 0, 0, 17, 0, 3676, 0, 0, 0, 0, 0, '', 'You''ve Really Done It This Time, Kul requires A silver confident');
INSERT INTO conditions VALUES(20, 0, 14112, 0, 0, 17, 0, 3676, 0, 0, 0, 0, 0, '', 'What Do You Feed a Yeti, Anyway? requires A silver confident');
INSERT INTO conditions VALUES(20, 0, 14152, 0, 0, 17, 0, 3676, 0, 0, 0, 0, 0, '', 'Rescue at Sea requires A silver confident');
INSERT INTO conditions VALUES(20, 0, 14092, 0, 0, 17, 0, 3677, 0, 0, 0, 0, 0, '', 'Breakfast Of Champions requires The sunreavers');
INSERT INTO conditions VALUES(20, 0, 14136, 0, 0, 17, 0, 3677, 0, 0, 0, 0, 0, '', 'Rescue at Sea requires The sunreavers');
INSERT INTO conditions VALUES(20, 0, 14140, 0, 0, 17, 0, 3677, 0, 0, 0, 0, 0, '', 'Stop The Aggressors requires The sunreavers');
INSERT INTO conditions VALUES(20, 0, 14141, 0, 0, 17, 0, 3677, 0, 0, 0, 0, 0, '', 'Gormok Wants His Snobolds requires The sunreavers');
INSERT INTO conditions VALUES(20, 0, 14142, 0, 0, 17, 0, 3677, 0, 0, 0, 0, 0, '', 'You''ve Really Done It This Time, Kul requires The sunreavers');
INSERT INTO conditions VALUES(20, 0, 14143, 0, 0, 17, 0, 3677, 0, 0, 0, 0, 0, '', 'A Leg Up requires The sunreavers');
INSERT INTO conditions VALUES(20, 0, 14144, 0, 0, 17, 0, 3677, 0, 0, 0, 0, 0, '', 'The Light''s Mercy requires The sunreavers');
INSERT INTO conditions VALUES(20, 0, 14145, 0, 0, 17, 0, 3677, 0, 0, 0, 0, 0, '', 'What Do You Feed a Yeti, Anyway? requires The sunreavers');
DELETE FROM conditions WHERE SourceTypeOrReferenceId IN(19, 20) AND SourceEntry IN(13846);
INSERT INTO conditions VALUES(19, 0, 13846, 0, 0, 5, 0, 1106, 127, 0, 0, 0, 0, '', 'Quest Contributin'' To The Cause - Requires Argent Crusade hated thru revered');
INSERT INTO conditions VALUES(19, 0, 13846, 0, 0, 8, 0, 13700, 0, 0, 0, 0, 0, '', 'Quest Contributin'' To The Cause - Requires quest Alliance Champion Marker');
INSERT INTO conditions VALUES(19, 0, 13846, 0, 1, 5, 0, 1106, 127, 0, 0, 0, 0, '', 'Quest Contributin'' To The Cause - Requires Argent Crusade hated thru revered');
INSERT INTO conditions VALUES(19, 0, 13846, 0, 1, 8, 0, 13701, 0, 0, 0, 0, 0, '', 'Quest Contributin'' To The Cause - Requires quest Horde Champion Marker');
INSERT INTO conditions VALUES(20, 0, 13846, 0, 0, 5, 0, 1106, 127, 0, 0, 0, 0, '', 'Quest Contributin'' To The Cause - Requires Argent Crusade hated thru revered');
INSERT INTO conditions VALUES(20, 0, 13846, 0, 0, 8, 0, 13700, 0, 0, 0, 0, 0, '', 'Quest Contributin'' To The Cause - Requires quest Alliance Champion Marker');
INSERT INTO conditions VALUES(20, 0, 13846, 0, 1, 5, 0, 1106, 127, 0, 0, 0, 0, '', 'Quest Contributin'' To The Cause - Requires Argent Crusade hated thru revered');
INSERT INTO conditions VALUES(20, 0, 13846, 0, 1, 8, 0, 13701, 0, 0, 0, 0, 0, '', 'Quest Contributin'' To The Cause - Requires quest Horde Champion Marker');


-- Pooling
-- Sunreaver / Silver Covenant Quest Pooling
SET @pool_narasi := 358;
SET @pool_savinia := @pool_narasi+1;
SET @pool_girana := @pool_narasi+2;
SET @pool_tylos := @pool_narasi+3;
SET @pool_silverdawn := 363;

DELETE FROM `pool_template` WHERE `entry` IN (@pool_narasi, @pool_savinia, @pool_girana, @pool_tylos, @pool_silverdawn);
INSERT INTO `pool_template` (`entry`, `max_limit`, `description`) VALUES
(@pool_narasi, 1, 'Narasi Snowdawn <The Silver Covenant> - Daily Quests'),
(@pool_savinia, 1, 'Savinia Loresong <The Silver Covenant> - Daily Quests'),
(@pool_girana, 1, 'Girana the Blooded <The Sunreavers> - Daily Quests'),
(@pool_tylos, 1, 'Tylos Dawnrunner <The Sunreavers> - Daily Quests'),
(@pool_silverdawn, 1, 'Crusader Silverdawn - Daily Quests');

DELETE FROM `pool_quest` WHERE `entry` IN (SELECT quest FROM creature_queststarter WHERE id IN (34880, 34912, 34771, 34914, 35094));
INSERT INTO `pool_quest` (`entry`, `pool_entry`, `description`) VALUES
-- Narasi Snowdawn
(14074, @pool_narasi, 'A Leg Up'),
(14152, @pool_narasi, 'Rescue at Sea'),
(14080, @pool_narasi, 'Stop The Aggressors'),
(14077, @pool_narasi, 'The Light''s Mercy'),
-- Savinia
(14076, @pool_savinia, 'Breakfast of Champions'),
(14090, @pool_savinia, 'Gormok Wants His Snobolds'),
(14112, @pool_savinia, 'What Do You Feed a Yeti, Anyway?'),
-- Girana
(14143, @pool_girana, 'A Leg Up'),
(14136, @pool_girana, 'Rescue at Sea'),
(14140, @pool_girana, 'Stop The Aggressors'),
(14144, @pool_girana, 'The Light''s Mercy'),
-- Tylos
(14092, @pool_tylos, 'Breakfast of Champions'),
(14141, @pool_tylos, 'Gormok Wants His Snobolds'),
(14145, @pool_tylos, 'What Do You Feed a Yeti, Anyway?'),
-- Silverdawn
(14107, @pool_silverdawn, 'The Fate Of The Fallen'),
(14108, @pool_silverdawn, 'Get Kraken!');



-- -------------------------------------------
-- Death Knight chain
-- -------------------------------------------
-- Death Comes From On High (12641)
DELETE FROM creature_text WHERE entry=28511;
INSERT INTO creature_text VALUES (28511, 0, 0, 'The %s launches towards its destination.', 42, 0, 100, 0, 0, 0, 0, 'Eye of Acherus');
INSERT INTO creature_text VALUES (28511, 1, 0, 'The %s is in your control.', 42, 0, 100, 0, 0, 0, 0, 'Eye of Acherus');
DELETE FROM creature_text WHERE entry=28529;
INSERT INTO creature_text VALUES (28529, 0, 0, 'Death stalks us! Destroy it!', 12, 0, 100, 0, 0, 0, 0, 'Scarlet Crusader');
INSERT INTO creature_text VALUES (28529, 0, 1, "'Tis the work of the Scourge!", 12, 0, 100, 0, 0, 0, 0, 'Scarlet Crusader');
INSERT INTO creature_text VALUES (28529, 0, 2, 'Scourge! Do not let it escape!', 12, 0, 100, 0, 0, 0, 0, 'Scarlet Crusader');
INSERT INTO creature_text VALUES (28529, 0, 3, 'Begone foul demon!', 12, 0, 100, 0, 0, 0, 0, 'Scarlet Crusader');
UPDATE creature_template SET modelid1=26320, modelid2=0, ScriptName='npc_eye_of_acherus' WHERE entry=28511;
UPDATE creature_template SET faction=2100 WHERE entry=28528;
DELETE FROM spell_script_names WHERE spell_id=51858;
INSERT INTO spell_script_names VALUES (51858, 'spell_q12641_death_comes_from_on_high');
DELETE FROM spell_script_names WHERE spell_id=51904;
INSERT INTO spell_script_names VALUES (51904, 'spell_q12641_death_comes_from_on_high_summon_ghouls');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=54522;
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=51904;
INSERT INTO conditions VALUES(13, 1, 51904, 0, 0, 31, 0, 3, 0, 0, 0, 0, 0, '', 'Target Creatures');
INSERT INTO conditions VALUES(13, 1, 51904, 0, 0, 34, 0, 1, 15, 0, 0, 0, 0, '', 'Only hostile to neutral reaction');
DELETE FROM smart_scripts WHERE entryorguid=28529 AND source_type=0;
INSERT INTO smart_scripts VALUES (28529, 0, 0, 0, 0, 0, 100, 0, 0, 0, 2000, 3000, 11, 6660, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Scarlet Crusader - In Combat CMC - Cast Shoot');
INSERT INTO smart_scripts VALUES (28529, 0, 1, 0, 4, 0, 50, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Scarlet Crusader - On Aggro - Say text 0');

-- Death's Challenge (12733)
DELETE FROM creature_text WHERE entry=28406;
INSERT INTO creature_text VALUES (28406, 0, 0, "No potions!", 12, 0, 100, 0, 0, 0, 0, 'dk initiate SAY_DUEL_A');
INSERT INTO creature_text VALUES (28406, 0, 1, "Remember this day, $n, for it is the day that you will be thoroughly owned.", 12, 0, 100, 0, 0, 0, 0, 'dk initiate SAY_DUEL_B');
INSERT INTO creature_text VALUES (28406, 0, 2, "I'm going to tear your heart out, cupcake!", 12, 0, 100, 0, 0, 0, 0, 'dk initiate SAY_DUEL_C');
INSERT INTO creature_text VALUES (28406, 0, 3, "Don't make me laugh.", 12, 0, 100, 0, 0, 0, 0, 'dk initiate SAY_DUEL_D');
INSERT INTO creature_text VALUES (28406, 0, 4, "Here come the tears...", 12, 0, 100, 0, 0, 0, 0, 'dk initiate SAY_DUEL_E');
INSERT INTO creature_text VALUES (28406, 0, 5, "You have challenged death itself!", 12, 0, 100, 0, 0, 0, 0, 'dk initiate SAY_DUEL_F');
INSERT INTO creature_text VALUES (28406, 0, 6, "The Lich King will see his true champion on this day!", 12, 0, 100, 0, 0, 0, 0, 'dk initiate SAY_DUEL_G');
INSERT INTO creature_text VALUES (28406, 0, 7, "You're going down!", 12, 0, 100, 0, 0, 0, 0, 'dk initiate SAY_DUEL_H');
INSERT INTO creature_text VALUES (28406, 0, 8, "You don't stand a chance, $n", 12, 0, 100, 0, 0, 0, 0, 'dk initiate SAY_DUEL_I');
INSERT INTO creature_text VALUES (28406, 1, 0, "The duel will begin in...", 42, 0, 100, 0, 0, 0, 0, 'dk initiate SAY_DUEL+1');
INSERT INTO creature_text VALUES (28406, 2, 0, "3...", 42, 0, 100, 0, 0, 0, 0, 'dk initiate SAY_DUEL+2');
INSERT INTO creature_text VALUES (28406, 3, 0, "2...", 42, 0, 100, 0, 0, 0, 0, 'dk initiate SAY_DUEL+3');
INSERT INTO creature_text VALUES (28406, 4, 0, "1...", 42, 0, 100, 0, 0, 0, 0, 'dk initiate SAY_DUEL+4');

-- Grand Theft Palomino (12680)
UPDATE creature_template SET faction=2096, speed_run=1.6 WHERE entry IN(28605, 28606);
DELETE FROM conditions WHERE SourceTypeOrReferenceId IN(13, 17) AND SourceEntry=52264;
INSERT INTO conditions VALUES(13, 1, 52264, 0, 0, 31, 0, 3, 28653, 0, 0, 0, 0, '', 'Target Salanar the Horseman');
UPDATE creature_template SET AIName='SmartAI', Scriptname='' WHERE entry=28653;
DELETE FROM smart_scripts WHERE entryorguid=28653 AND source_type=0;
INSERT INTO smart_scripts VALUES (28653, 0, 0, 0, 8, 0, 100, 0, 52264, 0, 0, 0, 41, 500, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Salanar the Horseman - On Spell Hit - Despawn Target');

-- Into the Realm of Shadows (12687)
DELETE FROM spell_area WHERE spell=52693;
INSERT INTO spell_area VALUES (52693, 4298, 12687, 12687, 0, 0, 2, 1, 74, 9);
DELETE FROM conditions WHERE SourceTypeOrReferenceId=15 AND SourceGroup=9739;
INSERT INTO conditions VALUES(15, 9739, 0, 0, 0, 9, 0, 12687, 0, 0, 0, 0, 0, '', 'Requires 12687 quest active');
DELETE FROM creature_addon WHERE guid IN(SELECT guid FROM creature WHERE id=28768);
DELETE FROM creature WHERE id=28768;
UPDATE creature_template SET AIName='SmartAI', Scriptname='' WHERE entry=28768;
DELETE FROM smart_scripts WHERE entryorguid=28768 AND source_type=0;
INSERT INTO smart_scripts VALUES (28768, 0, 0, 0, 0, 0, 100, 0, 1000, 1000, 6000, 6000, 11, 52372, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Dark Rider of Acherus - Cast Spell Icy Touch');
INSERT INTO smart_scripts VALUES (28768, 0, 1, 0, 0, 0, 100, 0, 3000, 3000, 6000, 6000, 11, 52374, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Dark Rider of Acherus - Cast Spell Blood Strike');
INSERT INTO smart_scripts VALUES (28768, 0, 2, 0, 0, 0, 100, 0, 5000, 5000, 6000, 6000, 11, 50688, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Dark Rider of Acherus - Cast Spell Plague Strike');
INSERT INTO smart_scripts VALUES (28768, 0, 3, 4, 6, 0, 100, 0, 0, 0, 0, 0, 2, 2096, 0, 0, 0, 0, 0, 19, 28782, 5, 0, 0, 0, 0, 0, 'Dark Rider of Acherus - On Death - Set Faction');
INSERT INTO smart_scripts VALUES (28768, 0, 4, 5, 61, 0, 100, 0, 0, 0, 0, 0, 132, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Dark Rider of Acherus - On Death - Exit Vehicle');
INSERT INTO smart_scripts VALUES (28768, 0, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 19, 28782, 5, 0, 0, 0, 0, 0, 'Dark Rider of Acherus - On Death - Set Home Pos');
INSERT INTO smart_scripts VALUES (28768, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 24, 0, 0, 0, 0, 0, 0, 19, 28782, 5, 0, 0, 0, 0, 0, 'Dark Rider of Acherus - On Death - Enter Evade Mode');
INSERT INTO smart_scripts VALUES (28768, 0, 7, 0, 25, 0, 100, 0, 0, 0, 0, 0, 2, 16, 0, 0, 0, 0, 0, 19, 28782, 5, 0, 0, 0, 0, 0, 'Dark Rider of Acherus - On Reset - Set Faction');
UPDATE creature_template SET unit_flags=32768, AIName='CombatAI' WHERE entry=28782;
DELETE FROM vehicle_template_accessory WHERE entry=28782;
INSERT INTO vehicle_template_accessory VALUES (28782, 28768, 0, 0, 'Acherus Deathcharger', 6, 30000);
DELETE FROM npc_spellclick_spells WHERE npc_entry=28782;
INSERT INTO npc_spellclick_spells VALUES (28782, 52349, 1, 0);
INSERT INTO npc_spellclick_spells VALUES (28782, 67830, 1, 0);
DELETE FROM conditions WHERE SourceTypeOrReferenceId=18 AND SourceGroup=28782;
INSERT INTO conditions VALUES(18, 28782, 67830, 0, 0, 31, 0, 3, 0, 0, 0, 0, 0, '', 'Allow Spellclick for npc');
INSERT INTO conditions VALUES(18, 28782, 52349, 0, 0, 9, 0, 12687, 0, 0, 0, 0, 0, '', 'Required quest active for spellclick');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=52349;
INSERT INTO conditions VALUES(13, 1, 52349, 0, 0, 31, 0, 3, 28782, 0, 0, 0, 0, '', 'Target Acherus Deathcharger');
DELETE FROM creature_text WHERE entry=28788;
INSERT INTO creature_text VALUES (28788, 0, 0, "Impresive, death knight. Return to me in the world of the living for your reward.", 12, 0, 100, 0, 0, 0, 0, 'Salanar the Horseman');
UPDATE creature_template SET AIName='', ScriptName='' WHERE entry=28654;
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=28788;
DELETE FROM smart_scripts WHERE entryorguid=28788 AND source_type=0;
INSERT INTO smart_scripts VALUES (28788, 0, 0, 0, 11, 0, 100, 0, 0, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, 'Salanar the Horseman - Respawn - Set Orientation');
INSERT INTO smart_scripts VALUES (28788, 0, 1, 2, 60, 0, 100, 1, 500, 500, 0, 0, 59, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Salanar the Horseman - On Update - Set Walk');
INSERT INTO smart_scripts VALUES (28788, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 46, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Salanar the Horseman - On Update - Move Forward');
INSERT INTO smart_scripts VALUES (28788, 0, 3, 0, 60, 0, 100, 1, 3000, 3000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Salanar the Horseman - On Update - Talk');
INSERT INTO smart_scripts VALUES (28788, 0, 4, 5, 60, 0, 100, 1, 7000, 7000, 0, 0, 28, 52349, 0, 0, 0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, 'Salanar the Horseman - On Update - Remove Aura');
INSERT INTO smart_scripts VALUES (28788, 0, 5, 6, 61, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 19, 28782, 20, 0, 0, 0, 0, 0, 'Salanar the Horseman - On Update - Despawn Target');
INSERT INTO smart_scripts VALUES (28788, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 26, 12687, 0, 0, 0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, 'Salanar the Horseman - On Update - Group Event Happens');

-- Gothik the Harvester (12697)
UPDATE quest_template SET PrevQuestId=0 WHERE Id=12697;

-- The Gift That Keeps On Giving (12698)
DELETE FROM creature_text WHERE entry=28658;
INSERT INTO creature_text VALUES (28658, 0, 0, "Get In that pit before I turn you into a pile of ash and feces!", 12, 0, 100, 0, 0, 0, 0, 'Gothik the Harvester');
UPDATE gameobject_template SET data3=0, AIName='SmartGameObjectAI', ScriptName='' WHERE entry=190769;
DELETE FROM smart_scripts WHERE entryorguid=190769 AND source_type=1;
INSERT INTO smart_scripts VALUES (190769, 1, 0, 1, 60, 0, 100, 1, 2000, 2000, 0, 0, 93, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Gift of the Harvester - On Update - SendCustomAnim');
INSERT INTO smart_scripts VALUES (190769, 1, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 11, 52479, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Gift of the Harvester - On Update - Cast Spell');
DELETE FROM spell_script_names WHERE spell_id=52479;
INSERT INTO spell_script_names VALUES (52479, 'spell_q12698_the_gift_that_keeps_on_giving');
UPDATE creature_template SET minlevel=56, maxlevel=56, AIName='', ScriptName='npc_scarlet_ghoul' WHERE entry=28845;
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=28846;
DELETE FROM smart_scripts WHERE entryorguid=28846 AND source_type=0;
INSERT INTO smart_scripts VALUES (28846, 0, 0, 0, 11, 0, 100, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, 'Scarlet Ghost - On Respawn - Attack Start');

-- Massacre At Light's Point (12701)
UPDATE gameobject_template SET AIName='', ScriptName='go_inconspicuous_mine_car' WHERE entry=190767;
UPDATE creature SET spawntimesecs=20 WHERE id=28834;
UPDATE creature SET curhealth=20910 WHERE id=28833;
UPDATE creature_template SET unit_flags=4, AIName='', ScriptName='npc_scarlet_cannon' WHERE entry=28833;

-- Lambs To The Slaughter (12722)
DELETE FROM creature WHERE id=28897;
INSERT INTO creature VALUES (NULL, 28897, 609, 1, 4, 0, 0, 1841.08, -5907.23, 106.329, 1.19249, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 1819.33, -5960.68, 116.443, 2.4483, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 1786.34, -5822.85, 113.411, 3.24729, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 1841.1, -5907.25, 106.274, 1.1997, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 1820.46, -5966.57, 116.522, 2.42778, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 1811.02, -5966.72, 116.33, 3.32327, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 1841.19, -5916.46, 106.95, 4.30993, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 1804.43, -5958.89, 116.318, -0.982951, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 1816.76, -5960.64, 116.318, 3.0629, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 1817.45, -5966.03, 116.428, 4.93509, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 2347.61, -5911.09, 104.749, 2.85444, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 2389.83, -5928.23, 110.579, 4.01313, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 2140.09, -6099.46, 8.91669, 2.636, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 2193.96, -6128.2, 3.26092, 5.81589, 200, 15, 0, 924, 0, 1, 0, 0, 0),
(NULL, 28897, 609, 1, 4, 0, 0, 2178.72, -6149.56, 2.12362, 0.914803, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 1844.86, -5901.2, 105.131, -2.31384, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 2264.77, -6189.18, 13.8792, 3.42317, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 2110.8, -6181.86, 13.7373, 2.98641, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 2326.17, -5904.74, 98.1043, 2.85444, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 1821.5, -5950.81, 116.097, 1.18943, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 2227.59, -5801.11, 101.649, 3.98118, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 1821.14, -5962.94, 116.818, 5.48423, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 1938.51, -5770.87, 102.302, 3.92699, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 1805.21, -5901.04, 116.342, 5.17454, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 1826.95, -5926.79, 111.521, 2.51782, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 1839.95, -5929.75, 109.041, 2.76762, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 1862, -5903.66, 104.075, 2.35595, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 1882.11, -5879.28, 102.823, 2.42258, 200, 15, 0, 924, 0, 1, 0, 0, 0),
(NULL, 28897, 609, 1, 4, 0, 0, 1865.32, -5948.47, 116.879, -0.359908, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 1788.1, -5833.48, 115.538, -2.38489, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 1869.18, -5949.99, 111.192, 2.72821, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 1771.17, -5818.26, 116.043, -3.07822, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 1830.41, -5916.23, 109.526, 4.214, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 1764.68, -5820.81, 116.24, 0.6862, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 1782.36, -5834.24, 116.259, 3.80763, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 1782.07, -5837.18, 116.701, 0.351261, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 1820.33, -5839.93, 114.37, -1.94847, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 1763.88, -5818.96, 116.277, 1.97586, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 1768.11, -5814.87, 116.147, -1.73379, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 1822.46, -5842.99, 114.336, 2.09128, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 2020.75, -5850.92, 100.993, 3.21976, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 1810.69, -5916.14, 115.781, 2.37718, 200, 15, 0, 924, 0, 1, 0, 0, 0),
(NULL, 28897, 609, 1, 4, 0, 0, 2055.29, -5848.38, 102.248, 3.09598, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 2064.24, -5811.93, 103.616, 3.10714, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 1780.91, -5824.12, 114.792, 1.41079, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 1782.79, -5820.41, 114.295, 3.55982, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 1765.38, -5823.62, 116.153, 3.1723, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 1780.57, -5827.18, 115.088, 0.386675, 200, 15, 0, 924, 0, 1, 0, 0, 0),(NULL, 28897, 609, 1, 4, 0, 0, 1787.56, -5826.46, 113.367, 3.1123, 200, 15, 0, 924, 0, 1, 0, 0, 0);
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=28897;
DELETE FROM smart_scripts WHERE entryorguid=28897 AND source_type=0;
INSERT INTO smart_scripts VALUES (28897, 0, 0, 0, 4, 0, 20, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Scarlet Ghoul - On Aggro - Talk');
DELETE FROM creature_text WHERE entry=28897;
INSERT INTO creature_text VALUES (28897, 0, 0, "Smell flesh... close...", 12, 0, 100, 0, 0, 0, 0, 'Scarlet Ghoul');
INSERT INTO creature_text VALUES (28897, 0, 1, "$g Poppy:Mama;!", 12, 0, 100, 0, 0, 0, 0, 'Scarlet Ghoul');
INSERT INTO creature_text VALUES (28897, 0, 2, "GIVE ME BRAINS!", 12, 0, 100, 0, 0, 0, 0, 'Scarlet Ghoul');
INSERT INTO creature_text VALUES (28897, 0, 3, "So hungry...", 12, 0, 100, 0, 0, 0, 0, 'Scarlet Ghoul');
DELETE FROM creature_text WHERE entry IN(28610, 28936, 28939, 28940) AND groupid=0;
INSERT INTO creature_text VALUES (28610, 0, 0, "You're not welcome in these lands, monster!", 12, 0, 100, 0, 0, 0, 0, 'Scarlet Marksman');
INSERT INTO creature_text VALUES (28610, 0, 1, "By the Light be cleansed!", 12, 0, 100, 0, 0, 0, 0, 'Scarlet Marksman');
INSERT INTO creature_text VALUES (28610, 0, 2, "Let the purging begin!", 12, 0, 100, 0, 0, 0, 0, 'Scarlet Marksman');
INSERT INTO creature_text VALUES (28610, 0, 3, "Scourge filth! DIE!", 12, 0, 100, 0, 0, 0, 0, 'Scarlet Marksman');
INSERT INTO creature_text VALUES (28610, 0, 4, "The Crusade will be victorious!", 12, 0, 100, 0, 0, 0, 0, 'Scarlet Marksman');
INSERT INTO creature_text VALUES (28936, 0, 0, "You're not welcome in these lands, monster!", 12, 0, 100, 0, 0, 0, 0, 'Scarlet Commander');
INSERT INTO creature_text VALUES (28936, 0, 1, "By the Light be cleansed!", 12, 0, 100, 0, 0, 0, 0, 'Scarlet Commander');
INSERT INTO creature_text VALUES (28936, 0, 2, "Let the purging begin!", 12, 0, 100, 0, 0, 0, 0, 'Scarlet Commander');
INSERT INTO creature_text VALUES (28936, 0, 3, "Scourge filth! DIE!", 12, 0, 100, 0, 0, 0, 0, 'Scarlet Commander');
INSERT INTO creature_text VALUES (28936, 0, 4, "The Crusade will be victorious!", 12, 0, 100, 0, 0, 0, 0, 'Scarlet Commander');
INSERT INTO creature_text VALUES (28939, 0, 0, "You're not welcome in these lands, monster!", 12, 0, 100, 0, 0, 0, 0, 'Scarlet Preacher');
INSERT INTO creature_text VALUES (28939, 0, 1, "By the Light be cleansed!", 12, 0, 100, 0, 0, 0, 0, 'Scarlet Preacher');
INSERT INTO creature_text VALUES (28939, 0, 2, "Let the purging begin!", 12, 0, 100, 0, 0, 0, 0, 'Scarlet Preacher');
INSERT INTO creature_text VALUES (28939, 0, 3, "Scourge filth! DIE!", 12, 0, 100, 0, 0, 0, 0, 'Scarlet Preacher');
INSERT INTO creature_text VALUES (28939, 0, 4, "The Crusade will be victorious!", 12, 0, 100, 0, 0, 0, 0, 'Scarlet Preacher');
INSERT INTO creature_text VALUES (28940, 0, 0, "You're not welcome in these lands, monster!", 12, 0, 100, 0, 0, 0, 0, 'Scarlet Crusader');
INSERT INTO creature_text VALUES (28940, 0, 1, "By the Light be cleansed!", 12, 0, 100, 0, 0, 0, 0, 'Scarlet Crusader');
INSERT INTO creature_text VALUES (28940, 0, 2, "Let the purging begin!", 12, 0, 100, 0, 0, 0, 0, 'Scarlet Crusader');
INSERT INTO creature_text VALUES (28940, 0, 3, "Scourge filth! DIE!", 12, 0, 100, 0, 0, 0, 0, 'Scarlet Crusader');
INSERT INTO creature_text VALUES (28940, 0, 4, "The Crusade will be victorious!", 12, 0, 100, 0, 0, 0, 0, 'Scarlet Crusader');
UPDATE creature_template SET spell1=6660, spell2=18651, spell3=32915, AIName='', ScriptName='npc_crusade_persuaded' WHERE entry=28610;
UPDATE creature_template SET spell1=52221, AIName='', ScriptName='npc_crusade_persuaded' WHERE entry=28936;
UPDATE creature_template SET spell1=52221, AIName='CombatAI', ScriptName='' WHERE entry=28940;
DELETE FROM smart_scripts WHERE entryorguid=28936 AND source_type=0;
DELETE FROM creature_text WHERE entry=28942;
INSERT INTO creature_text VALUES (28942, 0, 0, "Come then, $c!", 12, 0, 100, 0, 0, 0, 0, 'Citizen of New Avalon');
INSERT INTO creature_text VALUES (28942, 0, 1, "I won't go down that easy!", 12, 0, 100, 0, 0, 0, 0, 'Citizen of New Avalon');
INSERT INTO creature_text VALUES (28942, 0, 2, "Is this the best the Scourge can do?", 12, 0, 100, 0, 0, 0, 0, 'Citizen of New Avalon');
INSERT INTO creature_text VALUES (28942, 1, 0, "Ask for anything and you shall have it! Just spare my life!", 12, 0, 100, 0, 0, 0, 0, 'Citizen of New Avalon');
INSERT INTO creature_text VALUES (28942, 1, 1, "Filthy coward! Get it over with...", 12, 0, 100, 0, 0, 0, 0, 'Citizen of New Avalon');
INSERT INTO creature_text VALUES (28942, 1, 2, "I'll give you anything you want! Just let me live!", 12, 0, 100, 0, 0, 0, 0, 'Citizen of New Avalon');
INSERT INTO creature_text VALUES (28942, 1, 3, "I'm too young to die!", 12, 0, 100, 0, 0, 0, 0, 'Citizen of New Avalon');
INSERT INTO creature_text VALUES (28942, 1, 4, "The... They promised that we'd be safe...", 12, 0, 100, 0, 0, 0, 0, 'Citizen of New Avalon');
INSERT INTO creature_text VALUES (28942, 2, 0, "The Scourge has broken through! RUN AWAY! RUN AWAY!", 12, 0, 100, 0, 0, 0, 0, 'Citizen of New Avalon');
INSERT INTO creature_text VALUES (28942, 3, 0, "Everybody is dying! Help us!", 12, 0, 100, 0, 0, 0, 0, 'Citizen of New Avalon');
INSERT INTO creature_text VALUES (28942, 3, 1, "I assure you this much, Quimby, you won't be getting my vote next term!", 12, 0, 100, 0, 0, 0, 0, 'Citizen of New Avalon');
INSERT INTO creature_text VALUES (28942, 3, 2, "I want on that last ship! Don't leave us!", 12, 0, 100, 0, 0, 0, 0, 'Citizen of New Avalon');
INSERT INTO creature_text VALUES (28942, 3, 3, "If you don't come out, we'll tear this place apart!", 12, 0, 100, 0, 0, 0, 0, 'Citizen of New Avalon');
INSERT INTO creature_text VALUES (28942, 3, 4, "My whole family's been killed! Where was the army when we needed them most?", 12, 0, 100, 0, 0, 0, 0, 'Citizen of New Avalon');
INSERT INTO creature_text VALUES (28942, 3, 5, "Naxxramas is gone? Who cares! Acherus is here now and the death knights are killing everybody!", 12, 0, 100, 0, 0, 0, 0, 'Citizen of New Avalon');
INSERT INTO creature_text VALUES (28942, 3, 6, "No more lies, Quimby! We want answers!", 12, 0, 100, 0, 0, 0, 0, 'Citizen of New Avalon');
INSERT INTO creature_text VALUES (28942, 3, 7, "QUIMBY!!!!!!", 12, 0, 100, 0, 0, 0, 0, 'Citizen of New Avalon');
INSERT INTO creature_text VALUES (28942, 3, 8, 'So much for the Scarlet "paradise"!', 12, 0, 100, 0, 0, 0, 0, 'Citizen of New Avalon');
INSERT INTO creature_text VALUES (28942, 3, 9, "This is a slap in the face! We demand answers!", 12, 0, 100, 0, 0, 0, 0, 'Citizen of New Avalon');
INSERT INTO creature_text VALUES (28942, 3, 10, "You're useless, Quimby!", 12, 0, 100, 0, 0, 0, 0, 'Citizen of New Avalon');
INSERT INTO creature_text VALUES (28942, 3, 11, "We were promised safety! Security!", 12, 0, 100, 0, 0, 0, 0, 'Citizen of New Avalon');
INSERT INTO creature_text VALUES (28942, 3, 12, "We're done for! Save us, Quimby!", 12, 0, 100, 0, 0, 0, 0, 'Citizen of New Avalon');
INSERT INTO creature_text VALUES (28942, 3, 13, "Where are those ships going, Quimby! Tell us the truth!", 12, 0, 100, 0, 0, 0, 0, 'Citizen of New Avalon');
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry=28942;
DELETE FROM smart_scripts WHERE entryorguid=28942 AND source_type=0;
DELETE FROM smart_scripts WHERE entryorguid IN(28942*100, 28942*100+1, 28942*100+2) AND source_type=9;
INSERT INTO smart_scripts VALUES (28942, 0, 0, 0, 4, 0, 100, 0, 0, 0, 0, 0, 87, 28942*100, 28942*100+1, 28942*100+2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Citizen of New Avalon - On Aggro - Random action list');
INSERT INTO smart_scripts VALUES (28942, 0, 1, 0, 7, 0, 100, 0, 0, 0, 0, 0, 28, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Citizen of New Avalon - On Evade - Remove All Auras');
INSERT INTO smart_scripts VALUES (28942, 0, 2, 0, 1, 0, 30, 0, 1000, 5000, 5000, 25000, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Citizen of New Avalon - On OOC Update - Talk');
INSERT INTO smart_scripts VALUES (28942*100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Citizen of New Avalon - Script9 - Talk');
INSERT INTO smart_scripts VALUES (28942*100, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 52262, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Citizen of New Avalon - Script9 - Cast Cornered and Enraged!');
INSERT INTO smart_scripts VALUES (28942*100+1, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Citizen of New Avalon - Script9 - Talk');
INSERT INTO smart_scripts VALUES (28942*100+1, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 52165, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Citizen of New Avalon - Script9 - Cast Spell Stun no freeze anim');
INSERT INTO smart_scripts VALUES (28942*100+1, 9, 2, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 5, 431, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Citizen of New Avalon - Script9 - Play Emote');
INSERT INTO smart_scripts VALUES (28942*100+2, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Citizen of New Avalon - Script9 - Talk');
INSERT INTO smart_scripts VALUES (28942*100+2, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 11, 52716, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Citizen of New Avalon - Script9 - Cast Spell Terrified');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=22 AND SourceEntry=28942;
INSERT INTO conditions VALUES (22, 3, 28942, 0, 0, 23, 1, 4346, 0, 0, 0, 0, 0, '', 'Must be in 4346 area');

-- An End To All Things... (12779)
UPDATE creature_template SET speed_walk=2, speed_run=2, spell2=0, InhabitType=5 WHERE entry=28670;
REPLACE INTO creature_template_addon VALUES(28670, 0, 0, 33554432, 1, 0, '53112');
DELETE FROM conditions WHERE SourceTypeOrReferenceId IN(13, 17) AND SourceEntry=53110;
INSERT INTO conditions VALUES(13, 1, 53110, 0, 0, 31, 0, 3, 29102, 0, 0, 0, 0, '', 'Target Hearthglen Crusader');
INSERT INTO conditions VALUES(13, 1, 53110, 0, 0, 36, 0, 0, 0, 0, 0, 0, 0, '', 'Target Must be alive');
INSERT INTO conditions VALUES(13, 1, 53110, 0, 1, 31, 0, 3, 29103, 0, 0, 0, 0, '', 'Target Tirisfal Crusader');
INSERT INTO conditions VALUES(13, 1, 53110, 0, 1, 36, 0, 0, 0, 0, 0, 0, 0, '', 'Target Must be alive');
DELETE FROM spell_script_names WHERE spell_id=53110;
INSERT INTO spell_script_names VALUES(53110, "spell_q12779_an_end_to_all_things");

-- Scarlet Armies Approach... (12757)
DELETE FROM smart_scripts WHERE entryorguid=28914 AND source_type=0 AND id IN(1, 2);
INSERT INTO smart_scripts VALUES (28914, 0, 1, 2, 62, 0, 100, 0, 9769, 0, 0, 0, 80, 2891400, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Orbaz Bloodbane - On Gossip Select - Run Script");
INSERT INTO smart_scripts VALUES (28914, 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, "Orbaz Bloodbane - On Gossip Select - Close Gossip");
DELETE FROM conditions WHERE SourceTypeOrReferenceId=15 AND SourceGroup=9769;
INSERT INTO conditions VALUES(15, 9769, 0, 0, 0, 28, 0, 12757, 0, 0, 0, 0, 0, '', 'Must have quest 12757 active');

-- The Light of the Dawn (12801), wstyd i hanba TC
-- 130956 Mograine GUID, should NEVER change
DELETE FROM creature_addon WHERE guid IN(SELECT guid FROM creature WHERE id IN(29199, 29200, 29204));
DELETE FROM creature WHERE id IN(29199, 29200, 29204);
REPLACE INTO creature_addon VALUES (130956, 0, 25279, 0, 1, 0, '');
UPDATE creature_template SET unit_flags=0 WHERE entry=29173;
REPLACE INTO creature_equip_template VALUES(29175, 1, 22709, 0, 0, 18019); -- pussywizard: equip dla tiriona do outro

UPDATE creature_text SET text="Soldiers of the Scourge, stand ready! Prepare to unleash your fury upon the Argent Dawn!" WHERE entry=29173 AND groupid=0;
UPDATE creature_text SET text="The sky weeps at the glorious devastation of these lands! Soon, Azeroth's futile tears will rain down upon us!" WHERE entry=29173 AND groupid=1;
UPDATE creature_text SET text='%s flees' WHERE entry=29204 AND groupid=71;
UPDATE creature_text SET type=41 WHERE entry=29173 AND groupid=72;
UPDATE creature_text SET emote=5 WHERE entry=29173 AND groupid=32;
UPDATE creature_text SET emote=397 WHERE entry=29173 AND groupid=43;
UPDATE creature_text SET emote=15 WHERE entry=29175 AND groupid=65;
UPDATE creature_text SET emote=15 WHERE entry=29175 AND groupid=66;
UPDATE creature_text SET emote=397 WHERE entry=29183 AND groupid=57;

UPDATE creature_template SET AIName='NullCreatureAI', ScriptName='' WHERE entry IN(29175, 29183);

-- Spells
DELETE FROM spell_script_names WHERE spell_id=53642;
INSERT INTO spell_script_names VALUES (53642, 'spell_gen_area_aura_select_players');
DELETE FROM spell_script_names WHERE spell_id=53658;
INSERT INTO spell_script_names VALUES (53658, 'spell_chapter5_light_of_dawn_aura');
DELETE FROM spell_script_names WHERE spell_id=53680;
INSERT INTO spell_script_names VALUES (53680, 'spell_chapter5_rebuke');

DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=53644;
INSERT INTO conditions VALUES(13, 1, 53644, 0, 0, 31, 0, 3, 29219, 0, 0, 0, 0, '', 'Target Ghouls');
INSERT INTO conditions VALUES(13, 1, 53644, 0, 1, 31, 0, 3, 29206, 0, 0, 0, 0, '', 'Target Champions');
INSERT INTO conditions VALUES(13, 1, 53644, 0, 2, 31, 0, 3, 29190, 0, 0, 0, 0, '', 'Target Giants');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=53680;
INSERT INTO conditions VALUES(13, 1, 53680, 0, 0, 31, 0, 3, 29173, 0, 0, 0, 0, '', 'Target Mograine');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=53210;
INSERT INTO conditions VALUES(13, 1, 53210, 0, 0, 31, 0, 3, 29174, 0, 0, 0, 0, '', 'Target Defedners');
INSERT INTO conditions VALUES(13, 1, 53210, 0, 1, 31, 0, 3, 29176, 0, 0, 0, 0, '', 'Target Defedners');
INSERT INTO conditions VALUES(13, 1, 53210, 0, 2, 31, 0, 3, 29177, 0, 0, 0, 0, '', 'Target Defedners');
INSERT INTO conditions VALUES(13, 1, 53210, 0, 3, 31, 0, 3, 29178, 0, 0, 0, 0, '', 'Target Defedners');
INSERT INTO conditions VALUES(13, 1, 53210, 0, 4, 31, 0, 3, 29179, 0, 0, 0, 0, '', 'Target Defedners');
INSERT INTO conditions VALUES(13, 1, 53210, 0, 5, 31, 0, 3, 29180, 0, 0, 0, 0, '', 'Target Defedners');
INSERT INTO conditions VALUES(13, 1, 53210, 0, 6, 31, 0, 3, 29181, 0, 0, 0, 0, '', 'Target Defedners');
INSERT INTO conditions VALUES(13, 1, 53210, 0, 7, 31, 0, 3, 29182, 0, 0, 0, 0, '', 'Target Defedners');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=13 AND SourceEntry=53778;
INSERT INTO conditions VALUES(13, 1, 53778, 0, 0, 31, 0, 3, 29173, 0, 0, 0, 0, '', 'Target Mograine');

UPDATE creature_template SET unit_flags = unit_flags|(2+4+256+512), AIName='NullCreatureAI' WHERE entry=29225; -- pussywizard: anti-magic zone summon (looks like totem)

-- GOs
DELETE FROM gameobject WHERE id IN(191301, 191302);
UPDATE gameobject_template SET data5=5 WHERE entry=191301;

-- Summons
DELETE FROM creature_summon_groups WHERE summonerId=29173;
INSERT INTO creature_summon_groups VALUES (29173, 0, 30, 29190, 2453.18, -5183.31, 76.1869, 3.22886, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 30, 29190, 2435.99, -5097.61, 82.9616, 5.06145, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 30, 29199, 2438.45, -5137.02, 82.6968, 4.13643, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 30, 29200, 2431.82, -5130.47, 83.3011, 4.04916, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 30, 29204, 2436.04, -5132.31, 82.8884, 3.90954, 6, 3000);

INSERT INTO creature_summon_groups VALUES (29173, 0, 0, 29219, 2421.51, -5125.91, 82.0584, 4.16001, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 0, 29219, 2434.9, -5152.75, 82.7998, 4.19535, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 0, 29219, 2413.82, -5167.85, 81.1358, 4.19535, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 0, 29219, 2413.18, -5144.6, 84.5541, 3.46101, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 0, 29219, 2405.41, -5147.17, 83.8279, 3.46101, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 2, 29219, 2414.89, -5151.82, 84.3642, 3.90475, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 2, 29219, 2445.39, -5141.42, 80.5549, 3.79873, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 2, 29219, 2433.87, -5116.75, 79.4494, 3.70055, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 2, 29219, 2442.79, -5133.61, 81.1154, 2.14939, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 2, 29219, 2433.79, -5127.07, 82.0957, 2.89552, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 4, 29219, 2425.89, -5143.18, 84.2876, 2.89552, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 4, 29219, 2431.03, -5161.67, 82.4211, 4.5959, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 4, 29219, 2440.55, -5165.58, 79.717, 3.42174, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 4, 29219, 2439.43, -5123.46, 80.0141, 4.28567, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 4, 29219, 2422.32, -5117.07, 80.2242, 3.96366, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 1, 29206, 2425.05, -5134.18, 83.5648, 3.90083, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 1, 29206, 2420.04, -5150.5, 84.7892, 3.97151, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 1, 29206, 2439.44, -5147.43, 81.6538, 3.6927, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 1, 29206, 2430.18, -5120.74, 80.6734, 4.34065, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 3, 29206, 2432.03, -5178.66, 78.1408, 3.57096, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 3, 29206, 2407.3, -5137.28, 83.5367, 4.10503, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 3, 29206, 2444.23, -5127.52, 79.7291, 4.11681, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 3, 29206, 2451.21, -5139.14, 79.4415, 4.01864, 6, 3000);

INSERT INTO creature_summon_groups VALUES (29173, 0, 5, 29174, 2298.85, -5301.92, 81.9971, 1.43381, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 5, 29174, 2254.95, -5300.19, 82.1675, 1.10787, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 5, 29174, 2258.18, -5301.7, 82.1675, 1.13536, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 5, 29174, 2271.18, -5301.09, 83.9718, 1.09217, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 5, 29174, 2268.2, -5299.54, 82.6949, 1.09217, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 5, 29174, 2265.03, -5297.9, 82.1674, 1.09217, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 5, 29174, 2261.92, -5296.29, 82.1674, 1.09217, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 5, 29174, 2258.88, -5294.71, 82.1674, 1.09217, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 5, 29174, 2255.37, -5296.31, 82.1673, 1.09217, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 5, 29174, 2312.5, -5303.8, 81.9964, 1.43381, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 5, 29174, 2308.98, -5303.32, 81.9971, 1.43381, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 5, 29174, 2295.31, -5301.44, 81.9971, 1.43381, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 5, 29174, 2306.83, -5300.05, 81.9966, 1.42596, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 5, 29174, 2258.53, -5297.95, 82.1679, 1.09217, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 5, 29174, 2261.64, -5299.56, 82.1679, 1.09217, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 5, 29174, 2264.69, -5301.14, 82.1679, 1.09217, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 5, 29174, 2298.8, -5298.87, 81.9966, 1.45738, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 5, 29174, 2303.44, -5299.55, 81.9966, 1.42596, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 5, 29174, 2305.58, -5302.85, 81.9971, 1.43381, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 5, 29174, 2302.11, -5302.37, 81.9971, 1.43381, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 5, 29174, 2310.23, -5300.54, 81.9966, 1.42596, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 5, 29174, 2314.22, -5298.1, 81.9962, 1.42204, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 5, 29174, 2267.79, -5302.76, 82.6248, 1.04111, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 5, 29174, 2267.68, -5306.12, 82.8637, 1.13536, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 5, 29174, 2264.53, -5304.65, 82.1662, 1.13536, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 5, 29174, 2261.48, -5303.23, 82.1675, 1.13536, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 5, 29174, 2297.05, -5295.53, 81.9962, 1.42204, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 5, 29174, 2300.51, -5296.04, 81.9962, 1.42204, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 5, 29174, 2303.9, -5296.55, 81.9962, 1.42204, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 5, 29174, 2307.29, -5297.06, 81.9962, 1.42204, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 5, 29174, 2310.75, -5297.58, 81.9962, 1.42204, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 5, 29176, 2295.58, -5298.61, 81.9964, 1.24925, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 5, 29177, 2313.33, -5301.5, 81.9964, 1.2139, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 5, 29178, 2270.34, -5304.53, 84.2972, 1.10002, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 5, 29179, 2273.53, -5305.79, 85.4119, 1.19427, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 5, 29180, 2257.25, -5293.32, 82.0388, 0.766227, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 5, 29181, 2303.44, -5304.62, 81.9966, 1.42203, 6, 3000);
INSERT INTO creature_summon_groups VALUES (29173, 0, 5, 29182, 2262.11, -5306.27, 82.0455, 1.20998, 6, 3000);

-- Scourge
DELETE FROM creature_addon WHERE guid IN(SELECT guid FROM creature WHERE id IN(29219, 29206, 29190, 29199, 29200, 29204));
DELETE FROM creature WHERE id IN(29219, 29206, 29190, 29199, 29200, 29204);
UPDATE creature_template SET speed_run=2 WHERE entry=29190;
UPDATE creature_template SET exp=2 WHERE entry=29219;
UPDATE creature_template SET AIName='SmartAI', ScriptName='' WHERE entry IN(29219, 29206, 29190, 29199, 29200, 29204);
REPLACE INTO creature_template_addon VALUES (29219, 0, 0, 0, 1, 0, '53624');
REPLACE INTO creature_template_addon VALUES (29206, 0, 0, 0, 1, 0, '53624');
REPLACE INTO creature_template_addon VALUES (29199, 0, 25278, 0, 1, 0, '53624');
REPLACE INTO creature_template_addon VALUES (29200, 0, 25278, 0, 1, 0, '53624');
REPLACE INTO creature_template_addon VALUES (29204, 0, 25278, 0, 1, 0, '53624');
DELETE FROM smart_scripts WHERE entryorguid IN(29219, 29206, 29190, 29199, 29200, 29204) AND source_type=0;
INSERT INTO smart_scripts VALUES (29219, 0, 0, 0, 0, 0, 100, 1, 15000, 30000, 0, 0, 11, 53632, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Volatile Ghoul - IC Update - Cast 'Ghoulplosion'");
INSERT INTO smart_scripts VALUES (29219, 0, 1, 0, 60, 0, 100, 257, 0, 0, 0, 0, 11, 50142, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Volatile Ghoul - On Update - Cast Emerge");
INSERT INTO smart_scripts VALUES (29219, 0, 2, 0, 60, 0, 100, 257, 3000, 3000, 0, 0, 5, 53, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Volatile Ghoul - On Update - Play Emote");
INSERT INTO smart_scripts VALUES (29219, 0, 3, 0, 72, 0, 100, 1, 1, 0, 0, 0, 5, 53, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Volatile Ghoul - Do Action - Play Emote");
INSERT INTO smart_scripts VALUES (29206, 0, 0, 0, 0, 0, 100, 0, 10000, 20000, 10000, 10000, 11, 53631, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "Warrior of the Frozen Wastes - In Combat - Cast 'Cleave'");
INSERT INTO smart_scripts VALUES (29206, 0, 1, 0, 60, 0, 100, 257, 0, 0, 0, 0, 11, 50142, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Warrior of the Frozen Wastes - On Update - Cast Emerge");
INSERT INTO smart_scripts VALUES (29206, 0, 2, 0, 60, 0, 100, 257, 3000, 3000, 0, 0, 5, 53, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Warrior of the Frozen Wastes - On Update - Play Emote");
INSERT INTO smart_scripts VALUES (29206, 0, 3, 0, 72, 0, 100, 1, 1, 0, 0, 0, 5, 53, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Warrior of the Frozen Wastes - Do Action - Play Emote");
INSERT INTO smart_scripts VALUES (29190, 0, 0, 0, 0, 0, 100, 0, 10000, 20000, 10000, 10000, 11, 36706, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Flesh Behemoth - In Combat - Cast 'Thunderclap'");
INSERT INTO smart_scripts VALUES (29190, 0, 1, 0, 0, 0, 100, 0, 10000, 20000, 10000, 20000, 11, 53634, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Flesh Behemoth - In Combat - Cast 'Stomp'");
INSERT INTO smart_scripts VALUES (29199, 0, 0, 0, 0, 0, 100, 0, 10000, 20000, 10000, 20000, 11, 52374, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "Koltira Deathweaver - In Combat - Cast 'Blood Strike'");
INSERT INTO smart_scripts VALUES (29199, 0, 1, 0, 0, 0, 100, 0, 10000, 20000, 10000, 20000, 11, 52372, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "Koltira Deathweaver - In Combat - Cast 'Icy Touch'");
INSERT INTO smart_scripts VALUES (29199, 0, 2, 0, 0, 0, 100, 0, 10000, 20000, 10000, 20000, 11, 50668, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "Koltira Deathweaver - In Combat - Cast 'Death Coil'");
INSERT INTO smart_scripts VALUES (29199, 0, 3, 4, 34, 0, 100, 1, 8, 2, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 4.62, "Movement Inform - Set Orientation");
INSERT INTO smart_scripts VALUES (29199, 0, 4, 5, 61, 0, 100, 0, 0, 0, 0, 0, 90, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Movement Inform - Set Bytes0");
INSERT INTO smart_scripts VALUES (29199, 0, 5, 0, 61, 0, 100, 0, 0, 0, 0, 0, 28, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Movement Inform - Remove All Auras");
INSERT INTO smart_scripts VALUES (29200, 0, 0, 0, 0, 0, 100, 0, 10000, 20000, 10000, 20000, 11, 52374, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "Thassarian - In Combat - Cast 'Blood Strike'");
INSERT INTO smart_scripts VALUES (29200, 0, 1, 0, 0, 0, 100, 0, 10000, 20000, 10000, 20000, 11, 52372, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "Thassarian - In Combat - Cast 'Icy Touch'");
INSERT INTO smart_scripts VALUES (29200, 0, 2, 0, 0, 0, 100, 0, 10000, 20000, 10000, 20000, 11, 50668, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "Thassarian - In Combat - Cast 'Death Coil'");
INSERT INTO smart_scripts VALUES (29200, 0, 3, 4, 34, 0, 100, 1, 8, 2, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 4.62, "Movement Inform - Set Orientation");
INSERT INTO smart_scripts VALUES (29200, 0, 4, 5, 61, 0, 100, 0, 0, 0, 0, 0, 90, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Movement Inform - Set Bytes0");
INSERT INTO smart_scripts VALUES (29200, 0, 5, 0, 61, 0, 100, 0, 0, 0, 0, 0, 28, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Movement Inform - Remove All Auras");
INSERT INTO smart_scripts VALUES (29204, 0, 0, 0, 0, 0, 100, 0, 10000, 20000, 10000, 20000, 11, 52374, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "Orbaz Bloodbane - In Combat - Cast 'Blood Strike'");
INSERT INTO smart_scripts VALUES (29204, 0, 1, 0, 0, 0, 100, 0, 10000, 20000, 10000, 20000, 11, 52372, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "Orbaz Bloodbane - In Combat - Cast 'Icy Touch'");
INSERT INTO smart_scripts VALUES (29204, 0, 2, 0, 0, 0, 100, 0, 10000, 20000, 10000, 20000, 11, 50668, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "Orbaz Bloodbane - In Combat - Cast 'Death Coil'");

-- Defenders
DELETE FROM creature_addon WHERE guid IN(SELECT guid FROM creature WHERE id IN(29174, 29175, 29176, 29177, 29178, 29179, 29180, 29181, 29182));
DELETE FROM creature WHERE id IN(29174, 29175, 29176, 29177, 29178, 29179, 29180, 29181, 29182);
REPLACE INTO creature_template_addon VALUES (29176, 0, 0, 0, 1, 0, '53627');
REPLACE INTO creature_template_addon VALUES (29177, 0, 0, 0, 1, 0, '53627');
REPLACE INTO creature_template_addon VALUES (29178, 0, 0, 0, 1, 0, '53627');
REPLACE INTO creature_template_addon VALUES (29179, 0, 0, 0, 1, 0, '53627');
REPLACE INTO creature_template_addon VALUES (29180, 0, 0, 0, 1, 0, '53627');
REPLACE INTO creature_template_addon VALUES (29181, 0, 0, 0, 1, 0, '53627');
REPLACE INTO creature_template_addon VALUES (29182, 0, 0, 0, 1, 0, '53627');
UPDATE creature_template SET modelid3=0, exp=2 WHERE entry=29174;

UPDATE creature_template SET rank=3, dmg_multiplier=7.5, type_flags=44, AIName='SmartAI', ScriptName='' WHERE entry IN(29176, 29177, 29178, 29179, 29180, 29181, 29182);
DELETE FROM smart_scripts WHERE entryorguid IN(29176, 29177, 29178, 29179, 29180, 29181, 29182) AND source_type=0;
INSERT INTO smart_scripts VALUES (29176, 0, 0, 0, 0, 0, 100, 2, 10000, 20000, 10000, 10000, 11, 53631, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "Korfax, Champion of the Light - In Combat - Cast 'Cleave'");
INSERT INTO smart_scripts VALUES (29176, 0, 1, 0, 0, 0, 100, 0, 10000, 20000, 10000, 10000, 11, 53625, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "Korfax, Champion of the Light - In Combat - Cast 'Heroic Leap'");
INSERT INTO smart_scripts VALUES (29176, 0, 2, 0, 72, 0, 100, 1, 2, 0, 0, 0, 69, 2, 0, 0, 0, 0, 0, 8, 0, 0, 0, 2285.7, -5303.2, 85.92, 1.59, "On Data Set - Move Pos");
INSERT INTO smart_scripts VALUES (29176, 0, 3, 4, 34, 0, 100, 1, 8, 2, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 2285.7, -5303.2, 85.92, 1.59, "Movement Inform - Set Orientation");
INSERT INTO smart_scripts VALUES (29176, 0, 4, 0, 61, 0, 100, 0, 0, 0, 0, 0, 90, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Movement Inform - Set Bytes0");
INSERT INTO smart_scripts VALUES (29177, 0, 0, 0, 74, 0, 100, 0, 0, 20, 5000, 10000, 11, 37979, 1, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, "Commander Eligor Dawnbringer - On Friendly Between 0-20% Health - Cast 'Holy Light'");
INSERT INTO smart_scripts VALUES (29177, 0, 1, 0, 72, 0, 100, 1, 2, 0, 0, 0, 69, 2, 0, 0, 0, 0, 0, 8, 0, 0, 0, 2276.13, -5312.0, 87.09, 1.47, "On Data Set - Move Pos");
INSERT INTO smart_scripts VALUES (29177, 0, 2, 0, 34, 0, 100, 1, 8, 2, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 2276.13, -5312.0, 87.09, 1.47, "Movement Inform - Set Orientation");
INSERT INTO smart_scripts VALUES (29178, 0, 0, 0, 11, 0, 100, 1, 0, 0, 0, 0, 1, 7, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "On Respawn - Talk");
INSERT INTO smart_scripts VALUES (29178, 0, 1, 0, 72, 0, 100, 1, 2, 0, 0, 0, 69, 2, 0, 0, 0, 0, 0, 8, 0, 0, 0, 2276.3, -5305.75, 85.89, 1.54, "On Data Set - Move Pos");
INSERT INTO smart_scripts VALUES (29178, 0, 2, 3, 34, 0, 100, 1, 8, 2, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 2276.3, -5305.75, 85.89, 1.54, "Movement Inform - Set Orientation");
INSERT INTO smart_scripts VALUES (29178, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 90, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Movement Inform - Set Bytes0");
INSERT INTO smart_scripts VALUES (29179, 0, 1, 0, 72, 0, 100, 1, 2, 0, 0, 0, 69, 2, 0, 0, 0, 0, 0, 8, 0, 0, 0, 2276.32, -5319.22, 88.55, 1.47, "On Data Set - Move Pos");
INSERT INTO smart_scripts VALUES (29179, 0, 2, 0, 34, 0, 100, 1, 8, 2, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 2276.32, -5319.22, 88.55, 1.47, "Movement Inform - Set Orientation");
INSERT INTO smart_scripts VALUES (29180, 0, 1, 0, 72, 0, 100, 1, 2, 0, 0, 0, 69, 2, 0, 0, 0, 0, 0, 8, 0, 0, 0, 2285.49, -5312.60, 88.01, 1.5, "On Data Set - Move Pos");
INSERT INTO smart_scripts VALUES (29180, 0, 2, 0, 34, 0, 100, 1, 8, 2, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 2285.49, -5312.60, 88.01, 1.5, "Movement Inform - Set Orientation");
INSERT INTO smart_scripts VALUES (29181, 0, 0, 0, 0, 0, 100, 2, 10000, 20000, 10000, 20000, 11, 20678, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "Rayne - In Combat - Cast 'Fireball'");
INSERT INTO smart_scripts VALUES (29181, 0, 1, 0, 0, 0, 100, 0, 10000, 20000, 10000, 20000, 11, 21807, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "Rayne - In Combat - Cast 'Wrath'");
INSERT INTO smart_scripts VALUES (29181, 0, 2, 3, 74, 0, 100, 2, 0, 20, 5000, 10000, 11, 20664, 1, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, "Rayne - On Friendly Between 0-20% Health - Cast 'Rejuvenation'");
INSERT INTO smart_scripts VALUES (29181, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 10000, 11, 25817, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Rayne - On Friendly Between 0-20% Health - Cast 'Tranquility'");
INSERT INTO smart_scripts VALUES (29181, 0, 4, 0, 72, 0, 100, 1, 2, 0, 0, 0, 69, 2, 0, 0, 0, 0, 0, 8, 0, 0, 0, 2272.7, -5315.06, 87.14, 1.31, "On Data Set - Move Pos");
INSERT INTO smart_scripts VALUES (29181, 0, 5, 0, 34, 0, 100, 1, 8, 2, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 2272.7, -5315.06, 87.14, 1.31, "Movement Inform - Set Orientation");
INSERT INTO smart_scripts VALUES (29182, 0, 0, 0, 0, 0, 100, 0, 10000, 20000, 10000, 10000, 11, 53630, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "Rimblat Earthshatter - In Combat - Cast 'Thunder'");
INSERT INTO smart_scripts VALUES (29182, 0, 1, 0, 74, 0, 100, 0, 0, 20, 5000, 10000, 11, 33642, 1, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, "Rimblat Earthshatter - On Friendly Between 0-20% Health - Cast 'Chain Heal'");
INSERT INTO smart_scripts VALUES (29182, 0, 2, 0, 72, 0, 100, 1, 2, 0, 0, 0, 69, 2, 0, 0, 0, 0, 0, 8, 0, 0, 0, 2279.26, -5316.37, 88.27, 1.52, "On Data Set - Move Pos");
INSERT INTO smart_scripts VALUES (29182, 0, 3, 0, 34, 0, 100, 1, 8, 2, 0, 0, 66, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 2279.26, -5316.37, 88.27, 1.52, "Movement Inform - Set Orientation");

