Fix some creature text runtime errors
This commit is contained in:
1 parent
1c59bbd130
commit
e9d7b53e6d
4 files changed
+54
-13
No files matched your search
@@ -371,7 +371,7 @@ public:
|
||||
creature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_PC);
|
||||
creature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_UNK_15);
|
||||
|
||||
sCreatureTextMgr->SendChat(creature, SAY_EVENT_ATTACK, 0, CHAT_MSG_ADDON, LANG_ADDON, TEXT_RANGE_NORMAL, 0, TEAM_OTHER, false, player);
|
||||
sCreatureTextMgr->SendChat(creature, SAY_DUEL, 0, CHAT_MSG_ADDON, LANG_ADDON, TEXT_RANGE_NORMAL, 0, TEAM_OTHER, false, player);
|
||||
|
||||
player->CastSpell(creature, SPELL_DUEL, false);
|
||||
player->CastSpell(player, SPELL_DUEL_FLAG, true);
|
||||
|
||||
@@ -98,34 +98,32 @@ public:
|
||||
npc_shadowfang_prisonerAI(Creature* creature) : npc_escortAI(creature)
|
||||
{
|
||||
instance = creature->GetInstanceScript();
|
||||
uiNpcEntry = creature->GetEntry();
|
||||
}
|
||||
|
||||
InstanceScript* instance;
|
||||
uint32 uiNpcEntry;
|
||||
|
||||
void WaypointReached(uint32 waypointId)
|
||||
{
|
||||
switch (waypointId)
|
||||
{
|
||||
case 0:
|
||||
if (uiNpcEntry == NPC_ASH)
|
||||
if (me->GetEntry() == NPC_ASH)
|
||||
Talk(SAY_FREE_AS);
|
||||
else
|
||||
Talk(SAY_FREE_AD);
|
||||
break;
|
||||
case 10:
|
||||
if (uiNpcEntry == NPC_ASH)
|
||||
if (me->GetEntry() == NPC_ASH)
|
||||
Talk(SAY_OPEN_DOOR_AS);
|
||||
else
|
||||
Talk(SAY_OPEN_DOOR_AD);
|
||||
break;
|
||||
case 11:
|
||||
if (uiNpcEntry == NPC_ASH)
|
||||
if (me->GetEntry() == NPC_ASH)
|
||||
DoCast(me, SPELL_UNLOCK);
|
||||
break;
|
||||
case 12:
|
||||
if (uiNpcEntry == NPC_ASH)
|
||||
if (me->GetEntry() == NPC_ASH)
|
||||
Talk(SAY_POST_DOOR_AS);
|
||||
else
|
||||
Talk(SAY_POST1_DOOR_AD);
|
||||
@@ -134,7 +132,7 @@ public:
|
||||
instance->SetData(TYPE_FREE_NPC, DONE);
|
||||
break;
|
||||
case 13:
|
||||
if (uiNpcEntry != NPC_ASH)
|
||||
if (me->GetEntry() != NPC_ASH)
|
||||
Talk(SAY_POST2_DOOR_AD);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -30,13 +30,12 @@ enum Yells
|
||||
{
|
||||
//Yells Ingvar
|
||||
YELL_AGGRO_1 = 0,
|
||||
YELL_AGGRO_2 = 1,
|
||||
|
||||
YELL_KILL_1 = 1,
|
||||
YELL_DEAD_1 = 2,
|
||||
YELL_DEAD_2 = 3,
|
||||
|
||||
YELL_KILL_1 = 4,
|
||||
YELL_KILL_2 = 5,
|
||||
YELL_AGGRO_2 = 0,
|
||||
YELL_KILL_2 = 1,
|
||||
YELL_DEAD_2 = 2
|
||||
};
|
||||
|
||||
enum Creatures
|
||||
|
||||
Reference in new issue
Block a user