TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
go_orb_of_the_blue_flight Class Reference

Public Member Functions

 go_orb_of_the_blue_flight ()
 
bool OnGossipHello (Player *player, GameObject *go) override
 
- Public Member Functions inherited from GameObjectScript
virtual bool OnDummyEffect (Unit *, uint32, SpellEffIndex, 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
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 ()
 
- Protected Member Functions inherited from UpdatableScript< GameObject >
 UpdatableScript ()
 
virtual ~UpdatableScript ()
 

Constructor & Destructor Documentation

go_orb_of_the_blue_flight::go_orb_of_the_blue_flight ( )
inline
367 : GameObjectScript("go_orb_of_the_blue_flight") { }
GameObjectScript(const char *name)
Definition: ScriptMgr.cpp:1592

Member Function Documentation

bool go_orb_of_the_blue_flight::OnGossipHello ( Player player,
GameObject go 
)
inlineoverridevirtual

Reimplemented from GameObjectScript.

370  {
371  if (go->GetUInt32Value(GAMEOBJECT_FACTION) == 35)
372  {
373  InstanceScript* instance = go->GetInstanceScript();
374  player->SummonCreature(NPC_POWER_OF_THE_BLUE_DRAGONFLIGHT, player->GetPositionX(), player->GetPositionY(), player->GetPositionZ(), 0.0f, TEMPSUMMON_TIMED_DESPAWN, 121000);
375  player->CastSpell(player, SPELL_VENGEANCE_OF_THE_BLUE_FLIGHT, false);
377 
378  if (Creature* pKalec = ObjectAccessor::GetCreature(*player, instance->GetGuidData(DATA_KALECGOS_KJ)))
379  ENSURE_AI(boss_kalecgos_kj::boss_kalecgos_kjAI, pKalec->AI())->SetRingOfBlueFlames();
380 
381  go->Refresh();
382  }
383  return true;
384  }
uint32 GetUInt32Value(uint16 index) const
Definition: Object.cpp:300
InstanceScript * GetInstanceScript()
Definition: Object.cpp:1540
void SetUInt32Value(uint16 index, uint32 value)
Definition: Object.cpp:996
void Refresh()
Definition: GameObject.cpp:710
Definition: Creature.h:467
Definition: boss_kiljaeden.cpp:242
#define ENSURE_AI(a, b)
Definition: ScriptedCreature.h:29
virtual ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:93
Definition: Object.h:56
Definition: boss_kiljaeden.cpp:141
Definition: UpdateFields.h:321
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:174
Definition: sunwell_plateau.h:89
Definition: InstanceScript.h:141
Definition: sunwell_plateau.h:44

+ Here is the call graph for this function:


The documentation for this class was generated from the following file: