TrinityCore
Loading...
Searching...
No Matches
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
39
45
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:154
OLData32
@ DATA_SHE_DEEP_BREATH_MORE
@ DATA_ONYXIA_PHASE
@ DATA_MANY_WHELPS_COUNT
uint32 const EncounterCount
AI * GetOnyxiasLairAI(T *obj)
OLOnyxiaPhases
@ PHASE_BREATH
@ PHASE_START
@ PHASE_END
OLCreatureIds
@ NPC_WHELP
@ NPC_LAIRGUARD
@ NPC_ONYXIA
@ NPC_TRIGGER
OLData64
@ DATA_FLOOR_ERUPTION_GUID
@ DATA_ONYXIA_GUID
OLGameObjectIds
@ GO_WHELP_EGG
@ GO_WHELP_SPAWNER
OLDataTypes
@ DATA_ONYXIA
OLAchievementData
@ ACHIEV_CRITERIA_MANY_WHELPS_10_PLAYER
@ ACHIEV_TIMED_START_EVENT
@ ACHIEV_CRITERIA_DEEP_BREATH_25_PLAYER
@ ACHIEV_CRITERIA_DEEP_BREATH_10_PLAYER
@ ACHIEV_CRITERIA_MANY_WHELPS_25_PLAYER
#define OnyxiaScriptName