TrinityCore
onyxias_lair.h
Go to the documentation of this file.
1/*
2 * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
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 DEF_ONYXIAS_LAIR_H
19#define DEF_ONYXIAS_LAIR_H
20
21#include "CreatureAIImpl.h"
22
23#define OnyxiaScriptName "instance_onyxias_lair"
24#define DataHeader "OL"
25
27
29{
31};
32
34{
38};
39
41{
44};
45
47{
50 PHASE_END = 3
51};
52
54{
55 NPC_WHELP = 11262,
57 NPC_ONYXIA = 10184,
58 NPC_TRIGGER = 14495
59};
60
62{
64 GO_WHELP_EGG = 176511
65};
66
68{
69 ACHIEV_CRITERIA_MANY_WHELPS_10_PLAYER = 12565, // Criteria for achievement 4403: Many Whelps! Handle It! (10 player) Hatch 50 eggs in 10s
70 ACHIEV_CRITERIA_MANY_WHELPS_25_PLAYER = 12568, // Criteria for achievement 4406: Many Whelps! Handle It! (25 player) Hatch 50 eggs in 10s
71 ACHIEV_CRITERIA_DEEP_BREATH_10_PLAYER = 12566, // Criteria for achievement 4404: She Deep Breaths More (10 player) Everybody evade Deep Breath
72 ACHIEV_CRITERIA_DEEP_BREATH_25_PLAYER = 12569, // Criteria for achievement 4407: She Deep Breaths More (25 player) Everybody evade Deep Breath
73 ACHIEV_TIMED_START_EVENT = 6601, // Timed event for achievement 4402, 4005: More Dots! (10, 25 player) 5 min kill
74};
75
76template <class AI, class T>
77inline AI* GetOnyxiasLairAI(T* obj)
78{
79 return GetInstanceAI<AI>(obj, OnyxiaScriptName);
80}
81
82#define RegisterOnyxiasLairCreatureAI(ai_name) RegisterCreatureAIWithFactory(ai_name, GetOnyxiasLairAI)
83
84#endif
uint32_t uint32
Definition: Define.h:142
OLData32
Definition: onyxias_lair.h:34
@ DATA_SHE_DEEP_BREATH_MORE
Definition: onyxias_lair.h:36
@ DATA_ONYXIA_PHASE
Definition: onyxias_lair.h:35
@ DATA_MANY_WHELPS_COUNT
Definition: onyxias_lair.h:37
uint32 const EncounterCount
Definition: onyxias_lair.h:26
AI * GetOnyxiasLairAI(T *obj)
Definition: onyxias_lair.h:77
OLOnyxiaPhases
Definition: onyxias_lair.h:47
@ PHASE_BREATH
Definition: onyxias_lair.h:49
@ PHASE_START
Definition: onyxias_lair.h:48
@ PHASE_END
Definition: onyxias_lair.h:50
OLCreatureIds
Definition: onyxias_lair.h:54
@ NPC_WHELP
Definition: onyxias_lair.h:55
@ NPC_LAIRGUARD
Definition: onyxias_lair.h:56
@ NPC_ONYXIA
Definition: onyxias_lair.h:57
@ NPC_TRIGGER
Definition: onyxias_lair.h:58
OLData64
Definition: onyxias_lair.h:41
@ DATA_FLOOR_ERUPTION_GUID
Definition: onyxias_lair.h:43
@ DATA_ONYXIA_GUID
Definition: onyxias_lair.h:42
OLGameObjectIds
Definition: onyxias_lair.h:62
@ GO_WHELP_EGG
Definition: onyxias_lair.h:64
@ GO_WHELP_SPAWNER
Definition: onyxias_lair.h:63
OLDataTypes
Definition: onyxias_lair.h:29
@ DATA_ONYXIA
Definition: onyxias_lair.h:30
OLAchievementData
Definition: onyxias_lair.h:68
@ ACHIEV_CRITERIA_MANY_WHELPS_10_PLAYER
Definition: onyxias_lair.h:69
@ ACHIEV_TIMED_START_EVENT
Definition: onyxias_lair.h:73
@ ACHIEV_CRITERIA_DEEP_BREATH_25_PLAYER
Definition: onyxias_lair.h:72
@ ACHIEV_CRITERIA_DEEP_BREATH_10_PLAYER
Definition: onyxias_lair.h:71
@ ACHIEV_CRITERIA_MANY_WHELPS_25_PLAYER
Definition: onyxias_lair.h:70
#define OnyxiaScriptName
Definition: onyxias_lair.h:23