110 switch (
me->GetEntry())
113 player->FailQuest(10299);
114 player->FailQuest(10329);
117 player->FailQuest(10321);
118 player->FailQuest(10330);
121 player->FailQuest(10322);
122 player->FailQuest(10338);
125 player->FailQuest(10323);
126 player->FailQuest(10365);
145 if (
add)
add->GetMotionMaster()->MovePoint(0, 2927.36f, 4212.97f, 164.00f);
150 if (
add)
add->GetMotionMaster()->MovePoint(0, 2933.68f, 4162.55f, 164.00f);
156 if (
add)
add->GetMotionMaster()->MovePoint(0, 2424.21f, 2740.15f, 133.81f);
158 if (
add)
add->GetMotionMaster()->MovePoint(0, 2435.37f, 2766.04f, 133.81f);
163 if (
add)
add->GetMotionMaster()->MovePoint(0, 2985.15f, 2197.32f, 164.79f);
165 if (
add)
add->GetMotionMaster()->MovePoint(0, 2060.01f, 2185.27f, 164.67f);
172 if (
add)
add->GetMotionMaster()->MovePoint(0, 4003.42f, 4040.19f, 193.49f);
174 if (
add)
add->GetMotionMaster()->MovePoint(0, 4003.42f, 4040.19f, 193.49f);
176 if (
add)
add->GetMotionMaster()->MovePoint(0, 4003.42f, 4040.19f, 193.49f);
181 if (
add)
add->GetMotionMaster()->MovePoint(0, 4028.01f, 4035.17f, 193.59f);
183 if (
add)
add->GetMotionMaster()->MovePoint(0, 4028.01f, 4035.17f, 193.59f);
185 if (
add)
add->GetMotionMaster()->MovePoint(0, 4028.01f, 4035.17f, 193.59f);
197 if (
add)
add->GetMotionMaster()->MovePoint(0, 2927.49f, 4192.81f, 163.00f);
201 if (
add)
add->GetMotionMaster()->MovePoint(0, 2433.96f, 2751.53f, 133.85f);
203 if (
add)
add->GetMotionMaster()->MovePoint(0, 2433.96f, 2751.53f, 133.85f);
205 if (
add)
add->GetMotionMaster()->MovePoint(0, 2433.96f, 2751.53f, 133.85f);
209 if (
add)
add->GetMotionMaster()->MovePoint(0, 2972.27f, 2193.22f, 164.48f);
211 if (
add)
add->GetMotionMaster()->MovePoint(0, 2972.27f, 2193.22f, 164.48f);
213 if (
add)
add->GetMotionMaster()->MovePoint(0, 2972.27f, 2193.22f, 164.48f);
217 if (
add)
add->GetMotionMaster()->MovePoint(0, 4008.35f, 4035.04f, 192.70f);
219 if (
add)
add->GetMotionMaster()->MovePoint(0, 4016.62f, 4039.89f, 193.46f);
263 player->KilledMonsterCredit(
me->GetEntry(),
me->GetGUID());
305 player->PrepareQuestMenu(go->GetGUID());
306 player->SendPreparedQuest(go->GetGUID());
311 switch (go->GetAreaId())
315 player->HasItemCount(29366))
320 player->HasItemCount(29396))
325 player->HasItemCount(29397))
330 player->HasItemCount(29411))
430 if (!ardonis || !pathaleon || !player)
439 me->SendUpdateToPlayer(player);
459 angle_dawnforge =
me->GetAngle(ardonis->GetPositionX(), ardonis->GetPositionY());
464 me->SendUpdateToPlayer(player);
467 ardonis->SendUpdateToPlayer(player);
492 SF_LOG_DEBUG(
"scripts",
"npc_commander_dawnforge event already in progress, need to wait.");
513 if (!ardonis || !player)
519 if (
Phase > 4 && !pathaleon)
666#define GOSSIP_ITEM "I need a new phase distruptor, Professor"
679 player->PlayerTalkClass->ClearMenus();
683 player->CLOSE_GOSSIP_MENU();
691 if (creature->IsQuestGiver())
692 player->PrepareQuestMenu(creature->GetGUID());
697 player->SEND_GOSSIP_MENU(player->GetGossipTextId(creature), creature->GetGUID());
790 std::list<HostileReference*> AggroList =
me->getThreatManager().getThreatList();
791 std::list<Unit*> UnitsWithMana;
793 for (std::list<HostileReference*>::const_iterator itr = AggroList.begin(); itr != AggroList.end(); ++itr)
797 if (unit->GetCreateMana() > 0)
798 UnitsWithMana.push_back(unit);
801 if (!UnitsWithMana.empty())
825 me->SetHealth(
me->CountPctFromMaxHealth(uHpPct));
826 me->LowerPlayerDamageReq(
me->GetMaxHealth() -
me->GetHealth());
827 me->SetInCombatWith(player);
858 creature->setFaction(113);
911 summoned->AI()->AttackStart(
me);
916 me->RestoreFaction();
1016 creature->setFaction(113);
1017 pEscortAI->Start(
false,
false, player->GetGUID());
1041 go->UseDoorOrButton();
1046 tyralius->DespawnOrUnsummon(8000);
#define SF_LOG_DEBUG(filterType__,...)
@ TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN
@ TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT
@ TEMPSUMMON_TIMED_DESPAWN
#define INTERACTION_DISTANCE
@ QUEST_STATUS_INCOMPLETE
GameObject * GetClosestGameObjectWithEntry(WorldObject *source, uint32 entry, float maxSearchRange)
@ GAMEOBJECT_TYPE_QUESTGIVER
@ SPELL_AURA_MOD_DECREASE_SPEED
@ UNIT_FLAG_NON_ATTACKABLE
AreaTriggerScript(const char *name)
void Talk(uint8 id, WorldObject const *whisperTarget=NULL)
CreatureScript(const char *name)
static GameObject * GetGameObject(WorldObject &object, uint64 guid)
GameObjectScript(const char *name)
static Creature * GetCreature(WorldObject const &u, uint64 guid)
static Player * GetPlayer(WorldObject const &, uint64 guid)
static Unit * GetUnit(WorldObject const &, uint64 guid)
void SendUpdateToPlayer(Player *player)
void GroupEventHappens(uint32 questId, WorldObject const *pEventObject)
void CompleteQuest(uint32 quest_id)
void AreaExploredOrEventHappens(uint32 questId)
void DoMeleeAttackIfReady()
void DoCast(uint32 spellId)
static Unit * GetUnit(WorldObject &object, uint64 guid)
void SetStandState(uint8 state)
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
TempSummon * SummonCreature(uint32 id, Position const &pos, TempSummonType spwtype=TempSummonType::TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0) const
bool OnTrigger(Player *player, const AreaTriggerEntry *) OVERRIDE
go_captain_tyralius_prison()
bool OnGossipHello(Player *player, GameObject *go) OVERRIDE
go_manaforge_control_console()
bool OnGossipHello(Player *player, GameObject *go) OVERRIDE
CreatureAI * GetAI(Creature *creature) const OVERRIDE
bool OnQuestAccept(Player *player, Creature *creature, Quest const *quest) OVERRIDE
npc_commander_dawnforge()
CreatureAI * GetAI(Creature *creature) const OVERRIDE
CreatureAI * GetAI(Creature *creature) const OVERRIDE
npc_manaforge_control_console()
bool OnQuestAccept(Player *player, Creature *creature, const Quest *quest) OVERRIDE
npc_maxx_a_million_escort()
CreatureAI * GetAI(Creature *creature) const OVERRIDE
CreatureAI * GetAI(Creature *creature) const OVERRIDE
bool OnGossipSelect(Player *player, Creature *creature, uint32, uint32 action) OVERRIDE
bool OnGossipHello(Player *player, Creature *creature) OVERRIDE
C::value_type const & SelectRandomContainerElement(C const &container)
float GetAngle(Position const *pos) const
void SetOrientation(float orientation)
float GetPositionX() const
float GetPositionY() const
bool HealthBelowPct(uint32 pct) const
ScriptedAI(Creature *creature)
void JustDied(Unit *) OVERRIDE
void JustSummoned(Creature *summoned) OVERRIDE
void WaypointReached(uint32 waypointId) OVERRIDE
npc_bessyAI(Creature *creature)
void UpdateAI(uint32 diff) OVERRIDE
== Triggered Actions Requested ==================
void JustSummoned(Creature *summoned) OVERRIDE
npc_commander_dawnforgeAI(Creature *creature)
void Turn_to_Pathaleons_Image()
void EnterCombat(Unit *) OVERRIDE
bool CanStartEvent(Player *player)
void UpdateAI(uint32 diff) OVERRIDE
== Triggered Actions Requested ==================
Player * GetPlayerForEscort()
npc_escortAI(Creature *creature)
void SetEscortPaused(bool on)
void DoWaveSpawnForCreature(Creature *creature)
void UpdateAI(uint32 diff) OVERRIDE
== Triggered Actions Requested ==================
npc_manaforge_control_consoleAI(Creature *creature)
void EnterCombat(Unit *) OVERRIDE
void DoFinalSpawnForCreature(Creature *creature)
void JustDied(Unit *) OVERRIDE
void UpdateAI(uint32 uiDiff) OVERRIDE
== Triggered Actions Requested ==================
void JustDied(Unit *) OVERRIDE
void WaypointReached(uint32 waypointId) OVERRIDE
npc_maxx_a_million_escortAI(Creature *creature)
void EnterCombat(Unit *who) OVERRIDE
void UpdateAI(uint32 diff) OVERRIDE
== Triggered Actions Requested ==================
npc_phase_hunterAI(Creature *creature)
@ SAY_COMMANDER_DAWNFORGE_1
@ SAY_COMMANDER_DAWNFORGE_5
@ SAY_COMMANDER_DAWNFORGE_2
@ SAY_PATHALEON_CULATOR_IMAGE_2
@ SAY_PATHALEON_CULATOR_IMAGE_1
@ SAY_COMMANDER_DAWNFORGE_3
@ SAY_COMMANDER_DAWNFORGE_4
@ SAY_PATHALEON_CULATOR_IMAGE_2_2
@ SAY_PATHALEON_CULATOR_IMAGE_2_1
@ NPC_DRAINED_PHASE_HUNTER_ENTRY
@ SPELL_RECHARGING_BATTERY
@ QUEST_RECHARGING_THE_BATTERIES
const uint32 CreatureEntry[3]