230 player->AreaExploredOrEventHappens(10277);
245 float Radius = 10.0f;
246 if (
me->IsWithinDistInMap(who, Radius))
248 Start(
false,
false, who->GetGUID());
268#define GOSSIP_ITEM_FLIGHT "Please take me to the master's lair."
277 if (quest->GetQuestId() == 10279)
278 player->CastSpell(player, 34891,
true);
285 player->PlayerTalkClass->ClearMenus();
287 player->CastSpell(player, 34891,
true);
294 if (creature->IsQuestGiver())
295 player->PrepareQuestMenu(creature->GetGUID());
300 player->SEND_GOSSIP_MENU(9978, creature->GetGUID());
303 player->SEND_GOSSIP_MENU(9977, creature->GetGUID());
334 if (quest->GetQuestId() ==
Q_OOX17)
336 creature->setFaction(113);
337 creature->SetFullHealth();
343 pEscortAI->Start(
true,
false, player->GetGUID());
394 summoned->AI()->AttackStart(
me);
503 if (!torta || !torta->
IsAlive())
545 if ((std::rand() % 9) > 8)
@ TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT
#define INTERACTION_DISTANCE
std::vector< ItemPosCount > ItemPosCountVec
@ QUEST_STATUS_INCOMPLETE
@ STATE_FOLLOW_INPROGRESS
void Talk(uint8 id, WorldObject const *whisperTarget=NULL)
CreatureScript(const char *name)
void MovementInform(uint32 motionType, uint32 pointId) OVERRIDE
void MoveInLineOfSight(Unit *) OVERRIDE
Player * GetLeaderForFollower()
void SetFollowComplete(bool bWithEndEvent=false)
FollowerAI(Creature *creature)
bool HasFollowState(uint32 uiFollowState) const
bool HasItemCount(uint32 item, uint32 count=1, bool inBankAlso=false) const
void GroupEventHappens(uint32 questId, WorldObject const *pEventObject)
InventoryResult CanStoreNewItem(uint8 bag, uint8 slot, ItemPosCountVec &dest, uint32 item, uint32 count, uint32 *no_space_count=NULL) const
QuestStatus GetQuestStatus(uint32 quest_id) const
Item * StoreNewItem(ItemPosCountVec const &pos, uint32 item, bool update, int32 randomPropertyId=0, AllowedLooterSet const &allowedLooters=AllowedLooterSet())
void DoMeleeAttackIfReady()
void DoCast(uint32 spellId)
void DoCastVictim(uint32 spellId, bool triggered=false)
static Creature * GetCreature(WorldObject &object, uint64 guid)
bool OnQuestAccept(Player *player, Creature *creature, Quest const *quest) OVERRIDE
CreatureAI * GetAI(Creature *creature) const OVERRIDE
CreatureAI * GetAI(Creature *creature) const OVERRIDE
CreatureAI * GetAI(Creature *creature) const OVERRIDE
bool OnGossipSelect(Player *player, Creature *, uint32, uint32 action) OVERRIDE
bool OnGossipHello(Player *player, Creature *creature) OVERRIDE
bool OnQuestAccept(Player *player, Creature *, Quest const *quest) OVERRIDE
bool OnQuestAccept(Player *player, Creature *creature, const Quest *quest) OVERRIDE
CreatureAI * GetAI(Creature *creature) const OVERRIDE
ScriptedAI(Creature *creature)
npc_OOX17AI(Creature *creature)
void EnterCombat(Unit *) OVERRIDE
void WaypointReached(uint32 waypointId) OVERRIDE
void JustSummoned(Creature *summoned) OVERRIDE
uint32 SwitchFactionTimer
void SendItem(Unit *receiver)
npc_aquementasAI(Creature *creature)
void UpdateAI(uint32 diff) OVERRIDE
== Triggered Actions Requested ==================
void EnterCombat(Unit *who) OVERRIDE
void WaypointReached(uint32 waypointId) OVERRIDE
npc_custodian_of_timeAI(Creature *creature)
void UpdateAI(uint32 diff) OVERRIDE
== Triggered Actions Requested ==================
void EnterCombat(Unit *) OVERRIDE
void MoveInLineOfSight(Unit *who) OVERRIDE
void UpdateAI(uint32 diff) OVERRIDE
== Triggered Actions Requested ==================
Player * GetPlayerForEscort()
bool HasEscortState(uint32 escortState) const
npc_escortAI(Creature *creature)
void Start(bool isActiveAttacker=true, bool run=false, uint64 playerGUID=0, Quest const *quest=NULL, bool instantRespawn=false, bool canLoopPath=false, bool resetWaypoints=true)
void MovementInform(uint32 MotionType, uint32 PointId) OVERRIDE
npc_toogaAI(Creature *creature)
void UpdateFollowerAI(uint32 Diff) OVERRIDE
void MoveInLineOfSight(Unit *who) OVERRIDE
#define GOSSIP_ITEM_FLIGHT
Position const ToWaterLoc