Core/NPC: Deathstalker Faerleia text translatable in the DB (#1070)

Deathstalker Faerleia text can now be translated in the DB
This commit is contained in:
Walter Pagani
2018-11-28 16:59:26 -03:00
committed by Barbz
parent d55c44c74d
commit 914013cd88
@@ -127,10 +127,12 @@ public:
## pyrewood_ambush ## pyrewood_ambush
#######*/ #######*/
#define QUEST_PYREWOOD_AMBUSH 452 enum PyrewoodAmbush
{
#define NPCSAY_INIT "Get ready, they'll be arriving any minute..." //not blizzlike QUEST_PYREWOOD_AMBUSH = 452,
#define NPCSAY_END "Thanks for your help!" //not blizzlike NPCSAY_INIT = 0,
NPCSAY_END = 1
};
static float PyrewoodSpawnPoints[3][4] = static float PyrewoodSpawnPoints[3][4] =
{ {
@@ -260,9 +262,15 @@ public:
switch (Phase) switch (Phase)
{ {
case 0: case 0:
if (WaitTimer == WAIT_SECS) if (WaitTimer == WAIT_SECS) {
me->MonsterSay(NPCSAY_INIT, LANG_UNIVERSAL, NULL); //no blizzlike if (PlayerGUID)
{
if (Player* player = ObjectAccessor::GetPlayer(*me, PlayerGUID))
{
me->AI()->Talk(NPCSAY_INIT, player);
}
}
}
if (WaitTimer <= diff) if (WaitTimer <= diff)
{ {
WaitTimer -= diff; WaitTimer -= diff;
@@ -291,7 +299,7 @@ public:
{ {
if (Player* player = ObjectAccessor::GetPlayer(*me, PlayerGUID)) if (Player* player = ObjectAccessor::GetPlayer(*me, PlayerGUID))
{ {
me->MonsterSay(NPCSAY_END, LANG_UNIVERSAL, NULL); //not blizzlike me->AI()->Talk(NPCSAY_END, player);
player->GroupEventHappens(QUEST_PYREWOOD_AMBUSH, me); player->GroupEventHappens(QUEST_PYREWOOD_AMBUSH, me);
} }
} }