TrinityCore
Loading...
Searching...
No Matches
instance_aberrus_the_shadowed_crucible.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 "Creature.h"
19#include "InstanceScript.h"
20#include "ScriptMgr.h"
22
36
41
42static constexpr ObjectData objectData[] =
43{
45};
46
47static constexpr DungeonEncounterData encounters[] =
48{
49 { DATA_KAZZARA_THE_HELLFORGED, {{ 2688 }} },
50 { DATA_THE_AMALGAMATION_CHAMBER, {{ 2687 }} },
51 { DATA_THE_FORGOTTEN_EXPERIMENTS, {{ 2693 }} },
52 { DATA_ASSAULT_OF_THE_ZAQALI, {{ 2682 }} },
53 { DATA_RASHOK_THE_ELDER, {{ 2680 }} },
55 { DATA_MAGMORAX, {{ 2683 }} },
56 { DATA_ECHO_OF_NELTHARION, {{ 2684 }} },
57 { DATA_SCALECOMMANDER_SARKARETH, {{ 2685 }} }
58};
59
61{
62 SPELL_ABERRUS_ENTRANCE_RP_CONVERSATION_3 = 403409 // Winglord Dezran, Sarkareth and Zskarn (Kazzara Summon)
63};
64
66{
67public:
69
71 {
83
84 uint32 GetData(uint32 dataId) const override
85 {
86 switch (dataId)
87 {
89 return _kazzaraIntroState;
90 default:
91 break;
92 }
93 return 0;
94 }
95
96 void SetData(uint32 dataId, uint32 value) override
97 {
98 switch (dataId)
99 {
101 _kazzaraIntroState = value;
102 break;
103 default:
104 break;
105 }
106 }
107
108 void OnCreatureCreate(Creature* creature) override
109 {
111
112 if (creature->HasStringId("kazzara_intro_trash"))
114 }
115
116 void OnUnitDeath(Unit* unit) override
117 {
118 Creature* creature = unit->ToCreature();
119 if (!creature)
120 return;
121
122 if (creature->HasStringId("kazzara_intro_trash"))
123 {
125 return;
126
129 return;
130
132
134 if (!sarkareth)
135 return;
136
138 }
139 }
140
141 private:
144 };
145
150};
151
uint8_t uint8
Definition Define.h:156
uint32_t uint32
Definition Define.h:154
@ IN_PROGRESS
@ NOT_STARTED
@ DATA_SCALECOMMANDER_SARKARETH
@ DATA_ZSKARN_THE_VIGILANT_STEWARD
@ DATA_THE_FORGOTTEN_EXPERIMENTS
@ DATA_THE_AMALGAMATION_CHAMBER
#define ATSCScriptName
@ NPC_SCALECOMMANDER_SARKARETH_AT_KAZZARA
@ BOSS_SCALECOMMANDER_SARKARETH
@ BOSS_ZSKARN_THE_VIGILANT_STEWARD
@ BOSS_SHADOWFLAME_AMALGAMATION
#define DataHeader
uint32 const EncounterCount
bool HasStringId(std::string_view id) const
void SetBossNumber(uint32 number)
virtual void OnCreatureCreate(Creature *creature) override
Creature * GetCreature(uint32 type)
void LoadObjectData(std::span< ObjectData const > creatureData, std::span< ObjectData const > gameObjectData)
void SetHeaders(std::string_view dataHeaders)
void LoadDungeonEncounterData(std::span< DungeonEncounterData const > encounters)
void LoadDoorData(std::span< DoorData const > data)
Creature * ToCreature()
Definition Object.h:121
Definition Unit.h:635
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
Definition Object.cpp:2217
InstanceScript * GetInstanceScript(InstanceMap *map) const override
static constexpr ObjectData creatureData[]
static constexpr ObjectData objectData[]
static constexpr DoorData doorData[]
static constexpr DungeonEncounterData encounters[]
void AddSC_instance_aberrus_the_shadowed_crucible()