diff options
author | Malcrom <malcromdev@gmail.com> | 2023-12-09 19:25:40 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-10 00:25:40 +0100 |
commit | 624dfafeb2458922bdad6f3764002b96c2c5ff5d (patch) | |
tree | 563001392f1c01b6f5c6b6d80acad60b5704e88c /src | |
parent | e8f98d8d84402754520e5266229efc94c925e345 (diff) |
Scripts/ExilesReach: Fix some cosmetic issues (#29486)
* instantly update NPCs for Emergency First Aid after healing them to instantly make them stand
* fixed actor guid and conditions for conversation of Finding the Lost Expedition
* fixed issue of Won'za/Alaria not laying injured after turning Cooking Meat quest in
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/ExilesReach/zone_exiles_reach.cpp | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/src/server/scripts/ExilesReach/zone_exiles_reach.cpp b/src/server/scripts/ExilesReach/zone_exiles_reach.cpp index 1c56bbe29b5..9f1083c9cea 100644 --- a/src/server/scripts/ExilesReach/zone_exiles_reach.cpp +++ b/src/server/scripts/ExilesReach/zone_exiles_reach.cpp @@ -1418,8 +1418,8 @@ struct npc_alliance_survivors_beach_laying : public ScriptedAI if (Player* player = caster->ToPlayer()) { player->KilledMonsterCredit(me->GetEntry()); - Conversation::CreateConversation(ConversationId, player, *player, player->GetGUID(), nullptr); + player->UpdateVisibilityForPlayer(); // Needed to make survivor stand instantly } } }; @@ -1729,15 +1729,9 @@ CreatureAI* AustinBeachStandingAISelector(Creature* creature) enum LostExpeditionFollowerData { - ACTOR_ID_EMPTY = 0, ACTOR_ID_ALLIANCE_SURVIVOR = 69830, ACTOR_ID_HORDE_SURVIVOR = 76283, - ACTOR_INDEX_SURVIVOR_ZERO = 0, - ACTOR_INDEX_SURVIVOR_ONE, - ACTOR_INDEX_SURVIVOR_TWO, - ACTOR_INDEX_SURVIVOR_THREE, - AREA_ABANDONED_CAMP = 10452, CONVERSATION_LINE_ESCORT_ALLIANCE_SURVIVOR = 12044, @@ -1787,7 +1781,7 @@ struct npc_garrick_summoned_beach : public ScriptedAI if (Player* player = caster->ToPlayer()) { Conversation* conversation = Conversation::CreateConversation(CONVERSATION_LINE_ESCORT_SURVIVOR_CAMP, player, *player, _playerGUID, nullptr, false); - conversation->AddActor(ACTOR_ID_ALLIANCE_SURVIVOR, ACTOR_INDEX_SURVIVOR_ONE, me->GetGUID()); + conversation->AddActor(ACTOR_ID_ALLIANCE_SURVIVOR, 1, me->GetGUID()); conversation->Start(); me->GetMotionMaster()->Remove(FOLLOW_MOTION_TYPE); @@ -1833,7 +1827,7 @@ struct npc_garrick_summoned_beach : public ScriptedAI else { Conversation* conversation = Conversation::CreateConversation(CONVERSATION_LINE_ESCORT_ALLIANCE_SURVIVOR, player, *player, _playerGUID, nullptr, false); - conversation->AddActor(ACTOR_ID_ALLIANCE_SURVIVOR, ACTOR_INDEX_SURVIVOR_ONE, me->GetGUID()); + conversation->AddActor(ACTOR_ID_ALLIANCE_SURVIVOR, 1, me->GetGUID()); conversation->Start(); _events.ScheduleEvent(EVENT_FOLLOW_PLAYER, 2s); @@ -1884,7 +1878,7 @@ struct npc_grimaxe_summoned_beach : public ScriptedAI if (Player* player = caster->ToPlayer()) { Conversation* conversation = Conversation::CreateConversation(CONVERSATION_LINE_ESCORT_SURVIVOR_CAMP, player, *player, _playerGUID, nullptr, false); - conversation->AddActor(ACTOR_ID_HORDE_SURVIVOR, ACTOR_INDEX_SURVIVOR_THREE, me->GetGUID()); + conversation->AddActor(ACTOR_ID_HORDE_SURVIVOR, 3, me->GetGUID()); conversation->Start(); me->GetMotionMaster()->Remove(FOLLOW_MOTION_TYPE); @@ -1930,7 +1924,7 @@ struct npc_grimaxe_summoned_beach : public ScriptedAI else { Conversation* conversation = Conversation::CreateConversation(CONVERSATION_LINE_ESCORT_HORDE_SURVIVOR, player, *player, _playerGUID, nullptr, false); - conversation->AddActor(ACTOR_ID_HORDE_SURVIVOR, ACTOR_INDEX_SURVIVOR_TWO, me->GetGUID()); + conversation->AddActor(ACTOR_ID_HORDE_SURVIVOR, 2, me->GetGUID()); conversation->Start(); _events.ScheduleEvent(EVENT_FOLLOW_PLAYER, 2s); @@ -2106,7 +2100,8 @@ public: if (!injured) break; - injured->SummonPersonalClone(InjuredNpcPositionAbandonedCamp, TEMPSUMMON_TIMED_DESPAWN, 2s, 0, 0, player); + Creature* injuredTemp = injured->SummonPersonalClone(InjuredNpcPositionAbandonedCamp, TEMPSUMMON_TIMED_DESPAWN, 2s, 0, 0, player); + injuredTemp->SetAIAnimKitId(ANIMATION_KIT_INJURED); break; } default: |