36#define GOSSIP_START_EVENT1 "I'm ready to start challenge."
37#define GOSSIP_START_EVENT2 "I'm ready for the next challenge."
39#define ORIENTATION 4.714f
130 me->GetMotionMaster()->MovePoint(1, 735.81f, 661.92f, 412.39f);
132 instance->HandleGameObject(go->GetGUID(),
false);
138 std::list<uint64> TempList;
151 for (std::list<uint64>::const_iterator itr = TempList.begin(); itr != TempList.end(); ++itr)
168 if (pGrandChampion1 && pGrandChampion2 && pGrandChampion3)
188 uint32 VEHICLE_TO_SUMMON1 = 0;
189 uint32 VEHICLE_TO_SUMMON2 = 0;
224 if (
Vehicle* pVehicle = pBoss->GetVehicleKit())
225 if (
Unit* unit = pVehicle->GetPassenger(0))
232 pBoss->AI()->SetData(1, 0);
238 uint64 uiGrandChampionBoss2 = 0;
239 if (
Vehicle* pVehicle = pBoss->GetVehicleKit())
240 if (
Unit* unit = pVehicle->GetPassenger(0))
241 uiGrandChampionBoss2 = unit->GetGUID();
247 pBoss->AI()->SetData(2, 0);
253 uint64 uiGrandChampionBoss3 = 0;
254 if (
Vehicle* pVehicle = pBoss->GetVehicleKit())
255 if (
Unit* unit = pVehicle->GetPassenger(0))
256 uiGrandChampionBoss3 = unit->GetGUID();
262 pBoss->AI()->SetData(3, 0);
269 for (
uint8 i = 0; i < 3; ++i)
289 pAdd->GetMotionMaster()->MoveFollow(pBoss, 2.0f,
M_PI);
292 pAdd->GetMotionMaster()->MoveFollow(pBoss, 2.0f,
M_PI / 2);
295 pAdd->GetMotionMaster()->MoveFollow(pBoss, 2.0f,
M_PI / 2 +
M_PI);
305 me->GetMotionMaster()->MovePoint(1, 735.81f, 661.92f, 412.39f);
309 for (
uint8 i = 0; i < 3; ++i)
312 pTrash->AI()->SetData(i, 0);
314 pTrash->AI()->SetData(i, 0);
316 pTrash->AI()->SetData(i, 0);
334 uint8 uiTempBoss = std::rand() % 1;
381 if (
Player* player = i->GetSource())
383 if (player->IsGameMaster())
386 if (player->IsAlive())
392 player->SetInCombatWith(temp);
442 switch (summon->GetEntry())
485 player->SEND_GOSSIP_MENU(player->GetGossipTextId(creature), creature->GetGUID());
492 player->PlayerTalkClass->ClearMenus();
495 player->CLOSE_GOSSIP_MENU();
@ TEMPSUMMON_CORPSE_DESPAWN
@ UNIT_FLAG_NON_ATTACKABLE
void SetHomePosition(float x, float y, float z, float o)
void SetReactState(ReactStates st)
CreatureScript(const char *name)
static GameObject * GetGameObject(WorldObject &object, uint64 guid)
LinkedListHead::Iterator< MapReference const > const_iterator
void RemoveFlag(uint16 index, uint32 oldFlag)
void AddThreat(Unit *victim, float fThreat, SpellSchoolMask schoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *threatSpell=NULL)
static Creature * GetCreature(WorldObject &object, uint64 guid)
void SetInCombatWith(Unit *enemy)
InstanceScript * GetInstanceScript()
virtual uint32 GetData(uint32) const
bool OnGossipHello(Player *player, Creature *creature) OVERRIDE
CreatureAI * GetAI(Creature *creature) const OVERRIDE
bool OnGossipSelect(Player *player, Creature *creature, uint32, uint32 action) OVERRIDE
const Position SpawnPosition[]
void UpdateAI(uint32 diff) OVERRIDE
== Triggered Actions Requested ==================
ScriptedAI(Creature *creature)
InstanceScript * instance
uint64 uiGrandChampionBoss1
void UpdateAI(uint32 uiDiff) OVERRIDE
== Triggered Actions Requested ==================
void JustSummoned(Creature *summon) OVERRIDE
std::list< uint64 > Champion1List
std::list< uint64 > Champion2List
void SetGrandChampionsForEncounter()
void StartGrandChampionsAttack()
void MovementInform(uint32 uiType, uint32 uiPointId) OVERRIDE
void SummonedCreatureDespawn(Creature *summon) OVERRIDE
void SetData(uint32 uiType, uint32) OVERRIDE
npc_announcer_toc5AI(Creature *creature)
void DoSummonGrandChampion(uint32 uiBoss)
void DoStartArgentChampionEncounter()
void AggroAllPlayers(Creature *temp)
void NextStep(uint32 uiTimerStep, bool bNextStep=true, uint8 uiPhaseStep=0)
std::list< uint64 > Champion3List
#define GOSSIP_START_EVENT1
const Position SpawnPosition
#define GOSSIP_START_EVENT2
void AddSC_trial_of_the_champion()
@ DATA_GRAND_CHAMPION_VEHICLE_1
@ DATA_GRAND_CHAMPION_VEHICLE_2
@ DATA_GRAND_CHAMPION_VEHICLE_3
@ VEHICLE_SILVERMOON_HAWKSTRIDER
@ VEHICLE_GNOMEREGAN_MECHANOSTRIDER
@ VEHICLE_FORSAKE_WARHORSE
@ VEHICLE_STORMWIND_STEED
@ VEHICLE_RUNOK_WILDMANE_MOUNT
@ VEHICLE_DEATHSTALKER_VESCERI_MOUNT
@ VEHICLE_DARNASSIA_NIGHTSABER
@ VEHICLE_MOKRA_SKILLCRUSHER_MOUNT
@ VEHICLE_DARKSPEAR_RAPTOR
@ VEHICLE_THUNDER_BLUFF_KODO
@ VEHICLE_ERESSEA_DAWNSINGER_MOUNT
@ DATA_LESSER_CHAMPIONS_DEFEATED
@ BOSS_ARGENT_CHALLENGE_P
@ BOSS_ARGENT_CHALLENGE_E