exiles reach
This commit is contained in:
@@ -141,10 +141,10 @@ struct npc_exiles_reach_abandoned_camp_166854_156607 : public ScriptedAI
|
||||
// We got ambushed... by da quilboar...
|
||||
// The quilboar... ambushed us...
|
||||
|
||||
//me->AddDelayedEvent(5000, [this, player]() // time_delay
|
||||
// {
|
||||
// me->AI()->Talk(4, player); // Eat first. I won't let you starve to death.
|
||||
// });
|
||||
me->AddDelayedEvent(5000, [this, player]() // time_delay
|
||||
{
|
||||
me->AI()->Talk(4, player); // Eat first. I won't let you starve to death.
|
||||
});
|
||||
|
||||
talked = true;
|
||||
}
|
||||
@@ -157,10 +157,10 @@ struct npc_exiles_reach_abandoned_camp_166854_156607 : public ScriptedAI
|
||||
breka->AI()->Talk(3, player);
|
||||
// Won'sa!
|
||||
|
||||
//me->AddDelayedEvent(3000, [this, player]() // time_delay
|
||||
// {
|
||||
// me->AI()->Talk(2, player); // So... hungry...
|
||||
// });
|
||||
me->AddDelayedEvent(3000, [this, player]() // time_delay
|
||||
{
|
||||
me->AI()->Talk(2, player); // So... hungry...
|
||||
});
|
||||
|
||||
breka->GetMotionMaster()->MovePoint(0, -249.05f, -2492.35f, 17.957f, true);
|
||||
metBrekaOrGarrick = true;
|
||||
@@ -178,7 +178,7 @@ struct npc_exiles_reach_abandoned_camp_166854_156607 : public ScriptedAI
|
||||
|
||||
}
|
||||
|
||||
void OnQuestReward(Player* player, Quest const* quest, LootItemType type, uint32 /*opt*/) override
|
||||
void OnQuestReward(Player* player, Quest const* quest, LootItemType /*type*/, uint32 /*opt*/) override
|
||||
{
|
||||
if (quest->GetQuestId() == QUEST_H_COOKING_MEAT && player->GetItemByEntry(ITEM_COOKED_MEAT))
|
||||
player->DestroyItemCount(ITEM_COOKED_MEAT, player->GetItemCount(ITEM_COOKED_MEAT), true, false);
|
||||
@@ -222,30 +222,30 @@ struct npc_exiles_reach_abandoned_camp_166906_156651 : public ScriptedAI
|
||||
{
|
||||
wonsa->AI()->Talk(0, player); // Shuja said... you'd be comin'...
|
||||
|
||||
//me->AddDelayedEvent(5000, [this, player]() // time_delay
|
||||
// {
|
||||
// me->AI()->Talk(0, player); // She's my daughter. Nothing could keep me from her.
|
||||
// player->GetScheduler().Schedule(6s, [this, player](TaskContext context)
|
||||
// {
|
||||
// me->AI()->Talk(1, player); // And as a soldier of the Horde, she knows we leave no one behind.
|
||||
// }); });
|
||||
me->AddDelayedEvent(5000, [this, player]() // time_delay
|
||||
{
|
||||
me->AI()->Talk(0, player); // She's my daughter. Nothing could keep me from her.
|
||||
player->GetScheduler().Schedule(6s, [this, player](TaskContext /*context*/)
|
||||
{
|
||||
me->AI()->Talk(1, player); // And as a soldier of the Horde, she knows we leave no one behind.
|
||||
}); });
|
||||
}
|
||||
|
||||
if (Creature* alaria = me->FindNearestCreature(NPC_ABANDONED_CAMP_ALARIA, 10.0f, true))
|
||||
{
|
||||
alaria->AI()->Talk(0, player); // Henry knew... you would come....
|
||||
|
||||
//me->AddDelayedEvent(5000, [this, player]() // time_delay
|
||||
// {
|
||||
// me->AI()->Talk(0, player);
|
||||
// // She's my daughter. Nothing could keep me from her.
|
||||
// // Of course I did. He's my son.
|
||||
// player->GetScheduler().Schedule(6s, [this, player](TaskContext context)
|
||||
// {
|
||||
// me->AI()->Talk(1, player);
|
||||
// // And as a soldier of the Horde, she knows we leave no one behind.
|
||||
// // Eat first, Alaria. You need your strength.
|
||||
// }); });
|
||||
me->AddDelayedEvent(5000, [this, player]() // time_delay
|
||||
{
|
||||
me->AI()->Talk(0, player);
|
||||
// She's my daughter. Nothing could keep me from her.
|
||||
// Of course I did. He's my son.
|
||||
player->GetScheduler().Schedule(6s, [this, player](TaskContext /*context*/)
|
||||
{
|
||||
me->AI()->Talk(1, player);
|
||||
// And as a soldier of the Horde, she knows we leave no one behind.
|
||||
// Eat first, Alaria. You need your strength.
|
||||
}); });
|
||||
}
|
||||
}
|
||||
|
||||
@@ -257,15 +257,15 @@ struct npc_exiles_reach_abandoned_camp_166906_156651 : public ScriptedAI
|
||||
// Recruit. Quilboar pose a far greater threat than murlocs. You must be ready to face them in battle.
|
||||
// Recruit! Quilboar are far deadlier than murlocs. You need to be ready for the dangers ahead.
|
||||
|
||||
player->GetScheduler().Schedule(2s, [clone](TaskContext context)
|
||||
player->GetScheduler().Schedule(2s, [clone](TaskContext /*context*/)
|
||||
{ clone->GetMotionMaster()->MovePoint(1, EnhancedCombatTacticFightingPositions[1], true); })
|
||||
.Schedule(4s, [clone, player](TaskContext context)
|
||||
.Schedule(4s, [clone, player](TaskContext /*context*/)
|
||||
{
|
||||
if (rand() % 2 + 1 == 1)
|
||||
clone->GetMotionMaster()->MovePoint(2, EnhancedCombatTacticFightingPositions[2], true);
|
||||
else
|
||||
clone->GetMotionMaster()->MovePoint(3, EnhancedCombatTacticFightingPositions[3], true); })
|
||||
.Schedule(12s, [clone, player](TaskContext context)
|
||||
.Schedule(12s, [clone, player](TaskContext /*context*/)
|
||||
{
|
||||
clone->AI()->Talk(3, player);
|
||||
// Your next lesson begins now!
|
||||
@@ -280,7 +280,7 @@ struct npc_exiles_reach_abandoned_camp_166906_156651 : public ScriptedAI
|
||||
me->CastSpell(player, SPELL_UPDATE_PHASESHIFT, true);
|
||||
}
|
||||
|
||||
void SpellHit(WorldObject* caster, SpellInfo const* spell) override
|
||||
void SpellHit(WorldObject* caster, SpellInfo const* /*spell*/) override
|
||||
{
|
||||
// @TODO : make it class specific
|
||||
Player* player = caster->ToPlayer();
|
||||
@@ -308,7 +308,7 @@ struct npc_exiles_reach_abandoned_camp_166906_156651 : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void DamageTaken(Unit* attacker, uint32& damage, DamageEffectType /*damageType*/, SpellInfo const* /*spellInfo = nullptr*/) override
|
||||
void DamageTaken(Unit* /*attacker*/, uint32& damage, DamageEffectType /*damageType*/, SpellInfo const* /*spellInfo = nullptr*/) override
|
||||
{
|
||||
|
||||
if ((me->GetHealth() <= damage) || (me->GetHealth() <= me->GetHealth() * 0.2f))
|
||||
@@ -349,7 +349,7 @@ struct npc_exiles_reach_abandoned_camp_166906_156651 : public ScriptedAI
|
||||
|
||||
private:
|
||||
float orientation = 0.f;
|
||||
int timer = 1000;
|
||||
uint32 timer = 1000;
|
||||
int8 hitCounter = 0;
|
||||
bool trainingQuestDone = false;
|
||||
};
|
||||
@@ -368,11 +368,11 @@ struct npc_exiles_reach_abandoned_camp_175030_175031 : public ScriptedAI
|
||||
tempBreka->AI()->Talk(0, player); // We'll head north to see what the others have found. Won'sa, rest and regain your strength before joining us.
|
||||
tempBreka->FollowTarget(player);
|
||||
tempBreka->SetSpeed(MOVE_RUN, player->GetSpeed(MOVE_RUN));
|
||||
player->GetScheduler().Schedule(Milliseconds(10000), [this, player](TaskContext context)
|
||||
player->GetScheduler().Schedule(Milliseconds(10000), [this, player](TaskContext /*context*/)
|
||||
{
|
||||
me->AI()->Talk(0, player); // I be seein' ya soon, den. Ya daughter be right ta count on ya.
|
||||
})
|
||||
.Schedule(Milliseconds(16000), [this, tempBreka, player](TaskContext context)
|
||||
.Schedule(Milliseconds(16000), [this, tempBreka, player](TaskContext /*context*/)
|
||||
{
|
||||
tempBreka->AI()->Talk(1, player); // The Horde never abandons its soldiers. I will not abandon her.
|
||||
});
|
||||
@@ -386,7 +386,7 @@ struct npc_exiles_reach_abandoned_camp_175030_175031 : public ScriptedAI
|
||||
tempGarrick->AI()->Talk(4, player); // We'll head north and rendezvous with the others. Alaria, recover your stamina before pushing forward.
|
||||
tempGarrick->FollowTarget(player);
|
||||
tempGarrick->SetSpeed(MOVE_RUN, player->GetSpeed(MOVE_RUN));
|
||||
player->GetScheduler().Schedule(Milliseconds(10000), [tempGarrick, player](TaskContext context)
|
||||
player->GetScheduler().Schedule(Milliseconds(10000), [tempGarrick, player](TaskContext /*context*/)
|
||||
{
|
||||
// I've never given up on any member of the Alliance. I'm not about to start by failing my son.
|
||||
tempGarrick->Say(178620, player);
|
||||
@@ -404,7 +404,7 @@ class npc_exiles_reach_jrokgar_161265 : public VehicleScript
|
||||
public:
|
||||
npc_exiles_reach_jrokgar_161265() : VehicleScript("npc_exiles_reach_jrokgar_161265") {}
|
||||
|
||||
void OnAddPassenger(Vehicle* vehicle, Unit* passenger, int8 /*seatId*/) override
|
||||
void OnAddPassenger(Vehicle* vehicle, Unit* /*passenger*/, int8 /*seatId*/) override
|
||||
{
|
||||
vehicle->GetBase()->GetMotionMaster()->MovePoint(0, Position(-88.93f, -2288.38f, 10.8f), true); // throwing position
|
||||
}
|
||||
@@ -431,7 +431,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
bool OnGossipSelect(Player* player, uint32 sender, uint32 action) override
|
||||
bool OnGossipSelect(Player* player, uint32 /*sender*/, uint32 /*action*/) override
|
||||
{
|
||||
// Okay. Jrokgar throw you far!
|
||||
Talk(0, player);
|
||||
@@ -472,7 +472,7 @@ public:
|
||||
timer -= diff;
|
||||
}
|
||||
|
||||
void MovementInform(uint32 type, uint32 id) override
|
||||
void MovementInform(uint32 type, uint32 /*id*/) override
|
||||
{
|
||||
if (type != POINT_MOTION_TYPE)
|
||||
return;
|
||||
@@ -481,15 +481,10 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
int timer = 1000;
|
||||
uint32 timer = 1000;
|
||||
bool actionOngoing, talked;
|
||||
Position throwingPos = Position(-88.93f, -2288.38f, 10.8f);
|
||||
};
|
||||
|
||||
/* CreatureAI* GetAI(Creature* creature) const override
|
||||
{
|
||||
return new npc_exiles_reach_jrokgar_161265_AI(creature);
|
||||
}*/
|
||||
};
|
||||
|
||||
/* ## GAMEOBJECT SCRIPTS > ## */
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
void AddSC_exiles_reach_general();
|
||||
//void AddSC_exiles_reach_north_sea();
|
||||
//void AddSC_exiles_reach_murloc_hideaway();
|
||||
//void AddSC_exiles_reach_abandoned_camp();
|
||||
void AddSC_exiles_reach_abandoned_camp();
|
||||
//void AddSC_exiles_reach_quilboar_briarpatch();
|
||||
//void AddSC_exiles_reach_darkmaul_plains();
|
||||
//void AddSC_exiles_reach_ogre_ruins();
|
||||
@@ -32,7 +32,7 @@ void AddExilesReachScripts()
|
||||
AddSC_exiles_reach_general();
|
||||
//AddSC_exiles_reach_north_sea();
|
||||
//AddSC_exiles_reach_murloc_hideaway();
|
||||
//AddSC_exiles_reach_abandoned_camp();
|
||||
AddSC_exiles_reach_abandoned_camp();
|
||||
//AddSC_exiles_reach_quilboar_briarpatch();
|
||||
//AddSC_exiles_reach_darkmaul_plains();
|
||||
//AddSC_exiles_reach_ogre_ruins();
|
||||
|
||||
Reference in New Issue
Block a user