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

Public Member Functions

 go_crystal_prison ()
 
bool OnQuestAccept (Player *player, GameObject *, Quest const *quest) 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 OnModifyHealth (GameObject *, Unit *, int32 &, SpellInfo const *)
 
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
 
uint16 GetTotalAvailableHooks ()
 
- 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, uint16 totalAvailableHooks=0)
 
virtual ~ScriptObject ()=default
 
- Protected Member Functions inherited from UpdatableScript< GameObject >
 UpdatableScript ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ go_crystal_prison()

go_crystal_prison::go_crystal_prison ( )
inline
1400: GameObjectScript("go_crystal_prison") { }
Definition: GameObjectScript.h:25

Member Function Documentation

◆ OnQuestAccept()

bool go_crystal_prison::OnQuestAccept ( Player player,
GameObject ,
Quest const *  quest 
)
inlineoverridevirtual

Reimplemented from GameObjectScript.

1403 {
1404 if (quest->GetQuestId() == QUEST_BATTLE_OF_THE_CRIMSON_WATCH)
1405 {
1406 Creature* Illidan = player->FindNearestCreature(22083, 50);
1407
1408 if (Illidan && !CAST_AI(npc_lord_illidan_stormrage::npc_lord_illidan_stormrageAI, Illidan->AI())->EventStarted)
1409 {
1413 }
1414 }
1415 return true;
1416 }
#define CAST_AI(a, b)
Definition: UnitAI.h:26
#define QUEST_BATTLE_OF_THE_CRIMSON_WATCH
Definition: zone_shadowmoon_valley.cpp:817
Definition: Creature.h:46
CreatureAI * AI() const
Definition: Creature.h:143
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:109
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
Definition: Object.cpp:2446
Definition: zone_shadowmoon_valley.cpp:1072

References Creature::AI(), CAST_AI, WorldObject::FindNearestCreature(), Object::GetGUID(), Quest::GetQuestId(), and QUEST_BATTLE_OF_THE_CRIMSON_WATCH.