aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-18 12:09:03 -0500
committermegamage <none@none>2009-08-18 12:09:03 -0500
commit483f40cbd8898be09f5e56baa0a57b0e37c83a95 (patch)
treed18776e64d293f40eb2cac8817b378a210774bef
parentea986991874369f4b244676001f39767efdf4f32 (diff)
*Script of quest The Light of Dawn. By ckegg.
*I have reduced the number of mobs because they may make the server laggy if the server is not good. --HG-- branch : trunk
-rw-r--r--sql/FULL/world_script_texts.sql98
-rw-r--r--sql/FULL/world_script_waypoints.sql16
-rw-r--r--sql/FULL/world_scripts_full.sql42
-rw-r--r--sql/FULL/world_spell_full.sql15
-rw-r--r--sql/updates/5185_world_scripts_dk.sql168
-rw-r--r--src/bindings/scripts/scripts/eastern_kingdoms/scarlet_enclave/chapter5.cpp271
6 files changed, 478 insertions, 132 deletions
diff --git a/sql/FULL/world_script_texts.sql b/sql/FULL/world_script_texts.sql
index 94ec7a1bdbc..b82e98d7b97 100644
--- a/sql/FULL/world_script_texts.sql
+++ b/sql/FULL/world_script_texts.sql
@@ -2076,3 +2076,101 @@ INSERT INTO `npc_text` (`ID`, `text0_0`, `text0_1`, `lang0`, `prob0`, `em0_0`, `
UPDATE `npc_option` SET `id`=52,`action`=19 WHERE `id`=51 AND `action`=18 AND `option_text`='UNIT_NPC_FLAG_OUTDOORPVP';
DELETE FROM `npc_option` WHERE `id`=51;
INSERT INTO `npc_option` (`id`, `gossip_id`, `npcflag`, `icon`, `action`, `box_money`, `coded`, `option_text`, `box_text`) values('51','0','16','0','18','10000000','0','Purchase a Dual Talent Specialization.','Are you sure you wish to purchase a Dual Talent Specialization?');
+
+
+
+DELETE FROM script_texts WHERE entry BETWEEN -1609286 AND -1609201;
+INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`emote`,`comment`) VALUES
+-- The Light of Dawn
+-- pre text
+ (-1609201, 'Soldiers of the Scourge, stand ready! You will soon be able to unleash your fury upon the Argent Dawn!',14677,1,0,0,'Highlord Darion Mograine'),
+ (-1609202, 'The sky weeps at the devastation of sister earth! Soon, tears of blood will rain down upon us!',14678,1,0,0,'Highlord Darion Mograine'),
+ (-1609203, 'Death knights of Acherus, the death march begins!',14681,1,0,0,'Highlord Darion Mograine'),
+-- intro
+ (-1609204, 'Soldiers of the Scourge, death knights of Acherus, minions of the darkness: hear the call of the Highlord!',14679,1,0,22,'Highlord Darion Mograine'),
+ (-1609205, 'RISE!',14680,1,0,15,'Highlord Darion Mograine'),
+ (-1609206, 'The skies turn red with the blood of the fallen! The Lich King watches over us, minions! Onward! Leave only ashes and misery in your destructive wake!',14682,1,0,25,'Highlord Darion Mograine'),
+-- During the fight
+ (-1609207, 'Scourge armies approach!',0,1,0,0,'Korfax, Champion of the Light'),
+ (-1609208, 'Stand fast, brothers and sisters! The Light will prevail!',14487,1,0,0,'Lord Maxwell Tyrosus'),
+ (-1609209, 'Kneel before the Highlord!',14683,0,0,0,'Highlord Darion Mograine'),
+ (-1609210, 'You stand no chance!',14684,0,0,0,'Highlord Darion Mograine'),
+ (-1609211, 'The Scourge will destroy this place!',14685,0,0,0,'Highlord Darion Mograine'),
+ (-1609212, 'Your life is forfeit.',14686,0,0,0,'Highlord Darion Mograine'),
+ (-1609213, 'Life is meaningless without suffering.',14687,0,0,0,'Highlord Darion Mograine'),
+ (-1609214, 'How much longer will your forces hold out?',14688,0,0,0,'Highlord Darion Mograine'),
+ (-1609215, 'The Argent Dawn is finished!"',14689,0,0,0,'Highlord Darion Mograine'),
+ (-1609216, 'Spare no one!',14690,0,0,0,'Highlord Darion Mograine'),
+ (-1609217, 'What is this?! My... I cannot strike...',14691,0,0,0,'Highlord Darion Mograine'),
+ (-1609218, 'Obey me, blade!',14692,1,0,0,'Highlord Darion Mograine'),
+ (-1609219, 'You will do as I command! I am in control here!',14693,0,0,0,'Highlord Darion Mograine'),
+ (-1609220, 'I can not... the blade fights me.',14694,0,0,0,'Highlord Darion Mograine'),
+ (-1609221, 'What is happening to me?',14695,0,0,0,'Highlord Darion Mograine'),
+ (-1609222, 'Power...wanes...',14696,0,0,0,'Highlord Darion Mograine'),
+ (-1609223, 'Ashbringer defies me...',14697,0,0,0,'Highlord Darion Mograine'),
+ (-1609224, 'Minions, come to my aid!',14698,0,0,0,'Highlord Darion Mograine'),
+-- After the fight
+ (-1609225, 'You cannot win, Darion!',14584,1,0,0,'Highlord Tirion Fordring'),
+ (-1609226, 'Bring them before the chapel!',14585,1,0,0,'Highlord Tirion Fordring'),
+ (-1609227, 'Stand down, death knights. We have lost... The Light... This place... No hope...',14699,0,0,68,'Highlord Darion Mograine'),
+ (-1609228, 'Have you learned nothing, boy? You have become all that your father fought against! Like that coward, Arthas, you allowed yourself to be consumed by the darkness...the hate... Feeding upon the misery of those you tortured and killed!',14586,0,0,378,'Highlord Tirion Fordring'),
+ (-1609229, 'Your master knows what lies beneath the chapel. It is why he dares not show his face! He\'s sent you and your death knights to meet their doom, Darion.',14587,0,0,25,'Highlord Tirion Fordring'),
+ (-1609230, 'What you are feeling right now is the anguish of a thousand lost souls! Souls that you and your master brought here! The Light will tear you apart, Darion!',14588,0,0,1,'Highlord Tirion Fordring'),
+ (-1609231, 'Save your breath, old man. It might be the last you ever draw.',14700,0,0,25,'Highlord Darion Mograine'),
+ (-1609232, 'My son! My dear, beautiful boy!',14493,0,0,0,'Highlord Alexandros Mograine'),
+ (-1609233, 'Father!',14701,0,0,5,'Highlord Darion Mograine'),
+ (-1609234, 'Argh...what...is...',14702,0,0,68,'Highlord Darion Mograine'),
+ (-1609235, 'Father, you have returned!',14703,0,0,0,'Darion Mograine'),
+ (-1609236, 'You have been gone a long time, father. I thought...',14704,0,0,0,'Darion Mograine'),
+ (-1609237, 'Nothing could have kept me away from here, Darion. Not from my home and family.',14494,0,0,1,'Highlord Alexandros Mograine'),
+ (-1609238, 'Father, I wish to join you in the war against the undead. I want to fight! I can sit idle no longer!',14705,0,0,6,'Darion Mograine'),
+ (-1609239, 'Darion Mograine, you are barely of age to hold a sword, let alone battle the undead hordes of Lordaeron! I couldn\'t bear losing you. Even the thought...',14495,0,0,1,'Highlord Alexandros Mograine'),
+ (-1609240, 'If I die, father, I would rather it be on my feet, standing in defiance against the undead legions! If I die, father, I die with you!',14706,0,0,6,'Darion Mograine'),
+ (-1609241, 'My son, there will come a day when you will command the Ashbringer and, with it, mete justice across this land. I have no doubt that when that day finally comes, you will bring pride to our people and that Lordaeron will be a better place because of you. But, my son, that day is not today.',14496,0,0,1,'Highlord Alexandros Mograine'),
+ (-1609242, 'Do not forget...',14497,0,0,6,'Highlord Alexandros Mograine'),
+ (-1609243, 'Touching...',14803,1,0,0,'The Lich King'),
+ (-1609244, 'You have\'ve betrayed me! You betrayed us all you monster! Face the might of Mograine!',14707,1,0,0,'Highlord Darion Mograine'),
+ (-1609245, 'He\'s mine now...',14805,0,0,0,'The Lich King'),
+ (-1609246, 'Pathetic...',14804,0,0,0,'The Lich King'),
+ (-1609247, 'You\'re a damned monster, Arthas!',14589,0,0,25,'Highlord Tirion Fordring'),
+ (-1609248, 'You were right, Fordring. I did send them in to die. Their lives are meaningless, but yours...',14806,0,0,1,'The Lich King'),
+ (-1609249, 'How simple it was to draw the great Tirion Fordring out of hiding. You\'ve left yourself exposed, paladin. Nothing will save you...',14807,0,0,1,'The Lich King'),
+ (-1609250, 'ATTACK!!!',14488,1,0,0,'Lord Maxwell Tyrosus'),
+ (-1609251, 'APOCALYPSE!',14808,1,0,0,'The Lich King'),
+ (-1609252, 'That day is not today...',14708,0,0,0,'Highlord Darion Mograine'),
+ (-1609253, 'Tirion!',14709,1,0,0,'Highlord Darion Mograine'),
+ (-1609254, 'ARTHAS!!!!',14591,1,0,0,'Highlord Tirion Fordring'),
+ (-1609255, 'What is this?',14809,1,0,0,'The Lich King'),
+ (-1609256, 'Your end.',14592,1,0,0,'Highlord Tirion Fordring'),
+ (-1609257, 'Impossible...',14810,1,0,0,'The Lich King'),
+ (-1609258, 'This... isn\'t... over...',14811,1,0,25,'The Lich King'),
+ (-1609259, 'When next we meet it won\'t be on holy ground, paladin.',14812,1,0,1,'The Lich King'),
+ (-1609260, 'Rise, Darion, and listen...',14593,0,0,0,'Highlord Tirion Fordring'),
+ (-1609261, 'We have all been witness to a terrible tragedy. The blood of good men has been shed upon this soil! Honorable knights, slain defending their lives - our lives!',14594,0,0,0,'Highlord Tirion Fordring'),
+ (-1609262, 'And while such things can never be forgotten, we must remain vigilant in our cause!',14595,0,0,0,'Highlord Tirion Fordring'),
+ (-1609263, 'The Lich King must answer for what he has done and must not be allowed to cause further destruction to our world.',14596,0,0,0,'Highlord Tirion Fordring'),
+ (-1609264, 'I make a promise to you now, brothers and sisters: The Lich King will be defeated! On this day, I call for a union.',14597,0,0,0,'Highlord Tirion Fordring'),
+ (-1609265, 'The Argent Dawn and the Order of the Silver Hand will come together as one! We will succeed where so many before us have failed!',14598,0,0,0,'Highlord Tirion Fordring'),
+ (-1609266, 'We will take the fight to Arthas and tear down the walls of Icecrown!',14599,0,0,15,'Highlord Tirion Fordring'),
+ (-1609267, 'The Argent Crusade comes for you, Arthas!',14600,1,0,15,'Highlord Tirion Fordring'),
+ (-1609268, 'So too do the Knights of the Ebon Blade... While our kind has no place in your world, we will fight to bring an end to the Lich King. This I vow!',14710,0,0,1,'Highlord Darion Mograine'),
+-- Emotes
+ (-1609269, 'Thousands of Scourge rise up at the Highlord\'s command.',0,2,0,0,''),
+ (-1609270, 'The army marches towards Light\'s Hope Chapel.',0,2,0,0,''),
+ (-1609271, 'After over a hundred Defenders of the Light fall, Highlord Tirion Fordring arrives.',0,2,0,0,''),
+ (-1609272, 'flee',0,2,0,0,'Orbaz'),
+ (-1609273, 'kneels in defeat before Tirion Fordring.',0,2,0,0,'Highlord Darion Mograine'),
+ (-1609274, 'arrives.',0,2,0,0,'Highlord Alexandros Mograine'),
+ (-1609275, 'becomes a shade of his past, and walks up to his father.',0,2,0,0,'Highlord Darion Mograine'),
+ (-1609276, 'hugs his father.',0,2,0,0,'Darion Mograine'),
+ (-1609277, 'disappears, and the Lich King appears.',0,2,0,0,'Alexandros'),
+ (-1609278, 'becomes himself again...and is now angry.',0,2,0,0,'Highlord Darion Mograine'),
+ (-1609279, 'casts a spell on Tirion.',0,2,0,0,'The Lich King'),
+ (-1609280, 'gasps for air.',0,2,0,0,'Highlord Tirion Fordring'),
+ (-1609281, 'casts a powerful spell, killing the Defenders and knocking back the others.',0,2,0,0,'The Lich King'),
+ (-1609282, 'throws the Corrupted Ashbringer to Tirion, who catches it. Tirion becomes awash with Light, and the Ashbringer is cleansed.',0,2,0,0,'Highlord Darion Mograine'),
+ (-1609283, 'collapses.',0,2,0,0,'Highlord Darion Mograine'),
+ (-1609284, 'charges towards the Lich King, Ashbringer in hand and strikes the Lich King.',0,2,0,0,'Highlord Tirion Fordring'),
+ (-1609285, 'disappears. Tirion walks over to where Darion lay',0,2,0,0,'The Lich King'),
+ (-1609286, 'Light washes over the chapel  the Light of Dawn is uncovered.',0,2,0,0,'');
+
diff --git a/sql/FULL/world_script_waypoints.sql b/sql/FULL/world_script_waypoints.sql
index 8b0b2b8edf9..046efe26c91 100644
--- a/sql/FULL/world_script_waypoints.sql
+++ b/sql/FULL/world_script_waypoints.sql
@@ -1494,4 +1494,18 @@ INSERT INTO script_waypoint VALUES
(28912, 7, 1626.845, -6015.085, 134.740, 0, ''),
(28912, 8, 1649.150, -6016.975, 133.240, 0, ''),
(28912, 9, 1653.063, -5974.844, 132.652, 5000, 'Mount'),
- (28912, 10, 1654.747, -5926.424, 121.191, 0, 'Disappear'); \ No newline at end of file
+ (28912, 10, 1654.747, -5926.424, 121.191, 0, 'Disappear');
+
+
+DELETE FROM script_waypoint WHERE entry=29173;
+INSERT INTO script_waypoint VALUES
+ (29173, 0, 2431.639, -5137.05, 83.843, 0, 'intro'),
+ (29173, 1, 2319.242, -5266.486, 82.825, 0, 'summon & on hold'),
+ (29173, 2, 2318.775, -5266.832, 82.783, 0, 'cast light of dawn'),
+ (29173, 3, 2280.812, -5284.091, 82.608, 0, 'move to here and start'),
+ (29173, 4, 2280.727, -5286.839, 82.930, 0, 'move forward to talk'),
+ (29173, 5, 2280.812, -5284.091, 82.608, 0, 'when baba pop'),
+ (29173, 6, 2281.461, -5263.014, 81.164, 0, 'charge to lich king'),
+ (29173, 7, 2257.479, -5296.702, 82.165, 0, 'being kicked by Lich King'),
+ (29173, 8, 2261.237, -5294.983, 82.167, 0, 'throw'),
+ (29173, 9, 2259.34, -5294.379, 82.167, 0, 'event end'); \ No newline at end of file
diff --git a/sql/FULL/world_scripts_full.sql b/sql/FULL/world_scripts_full.sql
index 0c22ae65a8c..3e0197e4888 100644
--- a/sql/FULL/world_scripts_full.sql
+++ b/sql/FULL/world_scripts_full.sql
@@ -118,7 +118,8 @@ UPDATE `creature_template` SET `ScriptName`='npc_crusade_persuaded' WHERE `entry
UPDATE `creature_template` SET `ScriptName`='mob_scarlet_courier' WHERE `entry`='29076';
update creature_template set scriptname="mob_anti_air" where entry in (29102,29103,29104);
-
+UPDATE `creature_template` SET `ScriptName`='npc_highlord_darion_mograine' WHERE `entry`='29173';
+UPDATE `creature_template` SET `ScriptName`='npc_the_lich_king_tirion_dawn' WHERE `entry` in (29183,29175);
/* */
@@ -1235,3 +1236,42 @@ INSERT INTO areatrigger_scripts VALUES (3066,'at_ravenholdt');
DELETE FROM `creature_ai_scripts` WHERE `creature_id`=23035 AND `comment` LIKE 'Anzu%Death';
INSERT INTO `creature_ai_scripts` (`creature_id`,`event_type`,`event_chance`,`event_flags`,`action1_type`,`action1_param1`,`action1_param2`,`comment`) VALUES
(23035,6,100,6,34,2,3,'Anzu - Set Inst Data on Death');
+
+-- dk final quest
+UPDATE creature_template SET unit_flags=32768,AIName='EventAI' WHERE entry IN (29199,29204,29200,29174,29182,29186,29190,29219,29206,29176,29178,29179,29180,29177,29181);
+DELETE FROM creature_ai_scripts WHERE creature_id IN (29199,29204,29200,29174,29182,29186,29190,29219,29206,29176,29178,29179,29180,29177,29181);
+INSERT INTO `creature_ai_scripts` VALUES ('2919901', '29199', '0', '0', '100', '3', '10000', '20000', '10000', '20000', '11', '52374', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Koltira Deathweaver - SPELL_BLOOD_STRIKE1');
+INSERT INTO `creature_ai_scripts` VALUES ('2919902', '29199', '0', '0', '100', '3', '10000', '20000', '10000', '20000', '11', '49576', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Koltira Deathweaver - SPELL_DEATH_GRIP');
+INSERT INTO `creature_ai_scripts` VALUES ('2919903', '29199', '0', '0', '100', '3', '10000', '20000', '10000', '20000', '11', '52372', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Koltira Deathweaver - SPELL_ICY_TOUCH2');
+INSERT INTO `creature_ai_scripts` VALUES ('2919904', '29199', '0', '0', '100', '3', '10000', '20000', '10000', '20000', '11', '50668', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Koltira Deathweaver - SPELL_PLAGUE_STRIKE1');
+INSERT INTO `creature_ai_scripts` VALUES ('2920401', '29204', '0', '0', '100', '3', '10000', '20000', '10000', '20000', '11', '52374', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Orbaz Bloodbane - SPELL_BLOOD_STRIKE1');
+INSERT INTO `creature_ai_scripts` VALUES ('2920402', '29204', '0', '0', '100', '3', '10000', '20000', '10000', '20000', '11', '49576', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Orbaz Bloodbane - SPELL_DEATH_GRIP');
+INSERT INTO `creature_ai_scripts` VALUES ('2920403', '29204', '0', '0', '100', '3', '10000', '20000', '10000', '20000', '11', '52372', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Orbaz Bloodbane - SPELL_ICY_TOUCH2');
+INSERT INTO `creature_ai_scripts` VALUES ('2920404', '29204', '0', '0', '100', '3', '10000', '20000', '10000', '20000', '11', '50668', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Orbaz Bloodbane - SPELL_PLAGUE_STRIKE1');
+INSERT INTO `creature_ai_scripts` VALUES ('2920001', '29200', '0', '0', '100', '3', '10000', '20000', '10000', '20000', '11', '52374', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Thassarian - SPELL_BLOOD_STRIKE1');
+INSERT INTO `creature_ai_scripts` VALUES ('2920002', '29200', '0', '0', '100', '3', '10000', '20000', '10000', '20000', '11', '49576', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Thassarian - SPELL_DEATH_GRIP');
+INSERT INTO `creature_ai_scripts` VALUES ('2920003', '29200', '0', '0', '100', '3', '10000', '20000', '10000', '20000', '11', '52372', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Thassarian - SPELL_ICY_TOUCH2');
+INSERT INTO `creature_ai_scripts` VALUES ('2920004', '29200', '0', '0', '100', '3', '10000', '20000', '10000', '20000', '11', '50668', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Thassarian - SPELL_PLAGUE_STRIKE1');
+INSERT INTO `creature_ai_scripts` VALUES ('2917401', '29174', '14', '0', '100', '3', '10000', '20', '5000', '10000', '11', '29427', '6', '1', '0', '0', '0', '0', '0', '0', '0', '0', 'Defender of the Light - SPELL_HOLY_LIGHT1');
+INSERT INTO `creature_ai_scripts` VALUES ('2917402', '29174', '4', '0', '100', '0', '0', '0', '0', '0', '11', '53625', '1', '5', '0', '0', '0', '0', '0', '0', '0', '0', 'Defender of the Light aggro');
+INSERT INTO `creature_ai_scripts` VALUES ('2917403', '29174', '0', '0', '100', '3', '10000', '20000', '10000', '20000', '11', '53625', '5', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Defender of the Light - SPELL_HEROIC_LEAP');
+INSERT INTO `creature_ai_scripts` VALUES ('2917404', '29174', '0', '0', '100', '3', '10000', '20000', '10000', '20000', '11', '53643', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Defender of the Light - SPELL_HOLY_STRIKE');
+INSERT INTO `creature_ai_scripts` VALUES ('2917405', '29174', '0', '0', '100', '3', '10000', '20000', '10000', '20000', '11', '53638', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Defender of the Light - SPELL_HOLY_WRATH');
+INSERT INTO `creature_ai_scripts` VALUES ('2917406', '29174', '0', '0', '100', '3', '10000', '20000', '10000', '20000', '11', '53629', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Defender of the Light - SPELL_UPPERCUT');
+INSERT INTO `creature_ai_scripts` VALUES ('2918201', '29182', '14', '0', '100', '3', '10000', '20', '5000', '10000', '11', '33642', '6', '1', '0', '0', '0', '0', '0', '0', '0', '0', 'Rimblat Earthshatter - SPELL_CHAIN_HEAL');
+INSERT INTO `creature_ai_scripts` VALUES ('2918202', '29182', '0', '0', '100', '3', '10000', '20000', '10000', '10000', '11', '53630', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Rimblat Earthshatter - SPELL_THUNDER');
+INSERT INTO `creature_ai_scripts` VALUES ('2918601', '29186', '0', '0', '100', '3', '10000', '20000', '10000', '10000', '11', '53633', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Rampaging Abomination - SPELL_CLEAVE1');
+INSERT INTO `creature_ai_scripts` VALUES ('2918602', '29186', '0', '0', '100', '3', '10000', '20000', '10000', '10000', '11', '50335', '5', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Rampaging Abomination - SPELL_SCOURGE_HOOK');
+INSERT INTO `creature_ai_scripts` VALUES ('2919001', '29190', '0', '0', '100', '3', '10000', '20000', '10000', '10000', '11', '53634', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Flesh Behemoth - SPELL_SCOURGE_HOOK');
+INSERT INTO `creature_ai_scripts` VALUES ('2919002', '29190', '0', '0', '100', '3', '10000', '20000', '10000', '10000', '11', '36706', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Flesh Behemoth - SPELL_THUNDERCLAP');
+INSERT INTO `creature_ai_scripts` VALUES ('2919003', '29190', '0', '0', '100', '3', '5000', '10000', '5000', '10000', '11', '53627', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Flesh Behemoth - SPELL_THUNDERCLAP');
+INSERT INTO `creature_ai_scripts` VALUES ('2921901', '29219', '0', '0', '100', '3', '10000', '20000', '10000', '10000', '11', '53632', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Volatile Ghoul - SPELL_GHOULPLOSION');
+INSERT INTO `creature_ai_scripts` VALUES ('2920601', '29206', '0', '0', '100', '3', '10000', '20000', '10000', '10000', '11', '53631', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Warrior of the Frozen Wastes - SPELL_CLEAVE');
+INSERT INTO `creature_ai_scripts` VALUES ('2917601', '29176', '0', '0', '100', '3', '10000', '20000', '10000', '10000', '11', '53631', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Korfax - SPELL_CLEAVE');
+INSERT INTO `creature_ai_scripts` VALUES ('2917602', '29176', '0', '0', '100', '3', '10000', '20000', '10000', '10000', '11', '53625', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Korfax - SPELL_CLEAVE');
+INSERT INTO `creature_ai_scripts` VALUES ('2917701', '29177', '14', '0', '100', '3', '10000', '20', '5000', '10000', '11', '37979', '6', '1', '0', '0', '0', '0', '0', '0', '0', '0', 'Commander Eligor Dawnbringer - SPELL_HOLY_LIGHT2');
+INSERT INTO `creature_ai_scripts` VALUES ('2918101', '29181', '14', '0', '100', '3', '10000', '20', '5000', '10000', '11', '20664', '6', '1', '0', '0', '0', '0', '0', '0', '0', '0', 'Rayne - SPELL_REJUVENATION');
+INSERT INTO `creature_ai_scripts` VALUES ('2918102', '29181', '14', '0', '100', '3', '10000', '20', '5000', '10000', '11', '25817', '6', '1', '0', '0', '0', '0', '0', '0', '0', '0', 'Rayne - SPELL_TRANQUILITY');
+INSERT INTO `creature_ai_scripts` VALUES ('2918103', '29181', '0', '0', '100', '3', '10000', '20000', '10000', '20000', '11', '20678', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Rayne - SPELL_STARFALL');
+INSERT INTO `creature_ai_scripts` VALUES ('2918104', '29181', '0', '0', '100', '3', '10000', '20000', '10000', '20000', '11', '21807', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Rayne - SPELL_WRATH');
+
diff --git a/sql/FULL/world_spell_full.sql b/sql/FULL/world_spell_full.sql
index 11380f04afd..bdaf18be723 100644
--- a/sql/FULL/world_spell_full.sql
+++ b/sql/FULL/world_spell_full.sql
@@ -2043,6 +2043,21 @@ update spell_area set quest_end = 12756 where spell=53081;
update creature_template set spell1=53117 where entry=29104;
update creature_template set spell1=53348,killcredit1=29150 where entry IN (29102,29103);
+
+DELETE FROM `spell_script_target` WHERE `entry` in (53658, 53679, 53701, 53705, 53706, 53677, 53685);
+-- insert into spell_script_target values (53658, 1, 29173);
+insert into spell_script_target values (53679, 1, 29183);
+insert into spell_script_target values (53701, 1, 29175);
+insert into spell_script_target values (53705, 1, 29183);
+insert into spell_script_target values (53706, 1, 29183);
+insert into spell_script_target values (53677, 1, 29227);
+insert into spell_script_target values (53685, 1, 29175);
+
+DELETE FROM `gameobject` WHERE `id` IN (191330);
+INSERT INTO `gameobject` (`id`, `map`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`) VALUES
+('','609','1','128','2283.896','-5287.914','83.066','1','0.0','0.0','0.0','1.0','180','0','1');
+
+
-- --------
-- NAXXARAMAS
-- --------
diff --git a/sql/updates/5185_world_scripts_dk.sql b/sql/updates/5185_world_scripts_dk.sql
new file mode 100644
index 00000000000..1539ae33b00
--- /dev/null
+++ b/sql/updates/5185_world_scripts_dk.sql
@@ -0,0 +1,168 @@
+-- The Light of Dawn (to do)
+UPDATE `creature_template` SET `ScriptName`='npc_highlord_darion_mograine' WHERE `entry`='29173';
+UPDATE `creature_template` SET `ScriptName`='npc_the_lich_king_tirion_dawn' WHERE `entry` in (29183,29175);
+
+DELETE FROM `spell_script_target` WHERE `entry` in (53658, 53679, 53701, 53705, 53706, 53677, 53685);
+-- insert into spell_script_target values (53658, 1, 29173);
+insert into spell_script_target values (53679, 1, 29183);
+insert into spell_script_target values (53701, 1, 29175);
+insert into spell_script_target values (53705, 1, 29183);
+insert into spell_script_target values (53706, 1, 29183);
+insert into spell_script_target values (53677, 1, 29227);
+insert into spell_script_target values (53685, 1, 29175);
+
+DELETE FROM `gameobject` WHERE `id` IN (191330);
+INSERT INTO `gameobject` (`id`, `map`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`) VALUES
+('','609','1','128','2283.896','-5287.914','83.066','1','0.0','0.0','0.0','1.0','180','0','1');
+
+UPDATE creature_template SET unit_flags=32768,AIName='EventAI' WHERE entry IN (29199,29204,29200,29174,29182,29186,29190,29219,29206,29176,29178,29179,29180,29177,29181);
+DELETE FROM creature_ai_scripts WHERE creature_id IN (29199,29204,29200,29174,29182,29186,29190,29219,29206,29176,29178,29179,29180,29177,29181);
+INSERT INTO `creature_ai_scripts` VALUES ('2919901', '29199', '0', '0', '100', '3', '10000', '20000', '10000', '20000', '11', '52374', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Koltira Deathweaver - SPELL_BLOOD_STRIKE1');
+INSERT INTO `creature_ai_scripts` VALUES ('2919902', '29199', '0', '0', '100', '3', '10000', '20000', '10000', '20000', '11', '49576', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Koltira Deathweaver - SPELL_DEATH_GRIP');
+INSERT INTO `creature_ai_scripts` VALUES ('2919903', '29199', '0', '0', '100', '3', '10000', '20000', '10000', '20000', '11', '52372', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Koltira Deathweaver - SPELL_ICY_TOUCH2');
+INSERT INTO `creature_ai_scripts` VALUES ('2919904', '29199', '0', '0', '100', '3', '10000', '20000', '10000', '20000', '11', '50668', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Koltira Deathweaver - SPELL_PLAGUE_STRIKE1');
+INSERT INTO `creature_ai_scripts` VALUES ('2920401', '29204', '0', '0', '100', '3', '10000', '20000', '10000', '20000', '11', '52374', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Orbaz Bloodbane - SPELL_BLOOD_STRIKE1');
+INSERT INTO `creature_ai_scripts` VALUES ('2920402', '29204', '0', '0', '100', '3', '10000', '20000', '10000', '20000', '11', '49576', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Orbaz Bloodbane - SPELL_DEATH_GRIP');
+INSERT INTO `creature_ai_scripts` VALUES ('2920403', '29204', '0', '0', '100', '3', '10000', '20000', '10000', '20000', '11', '52372', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Orbaz Bloodbane - SPELL_ICY_TOUCH2');
+INSERT INTO `creature_ai_scripts` VALUES ('2920404', '29204', '0', '0', '100', '3', '10000', '20000', '10000', '20000', '11', '50668', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Orbaz Bloodbane - SPELL_PLAGUE_STRIKE1');
+INSERT INTO `creature_ai_scripts` VALUES ('2920001', '29200', '0', '0', '100', '3', '10000', '20000', '10000', '20000', '11', '52374', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Thassarian - SPELL_BLOOD_STRIKE1');
+INSERT INTO `creature_ai_scripts` VALUES ('2920002', '29200', '0', '0', '100', '3', '10000', '20000', '10000', '20000', '11', '49576', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Thassarian - SPELL_DEATH_GRIP');
+INSERT INTO `creature_ai_scripts` VALUES ('2920003', '29200', '0', '0', '100', '3', '10000', '20000', '10000', '20000', '11', '52372', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Thassarian - SPELL_ICY_TOUCH2');
+INSERT INTO `creature_ai_scripts` VALUES ('2920004', '29200', '0', '0', '100', '3', '10000', '20000', '10000', '20000', '11', '50668', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Thassarian - SPELL_PLAGUE_STRIKE1');
+INSERT INTO `creature_ai_scripts` VALUES ('2917401', '29174', '14', '0', '100', '3', '10000', '20', '5000', '10000', '11', '29427', '6', '1', '0', '0', '0', '0', '0', '0', '0', '0', 'Defender of the Light - SPELL_HOLY_LIGHT1');
+INSERT INTO `creature_ai_scripts` VALUES ('2917402', '29174', '4', '0', '100', '0', '0', '0', '0', '0', '11', '53625', '1', '5', '0', '0', '0', '0', '0', '0', '0', '0', 'Defender of the Light aggro');
+INSERT INTO `creature_ai_scripts` VALUES ('2917403', '29174', '0', '0', '100', '3', '10000', '20000', '10000', '20000', '11', '53625', '5', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Defender of the Light - SPELL_HEROIC_LEAP');
+INSERT INTO `creature_ai_scripts` VALUES ('2917404', '29174', '0', '0', '100', '3', '10000', '20000', '10000', '20000', '11', '53643', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Defender of the Light - SPELL_HOLY_STRIKE');
+INSERT INTO `creature_ai_scripts` VALUES ('2917405', '29174', '0', '0', '100', '3', '10000', '20000', '10000', '20000', '11', '53638', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Defender of the Light - SPELL_HOLY_WRATH');
+INSERT INTO `creature_ai_scripts` VALUES ('2917406', '29174', '0', '0', '100', '3', '10000', '20000', '10000', '20000', '11', '53629', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Defender of the Light - SPELL_UPPERCUT');
+INSERT INTO `creature_ai_scripts` VALUES ('2918201', '29182', '14', '0', '100', '3', '10000', '20', '5000', '10000', '11', '33642', '6', '1', '0', '0', '0', '0', '0', '0', '0', '0', 'Rimblat Earthshatter - SPELL_CHAIN_HEAL');
+INSERT INTO `creature_ai_scripts` VALUES ('2918202', '29182', '0', '0', '100', '3', '10000', '20000', '10000', '10000', '11', '53630', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Rimblat Earthshatter - SPELL_THUNDER');
+INSERT INTO `creature_ai_scripts` VALUES ('2918601', '29186', '0', '0', '100', '3', '10000', '20000', '10000', '10000', '11', '53633', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Rampaging Abomination - SPELL_CLEAVE1');
+INSERT INTO `creature_ai_scripts` VALUES ('2918602', '29186', '0', '0', '100', '3', '10000', '20000', '10000', '10000', '11', '50335', '5', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Rampaging Abomination - SPELL_SCOURGE_HOOK');
+INSERT INTO `creature_ai_scripts` VALUES ('2919001', '29190', '0', '0', '100', '3', '10000', '20000', '10000', '10000', '11', '53634', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Flesh Behemoth - SPELL_SCOURGE_HOOK');
+INSERT INTO `creature_ai_scripts` VALUES ('2919002', '29190', '0', '0', '100', '3', '10000', '20000', '10000', '10000', '11', '36706', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Flesh Behemoth - SPELL_THUNDERCLAP');
+INSERT INTO `creature_ai_scripts` VALUES ('2919003', '29190', '0', '0', '100', '3', '5000', '10000', '5000', '10000', '11', '53627', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Flesh Behemoth - SPELL_THUNDERCLAP');
+INSERT INTO `creature_ai_scripts` VALUES ('2921901', '29219', '0', '0', '100', '3', '10000', '20000', '10000', '10000', '11', '53632', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Volatile Ghoul - SPELL_GHOULPLOSION');
+INSERT INTO `creature_ai_scripts` VALUES ('2920601', '29206', '0', '0', '100', '3', '10000', '20000', '10000', '10000', '11', '53631', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Warrior of the Frozen Wastes - SPELL_CLEAVE');
+INSERT INTO `creature_ai_scripts` VALUES ('2917601', '29176', '0', '0', '100', '3', '10000', '20000', '10000', '10000', '11', '53631', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Korfax - SPELL_CLEAVE');
+INSERT INTO `creature_ai_scripts` VALUES ('2917602', '29176', '0', '0', '100', '3', '10000', '20000', '10000', '10000', '11', '53625', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Korfax - SPELL_CLEAVE');
+INSERT INTO `creature_ai_scripts` VALUES ('2917701', '29177', '14', '0', '100', '3', '10000', '20', '5000', '10000', '11', '37979', '6', '1', '0', '0', '0', '0', '0', '0', '0', '0', 'Commander Eligor Dawnbringer - SPELL_HOLY_LIGHT2');
+INSERT INTO `creature_ai_scripts` VALUES ('2918101', '29181', '14', '0', '100', '3', '10000', '20', '5000', '10000', '11', '20664', '6', '1', '0', '0', '0', '0', '0', '0', '0', '0', 'Rayne - SPELL_REJUVENATION');
+INSERT INTO `creature_ai_scripts` VALUES ('2918102', '29181', '14', '0', '100', '3', '10000', '20', '5000', '10000', '11', '25817', '6', '1', '0', '0', '0', '0', '0', '0', '0', '0', 'Rayne - SPELL_TRANQUILITY');
+INSERT INTO `creature_ai_scripts` VALUES ('2918103', '29181', '0', '0', '100', '3', '10000', '20000', '10000', '20000', '11', '20678', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Rayne - SPELL_STARFALL');
+INSERT INTO `creature_ai_scripts` VALUES ('2918104', '29181', '0', '0', '100', '3', '10000', '20000', '10000', '20000', '11', '21807', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Rayne - SPELL_WRATH');
+
+
+
+
+DELETE FROM script_texts WHERE entry BETWEEN -1609286 AND -1609201;
+INSERT INTO `script_texts` (`entry`,`content_default`,`sound`,`type`,`language`,`emote`,`comment`) VALUES
+-- The Light of Dawn
+-- pre text
+ (-1609201, 'Soldiers of the Scourge, stand ready! You will soon be able to unleash your fury upon the Argent Dawn!',14677,1,0,0,'Highlord Darion Mograine'),
+ (-1609202, 'The sky weeps at the devastation of sister earth! Soon, tears of blood will rain down upon us!',14678,1,0,0,'Highlord Darion Mograine'),
+ (-1609203, 'Death knights of Acherus, the death march begins!',14681,1,0,0,'Highlord Darion Mograine'),
+-- intro
+ (-1609204, 'Soldiers of the Scourge, death knights of Acherus, minions of the darkness: hear the call of the Highlord!',14679,1,0,22,'Highlord Darion Mograine'),
+ (-1609205, 'RISE!',14680,1,0,15,'Highlord Darion Mograine'),
+ (-1609206, 'The skies turn red with the blood of the fallen! The Lich King watches over us, minions! Onward! Leave only ashes and misery in your destructive wake!',14682,1,0,25,'Highlord Darion Mograine'),
+-- During the fight
+ (-1609207, 'Scourge armies approach!',0,1,0,0,'Korfax, Champion of the Light'),
+ (-1609208, 'Stand fast, brothers and sisters! The Light will prevail!',14487,1,0,0,'Lord Maxwell Tyrosus'),
+ (-1609209, 'Kneel before the Highlord!',14683,0,0,0,'Highlord Darion Mograine'),
+ (-1609210, 'You stand no chance!',14684,0,0,0,'Highlord Darion Mograine'),
+ (-1609211, 'The Scourge will destroy this place!',14685,0,0,0,'Highlord Darion Mograine'),
+ (-1609212, 'Your life is forfeit.',14686,0,0,0,'Highlord Darion Mograine'),
+ (-1609213, 'Life is meaningless without suffering.',14687,0,0,0,'Highlord Darion Mograine'),
+ (-1609214, 'How much longer will your forces hold out?',14688,0,0,0,'Highlord Darion Mograine'),
+ (-1609215, 'The Argent Dawn is finished!"',14689,0,0,0,'Highlord Darion Mograine'),
+ (-1609216, 'Spare no one!',14690,0,0,0,'Highlord Darion Mograine'),
+ (-1609217, 'What is this?! My... I cannot strike...',14691,0,0,0,'Highlord Darion Mograine'),
+ (-1609218, 'Obey me, blade!',14692,1,0,0,'Highlord Darion Mograine'),
+ (-1609219, 'You will do as I command! I am in control here!',14693,0,0,0,'Highlord Darion Mograine'),
+ (-1609220, 'I can not... the blade fights me.',14694,0,0,0,'Highlord Darion Mograine'),
+ (-1609221, 'What is happening to me?',14695,0,0,0,'Highlord Darion Mograine'),
+ (-1609222, 'Power...wanes...',14696,0,0,0,'Highlord Darion Mograine'),
+ (-1609223, 'Ashbringer defies me...',14697,0,0,0,'Highlord Darion Mograine'),
+ (-1609224, 'Minions, come to my aid!',14698,0,0,0,'Highlord Darion Mograine'),
+-- After the fight
+ (-1609225, 'You cannot win, Darion!',14584,1,0,0,'Highlord Tirion Fordring'),
+ (-1609226, 'Bring them before the chapel!',14585,1,0,0,'Highlord Tirion Fordring'),
+ (-1609227, 'Stand down, death knights. We have lost... The Light... This place... No hope...',14699,0,0,68,'Highlord Darion Mograine'),
+ (-1609228, 'Have you learned nothing, boy? You have become all that your father fought against! Like that coward, Arthas, you allowed yourself to be consumed by the darkness...the hate... Feeding upon the misery of those you tortured and killed!',14586,0,0,378,'Highlord Tirion Fordring'),
+ (-1609229, 'Your master knows what lies beneath the chapel. It is why he dares not show his face! He\'s sent you and your death knights to meet their doom, Darion.',14587,0,0,25,'Highlord Tirion Fordring'),
+ (-1609230, 'What you are feeling right now is the anguish of a thousand lost souls! Souls that you and your master brought here! The Light will tear you apart, Darion!',14588,0,0,1,'Highlord Tirion Fordring'),
+ (-1609231, 'Save your breath, old man. It might be the last you ever draw.',14700,0,0,25,'Highlord Darion Mograine'),
+ (-1609232, 'My son! My dear, beautiful boy!',14493,0,0,0,'Highlord Alexandros Mograine'),
+ (-1609233, 'Father!',14701,0,0,5,'Highlord Darion Mograine'),
+ (-1609234, 'Argh...what...is...',14702,0,0,68,'Highlord Darion Mograine'),
+ (-1609235, 'Father, you have returned!',14703,0,0,0,'Darion Mograine'),
+ (-1609236, 'You have been gone a long time, father. I thought...',14704,0,0,0,'Darion Mograine'),
+ (-1609237, 'Nothing could have kept me away from here, Darion. Not from my home and family.',14494,0,0,1,'Highlord Alexandros Mograine'),
+ (-1609238, 'Father, I wish to join you in the war against the undead. I want to fight! I can sit idle no longer!',14705,0,0,6,'Darion Mograine'),
+ (-1609239, 'Darion Mograine, you are barely of age to hold a sword, let alone battle the undead hordes of Lordaeron! I couldn\'t bear losing you. Even the thought...',14495,0,0,1,'Highlord Alexandros Mograine'),
+ (-1609240, 'If I die, father, I would rather it be on my feet, standing in defiance against the undead legions! If I die, father, I die with you!',14706,0,0,6,'Darion Mograine'),
+ (-1609241, 'My son, there will come a day when you will command the Ashbringer and, with it, mete justice across this land. I have no doubt that when that day finally comes, you will bring pride to our people and that Lordaeron will be a better place because of you. But, my son, that day is not today.',14496,0,0,1,'Highlord Alexandros Mograine'),
+ (-1609242, 'Do not forget...',14497,0,0,6,'Highlord Alexandros Mograine'),
+ (-1609243, 'Touching...',14803,1,0,0,'The Lich King'),
+ (-1609244, 'You have\'ve betrayed me! You betrayed us all you monster! Face the might of Mograine!',14707,1,0,0,'Highlord Darion Mograine'),
+ (-1609245, 'He\'s mine now...',14805,0,0,0,'The Lich King'),
+ (-1609246, 'Pathetic...',14804,0,0,0,'The Lich King'),
+ (-1609247, 'You\'re a damned monster, Arthas!',14589,0,0,25,'Highlord Tirion Fordring'),
+ (-1609248, 'You were right, Fordring. I did send them in to die. Their lives are meaningless, but yours...',14806,0,0,1,'The Lich King'),
+ (-1609249, 'How simple it was to draw the great Tirion Fordring out of hiding. You\'ve left yourself exposed, paladin. Nothing will save you...',14807,0,0,1,'The Lich King'),
+ (-1609250, 'ATTACK!!!',14488,1,0,0,'Lord Maxwell Tyrosus'),
+ (-1609251, 'APOCALYPSE!',14808,1,0,0,'The Lich King'),
+ (-1609252, 'That day is not today...',14708,0,0,0,'Highlord Darion Mograine'),
+ (-1609253, 'Tirion!',14709,1,0,0,'Highlord Darion Mograine'),
+ (-1609254, 'ARTHAS!!!!',14591,1,0,0,'Highlord Tirion Fordring'),
+ (-1609255, 'What is this?',14809,1,0,0,'The Lich King'),
+ (-1609256, 'Your end.',14592,1,0,0,'Highlord Tirion Fordring'),
+ (-1609257, 'Impossible...',14810,1,0,0,'The Lich King'),
+ (-1609258, 'This... isn\'t... over...',14811,1,0,25,'The Lich King'),
+ (-1609259, 'When next we meet it won\'t be on holy ground, paladin.',14812,1,0,1,'The Lich King'),
+ (-1609260, 'Rise, Darion, and listen...',14593,0,0,0,'Highlord Tirion Fordring'),
+ (-1609261, 'We have all been witness to a terrible tragedy. The blood of good men has been shed upon this soil! Honorable knights, slain defending their lives - our lives!',14594,0,0,0,'Highlord Tirion Fordring'),
+ (-1609262, 'And while such things can never be forgotten, we must remain vigilant in our cause!',14595,0,0,0,'Highlord Tirion Fordring'),
+ (-1609263, 'The Lich King must answer for what he has done and must not be allowed to cause further destruction to our world.',14596,0,0,0,'Highlord Tirion Fordring'),
+ (-1609264, 'I make a promise to you now, brothers and sisters: The Lich King will be defeated! On this day, I call for a union.',14597,0,0,0,'Highlord Tirion Fordring'),
+ (-1609265, 'The Argent Dawn and the Order of the Silver Hand will come together as one! We will succeed where so many before us have failed!',14598,0,0,0,'Highlord Tirion Fordring'),
+ (-1609266, 'We will take the fight to Arthas and tear down the walls of Icecrown!',14599,0,0,15,'Highlord Tirion Fordring'),
+ (-1609267, 'The Argent Crusade comes for you, Arthas!',14600,1,0,15,'Highlord Tirion Fordring'),
+ (-1609268, 'So too do the Knights of the Ebon Blade... While our kind has no place in your world, we will fight to bring an end to the Lich King. This I vow!',14710,0,0,1,'Highlord Darion Mograine'),
+-- Emotes
+ (-1609269, 'Thousands of Scourge rise up at the Highlord\'s command.',0,2,0,0,''),
+ (-1609270, 'The army marches towards Light\'s Hope Chapel.',0,2,0,0,''),
+ (-1609271, 'After over a hundred Defenders of the Light fall, Highlord Tirion Fordring arrives.',0,2,0,0,''),
+ (-1609272, 'flee',0,2,0,0,'Orbaz'),
+ (-1609273, 'kneels in defeat before Tirion Fordring.',0,2,0,0,'Highlord Darion Mograine'),
+ (-1609274, 'arrives.',0,2,0,0,'Highlord Alexandros Mograine'),
+ (-1609275, 'becomes a shade of his past, and walks up to his father.',0,2,0,0,'Highlord Darion Mograine'),
+ (-1609276, 'hugs his father.',0,2,0,0,'Darion Mograine'),
+ (-1609277, 'disappears, and the Lich King appears.',0,2,0,0,'Alexandros'),
+ (-1609278, 'becomes himself again...and is now angry.',0,2,0,0,'Highlord Darion Mograine'),
+ (-1609279, 'casts a spell on Tirion.',0,2,0,0,'The Lich King'),
+ (-1609280, 'gasps for air.',0,2,0,0,'Highlord Tirion Fordring'),
+ (-1609281, 'casts a powerful spell, killing the Defenders and knocking back the others.',0,2,0,0,'The Lich King'),
+ (-1609282, 'throws the Corrupted Ashbringer to Tirion, who catches it. Tirion becomes awash with Light, and the Ashbringer is cleansed.',0,2,0,0,'Highlord Darion Mograine'),
+ (-1609283, 'collapses.',0,2,0,0,'Highlord Darion Mograine'),
+ (-1609284, 'charges towards the Lich King, Ashbringer in hand and strikes the Lich King.',0,2,0,0,'Highlord Tirion Fordring'),
+ (-1609285, 'disappears. Tirion walks over to where Darion lay',0,2,0,0,'The Lich King'),
+ (-1609286, 'Light washes over the chapel ¡X the Light of Dawn is uncovered.',0,2,0,0,'');
+
+
+DELETE FROM script_waypoint WHERE entry=29173;
+INSERT INTO script_waypoint VALUES
+ (29173, 0, 2431.639, -5137.05, 83.843, 0, 'intro'),
+ (29173, 1, 2319.242, -5266.486, 82.825, 0, 'summon & on hold'),
+ (29173, 2, 2318.775, -5266.832, 82.783, 0, 'cast light of dawn'),
+ (29173, 3, 2280.812, -5284.091, 82.608, 0, 'move to here and start'),
+ (29173, 4, 2280.727, -5286.839, 82.930, 0, 'move forward to talk'),
+ (29173, 5, 2280.812, -5284.091, 82.608, 0, 'when baba pop'),
+ (29173, 6, 2281.461, -5263.014, 81.164, 0, 'charge to lich king'),
+ (29173, 7, 2257.479, -5296.702, 82.165, 0, 'being kicked by Lich King'),
+ (29173, 8, 2261.237, -5294.983, 82.167, 0, 'throw'),
+ (29173, 9, 2259.34, -5294.379, 82.167, 0, 'event end');
+
+
+ \ No newline at end of file
diff --git a/src/bindings/scripts/scripts/eastern_kingdoms/scarlet_enclave/chapter5.cpp b/src/bindings/scripts/scripts/eastern_kingdoms/scarlet_enclave/chapter5.cpp
index eb8d9414436..2fa531181fa 100644
--- a/src/bindings/scripts/scripts/eastern_kingdoms/scarlet_enclave/chapter5.cpp
+++ b/src/bindings/scripts/scripts/eastern_kingdoms/scarlet_enclave/chapter5.cpp
@@ -19,10 +19,20 @@
#include "precompiled.h"
#include "escort_ai.h"
-
+#define LESS_MOB // if you do not have a good server and do not want it to be laggy as hell
//Light of Dawn
enum mograine
{
+#ifdef LESS_MOB
+ ENCOUNTER_DK_NUMBER = 5, // how many player queue to start the quest , or -
+ ENCOUNTER_DK_TIMER = 10, // *every 5 minutes. These have to be done in instance data
+ ENCOUNTER_DEFENDER_NUMBER = 10, // how many of defender
+ ENCOUNTER_EARTHSHATTER_NUMBER = 1, // how many of earthshatter
+ ENCOUNTER_ABOMINATION_NUMBER = 2, // how many of abomination
+ ENCOUNTER_BEHEMOTH_NUMBER = 1, // how many of behemoth
+ ENCOUNTER_GHOUL_NUMBER = 5, // how many of ghoul
+ ENCOUNTER_WARRIOR_NUMBER = 1, // how many of warrior
+#else
ENCOUNTER_DK_NUMBER = 5, // how many player queue to start the quest , or -
ENCOUNTER_DK_TIMER = 10, // *every 5 minutes. These have to be done in instance data
ENCOUNTER_DEFENDER_NUMBER = 20, // how many of defender
@@ -31,6 +41,7 @@ enum mograine
ENCOUNTER_BEHEMOTH_NUMBER = 2, // how many of behemoth
ENCOUNTER_GHOUL_NUMBER = 10, // how many of ghoul
ENCOUNTER_WARRIOR_NUMBER = 2, // how many of warrior
+#endif
ENCOUNTER_TOTAL_DAWN = 300, // Total number
ENCOUNTER_TOTAL_SCOURGE = 10000,
@@ -346,22 +357,22 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
uiSpawncheck = 1000;
uiTargetcheck = 10000;
- ((Unit*)me)->SetStandState(UNIT_STAND_STATE_STAND);
+ me->SetStandState(UNIT_STAND_STATE_STAND);
me->Mount(25279);
UpdateWorldState(me->GetMap(), WORLD_STATE_REMAINS, 0);
//UpdateWorldState(me->GetMap(), WORLD_STATE_COUNTDOWN, 0);
UpdateWorldState(me->GetMap(), WORLD_STATE_EVENT_BEGIN, 0);
- if (Unit* pTemp = Unit::GetUnit((*me), uiTirionGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiTirionGUID))
pTemp->setDeathState(JUST_DIED);
- if (Unit* pTemp = Unit::GetUnit((*me), uiKorfaxGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiKorfaxGUID))
pTemp->setDeathState(JUST_DIED);
- if (Unit* pTemp = Unit::GetUnit((*me), uiMaxwellGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiMaxwellGUID))
pTemp->setDeathState(JUST_DIED);
- if (Unit* pTemp = Unit::GetUnit((*me), uiEligorGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiEligorGUID))
pTemp->setDeathState(JUST_DIED);
- if (Unit* pTemp = Unit::GetUnit((*me), uiRayneGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiRayneGUID))
pTemp->setDeathState(JUST_DIED);
uiTirionGUID = NULL;
@@ -372,24 +383,24 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
for(uint8 i = 0; i < ENCOUNTER_DEFENDER_NUMBER; ++i)
{
- if (Unit* pTemp = Unit::GetUnit((*me), uiDefenderGUID[i]))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiDefenderGUID[i]))
pTemp->setDeathState(JUST_DIED);
uiDefenderGUID[i] = 0;
}
for(uint8 i = 0; i < ENCOUNTER_EARTHSHATTER_NUMBER; ++i)
{
- if (Unit* pTemp = Unit::GetUnit((*me), uiEarthshatterGUID[i]))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiEarthshatterGUID[i]))
pTemp->setDeathState(JUST_DIED);
uiEarthshatterGUID[i] = 0;
}
- if (Unit* pTemp = Unit::GetUnit((*me), uiKoltiraGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiKoltiraGUID))
pTemp->setDeathState(JUST_DIED);
- if (Unit* pTemp = Unit::GetUnit((*me), uiOrbazGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiOrbazGUID))
pTemp->setDeathState(JUST_DIED);
- if (Unit* pTemp = Unit::GetUnit((*me), uiThassarianGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiThassarianGUID))
pTemp->setDeathState(JUST_DIED);
- if (Unit* pTemp = Unit::GetUnit((*me), uiLichKingGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiLichKingGUID))
pTemp->setDeathState(JUST_DIED);
uiKoltiraGUID = NULL;
@@ -398,25 +409,25 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
uiLichKingGUID = NULL;
for(uint8 i = 0; i < ENCOUNTER_ABOMINATION_NUMBER; ++i)
{
- if (Unit* pTemp = Unit::GetUnit((*me), uiAbominationGUID[i]))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiAbominationGUID[i]))
pTemp->setDeathState(JUST_DIED);
uiAbominationGUID[i] = 0;
}
for(uint8 i = 0; i < ENCOUNTER_BEHEMOTH_NUMBER; ++i)
{
- if (Unit* pTemp = Unit::GetUnit((*me), uiBehemothGUID[i]))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiBehemothGUID[i]))
pTemp->setDeathState(JUST_DIED);
uiBehemothGUID[i] = 0;
}
for(uint8 i = 0; i < ENCOUNTER_GHOUL_NUMBER; ++i)
{
- if (Unit* pTemp = Unit::GetUnit((*me), uiGhoulGUID[i]))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiGhoulGUID[i]))
pTemp->setDeathState(JUST_DIED);
uiGhoulGUID[i] = 0;
}
for(uint8 i = 0; i < ENCOUNTER_WARRIOR_NUMBER; ++i)
{
- if (Unit* pTemp = Unit::GetUnit((*me), uiWarriorGUID[i]))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiWarriorGUID[i]))
pTemp->setDeathState(JUST_DIED);
uiWarriorGUID[i] = 0;
}
@@ -473,9 +484,9 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
}
SpawnNPC();
- if (Unit* pTemp = Unit::GetUnit((*me), uiKorfaxGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiKorfaxGUID))
DoScriptText(SAY_LIGHT_OF_DAWN07, pTemp);
- if (Unit* pTemp = Unit::GetUnit((*me), uiMaxwellGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiMaxwellGUID))
DoScriptText(SAY_LIGHT_OF_DAWN08, pTemp);
for(uint8 i = 0; i < ENCOUNTER_GHOUL_NUMBER; ++i)
@@ -493,9 +504,9 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
me->Unmount();
me->CastSpell(me, SPELL_THE_MIGHT_OF_MOGRAINE, true); // need to fix, on player only
- if (Unit* pTemp = Unit::GetUnit((*me), uiKoltiraGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiKoltiraGUID))
pTemp->Unmount();
- if (Unit* pTemp = Unit::GetUnit((*me), uiThassarianGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiThassarianGUID))
pTemp->Unmount();
bIsBattle = true;
@@ -506,37 +517,37 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
break;
case 3:
{
- Unit* pTirion = Unit::GetUnit((*me), uiTirionGUID);
+ Unit* pTirion = Unit::GetCreature(*me, uiTirionGUID);
DoScriptText(EMOTE_LIGHT_OF_DAWN05, me);
if (me->HasAura(SPELL_THE_LIGHT_OF_DAWN, 0))
me->RemoveAurasDueToSpell(SPELL_THE_LIGHT_OF_DAWN);
- if (Unit* pTemp = Unit::GetUnit((*me), uiKoltiraGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiKoltiraGUID))
{
if (pTemp->HasAura(SPELL_THE_LIGHT_OF_DAWN, 0))
pTemp->RemoveAurasDueToSpell(SPELL_THE_LIGHT_OF_DAWN);
pTemp->AddUnitMovementFlag(MOVEMENTFLAG_WALK_MODE);
pTemp->GetMotionMaster()->MovePoint(0, LightofDawnLoc[19].x, LightofDawnLoc[19].y, LightofDawnLoc[19].z);
}
- if (Unit* pTemp = Unit::GetUnit((*me), uiThassarianGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiThassarianGUID))
{
if (pTemp->HasAura(SPELL_THE_LIGHT_OF_DAWN, 0))
pTemp->RemoveAurasDueToSpell(SPELL_THE_LIGHT_OF_DAWN);
pTemp->AddUnitMovementFlag(MOVEMENTFLAG_WALK_MODE);
pTemp->GetMotionMaster()->MovePoint(0, LightofDawnLoc[21].x, LightofDawnLoc[21].y, LightofDawnLoc[21].z);
}
- if (Unit* pTemp = Unit::GetUnit((*me), uiKorfaxGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiKorfaxGUID))
{
pTemp->AddUnitMovementFlag(MOVEMENTFLAG_WALK_MODE);
pTemp->SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_STATE_READY2H);
pTemp->GetMotionMaster()->MovePoint(0, LightofDawnLoc[10].x, LightofDawnLoc[10].y, LightofDawnLoc[10].z);
}
- if (Unit* pTemp = Unit::GetUnit((*me), uiMaxwellGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiMaxwellGUID))
{
pTemp->AddUnitMovementFlag(MOVEMENTFLAG_WALK_MODE);
pTemp->GetMotionMaster()->MovePoint(0, LightofDawnLoc[13].x, LightofDawnLoc[13].y, LightofDawnLoc[13].z);
}
- if (Unit* pTemp = Unit::GetUnit((*me), uiEligorGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiEligorGUID))
{
pTemp->AddUnitMovementFlag(MOVEMENTFLAG_WALK_MODE);
pTemp->GetMotionMaster()->MovePoint(0, LightofDawnLoc[16].x, LightofDawnLoc[16].y, LightofDawnLoc[16].z);
@@ -545,11 +556,11 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
} break;
case 4:
DoScriptText(SAY_LIGHT_OF_DAWN27, me);
- ((Unit*)me)->SetStandState(UNIT_STAND_STATE_KNEEL);
+ me->SetStandState(UNIT_STAND_STATE_KNEEL);
- if (Unit* pTemp = Unit::GetUnit((*me), uiKoltiraGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiKoltiraGUID))
pTemp->SetStandState(UNIT_STAND_STATE_KNEEL);
- if (Unit* pTemp = Unit::GetUnit((*me), uiThassarianGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiThassarianGUID))
pTemp->SetStandState(UNIT_STAND_STATE_KNEEL);
SetHoldState(true);
break;
@@ -568,7 +579,7 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
break;
case 8:
me->SetUInt32Value(UNIT_VIRTUAL_ITEM_SLOT_ID + 0, uint32(EQUIP_UNEQUIP));
- if (Unit* pTemp = Unit::GetUnit((*me), uiTirionGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiTirionGUID))
me->CastSpell(pTemp, SPELL_ASHBRINGER, true);
DoScriptText(EMOTE_LIGHT_OF_DAWN14, me);
SetHoldState(true);
@@ -695,57 +706,57 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
case 9: // charge begins
SetHoldState(false);
- if (Unit* pTemp = Unit::GetUnit((*me), uiKoltiraGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiKoltiraGUID))
{
pTemp->RemoveUnitMovementFlag(MOVEMENTFLAG_WALK_MODE);
pTemp->GetMotionMaster()->MovePoint(0, LightofDawnLoc[0].x+rand()%30, LightofDawnLoc[0].y+rand()%30, LightofDawnLoc[0].z);
}
- if (Unit* pTemp = Unit::GetUnit((*me), uiOrbazGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiOrbazGUID))
{
pTemp->RemoveUnitMovementFlag(MOVEMENTFLAG_WALK_MODE);
pTemp->GetMotionMaster()->MovePoint(0, LightofDawnLoc[0].x+rand()%30, LightofDawnLoc[0].y+rand()%30, LightofDawnLoc[0].z);
}
- if (Unit* pTemp = Unit::GetUnit((*me), uiThassarianGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiThassarianGUID))
{
pTemp->RemoveUnitMovementFlag(MOVEMENTFLAG_WALK_MODE);
pTemp->GetMotionMaster()->MovePoint(0, LightofDawnLoc[0].x+rand()%30, LightofDawnLoc[0].y+rand()%30, LightofDawnLoc[0].z);
}
for(uint8 i = 0; i < ENCOUNTER_ABOMINATION_NUMBER; ++i)
- if (Unit* pTemp = Unit::GetUnit((*me), uiAbominationGUID[i]))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiAbominationGUID[i]))
pTemp->GetMotionMaster()->MovePoint(0, LightofDawnLoc[0].x+rand()%30, LightofDawnLoc[0].y+rand()%30, LightofDawnLoc[0].z);
for(uint8 i = 0; i < ENCOUNTER_BEHEMOTH_NUMBER; ++i)
- if (Unit* pTemp = Unit::GetUnit((*me), uiBehemothGUID[i]))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiBehemothGUID[i]))
pTemp->GetMotionMaster()->MovePoint(0, LightofDawnLoc[0].x+rand()%30, LightofDawnLoc[0].y+rand()%30, LightofDawnLoc[0].z);
for(uint8 i = 0; i < ENCOUNTER_GHOUL_NUMBER; ++i)
- if (Unit* pTemp = Unit::GetUnit((*me), uiGhoulGUID[i]))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiGhoulGUID[i]))
pTemp->GetMotionMaster()->MovePoint(0, LightofDawnLoc[0].x+rand()%30, LightofDawnLoc[0].y+rand()%30, LightofDawnLoc[0].z);
for(uint8 i = 0; i < ENCOUNTER_WARRIOR_NUMBER; ++i)
- if (Unit* pTemp = Unit::GetUnit((*me), uiWarriorGUID[i]))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiWarriorGUID[i]))
pTemp->GetMotionMaster()->MovePoint(0, LightofDawnLoc[0].x+rand()%30, LightofDawnLoc[0].y+rand()%30, LightofDawnLoc[0].z);
JumpToNextStep(5000);
break;
// ******* After battle *****************************************************************
case 11: // Tirion starts to speak
- if (Unit* pTemp = Unit::GetUnit((*me), uiTirionGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiTirionGUID))
DoScriptText(SAY_LIGHT_OF_DAWN28, pTemp);
JumpToNextStep(21000);
break;
case 12:
- if (Unit* pTemp = Unit::GetUnit((*me), uiTirionGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiTirionGUID))
DoScriptText(SAY_LIGHT_OF_DAWN29, pTemp);
JumpToNextStep(13000);
break;
case 13:
- if (Unit* pTemp = Unit::GetUnit((*me), uiTirionGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiTirionGUID))
DoScriptText(SAY_LIGHT_OF_DAWN30, pTemp);
JumpToNextStep(13000);
break;
case 14:
- ((Unit*)me)->SetStandState(UNIT_STAND_STATE_STAND);
+ me->SetStandState(UNIT_STAND_STATE_STAND);
DoScriptText(SAY_LIGHT_OF_DAWN31, me);
JumpToNextStep(7000);
break;
@@ -762,7 +773,7 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
break;
case 16: // Alexandros out
- if (Unit* pTemp = Unit::GetUnit((*me), uiAlexandrosGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiAlexandrosGUID))
{
pTemp->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
pTemp->GetMotionMaster()->MovePoint(0, LightofDawnLoc[23].x, LightofDawnLoc[23].y, LightofDawnLoc[23].z);
@@ -773,7 +784,7 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
break;
case 17:
- ((Unit*)me)->SetStandState(UNIT_STAND_STATE_KNEEL);
+ me->SetStandState(UNIT_STAND_STATE_KNEEL);
DoScriptText(SAY_LIGHT_OF_DAWN34, me);
JumpToNextStep(5000);
break;
@@ -789,7 +800,7 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
break;
case 19: // runs to father
- if (Unit* pTemp = Unit::GetUnit((*me), uiDarionGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiDarionGUID))
{
DoScriptText(EMOTE_LIGHT_OF_DAWN07, pTemp);
pTemp->GetMotionMaster()->MovePoint(0, LightofDawnLoc[25].x, LightofDawnLoc[25].y, LightofDawnLoc[25].z);
@@ -798,59 +809,59 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
break;
case 20:
- if (Unit* pTemp = Unit::GetUnit((*me), uiDarionGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiDarionGUID))
DoScriptText(SAY_LIGHT_OF_DAWN36, pTemp);
JumpToNextStep(4000);
break;
case 21:
- if (Unit* pTemp = Unit::GetUnit((*me), uiDarionGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiDarionGUID))
DoScriptText(EMOTE_LIGHT_OF_DAWN08, pTemp);
JumpToNextStep(4000);
break;
case 22:
- if (Unit* pTemp = Unit::GetUnit((*me), uiAlexandrosGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiAlexandrosGUID))
DoScriptText(SAY_LIGHT_OF_DAWN37, pTemp);
JumpToNextStep(8000);
break;
case 23:
- if (Unit* pTemp = Unit::GetUnit((*me), uiDarionGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiDarionGUID))
DoScriptText(SAY_LIGHT_OF_DAWN38, pTemp);
JumpToNextStep(8000);
break;
case 24:
- if (Unit* pTemp = Unit::GetUnit((*me), uiAlexandrosGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiAlexandrosGUID))
DoScriptText(SAY_LIGHT_OF_DAWN39, pTemp);
- if (Unit* pTemp = Unit::GetUnit((*me), uiTirionGUID)) // Tirion moves forward here
+ if (Creature* pTemp = Unit::GetCreature(*me, uiTirionGUID)) // Tirion moves forward here
pTemp->GetMotionMaster()->MovePoint(0, LightofDawnLoc[1].x, LightofDawnLoc[1].y, LightofDawnLoc[1].z);
JumpToNextStep(15000);
break;
case 25:
- if (Unit* pTemp = Unit::GetUnit((*me), uiDarionGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiDarionGUID))
DoScriptText(SAY_LIGHT_OF_DAWN40, pTemp);
JumpToNextStep(11000);
break;
case 26:
- if (Unit* pTemp = Unit::GetUnit((*me), uiAlexandrosGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiAlexandrosGUID))
DoScriptText(SAY_LIGHT_OF_DAWN41, pTemp);
JumpToNextStep(5000);
break;
case 27:
- if (Unit* pTemp = Unit::GetUnit((*me), uiDarionGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiDarionGUID))
pTemp->setDeathState(JUST_DIED);
JumpToNextStep(24000);
break;
case 28:
- if (Unit* pTemp = Unit::GetUnit((*me), uiAlexandrosGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiAlexandrosGUID))
DoScriptText(SAY_LIGHT_OF_DAWN42, pTemp);
JumpToNextStep(6000);
break;
@@ -860,19 +871,19 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
{
DoScriptText(SAY_LIGHT_OF_DAWN43, pTemp);
uiLichKingGUID = pTemp->GetGUID();
- if (Unit* pAlex = Unit::GetUnit((*me), uiAlexandrosGUID))
+ if (Unit* pAlex = Unit::GetCreature(*me, uiAlexandrosGUID))
pTemp->CastSpell(pAlex, SPELL_SOUL_FEAST_ALEX, false);
}
JumpToNextStep(2000);
break;
case 30:
- if (Unit* pTemp = Unit::GetUnit((*me), uiAlexandrosGUID)) // just hide him
+ if (Creature* pTemp = Unit::GetCreature(*me, uiAlexandrosGUID)) // just hide him
{
DoScriptText(EMOTE_LIGHT_OF_DAWN09, pTemp);
pTemp->SetVisibility(VISIBILITY_OFF);
}
- if (Unit* pTemp = Unit::GetUnit((*me), uiLichKingGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiLichKingGUID))
{
pTemp->InterruptNonMeleeSpells(false);
DoScriptText(SAY_LIGHT_OF_DAWN45, pTemp);
@@ -881,20 +892,20 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
break;
case 31:
- ((Unit*)me)->SetStandState(UNIT_STAND_STATE_STAND);
+ me->SetStandState(UNIT_STAND_STATE_STAND);
DoScriptText(EMOTE_LIGHT_OF_DAWN10, me);
DoScriptText(SAY_LIGHT_OF_DAWN44, me);
JumpToNextStep(3000);
break;
case 32:
- if (Unit* pTemp = Unit::GetUnit((*me), uiLichKingGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiLichKingGUID))
pTemp->GetMotionMaster()->MovePoint(0, LightofDawnLoc[27].x, LightofDawnLoc[27].y, LightofDawnLoc[27].z);
JumpToNextStep(6000);
break;
case 33: // Darion supports to jump to lich king here
- if (Unit* pTemp = Unit::GetUnit((*me), uiLichKingGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiLichKingGUID))
DoCast(me, SPELL_MOGRAINE_CHARGE); // jumping charge
// doesn't make it looks well, so workarounds, Darion charges, looks better
me->SetSpeed(MOVE_RUN, 3.0f);
@@ -904,46 +915,46 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
break;
case 35: // Lich king counterattacks
- if (Unit* pTemp = Unit::GetUnit((*me), uiLichKingGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiLichKingGUID))
{
pTemp->HandleEmoteCommand(EMOTE_ONESHOT_KICK);
DoScriptText(SAY_LIGHT_OF_DAWN46, pTemp);
}
me->SetSpeed(MOVE_RUN, 6.0f);
- ((Unit*)me)->SetStandState(UNIT_STAND_STATE_DEAD);
+ me->SetStandState(UNIT_STAND_STATE_DEAD);
SetHoldState(false); // Darion got kicked by lich king
JumpToNextStep(0);
break;
case 37: // Lich king counterattacks
- ((Unit*)me)->SetStandState(UNIT_STAND_STATE_KNEEL);
+ me->SetStandState(UNIT_STAND_STATE_KNEEL);
JumpToNextStep(3000);
break;
case 38:
- if (Unit* pTemp = Unit::GetUnit((*me), uiTirionGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiTirionGUID))
DoScriptText(SAY_LIGHT_OF_DAWN47, pTemp);
JumpToNextStep(8000);
break;
case 39:
- if (Unit* pTemp = Unit::GetUnit((*me), uiLichKingGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiLichKingGUID))
DoScriptText(SAY_LIGHT_OF_DAWN48, pTemp);
JumpToNextStep(15000);
break;
case 40:
- if (Unit* pTemp = Unit::GetUnit((*me), uiLichKingGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiLichKingGUID))
DoScriptText(SAY_LIGHT_OF_DAWN49, pTemp);
JumpToNextStep(17000);
break;
case 41: // Lich king - Apocalypse
- if (Unit* pTemp = Unit::GetUnit((*me), uiLichKingGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiLichKingGUID))
{
DoScriptText(EMOTE_LIGHT_OF_DAWN11, pTemp);
DoScriptText(SAY_LIGHT_OF_DAWN51, pTemp);
- if (Unit* pTirion = Unit::GetUnit((*me), uiTirionGUID))
+ if (Unit* pTirion = Unit::GetCreature(*me, uiTirionGUID))
{
((Unit*)pTirion)->SetStandState(UNIT_STAND_STATE_KNEEL);
//pTemp->CastSpell(pTirion, SPELL_APOCALYPSE, false); // not working
@@ -957,7 +968,7 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
case 42: // Maxwell yells for attack
{
float fLichPositionX, fLichPositionY, fLichPositionZ;
- if (Unit* pTemp = Unit::GetUnit((*me), uiLichKingGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiLichKingGUID))
{
fLichPositionX = pTemp->GetPositionX();
fLichPositionY = pTemp->GetPositionY();
@@ -983,7 +994,7 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
pTemp->GetMotionMaster()->MovePoint(0, fLichPositionX, fLichPositionY, fLichPositionZ);
uiEarthshatterGUID[0] = pTemp->GetGUID();
}
- if (Unit* pTemp = Unit::GetUnit((*me), uiMaxwellGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiMaxwellGUID))
{
pTemp->SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_STATE_ATTACK_UNARMED);
pTemp->RemoveUnitMovementFlag(MOVEMENTFLAG_WALK_MODE);
@@ -991,7 +1002,7 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
pTemp->GetMotionMaster()->MovePoint(0, fLichPositionX, fLichPositionY, fLichPositionZ);
DoScriptText(SAY_LIGHT_OF_DAWN50, pTemp);
}
- if (Unit* pTemp = Unit::GetUnit((*me), uiKorfaxGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiKorfaxGUID))
{
pTemp->SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_STATE_ATTACK_UNARMED);
pTemp->RemoveUnitMovementFlag(MOVEMENTFLAG_WALK_MODE);
@@ -999,7 +1010,7 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
pTemp->HandleEmoteCommand(EMOTE_STATE_ATTACK_UNARMED);
pTemp->GetMotionMaster()->MovePoint(0, fLichPositionX, fLichPositionY, fLichPositionZ);
}
- if (Unit* pTemp = Unit::GetUnit((*me), uiEligorGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiEligorGUID))
{
pTemp->SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_STATE_ATTACK_UNARMED);
pTemp->RemoveUnitMovementFlag(MOVEMENTFLAG_WALK_MODE);
@@ -1011,37 +1022,37 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
break;
case 43: // They all got kicked
- if (Unit* pTemp = Unit::GetUnit((*me), uiLichKingGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiLichKingGUID))
DoScriptText(EMOTE_LIGHT_OF_DAWN13, pTemp);
- if (Unit* pTemp = Unit::GetUnit((*me), uiMaxwellGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiMaxwellGUID))
{
pTemp->SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_ONESHOT_NONE);
pTemp->SetSpeed(MOVE_RUN, 6.0f);
((Unit*)pTemp)->SetStandState(UNIT_STAND_STATE_DEAD);
pTemp->GetMotionMaster()->MovePoint(0, LightofDawnLoc[14].x, LightofDawnLoc[14].y, LightofDawnLoc[14].z);
}
- if (Unit* pTemp = Unit::GetUnit((*me), uiKorfaxGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiKorfaxGUID))
{
pTemp->SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_ONESHOT_NONE);
pTemp->SetSpeed(MOVE_RUN, 6.0f);
((Unit*)pTemp)->SetStandState(UNIT_STAND_STATE_DEAD);
pTemp->GetMotionMaster()->MovePoint(0, LightofDawnLoc[11].x, LightofDawnLoc[11].y, LightofDawnLoc[11].z);
}
- if (Unit* pTemp = Unit::GetUnit((*me), uiEligorGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiEligorGUID))
{
pTemp->SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_ONESHOT_NONE);
pTemp->SetSpeed(MOVE_RUN, 6.0f);
((Unit*)pTemp)->SetStandState(UNIT_STAND_STATE_DEAD);
pTemp->GetMotionMaster()->MovePoint(0, LightofDawnLoc[17].x, LightofDawnLoc[17].y, LightofDawnLoc[17].z);
}
- if (Unit* pTemp = Unit::GetUnit((*me), uiDefenderGUID[0]))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiDefenderGUID[0]))
{
pTemp->SetSpeed(MOVE_RUN, 6.0f);
((Unit*)pTemp)->SetStandState(UNIT_STAND_STATE_DEAD);
pTemp->GetMotionMaster()->MovePoint(0, LightofDawnLoc[0].x+rand()%10, LightofDawnLoc[0].y+rand()%10, LightofDawnLoc[0].z);
}
- if (Unit* pTemp = Unit::GetUnit((*me), uiEarthshatterGUID[0]))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiEarthshatterGUID[0]))
{
pTemp->SetSpeed(MOVE_RUN, 6.0f);
((Unit*)pTemp)->SetStandState(UNIT_STAND_STATE_DEAD);
@@ -1051,11 +1062,11 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
break;
case 44: // make them stand up
- if (Unit* pTemp = Unit::GetUnit((*me), uiMaxwellGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiMaxwellGUID))
((Unit*)pTemp)->SetStandState(UNIT_STAND_STATE_STAND);
- if (Unit* pTemp = Unit::GetUnit((*me), uiKorfaxGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiKorfaxGUID))
((Unit*)pTemp)->SetStandState(UNIT_STAND_STATE_STAND);
- if (Unit* pTemp = Unit::GetUnit((*me), uiEligorGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiEligorGUID))
((Unit*)pTemp)->SetStandState(UNIT_STAND_STATE_STAND);
JumpToNextStep(1000);
break;
@@ -1068,16 +1079,16 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
case 46: // Darion stand up, "not today"
me->SetSpeed(MOVE_RUN, 1.0f);
me->AddUnitMovementFlag(MOVEMENTFLAG_WALK_MODE);
- ((Unit*)me)->SetStandState(UNIT_STAND_STATE_STAND);
+ me->SetStandState(UNIT_STAND_STATE_STAND);
DoScriptText(SAY_LIGHT_OF_DAWN53, me);
SetHoldState(false); // Darion throws sword
JumpToNextStep(7000);
break;
case 47: // Ashbringer rebirth
- ((Unit*)me)->SetStandState(UNIT_STAND_STATE_KNEEL);
+ me->SetStandState(UNIT_STAND_STATE_KNEEL);
DoScriptText(EMOTE_LIGHT_OF_DAWN15, me);
- if (Unit* pTemp = Unit::GetUnit((*me), uiTirionGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiTirionGUID))
{
((Unit*)pTemp)->SetStandState(UNIT_STAND_STATE_STAND);
pTemp->SetUInt32Value(UNIT_VIRTUAL_ITEM_SLOT_ID + 0, uint32(EQUIP_HIGHLORD_TIRION_FORDRING));
@@ -1089,38 +1100,38 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
case 48: // Show the cleansing effect (dawn of light)
if (GameObject* pGo = me->GetMap()->GetGameObject(uiDawnofLightGUID))
pGo->SetPhaseMask(128, true);
- if (Unit* pTemp = Unit::GetUnit((*me), uiTirionGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiTirionGUID))
{
if (pTemp->HasAura(SPELL_REBIRTH_OF_THE_ASHBRINGER, 0))
pTemp->RemoveAurasDueToSpell(SPELL_REBIRTH_OF_THE_ASHBRINGER);
pTemp->CastSpell(pTemp, 41542, false); // workarounds, light expoded, makes it cool
pTemp->HandleEmoteCommand(EMOTE_ONESHOT_ROAR);
}
- if (Unit* pTemp = Unit::GetUnit((*me), uiLichKingGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiLichKingGUID))
pTemp->InterruptNonMeleeSpells(false);
JumpToNextStep(2500);
break;
case 49:
- if (Unit* pTemp = Unit::GetUnit((*me), uiTirionGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiTirionGUID))
DoScriptText(SAY_LIGHT_OF_DAWN54, pTemp);
JumpToNextStep(4000);
break;
case 50:
- if (Unit* pTemp = Unit::GetUnit((*me), uiLichKingGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiLichKingGUID))
DoScriptText(SAY_LIGHT_OF_DAWN55, pTemp);
JumpToNextStep(5000);
break;
case 51:
- if (Unit* pTemp = Unit::GetUnit((*me), uiTirionGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiTirionGUID))
DoScriptText(SAY_LIGHT_OF_DAWN56, pTemp);
JumpToNextStep(1000);
break;
case 52: // Tiron charges
- if (Unit* pTemp = Unit::GetUnit((*me), uiTirionGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiTirionGUID))
{
DoScriptText(EMOTE_LIGHT_OF_DAWN16, pTemp);
pTemp->CastSpell(pTemp, SPELL_TIRION_CHARGE, false); // jumping charge
@@ -1128,20 +1139,20 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
pTemp->SetSpeed(MOVE_RUN, 3.0f); // workarounds, make Tirion still running
pTemp->RemoveUnitMovementFlag(MOVEMENTFLAG_WALK_MODE);
pTemp->GetMotionMaster()->MovePoint(0, LightofDawnLoc[2].x, LightofDawnLoc[2].y, LightofDawnLoc[2].z);
- if (Unit* pTemp = Unit::GetUnit((*me), uiLichKingGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiLichKingGUID))
pTemp->Relocate(LightofDawnLoc[28].x, LightofDawnLoc[28].y, LightofDawnLoc[28].z); // workarounds, he should kick back by Tirion, but here we relocate him
}
JumpToNextStep(1500);
break;
case 53:
- if (Unit* pTemp = Unit::GetUnit((*me), uiLichKingGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiLichKingGUID))
DoScriptText(SAY_LIGHT_OF_DAWN57, pTemp);
JumpToNextStep(1000);
break;
case 54:
- if (Unit* pTemp = Unit::GetUnit((*me), uiLichKingGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiLichKingGUID))
{
pTemp->SetSpeed(MOVE_RUN, 1.0f);
me->AddUnitMovementFlag(MOVEMENTFLAG_WALK_MODE);
@@ -1151,33 +1162,33 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
break;
case 55:
- if (Unit* pTemp = Unit::GetUnit((*me), uiLichKingGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiLichKingGUID))
((Unit*)pTemp)->SetStandState(UNIT_STAND_STATE_KNEEL);
JumpToNextStep(2000);
break;
case 56:
- if (Unit* pTemp = Unit::GetUnit((*me), uiLichKingGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiLichKingGUID))
((Unit*)pTemp)->SetStandState(UNIT_STAND_STATE_STAND);
JumpToNextStep(1500);
break;
case 57:
- if (Unit* pTemp = Unit::GetUnit((*me), uiLichKingGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiLichKingGUID))
DoScriptText(SAY_LIGHT_OF_DAWN58, pTemp);
JumpToNextStep(10000);
break;
case 58:
- if (Unit* pTemp = Unit::GetUnit((*me), uiLichKingGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiLichKingGUID))
DoScriptText(SAY_LIGHT_OF_DAWN59, pTemp);
JumpToNextStep(10000);
break;
case 59:
- if (Unit* pTemp = Unit::GetUnit((*me), uiLichKingGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiLichKingGUID))
pTemp->CastSpell(pTemp, SPELL_TELEPORT_VISUAL, false);
- if (Unit* pTemp = Unit::GetUnit((*me), uiTirionGUID)) // Tirion runs to Darion
+ if (Creature* pTemp = Unit::GetCreature(*me, uiTirionGUID)) // Tirion runs to Darion
{
pTemp->SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_ONESHOT_NONE);
pTemp->SetSpeed(MOVE_RUN, 1.0f);
@@ -1187,7 +1198,7 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
break;
case 60:
- if (Unit* pTemp = Unit::GetUnit((*me), uiLichKingGUID)) // Lich king disappears here
+ if (Creature* pTemp = Unit::GetCreature(*me, uiLichKingGUID)) // Lich king disappears here
{
DoScriptText(EMOTE_LIGHT_OF_DAWN17, pTemp);
pTemp->DealDamage(pTemp, pTemp->GetHealth(), NULL, DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NORMAL, NULL, false);
@@ -1196,13 +1207,13 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
break;
case 61:
- if (Unit* pTemp = Unit::GetUnit((*me), uiTirionGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiTirionGUID))
DoScriptText(SAY_LIGHT_OF_DAWN60, pTemp);
JumpToNextStep(3000);
break;
case 62:
- if (Unit* pTemp = Unit::GetUnit((*me), uiTirionGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiTirionGUID))
{
pTemp->AddUnitMovementFlag(MOVEMENTFLAG_WALK_MODE);
pTemp->GetMotionMaster()->MovePoint(0, LightofDawnLoc[7].x, LightofDawnLoc[7].y, LightofDawnLoc[7].z);
@@ -1211,7 +1222,7 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
break;
case 63:
- if (Unit* pTemp = Unit::GetUnit((*me), uiTirionGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiTirionGUID))
{
pTemp->GetMotionMaster()->MovePoint(0, LightofDawnLoc[8].x, LightofDawnLoc[8].y, LightofDawnLoc[8].z);
DoScriptText(SAY_LIGHT_OF_DAWN61, pTemp);
@@ -1220,43 +1231,43 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
break;
case 64:
- if (Unit* pTemp = Unit::GetUnit((*me), uiTirionGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiTirionGUID))
DoScriptText(SAY_LIGHT_OF_DAWN62, pTemp);
JumpToNextStep(7000);
break;
case 65:
- if (Unit* pTemp = Unit::GetUnit((*me), uiTirionGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiTirionGUID))
DoScriptText(SAY_LIGHT_OF_DAWN63, pTemp);
JumpToNextStep(10000);
break;
case 66:
- if (Unit* pTemp = Unit::GetUnit((*me), uiTirionGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiTirionGUID))
DoScriptText(SAY_LIGHT_OF_DAWN64, pTemp);
JumpToNextStep(11000);
break;
case 67:
- if (Unit* pTemp = Unit::GetUnit((*me), uiTirionGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiTirionGUID))
DoScriptText(SAY_LIGHT_OF_DAWN65, pTemp);
JumpToNextStep(10000);
break;
case 68:
- if (Unit* pTemp = Unit::GetUnit((*me), uiTirionGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiTirionGUID))
DoScriptText(SAY_LIGHT_OF_DAWN66, pTemp);
JumpToNextStep(8000);
break;
case 69:
- if (Unit* pTemp = Unit::GetUnit((*me), uiTirionGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiTirionGUID))
DoScriptText(SAY_LIGHT_OF_DAWN67, pTemp);
JumpToNextStep(10000);
break;
case 70:
- ((Unit*)me)->SetStandState(UNIT_STAND_STATE_STAND);
+ me->SetStandState(UNIT_STAND_STATE_STAND);
DoScriptText(SAY_LIGHT_OF_DAWN68, me);
JumpToNextStep(10000);
break;
@@ -1409,7 +1420,7 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
for(uint8 i = 0; i < ENCOUNTER_WARRIOR_NUMBER; ++i)
DespawnNPC(uiWarriorGUID[i]);
- if (Unit* pTemp = Unit::GetUnit((*me), uiKorfaxGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiKorfaxGUID))
{
pTemp->RemoveAllAuras();
pTemp->DeleteThreatList();
@@ -1420,7 +1431,7 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
pTemp->GetMotionMaster()->MovePoint(0, LightofDawnLoc[9].x, LightofDawnLoc[9].y, LightofDawnLoc[9].z);
}
- if (Unit* pTemp = Unit::GetUnit((*me), uiMaxwellGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiMaxwellGUID))
{
pTemp->RemoveAllAuras();
pTemp->DeleteThreatList();
@@ -1431,7 +1442,7 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
pTemp->GetMotionMaster()->MovePoint(0, LightofDawnLoc[12].x, LightofDawnLoc[12].y, LightofDawnLoc[12].z);
}
- if (Unit* pTemp = Unit::GetUnit((*me), uiEligorGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiEligorGUID))
{
pTemp->RemoveAllAuras();
pTemp->DeleteThreatList();
@@ -1443,7 +1454,7 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
}
DespawnNPC(uiRayneGUID);
- if (Unit* pTemp = Unit::GetUnit((*me), uiKoltiraGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiKoltiraGUID))
{
pTemp->RemoveAllAuras();
pTemp->DeleteThreatList();
@@ -1455,10 +1466,10 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
pTemp->CastSpell(pTemp, SPELL_THE_LIGHT_OF_DAWN, false);
}
- if (Unit* pTemp = Unit::GetUnit((*me), uiOrbazGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiOrbazGUID))
DoScriptText(EMOTE_LIGHT_OF_DAWN04, pTemp);
- if (Unit* pTemp = Unit::GetUnit((*me), uiThassarianGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiThassarianGUID))
{
pTemp->RemoveAllAuras();
pTemp->DeleteThreatList();
@@ -1470,7 +1481,7 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
pTemp->CastSpell(pTemp, SPELL_THE_LIGHT_OF_DAWN, false);
}
- if (Unit* pTemp = Unit::GetUnit((*me), uiTirionGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, uiTirionGUID))
DoScriptText(SAY_LIGHT_OF_DAWN26, pTemp);
SetHoldState(false);
@@ -1489,7 +1500,7 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
void NPCChangeTarget(uint64 ui_GUID)
{
- if (Unit* pTemp = Unit::GetUnit((*me), ui_GUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, ui_GUID))
if (pTemp->isAlive())
if (Unit* pTarger = SelectUnit(SELECT_TARGET_RANDOM,0))
if (pTarger->isAlive())
@@ -1510,7 +1521,7 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
// Death
for(uint8 i = 0; i < ENCOUNTER_GHOUL_NUMBER; ++i)
{
- if (!(pTemp = Unit::GetUnit((*me), uiGhoulGUID[i])))
+ if (!(pTemp = Unit::GetCreature(*me, uiGhoulGUID[i])))
{
pTemp = me->SummonCreature(NPC_ACHERUS_GHOUL, LightofDawnLoc[0].x+rand()%30, LightofDawnLoc[0].y+rand()%30, LightofDawnLoc[0].z, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 300000);
pTemp->setFaction(2084);
@@ -1519,7 +1530,7 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
}
for(uint8 i = 0; i < ENCOUNTER_ABOMINATION_NUMBER; ++i)
{
- if (!(pTemp = Unit::GetUnit((*me), uiAbominationGUID[i])))
+ if (!(pTemp = Unit::GetCreature(*me, uiAbominationGUID[i])))
{
pTemp = me->SummonCreature(NPC_WARRIOR_OF_THE_FROZEN_WASTES, LightofDawnLoc[0].x+rand()%30, LightofDawnLoc[0].y+rand()%30, LightofDawnLoc[0].z, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 300000);
pTemp->setFaction(2084);
@@ -1528,7 +1539,7 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
}
for(uint8 i = 0; i < ENCOUNTER_WARRIOR_NUMBER; ++i)
{
- if (!(pTemp = Unit::GetUnit((*me), uiWarriorGUID[i])))
+ if (!(pTemp = Unit::GetCreature(*me, uiWarriorGUID[i])))
{
pTemp = me->SummonCreature(NPC_RAMPAGING_ABOMINATION, LightofDawnLoc[0].x+rand()%30, LightofDawnLoc[0].y+rand()%30, LightofDawnLoc[0].z, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 300000);
pTemp->setFaction(2084);
@@ -1537,7 +1548,7 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
}
for(uint8 i = 0; i < ENCOUNTER_BEHEMOTH_NUMBER; ++i)
{
- if (!(pTemp = Unit::GetUnit((*me), uiBehemothGUID[i])))
+ if (!(pTemp = Unit::GetCreature(*me, uiBehemothGUID[i])))
{
pTemp = me->SummonCreature(NPC_FLESH_BEHEMOTH, LightofDawnLoc[0].x+rand()%30, LightofDawnLoc[0].y+rand()%30, LightofDawnLoc[0].z, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 300000);
pTemp->setFaction(2084);
@@ -1548,7 +1559,7 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
// Dawn
for(uint8 i = 0; i < ENCOUNTER_DEFENDER_NUMBER; ++i)
{
- if (!(pTemp = Unit::GetUnit((*me), uiDefenderGUID[i])))
+ if (!(pTemp = Unit::GetCreature(*me, uiDefenderGUID[i])))
{
pTemp = me->SummonCreature(NPC_DEFENDER_OF_THE_LIGHT, LightofDawnLoc[0].x+rand()%30, LightofDawnLoc[0].y+rand()%30, LightofDawnLoc[0].z, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 300000);
pTemp->setFaction(2089);
@@ -1558,7 +1569,7 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
}
for(uint8 i = 0; i < ENCOUNTER_EARTHSHATTER_NUMBER; ++i)
{
- if (!(pTemp = Unit::GetUnit((*me), uiEarthshatterGUID[i])))
+ if (!(pTemp = Unit::GetCreature(*me, uiEarthshatterGUID[i])))
{
pTemp = me->SummonCreature(NPC_RIMBLAT_EARTHSHATTER, LightofDawnLoc[0].x+rand()%30, LightofDawnLoc[0].y+rand()%30, LightofDawnLoc[0].z, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 300000);
pTemp->setFaction(2089);
@@ -1566,28 +1577,28 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
uiEarthshatterGUID[i] = pTemp->GetGUID();
}
}
- if (!(pTemp = Unit::GetUnit((*me), uiKorfaxGUID)))
+ if (!(pTemp = Unit::GetCreature(*me, uiKorfaxGUID)))
{
pTemp = me->SummonCreature(NPC_KORFAX_CHAMPION_OF_THE_LIGHT, LightofDawnLoc[0].x+rand()%30, LightofDawnLoc[0].y+rand()%30, LightofDawnLoc[0].z, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 600000);
pTemp->setFaction(2089);
me->AddThreat(pTemp, 0.0f);
uiKorfaxGUID = pTemp->GetGUID();
}
- if (!(pTemp = Unit::GetUnit((*me), uiMaxwellGUID)))
+ if (!(pTemp = Unit::GetCreature(*me, uiMaxwellGUID)))
{
pTemp = me->SummonCreature(NPC_LORD_MAXWELL_TYROSUS, LightofDawnLoc[0].x+rand()%30, LightofDawnLoc[0].y+rand()%30, LightofDawnLoc[0].z, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 600000);
pTemp->setFaction(2089);
me->AddThreat(pTemp, 0.0f);
uiMaxwellGUID = pTemp->GetGUID();
}
- if (!(pTemp = Unit::GetUnit((*me), uiEligorGUID)))
+ if (!(pTemp = Unit::GetCreature(*me, uiEligorGUID)))
{
pTemp = me->SummonCreature(NPC_COMMANDER_ELIGOR_DAWNBRINGER, LightofDawnLoc[0].x+rand()%30, LightofDawnLoc[0].y+rand()%30, LightofDawnLoc[0].z, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 600000);
pTemp->setFaction(2089);
me->AddThreat(pTemp, 0.0f);
uiEligorGUID = pTemp->GetGUID();
}
- if (!(pTemp = Unit::GetUnit((*me), uiRayneGUID)))
+ if (!(pTemp = Unit::GetCreature(*me, uiRayneGUID)))
{
pTemp = me->SummonCreature(NPC_RAYNE, LightofDawnLoc[0].x+rand()%30, LightofDawnLoc[0].y+rand()%30, LightofDawnLoc[0].z, 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 300000);
pTemp->setFaction(2089);
@@ -1598,7 +1609,7 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI
void DespawnNPC(uint64 pGUID)
{
- if (Unit* pTemp = Unit::GetUnit((*me), pGUID))
+ if (Creature* pTemp = Unit::GetCreature(*me, pGUID))
if (pTemp->isAlive())
{
pTemp->SetVisibility(VISIBILITY_OFF);