TrinityCore
instance_sethekk_halls.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 "Creature.h"
20#include "GameObject.h"
21#include "InstanceScript.h"
22#include "sethekk_halls.h"
23
25{
28};
29
31{
33 { 0, 0 } // END
34};
35
37{
38 { DATA_DARKWEAVER_SYTH, {{ 1903 }} },
39 { DATA_TALON_KING_IKISS, {{ 1902 }} },
40 { DATA_ANZU, {{ 1904 }} }
41};
42
44{
45 public:
47
49 {
51 {
57 }
58
59 void OnCreatureCreate(Creature* creature) override
60 {
61 if (creature->GetEntry() == NPC_ANZU)
62 {
64 creature->DisappearAndDie();
65 else
67 }
68 }
69
70 bool SetBossState(uint32 type, EncounterState state) override
71 {
72 if (!InstanceScript::SetBossState(type, state))
73 return false;
74
75 switch (type)
76 {
78 if (state == DONE)
79 {
85 }
86 break;
87 default:
88 break;
89 }
90 return true;
91 }
92 };
93
95 {
97 }
98};
99
101{
103}
uint32_t uint32
Definition: Define.h:142
EncounterState
@ IN_PROGRESS
@ DONE
@ GO_FLAG_INTERACT_COND
@ GO_FLAG_NOT_SELECTABLE
#define DataHeader
uint32 const EncounterCount
void DisappearAndDie()
Definition: Creature.h:83
void SetBossNumber(uint32 number)
virtual bool SetBossState(uint32 id, EncounterState state)
void LoadDungeonEncounterData(T const &encounters)
EncounterState GetBossState(uint32 id) const
void LoadDoorData(DoorData const *data)
GameObject * GetGameObject(uint32 type)
void SetHeaders(std::string const &dataHeaders)
void LoadObjectData(ObjectData const *creatureData, ObjectData const *gameObjectData)
uint32 GetEntry() const
Definition: Object.h:161
InstanceScript * GetInstanceScript(InstanceMap *map) const override
void AddSC_instance_sethekk_halls()
ObjectData const gameObjectData[]
DoorData const doorData[]
DungeonEncounterData const encounters[]
@ DATA_TALON_KING_COFFER
Definition: sethekk_halls.h:36
@ DATA_DARKWEAVER_SYTH
Definition: sethekk_halls.h:31
@ DATA_TALON_KING_IKISS
Definition: sethekk_halls.h:32
@ DATA_ANZU
Definition: sethekk_halls.h:33
#define SHScriptName
Definition: sethekk_halls.h:23
@ NPC_ANZU
Definition: sethekk_halls.h:41
@ GO_IKISS_DOOR
Definition: sethekk_halls.h:47
@ GO_TALON_KING_COFFER
Definition: sethekk_halls.h:48
bool SetBossState(uint32 type, EncounterState state) override