TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
halls_of_origination.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
3  *
4  * This program is free software; you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License as published by the
6  * Free Software Foundation; either version 2 of the License, or (at your
7  * option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12  * more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef HALLS_OF_ORIGINATION_H
19 #define HALLS_OF_ORIGINATION_H
20 
21 #define DataHeader "HOO"
22 #define HoOScriptName "instance_halls_of_origination"
23 
25 
26 enum Data
27 {
28  // Bosses
41 
42  // Temple Guardian Anhuur
48 
49  // Anraphet
53 };
54 
56 {
60 
62  NPC_BEETLE_STALKER = 40459, // Summons both Jeweled Scarab and Dustbone Horror
65  NPC_QUICKSAND = 40503, // Summoned by a spell not in dbc (75550)
66 
67  BOSS_ANRAPHET = 39788,
68  NPC_FIRE_WARDEN = 39800,
71  NPC_AIR_WARDEN = 39803,
72 
74 
77 };
78 
80 {
83  GO_ANHUURS_DOOR = 202307,
86 
88  GO_SUN_MIRROR = 207726,
89  GO_ANRAPHET_DOOR = 202314,
90 
95 
96  GO_DOODAD_ULDUM_LASERBEAMS01 = 207662, // Matches GO_DOODAD_ULDUM_LIGHTMACHINE_02
97  GO_DOODAD_ULDUM_LASERBEAMS_01 = 207663, // Matches GO_DOODAD_ULDUM_LIGHTMACHINE_01
98  GO_DOODAD_ULDUM_LASERBEAMS_02 = 207664, // Matches GO_DOODAD_ULDUM_LIGHTMACHINE_04
99  GO_DOODAD_ULDUM_LASERBEAMS_03 = 207665, // Matches GO_DOODAD_ULDUM_LIGHTMACHINE_03
100 };
101 
102 enum Misc
103 {
105  ACHIEV_VAULT_OF_LIGHTS_EVENT = 24212, // Faster Than The Speed Of Light
106  SPELL_VAULT_OF_LIGHTS_CREDIT = 94067, // Not in DBC
107 };
108 
110 {
115 };
116 
117 template<class AI>
119 {
120  if (InstanceMap* instance = creature->GetMap()->ToInstanceMap())
121  if (instance->GetInstanceScript())
122  if (instance->GetScriptId() == sObjectMgr->GetScriptId(HoOScriptName))
123  return new AI(creature);
124  return NULL;
125 }
126 
127 #endif // HALLS_OF_ORIGINATION_H
Definition: halls_of_origination.h:57
Definition: halls_of_origination.h:43
#define HoOScriptName
Definition: halls_of_origination.h:22
Definition: halls_of_origination.h:30
Definition: halls_of_origination.h:59
Definition: halls_of_origination.h:84
Definition: halls_of_origination.h:52
uint32 const EncounterCount
Definition: halls_of_origination.h:24
Map * GetMap() const
Definition: Object.h:543
Definition: halls_of_origination.h:85
Definition: halls_of_origination.h:36
GameObjects
Definition: instance_blackrock_depths.cpp:42
Definition: halls_of_origination.h:75
Definition: halls_of_origination.h:70
Definition: halls_of_origination.h:64
Definition: halls_of_origination.h:33
Definition: halls_of_origination.h:67
Definition: halls_of_origination.h:82
Definition: halls_of_origination.h:71
Definition: halls_of_origination.h:38
arena_t NULL
Definition: jemalloc_internal.h:624
Definition: halls_of_origination.h:81
Definition: Creature.h:467
Creatures
Definition: alterac_valley.cpp:39
Definition: halls_of_origination.h:31
Definition: halls_of_origination.h:111
#define sObjectMgr
Definition: ObjectMgr.h:1567
Definition: halls_of_origination.h:105
Definition: halls_of_origination.h:58
Definition: halls_of_origination.h:97
Definition: halls_of_origination.h:61
Definition: halls_of_origination.h:68
Definition: halls_of_origination.h:87
Definition: halls_of_origination.h:65
Definition: halls_of_origination.h:69
Definition: halls_of_origination.h:89
Definition: Map.h:758
Definition: halls_of_origination.h:92
Definition: halls_of_origination.h:51
Definition: halls_of_origination.h:40
Definition: halls_of_origination.h:73
Definition: halls_of_origination.h:104
Definition: halls_of_origination.h:47
GlobalActions
Definition: halls_of_origination.h:109
InstanceMap * ToInstanceMap()
Definition: Map.h:495
Definition: CreatureAI.h:68
Definition: halls_of_origination.h:88
Definition: halls_of_origination.h:99
Definition: halls_of_origination.h:50
uint32_t uint32
Definition: Define.h:150
Definition: halls_of_origination.h:37
Definition: halls_of_origination.h:76
CreatureAI * GetHallsOfOriginationAI(Creature *creature)
Definition: halls_of_origination.h:118
Definition: halls_of_origination.h:98
Definition: halls_of_origination.h:29
Definition: halls_of_origination.h:83
Definition: halls_of_origination.h:106
Definition: halls_of_origination.h:45
Definition: halls_of_origination.h:32
Definition: halls_of_origination.h:39
Definition: halls_of_origination.h:34
Definition: halls_of_origination.h:44
Definition: halls_of_origination.h:112
Definition: halls_of_origination.h:96
Misc
Definition: boss_occuthar.cpp:48
Definition: halls_of_origination.h:62
Definition: halls_of_origination.h:63
Definition: halls_of_origination.h:35
Definition: halls_of_origination.h:114
Definition: halls_of_origination.h:91
Data
Definition: molten_core.h:69
Definition: halls_of_origination.h:113
Definition: halls_of_origination.h:94
Definition: halls_of_origination.h:46
Definition: halls_of_origination.h:93