TrinityCore
Loading...
Searching...
No Matches
instance_zulgurub.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 "zulgurub.h"
19#include "GameObject.h"
20#include "InstanceScript.h"
21#include "Map.h"
22#include "ScriptMgr.h"
23
28
30{
32 { 0, 0, DOOR_TYPE_ROOM } // END
33};
34
48
50{
52 { 0, 0 } // END
53};
54
56{
58
60 {
68
69 bool IsEncounterInProgress() const override
70 {
71 // not active in Zul'Gurub
72 return false;
73 }
74
75 void OnGameObjectCreate(GameObject* go) override
76 {
78
79 switch (go->GetEntry())
80 {
84 else
86 break;
87 default:
88 break;
89 }
90 }
91
92 void ProcessEvent(WorldObject* /*obj*/, uint32 eventId) override
93 {
95 instance->SummonCreature(NPC_GAHZRANKA, { -11688.5f, -1737.74f, 2.6789f, 3.9f });
96 }
97 };
98
100 {
102 }
103};
104
106{
107 new instance_zulgurub();
108}
uint32_t uint32
Definition Define.h:133
@ DONE
@ DOOR_TYPE_ROOM
@ GO_FLAG_NOT_SELECTABLE
#define DataHeader
uint32 const EncounterCount
void RemoveFlag(GameObjectFlags flags)
Definition GameObject.h:172
void SetFlag(GameObjectFlags flags)
Definition GameObject.h:171
void SetBossNumber(uint32 number)
Creature * GetCreature(uint32 type)
InstanceMap * instance
EncounterState GetBossState(uint32 id) const
virtual void OnGameObjectCreate(GameObject *go) override
void LoadDoorData(DoorData const *data)
void SetHeaders(std::string const &dataHeaders)
void LoadObjectData(ObjectData const *creatureData, ObjectData const *gameObjectData)
TempSummon * SummonCreature(uint32 entry, Position const &pos, SummonPropertiesEntry const *properties=nullptr, uint32 duration=0, WorldObject *summoner=nullptr, uint32 spellId=0, uint32 vehId=0, ObjectGuid privateObjectOwner=ObjectGuid::Empty)
Definition Object.cpp:1852
uint32 GetEntry() const
Definition Object.h:81
InstanceScript * GetInstanceScript(InstanceMap *map) const override
void AddSC_instance_zulgurub()
ZulGurubGameEventIds
@ EVENT_MUDSKUNK_LURE
ObjectData const creatureData[]
DoorData const doorData[]
ObjectData const gameobjectData[]
void ProcessEvent(WorldObject *, uint32 eventId) override
@ GO_FORCEFIELD
@ GO_GONG_OF_BETHEKK
Definition zulgurub.h:75
@ NPC_HAKKAR
Definition zulgurub.h:65
@ NPC_ZEALOT_ZATH
Definition zulgurub.h:53
@ NPC_ARLOKK
Definition zulgurub.h:49
@ NPC_VILEBRANCH_SPEAKER
Definition zulgurub.h:63
@ NPC_GAHZRANKA
Definition zulgurub.h:60
@ NPC_JINDO_THE_HEXXER
Definition zulgurub.h:56
@ NPC_HIGH_PRIEST_THEKAL
Definition zulgurub.h:55
@ NPC_PRIESTESS_MARLI
Definition zulgurub.h:54
@ NPC_ZEALOT_LORKHAN
Definition zulgurub.h:52
@ DATA_LORKHAN
Definition zulgurub.h:40
@ DATA_THEKAL
Definition zulgurub.h:34
@ DATA_GAHZRANKA
Definition zulgurub.h:38
@ DATA_ARLOKK
Definition zulgurub.h:33
@ DATA_HAKKAR
Definition zulgurub.h:35
@ DATA_MARLI
Definition zulgurub.h:32
@ DATA_JINDO
Definition zulgurub.h:37
@ DATA_ZATH
Definition zulgurub.h:41
@ DATA_GONG_BETHEKK
Definition zulgurub.h:43
@ DATA_VILEBRANCH_SPEAKER
Definition zulgurub.h:44
#define ZGScriptName
Definition zulgurub.h:23