mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-13 03:32:28 -04:00
Scripts/DarkflameCleft: Add Normal/Heroic difficulties and door data for The Candle King (#31773)
This commit is contained in:
15
sql/updates/world/master/026_04_03_02_world.sql
Normal file
15
sql/updates/world/master/026_04_03_02_world.sql
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
DELETE FROM `creature_template_difficulty` WHERE (`DifficultyID` IN (1, 2) AND `Entry` IN (209791,209603, 208745));
|
||||||
|
INSERT INTO `creature_template_difficulty` (`Entry`, `DifficultyID`, `HealthScalingExpansion`, `HealthModifier`, `ManaModifier`, `CreatureDifficultyID`, `TypeFlags`, `TypeFlags2`, `TypeFlags3`) VALUES
|
||||||
|
(209791, 1, 10, 1, 1, 240104, 0x200068, 128, 0), -- Wax Chunk
|
||||||
|
(209603, 1, 10, 1, 1, 239912, 0x200068, 128, 0), -- Wax Statue
|
||||||
|
(208745, 1, 10, 35, 1, 237981, 0x200068, 128, 0), -- The Candle King
|
||||||
|
(209791, 2, 10, 1, 1, 240104, 0x200068, 128, 0), -- Wax Chunk
|
||||||
|
(209603, 2, 10, 1, 1, 239912, 0x200068, 128, 0), -- Wax Statue
|
||||||
|
(208745, 2, 10, 35, 1, 237981, 0x200068, 128, 0); -- The Candle King
|
||||||
|
|
||||||
|
UPDATE `creature_template_difficulty` SET `ContentTuningID`=2718, `VerifiedBuild`=66709 WHERE (`Entry`=209791 AND `DifficultyID`=1); -- 209791 (Wax Chunk) -
|
||||||
|
UPDATE `creature_template_difficulty` SET `ContentTuningID`=2718, `VerifiedBuild`=66709 WHERE (`Entry`=209603 AND `DifficultyID`=1); -- 209603 (Wax Statue) -
|
||||||
|
UPDATE `creature_template_difficulty` SET `ContentTuningID`=2718, `VerifiedBuild`=66709 WHERE (`Entry`=208745 AND `DifficultyID`=1); -- 208745 (The Candle King) -
|
||||||
|
UPDATE `creature_template_difficulty` SET `ContentTuningID`=2720, `VerifiedBuild`=66709 WHERE (`Entry`=209791 AND `DifficultyID`=2); -- 209791 (Wax Chunk) -
|
||||||
|
UPDATE `creature_template_difficulty` SET `ContentTuningID`=2720, `VerifiedBuild`=66709 WHERE (`Entry`=209603 AND `DifficultyID`=2); -- 209603 (Wax Statue) -
|
||||||
|
UPDATE `creature_template_difficulty` SET `ContentTuningID`=2720, `VerifiedBuild`=66709 WHERE (`Entry`=208745 AND `DifficultyID`=2); -- 208745 (The Candle King) -
|
||||||
@@ -43,6 +43,11 @@ enum DarkflameCleftCreatureIds
|
|||||||
BOSS_THE_DARKNESS = 210797
|
BOSS_THE_DARKNESS = 210797
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enum DarkflameCleftGameObjectIds
|
||||||
|
{
|
||||||
|
GO_CATACOMBS_GATE = 430177
|
||||||
|
};
|
||||||
|
|
||||||
template <class AI, class T>
|
template <class AI, class T>
|
||||||
inline AI* GetDarkflameCleftAI(T* obj)
|
inline AI* GetDarkflameCleftAI(T* obj)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -41,6 +41,11 @@ static constexpr DungeonEncounterData const encounters[] =
|
|||||||
{ DATA_THE_DARKNESS, {{ 2788 }} }
|
{ DATA_THE_DARKNESS, {{ 2788 }} }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static constexpr DoorData doorData[] =
|
||||||
|
{
|
||||||
|
{ GO_CATACOMBS_GATE, DATA_THE_CANDLE_KING, EncounterDoorBehavior::OpenWhenDone }
|
||||||
|
};
|
||||||
|
|
||||||
class instance_darkflame_cleft : public InstanceMapScript
|
class instance_darkflame_cleft : public InstanceMapScript
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -53,6 +58,7 @@ public:
|
|||||||
SetHeaders(DataHeader);
|
SetHeaders(DataHeader);
|
||||||
SetBossNumber(EncounterCount);
|
SetBossNumber(EncounterCount);
|
||||||
LoadObjectData(creatureData, {});
|
LoadObjectData(creatureData, {});
|
||||||
|
LoadDoorData(doorData);
|
||||||
LoadBossBoundaries(boundaries);
|
LoadBossBoundaries(boundaries);
|
||||||
LoadDungeonEncounterData(encounters);
|
LoadDungeonEncounterData(encounters);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user