TrinityCore
instance_utgarde_pinnacle.cpp
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#include "ScriptMgr.h"
19#include "AreaBoundary.h"
20#include "GameObject.h"
21#include "InstanceScript.h"
22#include "utgarde_pinnacle.h"
23
25{
26 { DATA_KING_YMIRON, new RectangleBoundary(340.0f, 443.0f, -412.0f, -275.0f) }
27};
28
30{
34};
35
37{
49 { 0, 0 } // END
50};
51
53{
56 { 0, 0 } //END
57};
58
60{
61 { DATA_SVALA_SORROWGRAVE, {{ 2030 }} },
62 { DATA_GORTOK_PALEHOOF, {{ 2027 }} },
63 { DATA_SKADI_THE_RUTHLESS, {{ 2029 }} },
64 { DATA_KING_YMIRON, {{ 2028 }} }
65};
66
68{
69 public:
71
73 {
75 {
82 }
83
84 void OnGameObjectCreate(GameObject* go) override
85 {
87
91 }
92
93 void SetGuidData(uint32 type, ObjectGuid data) override
94 {
95 if (type == DATA_SACRIFICED_PLAYER)
97
99 }
100
101 ObjectGuid GetGuidData(uint32 type) const override
102 {
103 if (type == DATA_SACRIFICED_PLAYER)
105
106 return InstanceScript::GetGuidData(type);
107 }
108
109 protected:
111 };
112
114 {
116 }
117};
118
120{
122}
uint32_t uint32
Definition: Define.h:142
@ DONE
@ GO_FLAG_NOT_SELECTABLE
#define DataHeader
uint32 const EncounterCount
void SetFlag(GameObjectFlags flags)
Definition: GameObject.h:274
void SetBossNumber(uint32 number)
void LoadDungeonEncounterData(T const &encounters)
virtual ObjectGuid GetGuidData(uint32 type) const override
EncounterState GetBossState(uint32 id) const
virtual void OnGameObjectCreate(GameObject *go) override
void LoadDoorData(DoorData const *data)
void LoadBossBoundaries(BossBoundaryData const &data)
void SetHeaders(std::string const &dataHeaders)
void LoadObjectData(ObjectData const *creatureData, ObjectData const *gameObjectData)
uint32 GetEntry() const
Definition: Object.h:161
virtual void SetGuidData(uint32, ObjectGuid)
Definition: ZoneScript.h:84
InstanceScript * GetInstanceScript(InstanceMap *map) const override
ObjectData const gameObjectData[]
void AddSC_instance_utgarde_pinnacle()
ObjectData const creatureData[]
DoorData const doorData[]
BossBoundaryData const boundaries
DungeonEncounterData const encounters[]
#define UPScriptName
@ GO_GORTOK_PALEHOOF_SPHERE
@ GO_UTGARDE_MIRROR
@ GO_KING_YMIRON_DOOR
@ GO_SKADI_THE_RUTHLESS_DOOR
@ DATA_GORTOK_PALEHOOF_SPHERE
@ DATA_SKADI_THE_RUTHLESS
@ DATA_FRENZIED_WORGEN
@ DATA_SACRIFICED_PLAYER
@ DATA_GRAUF
@ DATA_KING_YMIRON
@ DATA_SVALA
@ DATA_SVALA_SORROWGRAVE
@ DATA_RAVENOUS_FURBOLG
@ DATA_UTGARDE_MIRROR
@ DATA_FEROCIOUS_RHINO
@ DATA_GORTOK_ORB
@ DATA_GORTOK_PALEHOOF
@ DATA_MASSIVE_JORMUNGAR
@ NPC_RAVENOUS_FURBOLG
@ NPC_KING_YMIRON
@ NPC_FRENZIED_WORGEN
@ NPC_SVALA_SORROWGRAVE
@ NPC_GORTOK_PALEHOOF
@ NPC_SKADI_THE_RUTHLESS
@ NPC_SVALA
@ NPC_MASSIVE_JORMUNGAR
@ NPC_GRAUF
@ NPC_PALEHOOF_ORB
@ NPC_FEROCIOUS_RHINO