AzerothCore 3.3.5a
OpenSource WoW Emulator
No Matches
npc_lakota_windsong Class Reference
Inheritance diagram for npc_lakota_windsong:
CreatureScript ScriptObject UpdatableScript< Creature >


struct  npc_lakota_windsongAI

Public Member Functions

 npc_lakota_windsong ()
bool OnQuestAccept (Player *player, Creature *creature, const Quest *quest) override
CreatureAIGetAI (Creature *creature) const override
- Public Member Functions inherited from CreatureScript
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 OnQuestAccept (Player *, Creature *, Quest const *)
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 CreatureAIGetAI (Creature *) const
virtual void OnFfaPvpStateUpdate (Creature *, bool)
- Public Member Functions inherited from ScriptObject
virtual bool IsDatabaseBound () const
virtual bool isAfterLoadScript () const
virtual void checkValidity ()
const std::string & GetName () const
- Public Member Functions inherited from UpdatableScript< Creature >
virtual void OnUpdate (Creature *, uint32)

Additional Inherited Members

- Protected Member Functions inherited from CreatureScript
 CreatureScript (const char *name)
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name)
virtual ~ScriptObject ()=default
- Protected Member Functions inherited from UpdatableScript< Creature >
 UpdatableScript ()=default

Detailed Description

Constructor & Destructor Documentation

◆ npc_lakota_windsong()

npc_lakota_windsong::npc_lakota_windsong ( )
72: CreatureScript("npc_lakota_windsong") { }
Definition: ScriptMgr.h:719

Member Function Documentation

◆ GetAI()

CreatureAI * npc_lakota_windsong::GetAI ( Creature creature) const

Reimplemented from CreatureScript.

88 {
89 return new npc_lakota_windsongAI(creature);
90 }

◆ OnQuestAccept()

bool npc_lakota_windsong::OnQuestAccept ( Player player,
Creature creature,
const Quest quest 

Reimplemented from CreatureScript.

75 {
76 if (quest->GetQuestId() == QUEST_FREE_AT_LAST)
77 {
78 creature->AI()->Talk(SAY_LAKO_START, player);
81 if (npc_lakota_windsongAI* pEscortAI = CAST_AI(npc_lakota_windsong::npc_lakota_windsongAI, creature->AI()))
82 pEscortAI->Start(false, false, player->GetGUID(), quest);
83 }
84 return true;
85 }
#define CAST_AI(a, b)
Definition: ScriptedCreature.h:28
Definition: zone_thousand_needles.cpp:51
Definition: zone_thousand_needles.cpp:45
Definition: SharedDefines.h:187
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr, Milliseconds delay=0s)
Causes the creature to talk/say the text assigned to their entry in the creature_text database table.
Definition: CreatureAI.cpp:50
CreatureAI * AI() const
Definition: Creature.h:135
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:106
void SetFaction(uint32 faction)
Definition: Unit.cpp:10029
uint32 GetQuestId() const
Definition: QuestDef.h:225
Definition: zone_thousand_needles.cpp:93

References Creature::AI(), CAST_AI, FACTION_ESCORTEE_H_NEUTRAL_ACTIVE, Object::GetGUID(), Quest::GetQuestId(), QUEST_FREE_AT_LAST, SAY_LAKO_START, Unit::SetFaction(), and CreatureAI::Talk().