Core/DB: Chapter 5 in creature text

This commit is contained in:
Gacko
2012-11-22 23:01:28 +01:00
parent a66adcf6e1
commit 27619b2bd7
2 changed files with 232 additions and 160 deletions

View File

@@ -711,3 +711,95 @@ INSERT INTO `creature_text`(`entry`,`groupid`,`id`,`type`,`sound`,`probability`,
(29071,53,0,16,0,100,"special_surprise EMOTE_DIES","%s dies from his wounds."),
-- Plaguefist
(29053,41,0,14,0,100,"special_surprise SAY_PLAGUEFIST","What's going on in there? What's taking so long, $N?");
-- Highlord Darion Mograine
DELETE FROM `script_texts` WHERE `entry` BETWEEN -1609286 AND -1609201;
DELETE FROM `creature_text` WHERE `entry` IN (29183,29175,29227,29228,29176,29178,29204,29173);
INSERT INTO `creature_text`(`entry`,`groupid`,`id`,`type`,`sound`,`probability`,`comment`,`text`) VALUES
(29173,0,0,14,14677,100,"Highlord Darion Mograine","Soldiers of the Scourge, stand ready! You will soon be able to unleash your fury upon the Argent Dawn!"),
(29173,1,0,14,14678,100,"Highlord Darion Mograine","The sky weeps at the devastation of sister earth! Soon, tears of blood will rain down upon us!"),
(29173,2,0,14,14681,100,"Highlord Darion Mograine","Death knights of Acherus, the death march begins!"),
(29173,3,0,14,14679,100,"Highlord Darion Mograine","Soldiers of the Scourge, death knights of Acherus, minions of the darkness: hear the call of the Highlord!"),
(29173,4,0,14,14680,100,"Highlord Darion Mograine","RISE!"),
(29173,5,0,14,14682,100,"Highlord Darion Mograine","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!"),
(29176,6,0,14,0,100,"Korfax, Champion of the Light","Scourge armies approach!"),
(29178,7,0,14,14487,100,"Lord Maxwell Tyrosus","Stand fast, brothers and sisters! The Light will prevail!"),
(29173,8,0,12,14683,100,"Highlord Darion Mograine","Kneel before the Highlord!"),
(29173,8,1,12,14684,100,"Highlord Darion Mograine","You stand no chance!"),
(29173,8,2,12,14685,100,"Highlord Darion Mograine","The Scourge will destroy this place!"),
(29173,8,3,12,14686,100,"Highlord Darion Mograine","Your life is forfeit."),
(29173,8,4,12,14687,100,"Highlord Darion Mograine","Life is meaningless without suffering."),
(29173,8,5,12,14688,100,"Highlord Darion Mograine","How much longer will your forces hold out?"),
(29173,8,6,12,14689,100,"Highlord Darion Mograine","The Argent Dawn is finished!"),
(29173,8,7,12,14690,100,"Highlord Darion Mograine","Spare no one!"),
(29173,8,8,12,14691,100,"Highlord Darion Mograine","What is this?! My... I cannot strike..."),
(29173,8,9,14,14692,100,"Highlord Darion Mograine","Obey me, blade!"),
(29173,8,10,12,14693,100,"Highlord Darion Mograine","You will do as I command! I am in control here!"),
(29173,8,11,12,14694,100,"Highlord Darion Mograine","I can not... the blade fights me."),
(29173,8,12,12,14695,100,"Highlord Darion Mograine","What is happening to me?"),
(29173,8,13,12,14696,100,"Highlord Darion Mograine","Power...wanes..."),
(29173,8,14,12,14697,100,"Highlord Darion Mograine","Ashbringer defies me..."),
(29173,8,15,12,14698,100,"Highlord Darion Mograine","Minions, come to my aid!"),
(29175,24,0,14,14584,100,"Highlord Tirion Fordring","You cannot win, Darion!"),
(29175,25,0,14,14585,100,"Highlord Tirion Fordring","Bring them before the chapel!"),
(29173,26,0,12,14699,100,"Highlord Darion Mograine","Stand down, death knights. We have lost... The Light... This place... No hope..."),
(29175,27,0,12,14586,100,"Highlord Tirion Fordring","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!"),
(29175,28,0,12,14587,100,"Highlord Tirion Fordring","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."),
(29175,29,0,12,14588,100,"Highlord Tirion Fordring","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!"),
(29173,30,0,12,14700,100,"Highlord Darion Mograine","Save your breath, old man. It might be the last you ever draw."),
(29227,31,0,12,14493,100,"Highlord Alexandros Mograine","My son! My dear, beautiful boy!"),
(29173,32,0,12,14701,100,"Highlord Darion Mograine","Father!"),
(29173,33,0,12,14702,100,"Highlord Darion Mograine","Argh...what...is..."),
(29228,34,0,12,14703,100,"Darion Mograine","Father, you have returned!"),
(29228,35,0,12,14704,100,"Darion Mograine","You have been gone a long time, father. I thought..."),
(29227,36,0,12,14494,100,"Highlord Alexandros Mograine","Nothing could have kept me away from here, Darion. Not from my home and family."),
(29228,37,0,12,14705,100,"Darion Mograine","Father, I wish to join you in the war against the undead. I want to fight! I can sit idle no longer!"),
(29227,38,0,12,14495,100,"Highlord Alexandros Mograine","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..."),
(29228,39,0,12,14706,100,"Darion Mograine","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!"),
(29227,40,0,12,14496,100,"Highlord Alexandros Mograine","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."),
(29227,41,0,12,14497,100,"Highlord Alexandros Mograine","Do not forget..."),
(29183,42,0,14,14803,100,"The Lich King","Touching..."),
(29173,43,0,14,14707,100,"Highlord Darion Mograine","You have've betrayed me! You betrayed us all you monster! Face the might of Mograine!"),
(29183,44,0,12,14805,100,"The Lich King","He's mine now..."),
(29183,45,0,12,14804,100,"The Lich King","Pathetic..."),
(29175,46,0,12,14589,100,"Highlord Tirion Fordring","You're a damned monster, Arthas!"),
(29183,47,0,12,14806,100,"The Lich King","You were right, Fordring. I did send them in to die. Their lives are meaningless, but yours..."),
(29183,48,0,12,14807,100,"The Lich King","How simple it was to draw the great Tirion Fordring out of hiding. You've left yourself exposed, paladin. Nothing will save you..."),
(29178,49,0,14,14488,100,"Lord Maxwell Tyrosus","ATTACK!!!"),
(29183,50,0,14,14808,100,"The Lich King","APOCALYPSE!"),
(29173,51,0,12,14708,100,"Highlord Darion Mograine","That day is not today..."),
(29173,52,0,14,14709,100,"Highlord Darion Mograine","Tirion!"),
(29175,53,0,14,14591,100,"Highlord Tirion Fordring","ARTHAS!!!!"),
(29183,54,0,14,14809,100,"The Lich King","What is this?"),
(29175,55,0,14,14592,100,"Highlord Tirion Fordring","Your end."),
(29183,56,0,14,14810,100,"The Lich King","Impossible..."),
(29183,57,0,14,14811,100,"The Lich King","This... isn't... over..."),
(29183,58,0,14,14812,100,"The Lich King","When next we meet it won't be on holy ground, paladin."),
(29175,59,0,12,14593,100,"Highlord Tirion Fordring","Rise, Darion, and listen..."),
(29175,60,0,12,14594,100,"Highlord Tirion Fordring","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!"),
(29175,61,0,12,14595,100,"Highlord Tirion Fordring","And while such things can never be forgotten, we must remain vigilant in our cause!"),
(29175,62,0,12,14596,100,"Highlord Tirion Fordring","The Lich King must answer for what he has done and must not be allowed to cause further destruction to our world."),
(29175,63,0,12,14597,100,"Highlord Tirion Fordring","I make a promise to you now, brothers and sisters: The Lich King will be defeated! On this day, I call for a union."),
(29175,64,0,12,14598,100,"Highlord Tirion Fordring","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!"),
(29175,65,0,12,14599,100,"Highlord Tirion Fordring","We will take the fight to Arthas and tear down the walls of Icecrown!"),
(29175,66,0,14,14600,100,"Highlord Tirion Fordring","The Argent Crusade comes for you, Arthas!"),
(29173,67,0,12,14710,100,"Highlord Darion Mograine","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!"),
(29173,68,0,16,0,100,"","Thousands of Scourge rise up at the Highlord's command."),
(29173,69,0,16,0,100,"","The army marches towards Light's Hope Chapel."),
(29173,70,0,16,0,100,"","After over a hundred Defenders of the Light fall, Highlord Tirion Fordring arrives."),
(29204,71,0,16,0,100,"Orbaz","%s flee"),
(29173,72,0,16,0,100,"Highlord Darion Mograine","%s kneels in defeat before Tirion Fordring."),
(29227,73,0,16,0,100,"Highlord Alexandros Mograine","%s arrives."),
(29173,74,0,16,0,100,"Highlord Darion Mograine","%s becomes a shade of his past, and walks up to his father."),
(29228,75,0,16,0,100,"Darion Mograine","%s hugs his father."),
(29173,76,0,16,0,100,"Alexandros","%s disappears, and the Lich King appears."),
(29173,77,0,16,0,100,"Highlord Darion Mograine","%s becomes himself again...and is now angry."),
(29183,78,0,16,0,100,"The Lich King","%s casts a spell on Tirion."),
(29175,79,0,16,0,100,"Highlord Tirion Fordring","%s gasps for air."),
(29183,80,0,16,0,100,"The Lich King","%s casts a powerful spell, killing the Defenders and knocking back the others."),
(29173,81,0,16,0,100,"Highlord Darion Mograine","%s throws the Corrupted Ashbringer to Tirion, who catches it. Tirion becomes awash with Light, and the Ashbringer is cleansed."),
(29173,82,0,16,0,100,"Highlord Darion Mograine","%s collapses."),
(29175,83,0,16,0,100,"Highlord Tirion Fordring","%s charges towards the Lich King, Ashbringer in hand and strikes the Lich King."),
(29183,84,0,16,0,100,"The Lich King","%s disappears. Tirion walks over to where Darion lay"),
(29173,85,0,16,0,100,"","Light washes over the chapel ? the Light of Dawn is uncovered.");

View File

@@ -51,93 +51,78 @@ enum mograine
WORLD_STATE_COUNTDOWN = 3603,
WORLD_STATE_EVENT_BEGIN = 3605,
SAY_LIGHT_OF_DAWN01 = -1609201, // pre text
SAY_LIGHT_OF_DAWN02 = -1609202,
SAY_LIGHT_OF_DAWN03 = -1609203,
SAY_LIGHT_OF_DAWN04 = -1609204, // intro
SAY_LIGHT_OF_DAWN05 = -1609205,
SAY_LIGHT_OF_DAWN06 = -1609206,
SAY_LIGHT_OF_DAWN07 = -1609207, // During the fight - Korfax, Champion of the Light
SAY_LIGHT_OF_DAWN08 = -1609208, // Lord Maxwell Tyrosus
SAY_LIGHT_OF_DAWN09 = -1609209, // Highlord Darion Mograine
SAY_LIGHT_OF_DAWN10 = -1609210,
SAY_LIGHT_OF_DAWN11 = -1609211,
SAY_LIGHT_OF_DAWN12 = -1609212,
SAY_LIGHT_OF_DAWN13 = -1609213,
SAY_LIGHT_OF_DAWN14 = -1609214,
SAY_LIGHT_OF_DAWN15 = -1609215,
SAY_LIGHT_OF_DAWN16 = -1609216,
SAY_LIGHT_OF_DAWN17 = -1609217,
SAY_LIGHT_OF_DAWN18 = -1609218,
SAY_LIGHT_OF_DAWN19 = -1609219,
SAY_LIGHT_OF_DAWN20 = -1609220,
SAY_LIGHT_OF_DAWN21 = -1609221,
SAY_LIGHT_OF_DAWN22 = -1609222,
SAY_LIGHT_OF_DAWN23 = -1609223,
SAY_LIGHT_OF_DAWN24 = -1609224,
SAY_LIGHT_OF_DAWN25 = -1609225, // After the fight
SAY_LIGHT_OF_DAWN26 = -1609226, // Highlord Tirion Fordring
SAY_LIGHT_OF_DAWN27 = -1609227, // Highlord Darion Mograine
SAY_LIGHT_OF_DAWN28 = -1609228, // Highlord Tirion Fordring
SAY_LIGHT_OF_DAWN29 = -1609229, // Highlord Tirion Fordring
SAY_LIGHT_OF_DAWN30 = -1609230, // Highlord Tirion Fordring
SAY_LIGHT_OF_DAWN31 = -1609231, // Highlord Tirion Fordring
SAY_LIGHT_OF_DAWN32 = -1609232, // Highlord Alexandros Mograine
SAY_LIGHT_OF_DAWN33 = -1609233, // Highlord Darion Mograine
SAY_LIGHT_OF_DAWN34 = -1609234, // Highlord Darion Mograine
SAY_LIGHT_OF_DAWN35 = -1609235, // Darion Mograine
SAY_LIGHT_OF_DAWN36 = -1609236, // Darion Mograine
SAY_LIGHT_OF_DAWN37 = -1609237, // Highlord Alexandros Mograine
SAY_LIGHT_OF_DAWN38 = -1609238, // Darion Mograine
SAY_LIGHT_OF_DAWN39 = -1609239, // Highlord Alexandros Mograine
SAY_LIGHT_OF_DAWN40 = -1609240, // Darion Mograine
SAY_LIGHT_OF_DAWN41 = -1609241, // Highlord Alexandros Mograine
SAY_LIGHT_OF_DAWN42 = -1609242, // Highlord Alexandros Mograine
SAY_LIGHT_OF_DAWN43 = -1609243, // The Lich King
SAY_LIGHT_OF_DAWN44 = -1609244, // Highlord Darion Mograine
SAY_LIGHT_OF_DAWN45 = -1609245, // The Lich King
SAY_LIGHT_OF_DAWN46 = -1609246, // The Lich King
SAY_LIGHT_OF_DAWN47 = -1609247, // Highlord Tirion Fordring
SAY_LIGHT_OF_DAWN48 = -1609248, // The Lich King
SAY_LIGHT_OF_DAWN49 = -1609249, // The Lich King
SAY_LIGHT_OF_DAWN50 = -1609250, // Lord Maxwell Tyrosus
SAY_LIGHT_OF_DAWN51 = -1609251, // The Lich King
SAY_LIGHT_OF_DAWN52 = -1609252, // Highlord Darion Mograine
SAY_LIGHT_OF_DAWN53 = -1609253, // Highlord Darion Mograine
SAY_LIGHT_OF_DAWN54 = -1609254, // Highlord Tirion Fordring
SAY_LIGHT_OF_DAWN55 = -1609255, // The Lich King
SAY_LIGHT_OF_DAWN56 = -1609256, // Highlord Tirion Fordring
SAY_LIGHT_OF_DAWN57 = -1609257, // The Lich King
SAY_LIGHT_OF_DAWN58 = -1609258, // The Lich King
SAY_LIGHT_OF_DAWN59 = -1609259, // The Lich King
SAY_LIGHT_OF_DAWN60 = -1609260, // Highlord Tirion Fordring
SAY_LIGHT_OF_DAWN61 = -1609261, // Highlord Tirion Fordring
SAY_LIGHT_OF_DAWN62 = -1609262, // Highlord Tirion Fordring
SAY_LIGHT_OF_DAWN63 = -1609263, // Highlord Tirion Fordring
SAY_LIGHT_OF_DAWN64 = -1609264, // Highlord Tirion Fordring
SAY_LIGHT_OF_DAWN65 = -1609265, // Highlord Tirion Fordring
SAY_LIGHT_OF_DAWN66 = -1609266, // Highlord Tirion Fordring
SAY_LIGHT_OF_DAWN67 = -1609267, // Highlord Tirion Fordring
SAY_LIGHT_OF_DAWN68 = -1609268, // Highlord Darion Mograine
SAY_LIGHT_OF_DAWN01 = 0, // pre text
SAY_LIGHT_OF_DAWN02 = 1,
SAY_LIGHT_OF_DAWN03 = 2,
SAY_LIGHT_OF_DAWN04 = 3, // intro
SAY_LIGHT_OF_DAWN05 = 4,
SAY_LIGHT_OF_DAWN06 = 5,
SAY_LIGHT_OF_DAWN07 = 6, // During the fight - Korfax, Champion of the Light
SAY_LIGHT_OF_DAWN08 = 7, // Lord Maxwell Tyrosus
SAY_LIGHT_OF_DAWN09 = 8, // Highlord Darion Mograine
SAY_LIGHT_OF_DAWN25 = 24, // After the fight
SAY_LIGHT_OF_DAWN26 = 25, // Highlord Tirion Fordring
SAY_LIGHT_OF_DAWN27 = 26, // Highlord Darion Mograine
SAY_LIGHT_OF_DAWN28 = 27, // Highlord Tirion Fordring
SAY_LIGHT_OF_DAWN29 = 28, // Highlord Tirion Fordring
SAY_LIGHT_OF_DAWN30 = 29, // Highlord Tirion Fordring
SAY_LIGHT_OF_DAWN31 = 30, // Highlord Tirion Fordring
SAY_LIGHT_OF_DAWN32 = 31, // Highlord Alexandros Mograine
SAY_LIGHT_OF_DAWN33 = 32, // Highlord Darion Mograine
SAY_LIGHT_OF_DAWN34 = 33, // Highlord Darion Mograine
SAY_LIGHT_OF_DAWN35 = 34, // Darion Mograine
SAY_LIGHT_OF_DAWN36 = 35, // Darion Mograine
SAY_LIGHT_OF_DAWN37 = 36, // Highlord Alexandros Mograine
SAY_LIGHT_OF_DAWN38 = 37, // Darion Mograine
SAY_LIGHT_OF_DAWN39 = 38, // Highlord Alexandros Mograine
SAY_LIGHT_OF_DAWN40 = 39, // Darion Mograine
SAY_LIGHT_OF_DAWN41 = 40, // Highlord Alexandros Mograine
SAY_LIGHT_OF_DAWN42 = 41, // Highlord Alexandros Mograine
SAY_LIGHT_OF_DAWN43 = 42, // The Lich King
SAY_LIGHT_OF_DAWN44 = 43, // Highlord Darion Mograine
SAY_LIGHT_OF_DAWN45 = 44, // The Lich King
SAY_LIGHT_OF_DAWN46 = 45, // The Lich King
SAY_LIGHT_OF_DAWN47 = 46, // Highlord Tirion Fordring
SAY_LIGHT_OF_DAWN48 = 47, // The Lich King
SAY_LIGHT_OF_DAWN49 = 48, // The Lich King
SAY_LIGHT_OF_DAWN50 = 49, // Lord Maxwell Tyrosus
SAY_LIGHT_OF_DAWN51 = 50, // The Lich King
SAY_LIGHT_OF_DAWN52 = 51, // Highlord Darion Mograine
SAY_LIGHT_OF_DAWN53 = 52, // Highlord Darion Mograine
SAY_LIGHT_OF_DAWN54 = 53, // Highlord Tirion Fordring
SAY_LIGHT_OF_DAWN55 = 54, // The Lich King
SAY_LIGHT_OF_DAWN56 = 55, // Highlord Tirion Fordring
SAY_LIGHT_OF_DAWN57 = 56, // The Lich King
SAY_LIGHT_OF_DAWN58 = 57, // The Lich King
SAY_LIGHT_OF_DAWN59 = 58, // The Lich King
SAY_LIGHT_OF_DAWN60 = 59, // Highlord Tirion Fordring
SAY_LIGHT_OF_DAWN61 = 60, // Highlord Tirion Fordring
SAY_LIGHT_OF_DAWN62 = 61, // Highlord Tirion Fordring
SAY_LIGHT_OF_DAWN63 = 62, // Highlord Tirion Fordring
SAY_LIGHT_OF_DAWN64 = 63, // Highlord Tirion Fordring
SAY_LIGHT_OF_DAWN65 = 64, // Highlord Tirion Fordring
SAY_LIGHT_OF_DAWN66 = 65, // Highlord Tirion Fordring
SAY_LIGHT_OF_DAWN67 = 66, // Highlord Tirion Fordring
SAY_LIGHT_OF_DAWN68 = 67, // Highlord Darion Mograine
EMOTE_LIGHT_OF_DAWN01 = -1609269, // Emotes
EMOTE_LIGHT_OF_DAWN02 = -1609270,
EMOTE_LIGHT_OF_DAWN03 = -1609271,
EMOTE_LIGHT_OF_DAWN04 = -1609272,
EMOTE_LIGHT_OF_DAWN05 = -1609273,
EMOTE_LIGHT_OF_DAWN06 = -1609274,
EMOTE_LIGHT_OF_DAWN07 = -1609275,
EMOTE_LIGHT_OF_DAWN08 = -1609276,
EMOTE_LIGHT_OF_DAWN09 = -1609277,
EMOTE_LIGHT_OF_DAWN10 = -1609278,
EMOTE_LIGHT_OF_DAWN11 = -1609279,
EMOTE_LIGHT_OF_DAWN12 = -1609280,
EMOTE_LIGHT_OF_DAWN13 = -1609281,
EMOTE_LIGHT_OF_DAWN14 = -1609282,
EMOTE_LIGHT_OF_DAWN15 = -1609283,
EMOTE_LIGHT_OF_DAWN16 = -1609284,
EMOTE_LIGHT_OF_DAWN17 = -1609285,
EMOTE_LIGHT_OF_DAWN18 = -1609286,
EMOTE_LIGHT_OF_DAWN01 = 68, // Emotes
EMOTE_LIGHT_OF_DAWN02 = 69,
EMOTE_LIGHT_OF_DAWN03 = 70,
EMOTE_LIGHT_OF_DAWN04 = 71,
EMOTE_LIGHT_OF_DAWN05 = 72,
EMOTE_LIGHT_OF_DAWN06 = 73,
EMOTE_LIGHT_OF_DAWN07 = 74,
EMOTE_LIGHT_OF_DAWN08 = 75,
EMOTE_LIGHT_OF_DAWN09 = 76,
EMOTE_LIGHT_OF_DAWN10 = 77,
EMOTE_LIGHT_OF_DAWN11 = 78,
EMOTE_LIGHT_OF_DAWN12 = 79,
EMOTE_LIGHT_OF_DAWN13 = 80,
EMOTE_LIGHT_OF_DAWN14 = 81,
EMOTE_LIGHT_OF_DAWN15 = 82,
EMOTE_LIGHT_OF_DAWN16 = 83,
EMOTE_LIGHT_OF_DAWN17 = 84,
EMOTE_LIGHT_OF_DAWN18 = 85,
GO_LIGHT_OF_DAWN = 191330,
SPELL_THE_LIGHT_OF_DAWN_Q = 53606, // quest credit
@@ -512,9 +497,9 @@ public:
SetHoldState(true);
SpawnNPC();
if (Creature* temp = Unit::GetCreature(*me, uiKorfaxGUID))
DoScriptText(SAY_LIGHT_OF_DAWN07, temp);
temp->AI()->Talk(SAY_LIGHT_OF_DAWN07);
if (Creature* temp = Unit::GetCreature(*me, uiMaxwellGUID))
DoScriptText(SAY_LIGHT_OF_DAWN08, temp);
temp->AI()->Talk(SAY_LIGHT_OF_DAWN08);
for (uint8 i = 0; i < ENCOUNTER_GHOUL_NUMBER; ++i)
NPCChangeTarget(uiGhoulGUID[i]);
@@ -546,7 +531,7 @@ public:
{
//Unit* pTirion = Unit::GetCreature(*me, uiTirionGUID);
DoScriptText(EMOTE_LIGHT_OF_DAWN05, me);
Talk(EMOTE_LIGHT_OF_DAWN05);
if (me->HasAura(SPELL_THE_LIGHT_OF_DAWN, 0))
me->RemoveAurasDueToSpell(SPELL_THE_LIGHT_OF_DAWN);
if (Creature* temp = Unit::GetCreature(*me, uiKoltiraGUID))
@@ -583,7 +568,7 @@ public:
}
break;
case 4:
DoScriptText(SAY_LIGHT_OF_DAWN27, me);
Talk(SAY_LIGHT_OF_DAWN27);
me->SetStandState(UNIT_STAND_STATE_KNEEL);
if (Creature* temp = Unit::GetCreature(*me, uiKoltiraGUID))
@@ -593,7 +578,7 @@ public:
SetHoldState(true);
break;
case 5:
DoScriptText(SAY_LIGHT_OF_DAWN33, me);
Talk(SAY_LIGHT_OF_DAWN33);
SetHoldState(true);
break;
case 6:
@@ -609,7 +594,7 @@ public:
me->SetUInt32Value(UNIT_VIRTUAL_ITEM_SLOT_ID + 0, uint32(EQUIP_UNEQUIP));
if (Creature* temp = Unit::GetCreature(*me, uiTirionGUID))
me->CastSpell(temp, SPELL_ASHBRINGER, true);
DoScriptText(EMOTE_LIGHT_OF_DAWN14, me);
Talk(EMOTE_LIGHT_OF_DAWN14);
SetHoldState(true);
break;
}
@@ -645,7 +630,7 @@ public:
break;
case 2:
DoScriptText(SAY_LIGHT_OF_DAWN04, me);
Talk(SAY_LIGHT_OF_DAWN04);
if (Creature* pKoltira = GetClosestCreatureWithEntry(me, NPC_KOLTIRA_DEATHWEAVER, 50.0f))
uiKoltiraGUID = pKoltira->GetGUID();
if (Creature* pOrbaz = GetClosestCreatureWithEntry(me, NPC_ORBAZ_BLOODBANE, 50.0f))
@@ -656,7 +641,7 @@ public:
break;
case 3: // rise
DoScriptText(SAY_LIGHT_OF_DAWN05, me);
Talk(SAY_LIGHT_OF_DAWN05);
JumpToNextStep(3000);
break;
@@ -734,7 +719,7 @@ public:
break;
case 8: // summon announce
DoScriptText(SAY_LIGHT_OF_DAWN06, me);
Talk(SAY_LIGHT_OF_DAWN06);
JumpToNextStep(5000);
break;
@@ -773,34 +758,34 @@ public:
// ******* After battle *****************************************************************
case 11: // Tirion starts to speak
if (Creature* temp = Unit::GetCreature(*me, uiTirionGUID))
DoScriptText(SAY_LIGHT_OF_DAWN28, temp);
temp->AI()->Talk(SAY_LIGHT_OF_DAWN28);
JumpToNextStep(21000);
break;
case 12:
if (Creature* temp = Unit::GetCreature(*me, uiTirionGUID))
DoScriptText(SAY_LIGHT_OF_DAWN29, temp);
temp->AI()->Talk(SAY_LIGHT_OF_DAWN29);
JumpToNextStep(13000);
break;
case 13:
if (Creature* temp = Unit::GetCreature(*me, uiTirionGUID))
DoScriptText(SAY_LIGHT_OF_DAWN30, temp);
temp->AI()->Talk(SAY_LIGHT_OF_DAWN30);
JumpToNextStep(13000);
break;
case 14:
me->SetStandState(UNIT_STAND_STATE_STAND);
DoScriptText(SAY_LIGHT_OF_DAWN31, me);
Talk(SAY_LIGHT_OF_DAWN31);
JumpToNextStep(7000);
break;
case 15: // summon gate
if (Unit* temp = me->SummonCreature(NPC_HIGHLORD_ALEXANDROS_MOGRAINE, LightofDawnLoc[22].x, LightofDawnLoc[22].y, LightofDawnLoc[22].z, LightofDawnLoc[22].o, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 300000))
if (Creature* temp = me->SummonCreature(NPC_HIGHLORD_ALEXANDROS_MOGRAINE, LightofDawnLoc[22].x, LightofDawnLoc[22].y, LightofDawnLoc[22].z, LightofDawnLoc[22].o, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 300000))
{
temp->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
temp->CastSpell(temp, SPELL_ALEXANDROS_MOGRAINE_SPAWN, true);
DoScriptText(EMOTE_LIGHT_OF_DAWN06, temp);
temp->AI()->Talk(EMOTE_LIGHT_OF_DAWN06);
uiAlexandrosGUID = temp->GetGUID();
}
JumpToNextStep(4000);
@@ -811,7 +796,7 @@ public:
{
temp->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
temp->GetMotionMaster()->MovePoint(0, LightofDawnLoc[23].x, LightofDawnLoc[23].y, LightofDawnLoc[23].z);
DoScriptText(SAY_LIGHT_OF_DAWN32, temp);
temp->AI()->Talk(SAY_LIGHT_OF_DAWN32);
}
SetHoldState(false); // makes darion turns back
JumpToNextStep(5000);
@@ -819,14 +804,14 @@ public:
case 17:
me->SetStandState(UNIT_STAND_STATE_KNEEL);
DoScriptText(SAY_LIGHT_OF_DAWN34, me);
Talk(SAY_LIGHT_OF_DAWN34);
JumpToNextStep(5000);
break;
case 18: // Darion's spirit out
if (Unit* temp = me->SummonCreature(NPC_DARION_MOGRAINE, LightofDawnLoc[24].x, LightofDawnLoc[24].y, LightofDawnLoc[24].z, LightofDawnLoc[24].o, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 300000))
if (Creature* temp = me->SummonCreature(NPC_DARION_MOGRAINE, LightofDawnLoc[24].x, LightofDawnLoc[24].y, LightofDawnLoc[24].z, LightofDawnLoc[24].o, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 300000))
{
DoScriptText(SAY_LIGHT_OF_DAWN35, temp);
temp->AI()->Talk(SAY_LIGHT_OF_DAWN35);
temp->SetWalk(false);
uiDarionGUID = temp->GetGUID();
}
@@ -836,7 +821,7 @@ public:
case 19: // runs to father
if (Creature* temp = Unit::GetCreature(*me, uiDarionGUID))
{
DoScriptText(EMOTE_LIGHT_OF_DAWN07, temp);
temp->AI()->Talk(EMOTE_LIGHT_OF_DAWN07);
temp->GetMotionMaster()->MovePoint(0, LightofDawnLoc[25].x, LightofDawnLoc[25].y, LightofDawnLoc[25].z);
}
JumpToNextStep(4000);
@@ -844,31 +829,31 @@ public:
case 20:
if (Creature* temp = Unit::GetCreature(*me, uiDarionGUID))
DoScriptText(SAY_LIGHT_OF_DAWN36, temp);
temp->AI()->Talk(SAY_LIGHT_OF_DAWN36);
JumpToNextStep(4000);
break;
case 21:
if (Creature* temp = Unit::GetCreature(*me, uiDarionGUID))
DoScriptText(EMOTE_LIGHT_OF_DAWN08, temp);
temp->AI()->Talk(EMOTE_LIGHT_OF_DAWN08);
JumpToNextStep(4000);
break;
case 22:
if (Creature* temp = Unit::GetCreature(*me, uiAlexandrosGUID))
DoScriptText(SAY_LIGHT_OF_DAWN37, temp);
temp->AI()->Talk(SAY_LIGHT_OF_DAWN37);
JumpToNextStep(8000);
break;
case 23:
if (Creature* temp = Unit::GetCreature(*me, uiDarionGUID))
DoScriptText(SAY_LIGHT_OF_DAWN38, temp);
temp->AI()->Talk(SAY_LIGHT_OF_DAWN38);
JumpToNextStep(8000);
break;
case 24:
if (Creature* temp = Unit::GetCreature(*me, uiAlexandrosGUID))
DoScriptText(SAY_LIGHT_OF_DAWN39, temp);
temp->AI()->Talk(SAY_LIGHT_OF_DAWN39);
if (Creature* temp = Unit::GetCreature(*me, uiTirionGUID)) // Tirion moves forward here
temp->GetMotionMaster()->MovePoint(0, LightofDawnLoc[1].x, LightofDawnLoc[1].y, LightofDawnLoc[1].z);
@@ -878,13 +863,13 @@ public:
case 25:
if (Creature* temp = Unit::GetCreature(*me, uiDarionGUID))
DoScriptText(SAY_LIGHT_OF_DAWN40, temp);
temp->AI()->Talk(SAY_LIGHT_OF_DAWN40);
JumpToNextStep(11000);
break;
case 26:
if (Creature* temp = Unit::GetCreature(*me, uiAlexandrosGUID))
DoScriptText(SAY_LIGHT_OF_DAWN41, temp);
temp->AI()->Talk(SAY_LIGHT_OF_DAWN41);
JumpToNextStep(5000);
break;
@@ -896,14 +881,14 @@ public:
case 28:
if (Creature* temp = Unit::GetCreature(*me, uiAlexandrosGUID))
DoScriptText(SAY_LIGHT_OF_DAWN42, temp);
temp->AI()->Talk(SAY_LIGHT_OF_DAWN42);
JumpToNextStep(6000);
break;
case 29: // lich king spawns
if (Unit* temp = me->SummonCreature(NPC_THE_LICH_KING, LightofDawnLoc[26].x, LightofDawnLoc[26].y, LightofDawnLoc[26].z, LightofDawnLoc[26].o, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 300000))
if (Creature* temp = me->SummonCreature(NPC_THE_LICH_KING, LightofDawnLoc[26].x, LightofDawnLoc[26].y, LightofDawnLoc[26].z, LightofDawnLoc[26].o, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 300000))
{
DoScriptText(SAY_LIGHT_OF_DAWN43, temp);
temp->AI()->Talk(SAY_LIGHT_OF_DAWN43);
uiLichKingGUID = temp->GetGUID();
if (Unit* pAlex = Unit::GetCreature(*me, uiAlexandrosGUID))
temp->CastSpell(pAlex, SPELL_SOUL_FEAST_ALEX, false);
@@ -914,21 +899,21 @@ public:
case 30:
if (Creature* temp = Unit::GetCreature(*me, uiAlexandrosGUID)) // just hide him
{
DoScriptText(EMOTE_LIGHT_OF_DAWN09, temp);
temp->AI()->Talk(EMOTE_LIGHT_OF_DAWN09);
temp->SetVisible(false);
}
if (Creature* temp = Unit::GetCreature(*me, uiLichKingGUID))
{
temp->InterruptNonMeleeSpells(false);
DoScriptText(SAY_LIGHT_OF_DAWN45, temp);
temp->AI()->Talk(SAY_LIGHT_OF_DAWN45);
}
JumpToNextStep(3000);
break;
case 31:
me->SetStandState(UNIT_STAND_STATE_STAND);
DoScriptText(EMOTE_LIGHT_OF_DAWN10, me);
DoScriptText(SAY_LIGHT_OF_DAWN44, me);
Talk(EMOTE_LIGHT_OF_DAWN10);
Talk(SAY_LIGHT_OF_DAWN44);
JumpToNextStep(3000);
break;
@@ -952,7 +937,7 @@ public:
if (Creature* temp = Unit::GetCreature(*me, uiLichKingGUID))
{
temp->HandleEmoteCommand(EMOTE_ONESHOT_KICK);
DoScriptText(SAY_LIGHT_OF_DAWN46, temp);
temp->AI()->Talk(SAY_LIGHT_OF_DAWN46);
}
me->SetSpeed(MOVE_RUN, 6.0f);
me->SetStandState(UNIT_STAND_STATE_DEAD);
@@ -967,33 +952,33 @@ public:
case 38:
if (Creature* temp = Unit::GetCreature(*me, uiTirionGUID))
DoScriptText(SAY_LIGHT_OF_DAWN47, temp);
temp->AI()->Talk(SAY_LIGHT_OF_DAWN47);
JumpToNextStep(8000);
break;
case 39:
if (Creature* temp = Unit::GetCreature(*me, uiLichKingGUID))
DoScriptText(SAY_LIGHT_OF_DAWN48, temp);
temp->AI()->Talk(SAY_LIGHT_OF_DAWN48);
JumpToNextStep(15000);
break;
case 40:
if (Creature* temp = Unit::GetCreature(*me, uiLichKingGUID))
DoScriptText(SAY_LIGHT_OF_DAWN49, temp);
temp->AI()->Talk(SAY_LIGHT_OF_DAWN49);
JumpToNextStep(17000);
break;
case 41: // Lich king - Apocalypse
if (Creature* temp = Unit::GetCreature(*me, uiLichKingGUID))
{
DoScriptText(EMOTE_LIGHT_OF_DAWN11, temp);
DoScriptText(SAY_LIGHT_OF_DAWN51, temp);
if (Unit* pTirion = Unit::GetCreature(*me, uiTirionGUID))
temp->AI()->Talk(EMOTE_LIGHT_OF_DAWN11);
temp->AI()->Talk(SAY_LIGHT_OF_DAWN51);
if (Creature* pTirion = Unit::GetCreature(*me, uiTirionGUID))
{
pTirion->SetStandState(UNIT_STAND_STATE_KNEEL);
//temp->CastSpell(pTirion, SPELL_APOCALYPSE, false); // not working
temp->CastSpell(pTirion, SPELL_SOUL_FEAST_TIRION, false);
DoScriptText(EMOTE_LIGHT_OF_DAWN12, pTirion);
pTirion->AI()->Talk(EMOTE_LIGHT_OF_DAWN12);
}
}
JumpToNextStep(2000);
@@ -1035,7 +1020,7 @@ public:
temp->SetWalk(false);
temp->SetSpeed(MOVE_RUN, 2.0f);
temp->GetMotionMaster()->MovePoint(0, fLichPositionX, fLichPositionY, fLichPositionZ);
DoScriptText(SAY_LIGHT_OF_DAWN50, temp);
temp->AI()->Talk(SAY_LIGHT_OF_DAWN50);
}
if (Creature* temp = Unit::GetCreature(*me, uiKorfaxGUID))
{
@@ -1058,7 +1043,7 @@ public:
case 43: // They all got kicked
if (Creature* temp = Unit::GetCreature(*me, uiLichKingGUID))
DoScriptText(EMOTE_LIGHT_OF_DAWN13, temp);
temp->AI()->Talk(EMOTE_LIGHT_OF_DAWN13);
if (Creature* temp = Unit::GetCreature(*me, uiMaxwellGUID))
{
@@ -1107,7 +1092,7 @@ public:
break;
case 45:
DoScriptText(SAY_LIGHT_OF_DAWN52, me);
Talk(SAY_LIGHT_OF_DAWN52);
JumpToNextStep(5000);
break;
@@ -1115,14 +1100,14 @@ public:
me->SetSpeed(MOVE_RUN, 1.0f);
me->SetWalk(true);
me->SetStandState(UNIT_STAND_STATE_STAND);
DoScriptText(SAY_LIGHT_OF_DAWN53, me);
Talk(SAY_LIGHT_OF_DAWN53);
SetHoldState(false); // Darion throws sword
JumpToNextStep(7000);
break;
case 47: // Ashbringer rebirth
me->SetStandState(UNIT_STAND_STATE_KNEEL);
DoScriptText(EMOTE_LIGHT_OF_DAWN15, me);
Talk(EMOTE_LIGHT_OF_DAWN15);
if (Creature* temp = Unit::GetCreature(*me, uiTirionGUID))
{
temp->SetStandState(UNIT_STAND_STATE_STAND);
@@ -1150,26 +1135,26 @@ public:
case 49:
if (Creature* temp = Unit::GetCreature(*me, uiTirionGUID))
DoScriptText(SAY_LIGHT_OF_DAWN54, temp);
Talk(SAY_LIGHT_OF_DAWN54);
JumpToNextStep(4000);
break;
case 50:
if (Creature* temp = Unit::GetCreature(*me, uiLichKingGUID))
DoScriptText(SAY_LIGHT_OF_DAWN55, temp);
temp->AI()->Talk(SAY_LIGHT_OF_DAWN55);
JumpToNextStep(5000);
break;
case 51:
if (Creature* temp = Unit::GetCreature(*me, uiTirionGUID))
DoScriptText(SAY_LIGHT_OF_DAWN56, temp);
temp->AI()->Talk(SAY_LIGHT_OF_DAWN56);
JumpToNextStep(1000);
break;
case 52: // Tiron charges
if (Creature* temp = Unit::GetCreature(*me, uiTirionGUID))
{
DoScriptText(EMOTE_LIGHT_OF_DAWN16, temp);
temp->AI()->Talk(EMOTE_LIGHT_OF_DAWN16);
temp->CastSpell(temp, SPELL_TIRION_CHARGE, false); // jumping charge
temp->SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_STATE_READY2H);
temp->SetSpeed(MOVE_RUN, 3.0f); // workarounds, make Tirion still running
@@ -1183,7 +1168,7 @@ public:
case 53:
if (Creature* temp = Unit::GetCreature(*me, uiLichKingGUID))
DoScriptText(SAY_LIGHT_OF_DAWN57, temp);
temp->AI()->Talk(SAY_LIGHT_OF_DAWN57);
JumpToNextStep(1000);
break;
@@ -1211,13 +1196,13 @@ public:
case 57:
if (Creature* temp = Unit::GetCreature(*me, uiLichKingGUID))
DoScriptText(SAY_LIGHT_OF_DAWN58, temp);
temp->AI()->Talk(SAY_LIGHT_OF_DAWN58);
JumpToNextStep(10000);
break;
case 58:
if (Creature* temp = Unit::GetCreature(*me, uiLichKingGUID))
DoScriptText(SAY_LIGHT_OF_DAWN59, temp);
temp->AI()->Talk(SAY_LIGHT_OF_DAWN59);
JumpToNextStep(10000);
break;
@@ -1236,7 +1221,7 @@ public:
case 60:
if (Creature* temp = Unit::GetCreature(*me, uiLichKingGUID)) // Lich king disappears here
{
DoScriptText(EMOTE_LIGHT_OF_DAWN17, temp);
temp->AI()->Talk(EMOTE_LIGHT_OF_DAWN17);
temp->Kill(temp);
}
JumpToNextStep(10000);
@@ -1244,7 +1229,7 @@ public:
case 61:
if (Creature* temp = Unit::GetCreature(*me, uiTirionGUID))
DoScriptText(SAY_LIGHT_OF_DAWN60, temp);
temp->AI()->Talk(SAY_LIGHT_OF_DAWN60);
JumpToNextStep(3000);
break;
@@ -1261,50 +1246,50 @@ public:
if (Creature* temp = Unit::GetCreature(*me, uiTirionGUID))
{
temp->GetMotionMaster()->MovePoint(0, LightofDawnLoc[8].x, LightofDawnLoc[8].y, LightofDawnLoc[8].z);
DoScriptText(SAY_LIGHT_OF_DAWN61, temp);
temp->AI()->Talk(SAY_LIGHT_OF_DAWN61);
}
JumpToNextStep(15000);
break;
case 64:
if (Creature* temp = Unit::GetCreature(*me, uiTirionGUID))
DoScriptText(SAY_LIGHT_OF_DAWN62, temp);
temp->AI()->Talk(SAY_LIGHT_OF_DAWN62);
JumpToNextStep(7000);
break;
case 65:
if (Creature* temp = Unit::GetCreature(*me, uiTirionGUID))
DoScriptText(SAY_LIGHT_OF_DAWN63, temp);
temp->AI()->Talk(SAY_LIGHT_OF_DAWN63);
JumpToNextStep(10000);
break;
case 66:
if (Creature* temp = Unit::GetCreature(*me, uiTirionGUID))
DoScriptText(SAY_LIGHT_OF_DAWN64, temp);
temp->AI()->Talk(SAY_LIGHT_OF_DAWN64);
JumpToNextStep(11000);
break;
case 67:
if (Creature* temp = Unit::GetCreature(*me, uiTirionGUID))
DoScriptText(SAY_LIGHT_OF_DAWN65, temp);
temp->AI()->Talk(SAY_LIGHT_OF_DAWN65);
JumpToNextStep(10000);
break;
case 68:
if (Creature* temp = Unit::GetCreature(*me, uiTirionGUID))
DoScriptText(SAY_LIGHT_OF_DAWN66, temp);
temp->AI()->Talk(SAY_LIGHT_OF_DAWN66);
JumpToNextStep(8000);
break;
case 69:
if (Creature* temp = Unit::GetCreature(*me, uiTirionGUID))
DoScriptText(SAY_LIGHT_OF_DAWN67, temp);
temp->AI()->Talk(SAY_LIGHT_OF_DAWN67);
JumpToNextStep(10000);
break;
case 70:
me->SetStandState(UNIT_STAND_STATE_STAND);
DoScriptText(SAY_LIGHT_OF_DAWN68, me);
Talk(SAY_LIGHT_OF_DAWN68);
JumpToNextStep(10000);
break;
@@ -1382,12 +1367,7 @@ public:
if (uiFight_speech <= diff)
{
DoScriptText(RAND(SAY_LIGHT_OF_DAWN09, SAY_LIGHT_OF_DAWN10, SAY_LIGHT_OF_DAWN11,
SAY_LIGHT_OF_DAWN12, SAY_LIGHT_OF_DAWN13, SAY_LIGHT_OF_DAWN14,
SAY_LIGHT_OF_DAWN15, SAY_LIGHT_OF_DAWN16, SAY_LIGHT_OF_DAWN17,
SAY_LIGHT_OF_DAWN18, SAY_LIGHT_OF_DAWN19, SAY_LIGHT_OF_DAWN20,
SAY_LIGHT_OF_DAWN21, SAY_LIGHT_OF_DAWN22, SAY_LIGHT_OF_DAWN23,
SAY_LIGHT_OF_DAWN24), me);
Talk(SAY_LIGHT_OF_DAWN09);
uiFight_speech = urand(15000, 20000);
} else uiFight_speech -= diff;
@@ -1420,11 +1400,11 @@ public:
if (uiFight_duration <= diff + 5000)
{
if (!uiTirionGUID)
if (Unit* temp = me->SummonCreature(NPC_HIGHLORD_TIRION_FORDRING, LightofDawnLoc[0].x, LightofDawnLoc[0].y, LightofDawnLoc[0].z, 1.528f, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 600000))
if (Creature* temp = me->SummonCreature(NPC_HIGHLORD_TIRION_FORDRING, LightofDawnLoc[0].x, LightofDawnLoc[0].y, LightofDawnLoc[0].z, 1.528f, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 600000))
{
temp->setFaction(me->getFaction());
temp->SetUInt32Value(UNIT_VIRTUAL_ITEM_SLOT_ID + 0, uint32(EQUIP_UNEQUIP));
DoScriptText(SAY_LIGHT_OF_DAWN25, temp);
temp->AI()->Talk(SAY_LIGHT_OF_DAWN25);
uiTirionGUID = temp->GetGUID();
}
}
@@ -1501,7 +1481,7 @@ public:
}
if (Creature* temp = Unit::GetCreature(*me, uiOrbazGUID))
DoScriptText(EMOTE_LIGHT_OF_DAWN04, temp);
temp->AI()->Talk(EMOTE_LIGHT_OF_DAWN04);
if (Creature* temp = Unit::GetCreature(*me, uiThassarianGUID))
{
@@ -1516,7 +1496,7 @@ public:
}
if (Creature* temp = Unit::GetCreature(*me, uiTirionGUID))
DoScriptText(SAY_LIGHT_OF_DAWN26, temp);
temp->AI()->Talk(SAY_LIGHT_OF_DAWN26);
SetHoldState(false);