34#define LEGION_OBELISK_ONE 185193
35#define LEGION_OBELISK_TWO 185195
36#define LEGION_OBELISK_THREE 185196
37#define LEGION_OBELISK_FOUR 185197
38#define LEGION_OBELISK_FIVE 185198
160 int cid = rand()%(4-1);
162 if (entry_list[cid] ==
me->GetEntry())
173 if (
me->UpdateEntry(entry_list[cid]))
213 me->GetMotionMaster()->MovePoint(0,
me->GetPositionX()+50.0f,
me->GetPositionY(),
me->GetPositionZ()+50.0f);
235 Unit* target =
me->GetVictim();
302#define GOSSIP_HELLO_ON "Overseer, I am here to negotiate on behalf of the Cenarion Expedition."
311 player->PlayerTalkClass->ClearMenus();
314 player->SEND_GOSSIP_MENU(10533, creature->GetGUID());
315 player->AreaExploredOrEventHappens(10682);
325 player->SEND_GOSSIP_MENU(10532, creature->GetGUID());
335#define GOSSIP_HELLO_STE "Yes... yes, it's me."
336#define GOSSIP_SELECT_STE "Yes elder. Tell me more of the book."
345 player->PlayerTalkClass->ClearMenus();
350 player->SEND_GOSSIP_MENU(10795, creature->GetGUID());
353 player->TalkedToCreature(creature->GetEntry(), creature->GetGUID());
354 player->SEND_GOSSIP_MENU(10796, creature->GetGUID());
365 player->SEND_GOSSIP_MENU(10794, creature->GetGUID());
384 switch (go->GetEntry())
448 Ogre->SetReactState(REACT_DEFENSIVE);
449 Ogre->GetMotionMaster()->MovePoint(1, me->GetPositionX()-1, me->GetPositionY()+1, me->GetPositionZ());
491 if (!who || (!who->IsAlive()))
494 if (
me->IsWithinDistInMap(who, 50.0f))
510 me->HandleEmoteCommand(7);
512 me->GetMotionMaster()->MoveTargetedHome();
516 if (player && Credit)
549 gorGrimgut->AI()->AttackStart(player);
651 switch (
_events.ExecuteEvent())
774 me->SetObjectScale(
large ? 2.0f : 1.0f);
776 std::list<WorldObject*> ClusterList;
781 for (std::list<WorldObject*>::const_iterator i = ClusterList.begin(); i != ClusterList.end(); ++i)
788 switch (go->GetGOInfo()->displayId)
809 switch (go->GetGOInfo()->displayId)
850 auraGo->RemoveFromWorld();
855 me->DespawnOrUnsummon(1000);
904 auraGo->RemoveFromWorld();
958 cluster->GetPosition(x, y, z, o);
959 me->NearTeleportTo(x, y, z, o);
972 me->CastSpell(cluster, preGameSpellId,
true);
979 relic->GetPosition(x, y, z, o);
1008 DoCast(player, rewSpell,
true);
1024 guardian->AI()->AttackStart(player);
1057 if (player->isDead())
1086 bunny->AI()->SetData(go->GetEntry(), 0);
1088 player->CastSpell(player, go->GetGOInfo()->goober.spellId,
true);
1111 player->PrepareGossipMenu(go, go->GetGOInfo()->questgiver.gossipID);
1112 player->SendPreparedGossip(go);
1118 player->CLOSE_GOSSIP_MENU();
1126 bunny->AI()->SetGUID(player->GetGUID(), large);
const T & RAND(const T &v1, const T &v2)
@ TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT
@ QUEST_STATUS_INCOMPLETE
@ UNIT_FLAG_NON_ATTACKABLE
@ UNIT_FLAG_NOT_SELECTABLE
@ SPELL_INTANGIBLE_PRESENCE
virtual void MoveInLineOfSight(Unit *)
void Talk(uint8 id, WorldObject const *whisperTarget=NULL)
virtual void EnterEvadeMode()
CreatureTemplate const * GetCreatureTemplate() const
CreatureScript(const char *name)
GameObjectScript(const char *name)
static Player * GetPlayer(WorldObject const &, uint64 guid)
GameObject * ToGameObject()
void KilledMonster(CreatureTemplate const *cInfo, uint64 guid)
void DoMeleeAttackIfReady()
void DoCast(uint32 spellId)
void DoCastVictim(uint32 spellId, bool triggered=false)
Powers getPowerType() const
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 OnGossipSelect(Player *player, GameObject *go, uint32, uint32) OVERRIDE
bool OnGossipHello(Player *player, GameObject *go) OVERRIDE
bool OnGossipHello(Player *player, GameObject *go) OVERRIDE
bool OnGossipHello(Player *player, GameObject *go) OVERRIDE
bool OnGossipHello(Player *player, GameObject *go) OVERRIDE
CreatureAI * GetAI(Creature *creature) const OVERRIDE
npc_bloodmaul_brutebane()
CreatureAI * GetAI(Creature *creature) const OVERRIDE
CreatureAI * GetAI(Creature *creature) const OVERRIDE
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
bool OnGossipHello(Player *player, Creature *creature) OVERRIDE
bool OnGossipSelect(Player *player, Creature *creature, uint32, uint32 action) OVERRIDE
CreatureAI * GetAI(Creature *creature) const OVERRIDE
ScriptedAI(Creature *creature)
void DoPlaySoundToSet(WorldObject *source, uint32 soundId)
void AttackStart(Unit *) OVERRIDE
void UpdateAI(uint32) OVERRIDE
== Triggered Actions Requested ==================
npc_bladespire_ogreAI(Creature *creature)
npc_bloodmaul_brutebaneAI(Creature *creature)
void UpdateAI(uint32) OVERRIDE
== Triggered Actions Requested ==================
npc_daranelleAI(Creature *creature)
void EnterCombat(Unit *) OVERRIDE
void MoveInLineOfSight(Unit *who) OVERRIDE
void MovementInform(uint32 type, uint32 id) OVERRIDE
void UpdateAI(uint32 diff) OVERRIDE
== Triggered Actions Requested ==================
void SpellHit(Unit *caster, const SpellInfo *spell) OVERRIDE
npc_nether_drakeAI(Creature *creature)
void MoveInLineOfSight(Unit *who) OVERRIDE
uint32 IntangiblePresence_Timer
void EnterCombat(Unit *) OVERRIDE
void MovementInform(uint32, uint32 id) OVERRIDE
npc_ogre_bruteAI(Creature *creature)
void MoveInLineOfSight(Unit *who) OVERRIDE
void UpdateAI(uint32) OVERRIDE
== Triggered Actions Requested ==================
void PlayColor(uint8 color)
uint32 clusterIds[SIMON_MAX_COLORS]
std::list< uint8 > playableSequence
void UpdateAI(uint32 diff) OVERRIDE
== Triggered Actions Requested ==================
void CheckPlayerSequence()
std::list< uint8 > playerSequence
void SpellHitTarget(Unit *target, const SpellInfo *spell) OVERRIDE
void DoAction(int32 action) OVERRIDE
void SetGUID(uint64 guid, int32 id) OVERRIDE
void GenerateColorSequence()
void PrepareClusters(bool clustersOnly=false)
std::list< uint8 > colorSequence
void SetData(uint32 type, uint32) OVERRIDE
void GiveRewardForLevel(uint8 level)
npc_simon_bunnyAI(Creature *creature)
@ SPELL_TAKE_REAGENTS_SOLO
@ SPELL_TAKE_REAGENTS_GROUP
#define LEGION_OBELISK_FOUR
#define GOSSIP_SELECT_STE
#define LEGION_OBELISK_FIVE
void AddSC_blades_edge_mountains()
#define LEGION_OBELISK_THREE
@ SPELL_INTANGIBLE_PRESENCE
@ SPELL_T_PHASE_MODULATOR
#define LEGION_OBELISK_TWO
@ EVENT_SIMON_RESET_CLUSTERS
@ ACTION_SIMON_ROUND_FINISHED
@ EVENT_SIMON_PLAY_SEQUENCE
@ EVENT_SIMON_TOO_LONG_TIME
@ EVENT_SIMON_SETUP_PRE_GAME
@ EVENT_SIMON_PERIODIC_PLAYER_CHECK
@ ACTION_SIMON_WRONG_SEQUENCE
@ ACTION_SIMON_CORRECT_FULL_SEQUENCE
@ EVENT_SIMON_ROUND_FINISHED
@ GO_YELLOW_CLUSTER_DISPLAY
@ GO_BLUE_CLUSTER_DISPLAY_LARGE
@ GO_GREEN_CLUSTER_DISPLAY
@ GO_BLUE_CLUSTER_DISPLAY
@ GO_GREEN_CLUSTER_DISPLAY_LARGE
@ SPELL_VISUAL_START_PLAYER_LEVEL
@ SPELL_AUDIBLE_GAME_TICK
@ GO_RED_CLUSTER_DISPLAY_LARGE
@ GO_YELLOW_CLUSTER_DISPLAY_LARGE
@ SPELL_BAD_PRESS_TRIGGER
@ SPELL_VISUAL_START_AI_LEVEL
@ QUEST_BLADESPIRE_KEGGER
@ QUEST_GETTING_THE_BLADESPIRE_TANKED
#define LEGION_OBELISK_ONE