TrinityCore
instance_vortex_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 "vortex_pinnacle.h"
20#include "Creature.h"
21#include "InstanceScript.h"
22
24{
28 { 0, 0 } // END
29};
30
32{
33 { BOSS_GRAND_VIZIER_ERTAN, {{ 1043 }} },
34 { BOSS_ALTAIRUS, {{ 1041 }} },
35 { BOSS_ASAAD, {{ 1042 }} }
36};
37
38// These StringIds must be set in DB to properly identify the first and second landing zone for the entrance shortcut teleporters
39constexpr std::string_view SlipStreamLandingZoneStringId1 = "vp_slipstream_landing_zone_1";
40constexpr std::string_view SlipStreamLandingZoneStringId2 = "vp_slipstream_landing_zone_2";
41
43{
44public:
46
48 {
50 {
55 }
56
57 void OnCreatureCreate(Creature* creature) override
58 {
60
61 switch (creature->GetEntry())
62 {
68 break;
69 default:
70 break;
71 }
72 }
73
74 void OnCreatureRemove(Creature* creature) override
75 {
77
78 switch (creature->GetEntry())
79 {
85 break;
86 default:
87 break;
88 }
89 }
90 };
91
93 {
95 }
96};
97
99{
101}
#define DataHeader
uint32 const EncounterCount
bool HasStringId(std::string_view id) const
Definition: Creature.cpp:3165
void SetBossNumber(uint32 number)
virtual void OnCreatureCreate(Creature *creature) override
void LoadDungeonEncounterData(T const &encounters)
virtual void OnCreatureRemove(Creature *creature) override
void AddObject(Creature *obj, bool add)
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
ObjectData const creatureData[]
constexpr std::string_view SlipStreamLandingZoneStringId2
void AddSC_instance_vortex_pinnacle()
constexpr std::string_view SlipStreamLandingZoneStringId1
DungeonEncounterData const encounters[]
@ BOSS_ASAAD
@ DATA_SLIPSTREAM_LANDING_ZONE_1
@ BOSS_GRAND_VIZIER_ERTAN
@ BOSS_ALTAIRUS
@ DATA_SLIPSTREAM_LANDING_ZONE_2
constexpr char const * VPScriptName
@ NPC_SLIPSTREAM_LANDING_ZONE
@ NPC_ALTAIRUS
@ NPC_GRAND_VIZIER_ERTAN
@ NPC_ASAAD