mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Scripts/Throne of the Tides: added base instance script and definitions
This commit is contained in:
3
sql/updates/world/master/2023_12_22_03_world.sql
Normal file
3
sql/updates/world/master/2023_12_22_03_world.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
DELETE FROM `instance_template` WHERE `map`= 643;
|
||||
INSERT INTO `instance_template` (`map`, `parent`, `script`) VALUES
|
||||
(643, 0, 'instance_throne_of_the_tides');
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
* Free Software Foundation; either version 2 of the License, or (at your
|
||||
* option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "ScriptMgr.h"
|
||||
#include "throne_of_the_tides.h"
|
||||
#include "InstanceScript.h"
|
||||
|
||||
ObjectData const creatureData[] =
|
||||
{
|
||||
{ NPC_LADY_NAZJAR, BOSS_LADY_NAZJAR },
|
||||
{ NPC_COMMANDER_ULTHOK, BOSS_COMMANDER_ULTHOK },
|
||||
{ NPC_MINDBENDER_GURSHA, BOSS_MINDBENDER_GURSHA },
|
||||
{ NPC_OZUMAT, DATA_OZUMAT },
|
||||
{ 0, 0 } // END
|
||||
};
|
||||
|
||||
DungeonEncounterData const encounters[] =
|
||||
{
|
||||
{ BOSS_LADY_NAZJAR, {{ 1045 }} },
|
||||
{ BOSS_COMMANDER_ULTHOK, {{ 1044 }} },
|
||||
{ BOSS_MINDBENDER_GURSHA, {{ 1046 }} },
|
||||
{ BOSS_OZUMAT, {{ 1047 }} }
|
||||
};
|
||||
|
||||
class instance_throne_of_the_tides : public InstanceMapScript
|
||||
{
|
||||
public:
|
||||
instance_throne_of_the_tides() : InstanceMapScript(TotTScriptName, 643) { }
|
||||
|
||||
struct instance_throne_of_the_tides_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_throne_of_the_tides_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
LoadObjectData(creatureData, nullptr);
|
||||
LoadDungeonEncounterData(encounters);
|
||||
}
|
||||
};
|
||||
|
||||
InstanceScript* GetInstanceScript(InstanceMap* map) const override
|
||||
{
|
||||
return new instance_throne_of_the_tides_InstanceMapScript(map);
|
||||
}
|
||||
};
|
||||
|
||||
void AddSC_instance_throne_of_the_tides()
|
||||
{
|
||||
new instance_throne_of_the_tides();
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
* Free Software Foundation; either version 2 of the License, or (at your
|
||||
* option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef _Throne_of_the_Tides_h__
|
||||
#define _Throne_of_the_Tides_h__
|
||||
|
||||
#include "CreatureAIImpl.h"
|
||||
|
||||
constexpr char const* DataHeader = "TOTT";
|
||||
constexpr char const* TotTScriptName = "instance_throne_of_the_tides";
|
||||
|
||||
constexpr uint32 const EncounterCount = 4;
|
||||
|
||||
enum TotTDataTypes
|
||||
{
|
||||
// Encounters
|
||||
BOSS_LADY_NAZJAR = 0,
|
||||
BOSS_COMMANDER_ULTHOK = 1,
|
||||
BOSS_MINDBENDER_GURSHA = 2,
|
||||
BOSS_OZUMAT = 3,
|
||||
|
||||
/*Ozumat*/
|
||||
DATA_OZUMAT
|
||||
};
|
||||
|
||||
enum TotTCreatureIds
|
||||
{
|
||||
// Bosses
|
||||
NPC_LADY_NAZJAR = 40586,
|
||||
NPC_COMMANDER_ULTHOK = 40765,
|
||||
NPC_MINDBENDER_GURSHA = 40788,
|
||||
NPC_OZUMAT = 44566
|
||||
};
|
||||
|
||||
enum TotTGameObjectIds
|
||||
{
|
||||
GO_DOODAD_ABYSSAL_MAW_DOOR_1 = 204338,
|
||||
GO_DOODAD_ABYSSAL_MAW_DOOR_2 = 204339,
|
||||
GO_DOODAD_ABYSSAL_MAW_DOOR_4 = 204341
|
||||
};
|
||||
|
||||
template <class AI, class T>
|
||||
inline AI* GetThroneOfTheTidesAI(T* obj)
|
||||
{
|
||||
return GetInstanceAI<AI>(obj, TotTScriptName);
|
||||
}
|
||||
|
||||
#define RegisterThroneOfTheTidesCreatureAI(ai_name) RegisterCreatureAIWithFactory(ai_name, GetThroneOfTheTidesAI)
|
||||
|
||||
#endif // _Throne_of_the_Tides_h__
|
||||
@@ -167,6 +167,7 @@ void AddSC_instance_the_stockade(); //The Stockade
|
||||
void AddSC_boss_hogger();
|
||||
void AddSC_boss_randolph_moloch();
|
||||
void AddSC_boss_lord_overheat();
|
||||
void AddSC_instance_throne_of_the_tides();
|
||||
void AddSC_boss_akilzon(); //Zul'Aman
|
||||
void AddSC_boss_halazzi();
|
||||
void AddSC_boss_hex_lord_malacrass();
|
||||
@@ -358,6 +359,7 @@ void AddEasternKingdomsScripts()
|
||||
AddSC_boss_hogger();
|
||||
AddSC_boss_randolph_moloch();
|
||||
AddSC_boss_lord_overheat();
|
||||
AddSC_instance_throne_of_the_tides();
|
||||
AddSC_boss_archaedas(); //Uldaman
|
||||
AddSC_boss_ironaya();
|
||||
AddSC_uldaman();
|
||||
|
||||
Reference in New Issue
Block a user