AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
go_elune_fire Class Reference
Inheritance diagram for go_elune_fire:
GameObjectScript ScriptObject UpdatableScript< GameObject >

Public Member Functions

 go_elune_fire ()
 
bool OnGossipHello (Player *, GameObject *go) override
 
- Public Member Functions inherited from GameObjectScript
bool IsDatabaseBound () const override
 
virtual bool OnGossipHello (Player *, GameObject *)
 
virtual bool OnGossipSelect (Player *, GameObject *, uint32, uint32)
 
virtual bool OnGossipSelectCode (Player *, GameObject *, uint32, uint32, const char *)
 
virtual bool OnQuestAccept (Player *, GameObject *, Quest const *)
 
virtual bool OnQuestReward (Player *, GameObject *, Quest const *, uint32)
 
virtual uint32 GetDialogStatus (Player *, GameObject *)
 
virtual void OnDestroyed (GameObject *, Player *)
 
virtual void OnDamaged (GameObject *, Player *)
 
virtual void OnLootStateChanged (GameObject *, uint32, Unit *)
 
virtual void OnGameObjectStateChanged (GameObject *, uint32)
 
virtual GameObjectAIGetAI (GameObject *) const
 
- 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< GameObject >
virtual void OnUpdate (GameObject *, uint32)
 

Additional Inherited Members

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

Detailed Description

Constructor & Destructor Documentation

◆ go_elune_fire()

go_elune_fire::go_elune_fire ( )
inline
597: GameObjectScript("go_elune_fire") { }
Definition: ScriptMgr.h:759

Member Function Documentation

◆ OnGossipHello()

bool go_elune_fire::OnGossipHello ( Player ,
GameObject go 
)
inlineoverridevirtual

Reimplemented from GameObjectScript.

600 {
601 // Check if we are using the torches or the altar
602 bool isAltar = false;
603
604 if (go->GetEntry() == GO_ELUNE_ALTAR)
605 isAltar = true;
606
607 if (Creature* ranshalla = GetClosestCreatureWithEntry(go, NPC_RANSHALLA, 10.0f))
608 {
609 if (npc_ranshalla::npc_ranshallaAI* escortAI = dynamic_cast<npc_ranshalla::npc_ranshallaAI*>(ranshalla->AI()))
610 escortAI->DoContinueEscort(isAltar);
611 }
612
614
615 return false;
616 }
Creature * GetClosestCreatureWithEntry(WorldObject *source, uint32 entry, float maxSearchRange, bool alive)
Definition: ScriptedCreature.cpp:765
@ GO_ELUNE_ALTAR
Definition: zone_winterspring.cpp:124
@ NPC_RANSHALLA
Definition: zone_winterspring.cpp:116
@ GO_FLAG_NOT_SELECTABLE
Definition: SharedDefines.h:1579
Definition: Creature.h:46
void SetGameObjectFlag(GameObjectFlags flags)
Definition: GameObject.h:220
uint32 GetEntry() const
Definition: Object.h:109
Definition: zone_winterspring.cpp:316

References GetClosestCreatureWithEntry(), Object::GetEntry(), GO_ELUNE_ALTAR, GO_FLAG_NOT_SELECTABLE, NPC_RANSHALLA, and GameObject::SetGameObjectFlag().