79 player->CLOSE_GOSSIP_MENU();
118 if (creature->IsQuestGiver())
119 player->PrepareQuestMenu(creature->GetGUID());
122 if ( creature->IsTrainer() )
126 if ( creature->IsVendor() )
130 player->SEND_GOSSIP_MENU(player->GetGossipTextId(creature), creature->GetGUID());
136 player->PlayerTalkClass->ClearMenus();
140 player->GetSession()->SendTrainerList(creature->GetGUID());
143 player->GetSession()->SendListInventory(creature->GetGUID());
189 if (!
me->GetVehicle())
190 me->DespawnOrUnsummon();
198 if (caster->GetVehicleKit()->GetAvailableSeatCount() != 0)
264 switch (
events.ExecuteEvent())
269 if (
Vehicle* vehicle =
me->GetVehicleKit())
270 if (
Unit* passenger = vehicle->GetPassenger(0))
280 Unit* player =
me->GetVehicleKit()->GetPassenger(0);
284 for (
uint8 i = 1; i < 4; ++i)
285 if (
Unit* prisoner =
me->GetVehicleKit()->GetPassenger(i))
291 prisoner->ExitVehicle();
325 Start(
false,
true, who->GetGUID());
#define GOSSIP_TEXT_TRAIN
#define GOSSIP_TEXT_BROWSE_GOODS
@ SPELL_AURA_PERIODIC_TRIGGER_SPELL
#define AuraEffectPeriodicFn(F, I, N)
HookList< EffectPeriodicHandler > OnEffectPeriodic
CreatureAI(Creature *creature)
void Talk(uint8 id, WorldObject const *whisperTarget=NULL)
CreatureScript(const char *name)
void GroupEventHappens(uint32 questId, WorldObject const *pEventObject)
void FailQuest(uint32 quest_id)
SpellScriptLoader(const char *name)
void DoMeleeAttackIfReady()
void CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0)
void ExitVehicle(Position const *exitPosition=NULL)
CreatureAI * GetAI(Creature *creature) const OVERRIDE
npc_brunnhildar_prisoner()
CreatureAI * GetAI(Creature *creature) const OVERRIDE
npc_hyldsmeet_protodrakeAI(Creature *creature)
uint32 _accessoryRespawnTimer
void UpdateAI(uint32 diff) OVERRIDE
== Triggered Actions Requested ==================
void PassengerBoarded(Unit *who, int8, bool apply) OVERRIDE
== Fields =======================================
npc_hyldsmeet_protodrake()
CreatureAI * GetAI(Creature *creature) const OVERRIDE
@ NPC_HYLDSMEET_DRAKERIDER
CreatureAI * GetAI(Creature *creature) const OVERRIDE
CreatureAI * GetAI(Creature *creature) const OVERRIDE
bool OnQuestAccept(Player *, Creature *creature, Quest const *quest) OVERRIDE
bool OnGossipHello(Player *player, Creature *creature) OVERRIDE
bool OnGossipSelect(Player *player, Creature *creature, uint32, uint32 action) OVERRIDE
bool Validate(SpellInfo const *) OVERRIDE
void HandlePeriodic(AuraEffect const *)
PrepareAuraScript(spell_close_rift_AuraScript)
AuraScript * GetAuraScript() const OVERRIDE
ScriptedAI(Creature *creature)
void JustRespawned() OVERRIDE
void SpellHit(Unit *caster, const SpellInfo *spell) OVERRIDE
npc_brunnhildar_prisonerAI(Creature *creature)
void UpdateAI(uint32) OVERRIDE
== Triggered Actions Requested ==================
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 UpdateAI(uint32 diff) OVERRIDE
== Triggered Actions Requested ==================
void MovementInform(uint32 type, uint32 id) OVERRIDE
npc_freed_protodrakeAI(Creature *creature)
void EnterCombat(Unit *) OVERRIDE
void OnCharmed(bool) OVERRIDE
void PassengerBoarded(Unit *who, int8, bool apply) OVERRIDE
== Fields =======================================
void WaypointReached(uint32) OVERRIDE
void UpdateAI(uint32 diff) OVERRIDE
== Triggered Actions Requested ==================
void JustDied(Unit *) OVERRIDE
npc_icefangAI(Creature *creature)
void AttackStart(Unit *) OVERRIDE
void EnterEvadeMode() OVERRIDE
void JustDied(Unit *) OVERRIDE
void EnterCombat(Unit *) OVERRIDE
void WaypointReached(uint32 waypointId) OVERRIDE
npc_injured_goblinAI(Creature *creature)
void UpdateAI(uint32 uiDiff) OVERRIDE
== Triggered Actions Requested ==================
void sGossipSelect(Player *player, uint32 sender, uint32 action) OVERRIDE
@ SPELL_MEKGINEERS_CHOPPER
@ AREA_VALLEY_OF_ANCIENT_WINTERS
@ SPELL_KILL_CREDIT_PRISONER
@ SPELL_KILL_CREDIT_DRAKE
InjuredGoblinMiner
npc_injured_goblin