|
| | npc_ranshalla () |
| |
| bool | OnQuestAccept (Player *player, Creature *creature, Quest const *quest) override |
| |
| CreatureAI * | GetAI (Creature *creature) const override |
| |
| bool | IsDatabaseBound () const override |
| |
| virtual bool | OnGossipHello (Player *, Creature *) |
| |
| virtual bool | OnGossipSelect (Player *, Creature *, uint32, uint32) |
| |
| virtual bool | OnGossipSelectCode (Player *, Creature *, uint32, uint32, const char *) |
| |
| virtual bool | OnQuestSelect (Player *, Creature *, Quest const *) |
| |
| virtual bool | OnQuestComplete (Player *, Creature *, Quest const *) |
| |
| virtual bool | OnQuestReward (Player *, Creature *, Quest const *, uint32) |
| |
| virtual uint32 | GetDialogStatus (Player *, Creature *) |
| |
| virtual void | OnFfaPvpStateUpdate (Creature *, bool) |
| |
| virtual bool | isAfterLoadScript () const |
| |
| virtual void | checkValidity () |
| |
| const std::string & | GetName () const |
| |
| uint16 | GetTotalAvailableHooks () |
| |
| virtual void | OnUpdate (Creature *, uint32) |
| |
◆ npc_ranshalla()
| npc_ranshalla::npc_ranshalla |
( |
| ) |
|
|
inline |
Definition CreatureScript.h:25
◆ GetAI()
Reimplemented from CreatureScript.
300 {
301 return new npc_ranshallaAI(creature);
302 }
◆ OnQuestAccept()
| bool npc_ranshalla::OnQuestAccept |
( |
Player * |
player, |
|
|
Creature * |
creature, |
|
|
Quest const * |
quest |
|
) |
| |
|
inlineoverridevirtual |
Reimplemented from CreatureScript.
282 {
284 {
287
288 if (npc_ranshallaAI* escortAI =
dynamic_cast<npc_ranshallaAI*
>(creature->
AI()))
289 {
291 escortAI->Start(
false, player->
GetGUID(), quest);
292 }
293
294 return true;
295 }
296
297 return false;
298 }
@ FACTION_ESCORT_A_NEUTRAL_PASSIVE
Definition ScriptSystem.h:31
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr, Milliseconds delay=0ms)
Causes the creature to talk/say the text assigned to their entry in the creature_text database table.
Definition CreatureAI.cpp:53
bool SetWalk(bool enable) override
Enable or disable the creature's walk mode by removing: MOVEMENTFLAG_WALKING. Infom also the client.
Definition Creature.cpp:3222
CreatureAI * AI() const
Definition Creature.h:145
static ObjectGuid GetGUID(Object const *o)
Definition Object.h:113
void SetFaction(uint32 faction)
Definition Unit.cpp:10107
@ SAY_QUEST_START
Definition zone_winterspring.cpp:60
@ QUEST_GUARDIANS_ALTAR
Definition zone_winterspring.cpp:118
References Creature::AI(), FACTION_ESCORT_A_NEUTRAL_PASSIVE, Object::GetGUID(), Quest::GetQuestId(), QUEST_GUARDIANS_ALTAR, SAY_QUEST_START, Unit::SetFaction(), Creature::SetWalk(), and CreatureAI::Talk().
The documentation for this class was generated from the following file: