refactor(Core/Unit): clean MonsterText methods (#6957)
This commit is contained in:
parent
3c42a7d72d
commit
bc82f36f1f
75 changed files with 750 additions and 672 deletions
|
|
@ -200,22 +200,22 @@ public:
|
|||
switch (quest)
|
||||
{
|
||||
case QUEST_BFV_FALLEN_HEROES:
|
||||
me->MonsterYell("$N has defeated the fallen heroes of Valhalas battles past. This is only a beginning, but it will suffice.", LANG_UNIVERSAL, ObjectAccessor::GetPlayer(*me, playerGUID));
|
||||
me->Yell("$N has defeated the fallen heroes of Valhalas battles past. This is only a beginning, but it will suffice.", LANG_UNIVERSAL, ObjectAccessor::GetPlayer(*me, playerGUID));
|
||||
break;
|
||||
case QUEST_BFV_DARK_MASTER:
|
||||
me->MonsterYell("Khit'rix the Dark Master has been defeated by $N and his band of companions. Let the next challenge be issued!", LANG_UNIVERSAL, ObjectAccessor::GetPlayer(*me, playerGUID));
|
||||
me->Yell("Khit'rix the Dark Master has been defeated by $N and his band of companions. Let the next challenge be issued!", LANG_UNIVERSAL, ObjectAccessor::GetPlayer(*me, playerGUID));
|
||||
break;
|
||||
case QUEST_BFV_SIGRID:
|
||||
me->MonsterYell("$N has defeated Sigrid Iceborn for a second time. Well, this time he did it with the help of his friends, but a win is a win!", LANG_UNIVERSAL, ObjectAccessor::GetPlayer(*me, playerGUID));
|
||||
me->Yell("$N has defeated Sigrid Iceborn for a second time. Well, this time he did it with the help of his friends, but a win is a win!", LANG_UNIVERSAL, ObjectAccessor::GetPlayer(*me, playerGUID));
|
||||
break;
|
||||
case QUEST_BFV_CARNAGE:
|
||||
me->MonsterYell("The horror known as Carnage is no more. Could it be that $N is truly worthy of battle in Valhalas? We shall see.", LANG_UNIVERSAL, ObjectAccessor::GetPlayer(*me, playerGUID));
|
||||
me->Yell("The horror known as Carnage is no more. Could it be that $N is truly worthy of battle in Valhalas? We shall see.", LANG_UNIVERSAL, ObjectAccessor::GetPlayer(*me, playerGUID));
|
||||
break;
|
||||
case QUEST_BFV_THANE:
|
||||
me->MonsterYell("Thane Banahogg the Deathblow has fallen to $N and his fighting companions. He has but one challenge ahead of him. Who will it be?", LANG_UNIVERSAL, ObjectAccessor::GetPlayer(*me, playerGUID));
|
||||
me->Yell("Thane Banahogg the Deathblow has fallen to $N and his fighting companions. He has but one challenge ahead of him. Who will it be?", LANG_UNIVERSAL, ObjectAccessor::GetPlayer(*me, playerGUID));
|
||||
break;
|
||||
case QUEST_BFV_FINAL:
|
||||
me->MonsterYell("The unthinkable has happened... $N has slain Prince Sandoval!", LANG_UNIVERSAL, ObjectAccessor::GetPlayer(*me, playerGUID));
|
||||
me->Yell("The unthinkable has happened... $N has slain Prince Sandoval!", LANG_UNIVERSAL, ObjectAccessor::GetPlayer(*me, playerGUID));
|
||||
break;
|
||||
}
|
||||
player->GroupEventHappens(quest, player);
|
||||
|
|
@ -250,27 +250,27 @@ public:
|
|||
{
|
||||
case QUEST_BFV_FALLEN_HEROES:
|
||||
events.ScheduleEvent(EVENT_VALHALAS_SECOND, 8000);
|
||||
me->MonsterYell("$N and comrades in arms have chosen to accept honorable combat within the sacred confines of Valhalas.", LANG_UNIVERSAL, ObjectAccessor::GetPlayer(*me, playerGUID));
|
||||
me->Yell("$N and comrades in arms have chosen to accept honorable combat within the sacred confines of Valhalas.", LANG_UNIVERSAL, ObjectAccessor::GetPlayer(*me, playerGUID));
|
||||
break;
|
||||
case QUEST_BFV_DARK_MASTER:
|
||||
events.ScheduleEvent(EVENT_VALHALAS_SECOND, 8000);
|
||||
me->MonsterYell("$N has accepted the challenge of Khit'rix the Dark Master. May the gods show mercy upon him for Khit'rix surely will not.", LANG_UNIVERSAL, ObjectAccessor::GetPlayer(*me, playerGUID));
|
||||
me->Yell("$N has accepted the challenge of Khit'rix the Dark Master. May the gods show mercy upon him for Khit'rix surely will not.", LANG_UNIVERSAL, ObjectAccessor::GetPlayer(*me, playerGUID));
|
||||
break;
|
||||
case QUEST_BFV_SIGRID:
|
||||
PrepareSummons();
|
||||
me->MonsterTextEmote("Circling Valhalas, Sigrid Iceborn approaches to seek her revenge!", nullptr, true);
|
||||
me->TextEmote("Circling Valhalas, Sigrid Iceborn approaches to seek her revenge!", nullptr, true);
|
||||
break;
|
||||
case QUEST_BFV_CARNAGE:
|
||||
events.ScheduleEvent(EVENT_VALHALAS_SECOND, 8000);
|
||||
me->MonsterYell("From the bowels of the Underhalls comes Carnage. Brave and foolish $N has accepted the challenge. $N and his group stand ready to face the monstrosity.", LANG_UNIVERSAL, ObjectAccessor::GetPlayer(*me, playerGUID));
|
||||
me->Yell("From the bowels of the Underhalls comes Carnage. Brave and foolish $N has accepted the challenge. $N and his group stand ready to face the monstrosity.", LANG_UNIVERSAL, ObjectAccessor::GetPlayer(*me, playerGUID));
|
||||
break;
|
||||
case QUEST_BFV_THANE:
|
||||
events.ScheduleEvent(EVENT_VALHALAS_SECOND, 8000);
|
||||
me->MonsterYell("Thane Banahogg returns to Valhalas for the first time in ages to prove that the vrykul are the only beings worthy to fight within its sacred ring. Will $N prove him wrong?", LANG_UNIVERSAL, ObjectAccessor::GetPlayer(*me, playerGUID));
|
||||
me->Yell("Thane Banahogg returns to Valhalas for the first time in ages to prove that the vrykul are the only beings worthy to fight within its sacred ring. Will $N prove him wrong?", LANG_UNIVERSAL, ObjectAccessor::GetPlayer(*me, playerGUID));
|
||||
break;
|
||||
case QUEST_BFV_FINAL:
|
||||
events.ScheduleEvent(EVENT_VALHALAS_SECOND, 8000);
|
||||
me->MonsterYell("From the depths of Icecrown Citadel, one of the Lich King's chosen comes to put an end to the existence of $N and his friends.", LANG_UNIVERSAL, ObjectAccessor::GetPlayer(*me, playerGUID));
|
||||
me->Yell("From the depths of Icecrown Citadel, one of the Lich King's chosen comes to put an end to the existence of $N and his friends.", LANG_UNIVERSAL, ObjectAccessor::GetPlayer(*me, playerGUID));
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
@ -283,21 +283,21 @@ public:
|
|||
switch (currentQuest)
|
||||
{
|
||||
case QUEST_BFV_FALLEN_HEROES:
|
||||
me->MonsterYell("There can only be one outcome to such a battle: death for one side or the other. Let $n prove himself upon the bones of these outsiders who have fallen before!", LANG_UNIVERSAL, ObjectAccessor::GetPlayer(*me, playerGUID));
|
||||
me->MonsterTextEmote("The fallen heroes of Valhalas emerge from the ground to do battle once more!", nullptr, true);
|
||||
me->Yell("There can only be one outcome to such a battle: death for one side or the other. Let $n prove himself upon the bones of these outsiders who have fallen before!", LANG_UNIVERSAL, ObjectAccessor::GetPlayer(*me, playerGUID));
|
||||
me->TextEmote("The fallen heroes of Valhalas emerge from the ground to do battle once more!", nullptr, true);
|
||||
break;
|
||||
case QUEST_BFV_DARK_MASTER:
|
||||
me->MonsterTextEmote("Khit'rix the Dark Master skitters into Valhalas from the southeast!", nullptr, true);
|
||||
me->TextEmote("Khit'rix the Dark Master skitters into Valhalas from the southeast!", nullptr, true);
|
||||
break;
|
||||
case QUEST_BFV_CARNAGE:
|
||||
me->MonsterTextEmote("Lumbering in from the south, the smell of Carnage precedes him!", nullptr, true);
|
||||
me->TextEmote("Lumbering in from the south, the smell of Carnage precedes him!", nullptr, true);
|
||||
break;
|
||||
case QUEST_BFV_THANE:
|
||||
me->MonsterTextEmote("Thane Banahogg appears upon the overlook to the southeast!", nullptr, true);
|
||||
me->TextEmote("Thane Banahogg appears upon the overlook to the southeast!", nullptr, true);
|
||||
break;
|
||||
case QUEST_BFV_FINAL:
|
||||
me->MonsterYell("Warriors of Jotunheim, I present to you, Blood Prince Sandoval!", LANG_UNIVERSAL, nullptr);
|
||||
me->MonsterTextEmote("Without warning, Prince Sandoval magically appears within Valhalas!", nullptr, true);
|
||||
me->Yell("Warriors of Jotunheim, I present to you, Blood Prince Sandoval!", LANG_UNIVERSAL);
|
||||
me->TextEmote("Without warning, Prince Sandoval magically appears within Valhalas!", nullptr, true);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
@ -306,13 +306,13 @@ public:
|
|||
}
|
||||
case EVENT_VALHALAS_THIRD:
|
||||
{
|
||||
me->MonsterYell("In defeating him, he and his fighting companions have proven themselves worthy of battle in this most sacred place of vrykul honor.", LANG_UNIVERSAL, ObjectAccessor::GetPlayer(*me, playerGUID));
|
||||
me->Yell("In defeating him, he and his fighting companions have proven themselves worthy of battle in this most sacred place of vrykul honor.", LANG_UNIVERSAL, ObjectAccessor::GetPlayer(*me, playerGUID));
|
||||
events.ScheduleEvent(EVENT_VALHALAS_THIRD + 2, 7000);
|
||||
break;
|
||||
}
|
||||
case EVENT_VALHALAS_THIRD+2:
|
||||
{
|
||||
me->MonsterYell("ALL HAIL $N, CHAMPION OF VALHALAS! ", LANG_UNIVERSAL, ObjectAccessor::GetPlayer(*me, playerGUID2));
|
||||
me->Yell("ALL HAIL $N, CHAMPION OF VALHALAS! ", LANG_UNIVERSAL, ObjectAccessor::GetPlayer(*me, playerGUID2));
|
||||
break;
|
||||
}
|
||||
case EVENT_VALHALAS_CHECK_PLAYER:
|
||||
|
|
@ -347,22 +347,22 @@ public:
|
|||
switch (quest->GetQuestId())
|
||||
{
|
||||
case QUEST_BFV_FALLEN_HEROES:
|
||||
creature->MonsterSay("Valhalas is yours to win or die in, $N. But whatever you do, stay within the bounds of the arena. To flee is to lose and be dishonored.", LANG_UNIVERSAL, player);
|
||||
creature->Say("Valhalas is yours to win or die in, $N. But whatever you do, stay within the bounds of the arena. To flee is to lose and be dishonored.", LANG_UNIVERSAL, player);
|
||||
break;
|
||||
case QUEST_BFV_DARK_MASTER:
|
||||
creature->MonsterSay("Prepare yourself. Khit'rix will be entering Valhalas from the southeast. Remember, do not leave the ring or you will lose the battle.", LANG_UNIVERSAL, player);
|
||||
creature->Say("Prepare yourself. Khit'rix will be entering Valhalas from the southeast. Remember, do not leave the ring or you will lose the battle.", LANG_UNIVERSAL, player);
|
||||
break;
|
||||
case QUEST_BFV_SIGRID:
|
||||
creature->MonsterYell("Sigrid Iceborn has returned to the heights of Jotunheim to prove herself against $N. When last they met, $N bester her in personal combat. Let us see the outcome of this match.", LANG_UNIVERSAL, player);
|
||||
creature->Yell("Sigrid Iceborn has returned to the heights of Jotunheim to prove herself against $N. When last they met, $N bester her in personal combat. Let us see the outcome of this match.", LANG_UNIVERSAL, player);
|
||||
break;
|
||||
case QUEST_BFV_CARNAGE:
|
||||
creature->MonsterSay("Carnage is coming! Remember, no matter what you do, do NOT leave the battle ring or I will disqualify you and your group.", LANG_UNIVERSAL, 0);
|
||||
creature->Say("Carnage is coming! Remember, no matter what you do, do NOT leave the battle ring or I will disqualify you and your group.", LANG_UNIVERSAL);
|
||||
break;
|
||||
case QUEST_BFV_THANE:
|
||||
creature->MonsterSay("Look to the southeast and you will see the thane upon the platform near Gjonner the Merciless when he shows himself. Let him come down. Stay within the ring of Valhalas.", LANG_UNIVERSAL, 0);
|
||||
creature->Say("Look to the southeast and you will see the thane upon the platform near Gjonner the Merciless when he shows himself. Let him come down. Stay within the ring of Valhalas.", LANG_UNIVERSAL);
|
||||
break;
|
||||
case QUEST_BFV_FINAL:
|
||||
creature->MonsterSay("It's too late to run now. Do not leave the ring. Die bravely, $N!", LANG_UNIVERSAL, 0);
|
||||
creature->Say("It's too late to run now. Do not leave the ring. Die bravely, $N!", LANG_UNIVERSAL);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
@ -1323,7 +1323,7 @@ public:
|
|||
if (Unit* passenger = kit->GetPassenger(SEAT_ENGINEERING))
|
||||
if (init && !passenger->HasAura(SPELL_BURNING))
|
||||
{
|
||||
me->MonsterTextEmote("Your Vehicle is burning!", GetSummoner(), true);
|
||||
me->TextEmote("Your Vehicle is burning!", GetSummoner(), true);
|
||||
passenger->AddAura(SPELL_BURNING, passenger);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue