Scripts/Kalimdor: moved scipts into their corresponding namespace

This commit is contained in:
Ovahlord committed 2023-12-09 02:34:48 +01:00
1 parent 93d8ed48b7
commit 22c843d8fe
159 files changed
+772 -80

No files matched your search

@@ -25,6 +25,8 @@
#include "ScriptedEscortAI.h"
#include "ScriptedGossip.h"
namespace BlackfathomDeeps
{
enum Spells
{
SPELL_BLESSING_OF_BLACKFATHOM = 8733,
@@ -256,9 +258,11 @@ public:
return GetBlackfathomDeepsAI<npc_morriduneAI>(creature);
}
};
}
void AddSC_blackfathom_deeps()
{
using namespace BlackfathomDeeps;
new go_blackfathom_altar();
new go_blackfathom_fire();
new npc_blackfathom_deeps_event();
@@ -20,6 +20,8 @@
#include "CreatureAIImpl.h"
namespace BlackfathomDeeps
{
#define BFDScriptName "instance_blackfathom_deeps"
#define DataHeader "BFD"
@@ -75,5 +77,6 @@ inline AI* GetBlackfathomDeepsAI(T* obj)
{
return GetInstanceAI<AI>(obj, BFDScriptName);
}
}
#endif // BFD_H_
@@ -19,6 +19,8 @@
#include "blackfathom_deeps.h"
#include "ScriptedCreature.h"
namespace BlackfathomDeeps::AkuMai
{
enum Spells
{
SPELL_POISON_CLOUD = 3815,
@@ -91,8 +93,11 @@ public:
return GetBlackfathomDeepsAI<boss_aku_maiAI>(creature);
}
};
}
void AddSC_boss_aku_mai()
{
using namespace BlackfathomDeeps;
using namespace BlackfathomDeeps::AkuMai;
new boss_aku_mai();
}
@@ -19,6 +19,8 @@
#include "blackfathom_deeps.h"
#include "ScriptedCreature.h"
namespace BlackfathomDeeps::Gelihast
{
enum Spells
{
SPELL_NET = 6533
@@ -69,8 +71,11 @@ public:
return GetBlackfathomDeepsAI<boss_gelihastAI>(creature);
}
};
}
void AddSC_boss_gelihast()
{
using namespace BlackfathomDeeps;
using namespace BlackfathomDeeps::Gelihast;
new boss_gelihast();
}
@@ -19,6 +19,8 @@
#include "blackfathom_deeps.h"
#include "ScriptedCreature.h"
namespace BlackfathomDeeps::Kelris
{
enum Spells
{
SPELL_MIND_BLAST = 15587,
@@ -104,8 +106,11 @@ public:
return GetBlackfathomDeepsAI<boss_kelrisAI>(creature);
}
};
}
void AddSC_boss_kelris()
{
using namespace BlackfathomDeeps;
using namespace BlackfathomDeeps::Kelris;
new boss_kelris();
}
@@ -29,6 +29,8 @@ EndScriptData */
#include "InstanceScript.h"
#include "Map.h"
namespace BlackfathomDeeps
{
const Position LorgusPosition[4] =
{
{ -458.500610f, -38.343079f, -33.474445f, 0.0f },
@@ -241,8 +243,10 @@ public:
return new instance_blackfathom_deeps_InstanceMapScript(map);
}
};
}
void AddSC_instance_blackfathom_deeps()
{
using namespace BlackfathomDeeps;
new instance_blackfathom_deeps();
}
@@ -21,6 +21,10 @@
#include "ObjectAccessor.h"
#include "SpellScript.h"
namespace BattleForMountHyjal::Anetheron
{
using namespace BattleForMountHyjal::Trash;
enum Spells
{
SPELL_CARRION_SWARM = 31306,
@@ -294,9 +298,12 @@ class spell_anetheron_vampiric_aura : public SpellScriptLoader
return new spell_anetheron_vampiric_aura_AuraScript();
}
};
}
void AddSC_boss_anetheron()
{
using namespace BattleForMountHyjal;
using namespace BattleForMountHyjal::Anetheron;
new boss_anetheron();
new npc_towering_infernal();
new spell_anetheron_vampiric_aura();
@@ -31,6 +31,8 @@ EndScriptData */
#include "ScriptedCreature.h"
#include "SpellScript.h"
namespace BattleForMountHyjal::Archimonde
{
enum Texts
{
SAY_AGGRO = 1,
@@ -566,9 +568,12 @@ class spell_archimonde_drain_world_tree_dummy : public SpellScriptLoader
return new spell_archimonde_drain_world_tree_dummy_SpellScript();
}
};
}
void AddSC_boss_archimonde()
{
using namespace BattleForMountHyjal;
using namespace BattleForMountHyjal::Archimonde;
new boss_archimonde();
new npc_doomfire();
new npc_doomfire_targetting();
@@ -21,6 +21,9 @@
#include "ObjectAccessor.h"
#include "ScriptedCreature.h"
namespace BattleForMountHyjal::Azgalor
{
using namespace BattleForMountHyjal::Trash;
enum Spells
{
SPELL_RAIN_OF_FIRE = 31340,
@@ -271,9 +274,12 @@ public:
return GetHyjalAI<npc_lesser_doomguardAI>(creature);
}
};
}
void AddSC_boss_azgalor()
{
using namespace BattleForMountHyjal;
using namespace BattleForMountHyjal::Azgalor;
new boss_azgalor();
new npc_lesser_doomguard();
}
@@ -23,6 +23,9 @@
#include "SpellAuraEffects.h"
#include "SpellScript.h"
namespace BattleForMountHyjal::Kazrogal
{
using namespace BattleForMountHyjal::Trash;
enum Spells
{
SPELL_CLEAVE = 31436,
@@ -233,9 +236,12 @@ class spell_mark_of_kazrogal : public SpellScriptLoader
return new spell_mark_of_kazrogal_AuraScript();
}
};
}
void AddSC_boss_kazrogal()
{
using namespace BattleForMountHyjal;
using namespace BattleForMountHyjal::Kazrogal;
new boss_kazrogal();
new spell_mark_of_kazrogal();
}
@@ -20,6 +20,10 @@
#include "InstanceScript.h"
#include "ObjectAccessor.h"
namespace BattleForMountHyjal::RageWinterchill
{
using namespace BattleForMountHyjal::Trash;
enum Spells
{
SPELL_FROST_ARMOR = 31256,
@@ -162,8 +166,11 @@ public:
return GetHyjalAI<boss_rage_winterchillAI>(creature);
}
};
}
void AddSC_boss_rage_winterchill()
{
using namespace BattleForMountHyjal;
using namespace BattleForMountHyjal::RageWinterchill;
new boss_rage_winterchill();
}
@@ -36,6 +36,10 @@ EndContentData */
#include "ScriptedCreature.h"
#include "ScriptedGossip.h"
namespace BattleForMountHyjal
{
using namespace BattleForMountHyjal::HyjalAI;
#define GOSSIP_ITEM_BEGIN_ALLY "My companions and I are with you, Lady Proudmoore."
#define GOSSIP_ITEM_ANETHERON "We are ready for whatever Archimonde might send our way, Lady Proudmoore."
@@ -251,9 +255,11 @@ class npc_tyrande_whisperwind : public CreatureScript
return GetHyjalAI<npc_tyrande_whisperwindAI>(creature);
}
};
}
void AddSC_hyjal()
{
using namespace BattleForMountHyjal;
new npc_jaina_proudmoore();
new npc_thrall();
new npc_tyrande_whisperwind();
@@ -20,6 +20,8 @@
#include "CreatureAIImpl.h"
namespace BattleForMountHyjal
{
#define HyjalScriptName "instance_hyjal"
#define DataHeader "HY"
@@ -100,5 +102,6 @@ inline AI* GetHyjalAI(T* obj)
{
return GetInstanceAI<AI>(obj, HyjalScriptName);
}
}
#endif
@@ -33,6 +33,10 @@ EndScriptData */
#include "ObjectAccessor.h"
#include "TemporarySummon.h"
namespace BattleForMountHyjal::HyjalAI
{
using namespace BattleForMountHyjal::Trash;
enum Spawns
{
SPAWN_GARG_GATE = 0,
@@ -1106,3 +1110,4 @@ void hyjalAI::DoOverrun(uint32 faction, const uint32 diff)
break;
}
}
}
@@ -21,6 +21,8 @@
#include "hyjal.h"
#include "ScriptedEscortAI.h"
namespace BattleForMountHyjal::HyjalAI
{
#define HYJAL_AI_MAX_SPELLS 3
enum SpellIds
@@ -204,4 +206,5 @@ struct hyjalAI : public EscortAI
private:
uint32 SpellTimer[3];
};
}
#endif
@@ -23,6 +23,8 @@
#include "ObjectAccessor.h"
#include "TemporarySummon.h"
namespace BattleForMountHyjal::Trash
{
enum Spells
{
SPELL_METEOR = 33814, //infernal visual
@@ -1442,9 +1444,12 @@ public:
return GetHyjalAI<alliance_riflemanAI>(creature);
}
};
}
void AddSC_hyjal_trash()
{
using namespace BattleForMountHyjal;
using namespace BattleForMountHyjal::Trash;
new npc_giant_infernal();
new npc_abomination();
new npc_ghoul();
@@ -21,6 +21,8 @@
#include "hyjal.h"
#include "ScriptedEscortAI.h"
namespace BattleForMountHyjal::Trash
{
struct hyjal_trashAI : public EscortAI
{
hyjal_trashAI(Creature* creature);
@@ -46,4 +48,5 @@ struct hyjal_trashAI : public EscortAI
//private:
};
}
#endif
@@ -42,6 +42,8 @@ EndScriptData */
4 - Archimonde event
*/
namespace BattleForMountHyjal
{
enum Yells
{
YELL_ARCHIMONDE_INTRO = 8
@@ -321,8 +323,10 @@ public:
return new instance_mount_hyjal_InstanceMapScript(map);
}
};
}
void AddSC_instance_mount_hyjal()
{
using namespace BattleForMountHyjal;
new instance_hyjal();
}
@@ -23,6 +23,8 @@
#include "SpellInfo.h"
#include <vector>
namespace CullingOfStratholme::ChronoLordEpoch
{
enum Spells
{
SPELL_CURSE_OF_EXERTION = 52772,
@@ -157,8 +159,11 @@ class boss_epoch : public CreatureScript
return GetCullingOfStratholmeAI<boss_epochAI>(creature);
}
};
}
void AddSC_boss_epoch()
{
using namespace CullingOfStratholme;
using namespace CullingOfStratholme::ChronoLordEpoch;
new boss_epoch();
}
@@ -22,40 +22,42 @@
#include "ScriptMgr.h"
#include "SpellInfo.h"
enum Spells
namespace CullingOfStratholme::InfiniteCorruptor
{
SPELL_CORRUPTING_BLIGHT = 60588,
SPELL_VOID_STRIKE = 60590,
SPELL_CORRUPTION_OF_TIME_CHANNEL = 60422,
SPELL_CORRUPTION_OF_TIME_TARGET = 60451
};
enum Spells
{
SPELL_CORRUPTING_BLIGHT = 60588,
SPELL_VOID_STRIKE = 60590,
SPELL_CORRUPTION_OF_TIME_CHANNEL = 60422,
SPELL_CORRUPTION_OF_TIME_TARGET = 60451
};
enum Yells
{
SAY_AGGRO = 0,
SAY_DEATH = 1,
SAY_FAIL = 2
};
enum Yells
{
SAY_AGGRO = 0,
SAY_DEATH = 1,
SAY_FAIL = 2
};
enum Events
{
EVENT_CORRUPTING_BLIGHT = 1,
EVENT_VOID_STRIKE
};
enum Events
{
EVENT_CORRUPTING_BLIGHT = 1,
EVENT_VOID_STRIKE
};
enum Entries
{
NPC_TIME_RIFT = 28409,
NPC_GUARDIAN_OF_TIME = 32281
};
enum Entries
{
NPC_TIME_RIFT = 28409,
NPC_GUARDIAN_OF_TIME = 32281
};
enum Misc
{
MOVEMENT_TIME_RIFT = 1
};
enum Misc
{
MOVEMENT_TIME_RIFT = 1
};
class boss_infinite_corruptor : public CreatureScript
{
class boss_infinite_corruptor : public CreatureScript
{
public:
boss_infinite_corruptor() : CreatureScript("boss_infinite_corruptor") { }
@@ -102,17 +104,17 @@ class boss_infinite_corruptor : public CreatureScript
{
switch (eventId)
{
case EVENT_CORRUPTING_BLIGHT:
if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 60.0f, true))
DoCast(target, SPELL_CORRUPTING_BLIGHT);
events.ScheduleEvent(EVENT_CORRUPTING_BLIGHT, 15s);
break;
case EVENT_VOID_STRIKE:
DoCastVictim(SPELL_VOID_STRIKE);
events.ScheduleEvent(EVENT_VOID_STRIKE, 5s);
break;
default:
break;
case EVENT_CORRUPTING_BLIGHT:
if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 60.0f, true))
DoCast(target, SPELL_CORRUPTING_BLIGHT);
events.ScheduleEvent(EVENT_CORRUPTING_BLIGHT, 15s);
break;
case EVENT_VOID_STRIKE:
DoCastVictim(SPELL_VOID_STRIKE);
events.ScheduleEvent(EVENT_VOID_STRIKE, 5s);
break;
default:
break;
}
}
@@ -155,9 +157,12 @@ class boss_infinite_corruptor : public CreatureScript
{
return GetCullingOfStratholmeAI<boss_infinite_corruptorAI>(creature);
}
};
};
}
void AddSC_boss_infinite_corruptor()
{
using namespace CullingOfStratholme;
using namespace CullingOfStratholme::InfiniteCorruptor;
new boss_infinite_corruptor();
}
@@ -26,6 +26,8 @@
#include "ScriptMgr.h"
#include "SpellMgr.h"
namespace CullingOfStratholme::MalGanis
{
enum Spells
{
SPELL_CARRION_SWARM = 52720,
@@ -190,8 +192,11 @@ class boss_mal_ganis : public CreatureScript
bool _hadYell15;
};
};
}
void AddSC_boss_mal_ganis()
{
using namespace CullingOfStratholme;
using namespace CullingOfStratholme::MalGanis;
new boss_mal_ganis();
}
@@ -20,6 +20,8 @@
#include "ScriptedCreature.h"
#include "ScriptMgr.h"
namespace CullingOfStratholme::Meathook
{
enum Spells
{
SPELL_CONSTRICTING_CHAINS = 52696,
@@ -112,8 +114,11 @@ class boss_meathook : public CreatureScript
return GetCullingOfStratholmeAI<boss_meathookAI>(creature);
}
};
}
void AddSC_boss_meathook()
{
using namespace CullingOfStratholme;
using namespace CullingOfStratholme::Meathook;
new boss_meathook();
}
@@ -22,6 +22,8 @@
#include "SpellAuraEffects.h"
#include "SpellScript.h"
namespace CullingOfStratholme::SalrammTheFleshcrafter
{
enum Spells
{
SPELL_CURSE_OF_TWISTED_FLESH = 58845,
@@ -152,9 +154,12 @@ class spell_salramm_steal_flesh : public AuraScript
OnEffectPeriodic.Register(&spell_salramm_steal_flesh::HandlePeriodic, EFFECT_0, SPELL_AURA_PERIODIC_DUMMY);
}
};
}
void AddSC_boss_salramm()
{
using namespace CullingOfStratholme;
using namespace CullingOfStratholme::SalrammTheFleshcrafter;
new boss_salramm();
RegisterSpellScript(spell_salramm_steal_flesh);
}
@@ -36,6 +36,8 @@
#include "TemporarySummon.h"
#include <unordered_map>
namespace CullingOfStratholme
{
enum InnEventEntries
{
NPC_FORREST = 30551,
@@ -1457,9 +1459,11 @@ public:
return GetCullingOfStratholmeAI<npc_crate_helperAI>(creature);
}
};
}
void AddSC_culling_of_stratholme()
{
using namespace CullingOfStratholme;
new npc_hearthsinger_forresten_cot();
new at_stratholme_inn_stairs_cot();
@@ -20,6 +20,10 @@
#include "CreatureAIImpl.h"
struct Position;
namespace CullingOfStratholme
{
#define DataHeader "CS"
#define CoSScriptName "instance_culling_of_stratholme"
@@ -83,8 +87,6 @@ uint32 constexpr EncounterCount = 5;
* - gets current instance state using GetData, then checks if we should despawn ourselves (bitmask check) *
\***********************************************************************************************************************/
struct Position;
// Note: These are bitmask values to allow combining, but only a single bit will ever be true in instance script
enum COSProgressStates : uint32
{
@@ -109,7 +111,11 @@ enum COSProgressStates : uint32
ALL = 0x1FFFF
};
COSProgressStates GetStableStateFor(COSProgressStates const state); // defined by instance script
Position const& GetArthasSnapbackFor(COSProgressStates state); // defined by arthas script
namespace Arthas
{
Position const& GetArthasSnapbackFor(COSProgressStates state); // defined by arthas script
}
enum COSInstanceData
{
@@ -172,5 +178,6 @@ inline AI* GetCullingOfStratholmeAI(T* obj)
{
return GetInstanceAI<AI>(obj, CoSScriptName);
}
}
#endif
@@ -35,6 +35,8 @@
#include <unordered_set>
#include <vector>
namespace CullingOfStratholme
{
/*
* Culling of Stratholme encounters:
* 0 - Meathook
@@ -400,7 +402,7 @@ class instance_culling_of_stratholme : public InstanceMapScript
case DATA_GM_RECALL:
{
Creature* arthas = instance->GetCreature(_arthasGUID);
Position const& target = arthas ? arthas->GetPosition() : GetArthasSnapbackFor(_currentState);
Position const& target = arthas ? arthas->GetPosition() : Arthas::GetArthasSnapbackFor(_currentState);
for (auto itr = instance->GetPlayers().begin(); itr != instance->GetPlayers().end(); ++itr)
{
@@ -517,7 +519,7 @@ class instance_culling_of_stratholme : public InstanceMapScript
}
case EVENT_RESPAWN_ARTHAS:
TC_LOG_DEBUG("scripts.cos", "instance_culling_of_stratholme::Update: Spawning new Arthas for instance...");
instance->SummonCreature(NPC_ARTHAS, GetArthasSnapbackFor(_currentState));
instance->SummonCreature(NPC_ARTHAS, Arthas::GetArthasSnapbackFor(_currentState));
events.CancelEvent(EVENT_RESPAWN_ARTHAS); // make sure we don't have two scheduled
break;
case EVENT_CRIER_CALL_TO_GATES:
@@ -820,8 +822,10 @@ class instance_culling_of_stratholme : public InstanceMapScript
return new instance_culling_of_stratholme_InstanceMapScript(map);
}
};
}
void AddSC_instance_culling_of_stratholme()
{
using namespace CullingOfStratholme;
new instance_culling_of_stratholme();
}
@@ -38,6 +38,8 @@
#include <unordered_map>
#include <vector>
namespace CullingOfStratholme::Arthas
{
enum Entries
{
NPC_MALGANIS_BUNNY = 20562,
@@ -1680,9 +1682,12 @@ class spell_stratholme_crusader_strike : public SpellScript
OnEffectHitTarget.Register(&spell_stratholme_crusader_strike::HandleDummy, EFFECT_0, SPELL_EFFECT_DUMMY);
}
};
}
void AddSC_npc_arthas_stratholme()
{
using namespace CullingOfStratholme;
using namespace CullingOfStratholme::Arthas;
new npc_arthas_stratholme();
RegisterCreatureAI(npc_stratholme_rp_dummy);
RegisterSpellScript(spell_stratholme_crusader_strike);
@@ -40,6 +40,8 @@
#include <array>
namespace DragonSoul::MadnessOfDeathwing
{
enum Texts
{
// Deathwing
@@ -2605,9 +2607,12 @@ public:
return true;
}
};
}
void AddSC_boss_madness_of_deathwing()
{
using namespace DragonSoul;
using namespace DragonSoul::MadnessOfDeathwing;
RegisterDragonSoulCreatureAI(boss_madness_of_deathwing);
RegisterDragonSoulCreatureAI(npc_madness_of_deathwing_limb_tentacle);
RegisterDragonSoulCreatureAI(npc_madness_of_deathwing_mutated_corruption);
@@ -22,6 +22,8 @@
#include "Creature.h"
#include "CreatureAIImpl.h"
namespace DragonSoul
{
#define DataHeader "DS"
#define DSScriptName "instance_dragon_soul"
@@ -115,5 +117,6 @@ AI* GetDragonSoulAI(Creature* creature)
}
#define RegisterDragonSoulCreatureAI(ai_name) RegisterCreatureAIWithFactory(ai_name, GetDragonSoulAI)
}
#endif // DEF_DRAGONSOUL_H
@@ -20,6 +20,8 @@
#include "ScriptMgr.h"
#include "dragon_soul.h"
namespace DragonSoul
{
ObjectData const creatureData[] =
{
{ BOSS_MADNESS_OF_DEATHWING, DATA_MADNESS_OF_DEATHWING },
@@ -87,8 +89,10 @@ public:
return new instance_dragon_soul_InstanceMapScript(map);
}
};
}
void AddSC_instance_dragon_soul()
{
using namespace DragonSoul;
new instance_dragon_soul();
}
@@ -26,6 +26,8 @@
#include "SpellAuraEffects.h"
#include "SpellScript.h"
namespace EndTime::EchoOfJaina
{
enum Spells
{
// Echo of Jaina
@@ -466,9 +468,12 @@ class spell_echo_of_jaina_flarecore_periodic : public AuraScript
AfterEffectRemove.Register(&spell_echo_of_jaina_flarecore_periodic::AfterRemove, EFFECT_0, SPELL_AURA_PERIODIC_TRIGGER_SPELL, AURA_EFFECT_HANDLE_REAL);
}
};
}
void AddSC_boss_echo_of_jaina()
{
using namespace EndTime;
using namespace EndTime::EchoOfJaina;
RegisterEndTimeCreatureAI(boss_echo_of_jaina);
RegisterEndTimeCreatureAI(npc_echo_of_jaina_blink_target);
RegisterSpellScript(spell_echo_of_jaina_face_highest_threat_target);
@@ -37,6 +37,8 @@ TODO List:
#include "SpellScript.h"
#include "TemporarySummon.h"
namespace EndTime::Murozond
{
enum Spells
{
// Murozond
@@ -523,9 +525,12 @@ class spell_murozond_clone_master_health : public SpellScript
OnEffectHitTarget.Register(&spell_murozond_clone_master_health::HandleDummyEffect, EFFECT_0, SPELL_EFFECT_DUMMY);
}
};
}
void AddSC_boss_murozond()
{
using namespace EndTime;
using namespace EndTime::Murozond;
RegisterEndTimeCreatureAI(boss_murozond);
RegisterEndTimeCreatureAI(npc_murozond_mirror_image);
RegisterSpellScript(spell_murozond_rewind_time_forcecast);
@@ -25,6 +25,8 @@
#include "ScriptedGossip.h"
#include "ScriptMgr.h"
namespace EndTime
{
enum Events
{
// Nozdormu
@@ -245,9 +247,11 @@ struct go_end_time_fragment_of_jainas_staff : public GameObjectAI
private:
InstanceScript* _instance;
};
}
void AddSC_end_time()
{
using namespace EndTime;
RegisterEndTimeCreatureAI(npc_end_time_nozdormu);
RegisterGameObjectAI(go_end_time_time_transit_device);
RegisterGameObjectAI(go_end_time_fragment_of_jainas_staff);
@@ -23,6 +23,8 @@
class Creature;
namespace EndTime
{
#define DataHeader "ET"
#define ETScriptName "instance_end_time"
@@ -75,5 +77,6 @@ AI* GetEndTimeAI(Creature* creature)
}
#define RegisterEndTimeCreatureAI(ai_name) RegisterCreatureAIWithFactory(ai_name, GetEndTimeAI)
}
#endif // DEF_ENDTIME_H
@@ -25,6 +25,8 @@
#include <array>
namespace EndTime
{
ObjectData const creatureData[] =
{
{ BOSS_MUROZOND, DATA_MUROZOND },
@@ -264,8 +266,10 @@ public:
return new instance_end_time_InstanceMapScript(map);
}
};
}
void AddSC_instance_end_time()
{
using namespace EndTime;
new instance_end_time();
}
@@ -27,6 +27,8 @@ EndScriptData */
#include "old_hillsbrad.h"
#include "ScriptedCreature.h"
namespace EscapeFromDurnholdeKeep::CaptainSkarloc
{
/*######################
# boss_captain_skarloc #
#######################*/
@@ -161,8 +163,11 @@ public:
return GetOldHillsbradAI<boss_captain_skarlocAI>(creature);
}
};
}
void AddSC_boss_captain_skarloc()
{
using namespace EscapeFromDurnholdeKeep;
using namespace EscapeFromDurnholdeKeep::CaptainSkarloc;
new boss_captain_skarloc();
}
@@ -27,6 +27,8 @@ EndScriptData */
#include "old_hillsbrad.h"
#include "ScriptedCreature.h"
namespace EscapeFromDurnholdeKeep::EpochHunter
{
/*###################
# boss_epoch_hunter #
####################*/
@@ -143,8 +145,11 @@ public:
return GetOldHillsbradAI<boss_epoch_hunterAI>(creature);
}
};
}
void AddSC_boss_epoch_hunter()
{
using namespace EscapeFromDurnholdeKeep;
using namespace EscapeFromDurnholdeKeep::EpochHunter;
new boss_epoch_hunter();
}
@@ -30,6 +30,8 @@ EndScriptData */
#include "old_hillsbrad.h"
#include "ScriptedEscortAI.h"
namespace EscapeFromDurnholdeKeep::LeutenantDrake
{
/*######
## go_barrel_old_hillsbrad
######*/
@@ -199,9 +201,12 @@ public:
return GetOldHillsbradAI<boss_lieutenant_drakeAI>(creature);
}
};
}
void AddSC_boss_lieutenant_drake()
{
using namespace EscapeFromDurnholdeKeep;
using namespace EscapeFromDurnholdeKeep::LeutenantDrake;
new go_barrel_old_hillsbrad();
new boss_lieutenant_drake();
}
@@ -30,6 +30,8 @@ EndScriptData */
#include "Player.h"
#include "ScriptedCreature.h"
namespace EscapeFromDurnholdeKeep
{
#define MAX_ENCOUNTER 6
#define THRALL_ENTRY 17876
@@ -233,8 +235,10 @@ public:
return new instance_old_hillsbrad_InstanceMapScript(map);
}
};
}
void AddSC_instance_old_hillsbrad()
{
using namespace EscapeFromDurnholdeKeep;
new instance_old_hillsbrad();
}
@@ -37,6 +37,8 @@ EndContentData */
#include "ScriptedEscortAI.h"
#include "ScriptedGossip.h"
namespace EscapeFromDurnholdeKeep
{
enum Erozion
{
QUEST_ENTRY_HILLSBRAD = 10282,
@@ -649,6 +651,7 @@ public:
return GetOldHillsbradAI<npc_tarethaAI>(creature);
}
};
}
/*######
## AddSC
@@ -656,6 +659,7 @@ public:
void AddSC_old_hillsbrad()
{
using namespace EscapeFromDurnholdeKeep;
new npc_erozion();
new npc_thrall_old_hillsbrad();
new npc_taretha();
@@ -20,6 +20,8 @@
#include "CreatureAIImpl.h"
namespace EscapeFromDurnholdeKeep
{
#define OHScriptName "instance_old_hillsbrad"
#define DataHeader "OH"
@@ -48,5 +50,6 @@ inline AI* GetOldHillsbradAI(T* obj)
{
return GetInstanceAI<AI>(obj, OHScriptName);
}
}
#endif
@@ -21,6 +21,8 @@
#include "CreatureAIImpl.h"
#include "Define.h"
namespace HourOfTwilight
{
#define DataHeader "HOT"
#define HOTScriptName "instance_hour_of_twilight"
@@ -49,5 +51,6 @@ AI* GetHourOfTwilightAI(Creature* creature)
}
#define RegisterHourOfTwilightCreatureAI(ai_name) RegisterCreatureAIWithFactory(ai_name, GetHourOfTwilightAI)
}
#endif // DEF_HOUROFTWILIGHT_H
@@ -19,6 +19,8 @@
#include "InstanceScript.h"
#include "hour_of_twilight.h"
namespace HourOfTwilight
{
ObjectData const creatureData[] =
{
{ 0, 0 } // END
@@ -55,8 +57,10 @@ public:
return new instance_hour_of_twilight_InstanceMapScript(map);
}
};
}
void AddSC_instance_hour_of_twilight()
{
using namespace HourOfTwilight;
new instance_hour_of_twilight();
}
@@ -27,6 +27,8 @@ Category: Caverns of Time, The Dark Portal
#include "ScriptedCreature.h"
#include "the_black_morass.h"
namespace TheBlackMorass::Aeonus
{
enum Enums
{
SAY_ENTER = 0,
@@ -144,8 +146,11 @@ public:
return GetBlackMorassAI<boss_aeonusAI>(creature);
}
};
}
void AddSC_boss_aeonus()
{
using namespace TheBlackMorass;
using namespace TheBlackMorass::Aeonus;
new boss_aeonus();
}
@@ -27,6 +27,8 @@ Category: Caverns of Time, The Black Morass
#include "ScriptedCreature.h"
#include "the_black_morass.h"
namespace TheBlackMorass::ChronoLordDeja
{
enum Enums
{
SAY_ENTER = 0,
@@ -150,8 +152,10 @@ public:
return GetBlackMorassAI<boss_chrono_lord_dejaAI>(creature);
}
};
}
void AddSC_boss_chrono_lord_deja()
{
using namespace TheBlackMorass::ChronoLordDeja;
new boss_chrono_lord_deja();
}
@@ -27,6 +27,8 @@ Category: Caverns of Time, The Black Morass
#include "ScriptedCreature.h"
#include "the_black_morass.h"
namespace TheBlackMorass::Temporus
{
enum Enums
{
SAY_ENTER = 0,
@@ -148,8 +150,11 @@ public:
return GetBlackMorassAI<boss_temporusAI>(creature);
}
};
}
void AddSC_boss_temporus()
{
using namespace TheBlackMorass;
using namespace TheBlackMorass::Temporus;
new boss_temporus();
}
@@ -32,6 +32,8 @@ Category: Caverns of Time, The Black Morass
#include "TemporarySummon.h"
#include "the_black_morass.h"
namespace TheBlackMorass
{
enum Misc
{
SPELL_RIFT_CHANNEL = 31387,
@@ -333,8 +335,10 @@ public:
return new instance_the_black_morass_InstanceMapScript(map);
}
};
}
void AddSC_instance_the_black_morass()
{
using namespace TheBlackMorass;
new instance_the_black_morass();
}
@@ -26,6 +26,8 @@
#include "SpellInfo.h"
#include "the_black_morass.h"
namespace TheBlackMorass
{
enum MedivhBm
{
SAY_ENTER = 0, //where does this belong?
@@ -351,9 +353,11 @@ public:
return GetBlackMorassAI<npc_time_riftAI>(creature);
}
};
}
void AddSC_the_black_morass()
{
using namespace TheBlackMorass;
new npc_medivh_bm();
new npc_time_rift();
}
@@ -20,6 +20,8 @@
#include "CreatureAIImpl.h"
namespace TheBlackMorass
{
#define TBMScriptName "instance_the_black_morass"
#define DataHeader "TBM"
@@ -72,5 +74,6 @@ inline AI* GetBlackMorassAI(T* obj)
{
return GetInstanceAI<AI>(obj, TBMScriptName);
}
}
#endif
@@ -19,6 +19,8 @@
#include "InstanceScript.h"
#include "well_of_eternity.h"
namespace WellOfEternity
{
ObjectData const creatureData[] =
{
{ NPC_PEROTHARN, BOSS_PEROTHARN },
@@ -59,8 +61,10 @@ public:
return new instance_well_of_eternity_InstanceMapScript(map);
}
};
}
void AddSC_instance_well_of_eternity()
{
using namespace WellOfEternity;
new instance_well_of_eternity();
}
@@ -21,40 +21,43 @@
#include "CreatureAIImpl.h"
#include "Define.h"
namespace WellOfEternity
{
#define DataHeader "WOE"
#define WOEScriptName "instance_well_of_eternity"
uint32 const EncounterCount = 3;
uint32 const EncounterCount = 3;
enum WOEDataTypes
{
// Bosses
BOSS_PEROTHARN = 0,
BOSS_QUEEN_AZSHARA = 1,
BOSS_MANNOROTH_AND_VAROTHEN = 2,
enum WOEDataTypes
{
// Bosses
BOSS_PEROTHARN = 0,
BOSS_QUEEN_AZSHARA = 1,
BOSS_MANNOROTH_AND_VAROTHEN = 2,
// Misc
DATA_WOE_COURTYARD_DOOR01,
};
// Misc
DATA_WOE_COURTYARD_DOOR01,
};
enum WOECreatures
{
NPC_PEROTHARN = 55085
};
enum WOECreatures
{
NPC_PEROTHARN = 55085
};
enum WOEGameObjectIds
{
GO_WOE_COURTYARD_DOOR01 = 210084,
GO_LARGE_FIREWALL_DOOR = 210234,
GO_SMALL_FIREWALL_DOOR = 210130,
};
enum WOEGameObjectIds
{
GO_WOE_COURTYARD_DOOR01 = 210084,
GO_LARGE_FIREWALL_DOOR = 210234,
GO_SMALL_FIREWALL_DOOR = 210130,
};
template<class AI>
AI* GetWellOfEternityAI(Creature* creature)
{
return GetInstanceAI<AI>(creature, WOEScriptName);
}
template<class AI>
AI* GetWellOfEternityAI(Creature* creature)
{
return GetInstanceAI<AI>(creature, WOEScriptName);
}
#define RegisterWellOfEternityCreatureAI(ai_name) RegisterCreatureAIWithFactory(ai_name, GetWellOfEternityAI)
}
#endif // DEF_WELLOFETERNITY_H
@@ -48,6 +48,8 @@ gets instead the deserter debuff.
// 15 - Captain Kromcrush
// 16 - King Gordok
namespace DireMaul
{
uint8 const EncounterCount = 17;
class instance_dire_maul : public InstanceMapScript
@@ -69,8 +71,10 @@ public:
}
};
}
void AddSC_instance_dire_maul()
{
using namespace DireMaul;
new instance_dire_maul();
}
@@ -29,6 +29,8 @@
#include "SpellScript.h"
#include "TemporarySummon.h"
namespace Firelands::Alysrazor
{
enum Texts
{
// Egg Pile
@@ -671,9 +673,12 @@ class spell_alysrazor_fieroblast : public SpellScriptLoader
return new spell_alysrazor_fieroblast_SpellScript();
}
};
}
void AddSC_boss_alysrazor()
{
using namespace Firelands;
using namespace Firelands::Alysrazor;
new npc_harbinger_of_flame();
new npc_blazing_monstrosity();
new npc_molten_barrage();
@@ -34,6 +34,8 @@
#include "SpellAuraEffects.h"
#include "SpellScript.h"
namespace Firelands::Baleroc
{
enum Spells
{
SPELL_INFERNO_BLADE = 99350,
@@ -822,9 +824,12 @@ class achievement_share_the_pain : public AchievementCriteriaScript
return target->GetAI()->GetData(DATA_SHARE_THE_PAIN) != 0;
}
};
}
void AddSC_boss_baleroc()
{
using namespace Firelands;
using namespace Firelands::Baleroc;
new boss_baleroc();
new npc_shard_of_torment();
@@ -33,6 +33,8 @@
#include "SpellAuras.h"
#include "SpellAuraEffects.h"
namespace Firelands::LordRhylith
{
enum Texts
{
// Lord Rhyolith
@@ -1369,9 +1371,12 @@ private:
std::vector<ObjectGuid> _elementalTargetGUIDs;
uint32 _summonSpellId = 0;
};
}
void AddSC_boss_lord_rhyolith()
{
using namespace Firelands;
using namespace Firelands::LordRhylith;
RegisterFirelandsCreatureAI(boss_lord_rhyolith);
RegisterFirelandsCreatureAI(npc_rhyolith_movement_controller_lord_rhyolith);
RegisterFirelandsCreatureAI(npc_rhyolith_foot);
@@ -25,6 +25,8 @@
#include "SpellScript.h"
#include "SpellAuraEffects.h"
namespace Firelands::MajordomoStaghelm
{
enum Spells
{
// Majordomo Staghelm
@@ -626,9 +628,12 @@ class spell_majordomo_staghelm_burning_orbs : public SpellScript
OnEffectHitTarget.Register(&spell_majordomo_staghelm_burning_orbs::HandleDummyEffect, EFFECT_0, SPELL_EFFECT_DUMMY);
}
};
}
void AddSC_boss_majordomo_staghelm()
{
using namespace Firelands;
using namespace Firelands::MajordomoStaghelm;
RegisterFirelandsCreatureAI(boss_majordomo_staghelm);
RegisterSpellScript(spell_majordomo_staghelm_form_controller);
RegisterSpellScript(spell_majordomo_staghelm_clump_check);
@@ -35,6 +35,8 @@
#include "boost/container/flat_set.hpp"
namespace Firelands::RagnarosFirelands
{
enum Spells
{
// Ragnaros
@@ -2447,9 +2449,12 @@ class spell_ragnaros_superheated : public SpellScript
OnObjectAreaTargetSelect.Register(&spell_ragnaros_superheated::FilterTargets, EFFECT_1, TARGET_UNIT_SRC_AREA_ENEMY);
}
};
}
void AddSC_boss_ragnaros_firelands()
{
using namespace Firelands;
using namespace Firelands::RagnarosFirelands;
RegisterFirelandsCreatureAI(boss_ragnaros_firelands);
RegisterFirelandsCreatureAI(npc_ragnaros_son_of_flame);
RegisterFirelandsCreatureAI(npc_ragnaros_lava_scion);
@@ -21,6 +21,8 @@
#include "Player.h"
#include "ScriptMgr.h"
namespace Firelands
{
class at_fl_ragnaros_spawn : public OnlyOnceAreaTriggerScript
{
public:
@@ -35,8 +37,10 @@ public:
return true;
}
};
}
void AddSC_firelands()
{
using namespace Firelands;
new at_fl_ragnaros_spawn();
}
@@ -22,6 +22,8 @@
#include "Position.h"
#include <array>
namespace Firelands
{
#define DataHeader "FL"
#define FirelandsScriptName "instance_firelands"
@@ -1117,5 +1119,6 @@ inline AI* GetFirelandsAI(T* obj)
}
#define RegisterFirelandsCreatureAI(ai_name) RegisterCreatureAIWithFactory(ai_name, GetFirelandsAI)
}
#endif // FIRELANDS_H_
@@ -24,6 +24,8 @@
#include "InstanceScript.h"
#include "Map.h"
namespace Firelands
{
ObjectData const creatureData[] =
{
{ BOSS_BETHTILAC, DATA_BETHTILAC },
@@ -283,8 +285,10 @@ class instance_firelands : public InstanceMapScript
return new instance_firelands_InstanceScript(map);
}
};
}
void AddSC_instance_firelands()
{
using namespace Firelands;
new instance_firelands();
}
@@ -25,6 +25,8 @@
#include "SpellScript.h"
#include "InstanceScript.h"
namespace HallsOfOrigination::Ammunae
{
enum Spells
{
// Ammunae
@@ -554,9 +556,12 @@ class spell_ammunae_fixate : public SpellScript
OnEffectHitTarget.Register(&spell_ammunae_fixate::HandleScriptEffect, EFFECT_0, SPELL_EFFECT_SCRIPT_EFFECT);
}
};
}
void AddSC_boss_ammunae()
{
using namespace HallsOfOrigination;
using namespace HallsOfOrigination::Ammunae;
RegisterHallsOfOriginationCreatureAI(boss_ammunae);
RegisterHallsOfOriginationCreatureAI(npc_ammunae_seedling_pod);
RegisterHallsOfOriginationCreatureAI(npc_ammunae_bloodpetal_blossom);
@@ -26,6 +26,8 @@
#include "SpellAuraEffects.h"
#include "SpellScript.h"
namespace HallsOfOrigination::Anraphet
{
enum Texts
{
ANRAPHET_SAY_INTRO = 0,
@@ -368,9 +370,12 @@ class spell_anraphet_omega_stance_summon : public SpellScript
OnEffectLaunch.Register(&spell_anraphet_omega_stance_summon::SetDestPosition, EFFECT_0, SPELL_EFFECT_SUMMON);
}
};
}
void AddSC_boss_anraphet()
{
using namespace HallsOfOrigination;
using namespace HallsOfOrigination::Anraphet;
RegisterHallsOfOriginationCreatureAI(boss_anraphet);
RegisterHallsOfOriginationCreatureAI(npc_alpha_beam);
RegisterHallsOfOriginationCreatureAI(npc_omega_stance);
@@ -31,6 +31,8 @@
#include "ObjectAccessor.h"
#include "MotionMaster.h"
namespace HallsOfOrigination::EarthRagerPtah
{
enum Texts
{
SAY_DEATH = 0,
@@ -399,9 +401,12 @@ class achievement_straw_broke_camels_back : public AchievementCriteriaScript
return false;
}
};
}
void AddSC_boss_earthrager_ptah()
{
using namespace HallsOfOrigination;
using namespace HallsOfOrigination::EarthRagerPtah;
RegisterHallsOfOriginationCreatureAI(boss_earthrager_ptah);
RegisterHallsOfOriginationCreatureAI(npc_ptah_beetle_stalker);
RegisterSpellScript(spell_earthrager_ptah_flame_bolt);
@@ -23,6 +23,8 @@
#include "halls_of_origination.h"
#include "InstanceScript.h"
namespace HallsOfOrigination::Isiset
{
enum Spells
{
SPELL_SUPERNOVA = 74136,
@@ -823,9 +825,12 @@ public:
return new spell_isiset_call_of_sky_SpellScript();
}
};
}
void AddSC_boss_isiset()
{
using namespace HallsOfOrigination;
using namespace HallsOfOrigination::Isiset;
new boss_isiset();
new npc_celestial_familiar();
new npc_isiset_mirror_image();
@@ -26,6 +26,8 @@
#include "ObjectAccessor.h"
#include "Map.h"
namespace HallsOfOrigination::Rajh
{
enum Spells
{
// Rajh
@@ -395,9 +397,12 @@ class spell_rajh_summon_sun_orb_power_cost : public AuraScript
OnEffectPeriodic.Register(&spell_rajh_summon_sun_orb_power_cost::HandlePeriodicTick, EFFECT_0, SPELL_AURA_PERIODIC_TRIGGER_SPELL);
}
};
}
void AddSC_boss_rajh()
{
using namespace HallsOfOrigination;
using namespace HallsOfOrigination::Rajh;
RegisterHallsOfOriginationCreatureAI(boss_rajh);
RegisterHallsOfOriginationCreatureAI(npc_rajh_solar_winds);
RegisterHallsOfOriginationCreatureAI(npc_rajh_orb_of_the_sun);
@@ -24,6 +24,8 @@
#include "MotionMaster.h"
#include "SpellInfo.h"
namespace HallsOfOrigination::Setesh
{
enum Spells
{
SPELL_CHAOS_BOLT = 77069,
@@ -520,9 +522,12 @@ public:
return new spell_setesh_chaos_blast_SpellScript();
}
};
}
void AddSC_boss_setesh()
{
using namespace HallsOfOrigination;
using namespace HallsOfOrigination::Setesh;
new boss_setesh();
new npc_setesh_chaos_blast();
new npc_setesh_chaos_seed();
@@ -30,6 +30,8 @@
#include "SpellAuraEffects.h"
#include "SpellScript.h"
namespace HallsOfOrigination::TempleGuardianAnhuur
{
enum Texts
{
SAY_AGGRO = 0,
@@ -425,9 +427,12 @@ class spell_anhuur_burning_light_forcecast : public SpellScript
OnObjectAreaTargetSelect.Register(&spell_anhuur_burning_light_forcecast::FilterTargets, EFFECT_1, TARGET_UNIT_SRC_AREA_ENEMY);
}
};
}
void AddSC_boss_temple_guardian_anhuur()
{
using namespace HallsOfOrigination;
using namespace HallsOfOrigination::TempleGuardianAnhuur;
RegisterHallsOfOriginationCreatureAI(boss_temple_guardian_anhuur);
RegisterGameObjectAI(go_anhuur_beacon_of_light);
RegisterSpellScript(spell_anhuur_divine_reckoning);
@@ -33,6 +33,8 @@
#include "TemporarySummon.h"
#include "halls_of_origination.h"
namespace HallsOfOrigination
{
enum SunTouchedServant
{
// Texts
@@ -909,9 +911,11 @@ public:
return true;
}
};
}
void AddSC_halls_of_origination()
{
using namespace HallsOfOrigination;
RegisterHallsOfOriginationCreatureAI(npc_sun_touched_servant);
RegisterHallsOfOriginationCreatureAI(npc_hoo_aggro_stalker_1);
RegisterHallsOfOriginationCreatureAI(npc_hoo_aggro_stalker_2);
@@ -21,6 +21,8 @@
#include "CreatureAIImpl.h"
#include "Position.h"
namespace HallsOfOrigination
{
#define DataHeader "HOO"
#define HoOScriptName "instance_halls_of_origination"
@@ -245,6 +247,6 @@ inline AI* GetHallsOfOriginationAI(T* obj)
}
#define RegisterHallsOfOriginationCreatureAI(ai_name) RegisterCreatureAIWithFactory(ai_name, GetHallsOfOriginationAI)
}
#endif // HALLS_OF_ORIGINATION_H
@@ -27,6 +27,8 @@
#include "World.h"
#include "TemporarySummon.h"
namespace HallsOfOrigination
{
DoorData const doorData[] =
{
{ GO_DOODAD_ULDUM_DOOR_14, DATA_TEMPLE_GUARDIAN_ANHUUR, DOOR_TYPE_ROOM },
@@ -546,8 +548,10 @@ class instance_halls_of_origination : public InstanceMapScript
return new instance_halls_of_origination_InstanceMapScript(map);
}
};
}
void AddSC_instance_halls_of_origination()
{
using namespace HallsOfOrigination;
new instance_halls_of_origination();
}
@@ -30,6 +30,8 @@
#include "Vehicle.h"
#include "lost_city_of_the_tolvir.h"
namespace LostCityOfTheTolvir::GeneralHusam
{
enum Spells
{
// General Husam
@@ -487,9 +489,12 @@ class spell_husam_land_mine_player_search_effect : public SpellScript
OnEffectHitTarget.Register(&spell_husam_land_mine_player_search_effect::HandleDummyEffect, EFFECT_0, SPELL_EFFECT_DUMMY);
}
};
}
void AddSC_boss_general_husam()
{
using namespace LostCityOfTheTolvir;
using namespace LostCityOfTheTolvir::GeneralHusam;
RegisterLostCityOfTheTolvirAI(boss_general_husam);
RegisterLostCityOfTheTolvirAI(npc_husam_tolvir_land_mine);
RegisterLostCityOfTheTolvirAI(npc_husam_bad_intentions_target);
@@ -28,6 +28,8 @@
#include "SpellMgr.h"
#include "SpellScript.h"
namespace LostCityOfTheTolvir::HighProphetBarim
{
enum Spells
{
// High Prophet Barim
@@ -743,9 +745,12 @@ class spell_barim_repentance_stun : public AuraScript
OnEffectPeriodic.Register(&spell_barim_repentance_stun::DisablePeriodic, EFFECT_1, SPELL_AURA_PERIODIC_TRIGGER_SPELL);
}
};
}
void AddSC_boss_high_prophet_barim()
{
using namespace LostCityOfTheTolvir;
using namespace LostCityOfTheTolvir::HighProphetBarim;
RegisterLostCityOfTheTolvirAI(boss_high_prophet_barim);
RegisterLostCityOfTheTolvirAI(npc_barim_repentance);
RegisterLostCityOfTheTolvirAI(npc_barim_phoenix_summoner);
@@ -24,6 +24,8 @@
#include "SpellInfo.h"
#include "SpellScript.h"
namespace LostCityOfTheTolvir::Lockmaw
{
enum Texts
{
// Augh Boss
@@ -610,9 +612,12 @@ class spell_lockmaw_random_aggro_taunt : public SpellScriptLoader
return new spell_lockmaw_random_aggro_taunt_SpellScript();
}
};
}
void AddSC_boss_lockmaw_and_augh()
{
using namespace LostCityOfTheTolvir;
using namespace LostCityOfTheTolvir::Lockmaw;
new boss_lockmaw();
new boss_augh();
new npc_lockmaw_frenzied_crocolisk();
@@ -25,6 +25,8 @@
#include "MotionMaster.h"
#include "lost_city_of_the_tolvir.h"
namespace LostCityOfTheTolvir::Siamat
{
enum Texts
{
SAY_UNLEASHED = 0,
@@ -640,9 +642,12 @@ class spell_siamat_lightning_charge : public AuraScript
OnEffectPeriodic.Register(&spell_siamat_lightning_charge::HandlePeriodic, EFFECT_0, SPELL_AURA_PERIODIC_DUMMY);
}
};
}
void AddSC_boss_siamat()
{
using namespace LostCityOfTheTolvir;
using namespace LostCityOfTheTolvir::Siamat;
RegisterLostCityOfTheTolvirAI(boss_siamat);
RegisterLostCityOfTheTolvirAI(npc_siamat_servant_of_siamat);
RegisterLostCityOfTheTolvirAI(npc_siamat_minion_of_siamat);
@@ -27,6 +27,8 @@
#include "TemporarySummon.h"
#include "Weather.h"
namespace LostCityOfTheTolvir
{
enum TimedEvents
{
EVENT_SPAWN_AUGH = 1
@@ -307,8 +309,10 @@ class instance_lost_city_of_the_tolvir : public InstanceMapScript
return new instance_lost_city_of_the_tolvir_InstanceMapScript(map);
}
};
}
void AddSC_instance_lost_city_of_the_tolvir()
{
using namespace LostCityOfTheTolvir;
new instance_lost_city_of_the_tolvir();
}
@@ -21,6 +21,8 @@
#include "ScriptMgr.h"
#include "ObjectAccessor.h"
namespace LostCityOfTheTolvir
{
enum Texts
{
SAY_AGGRO = 0,
@@ -194,9 +196,11 @@ struct npc_lct_wind_tunnel : public ScriptedAI
private:
EventMap _events;
};
}
void AddSC_lost_city_of_the_tolvir()
{
using namespace LostCityOfTheTolvir;
new npc_lct_augh();
RegisterCreatureAI(npc_lct_wind_tunnel_landing_zone);
RegisterCreatureAI(npc_lct_wind_tunnel);
@@ -20,6 +20,8 @@
#include "CreatureAIImpl.h"
namespace LostCityOfTheTolvir
{
#define LCTScriptName "instance_lost_city_of_the_tolvir"
#define DataHeader "LCT"
@@ -113,5 +115,5 @@ inline AI* GetLostCityOfTheTolvirAI(T* obj)
}
#define RegisterLostCityOfTheTolvirAI(ai_name) RegisterCreatureAIWithFactory(ai_name, GetLostCityOfTheTolvirAI)
}
#endif // LOST_CITY_OF_THE_TOLVIR_H_
@@ -25,6 +25,8 @@ EndScriptData */
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
namespace Maraudon::CelebrasTheCursed
{
enum Spells
{
SPELL_WRATH = 21807,
@@ -107,8 +109,11 @@ public:
}
};
};
}
void AddSC_boss_celebras_the_cursed()
{
using namespace Maraudon;
using namespace Maraudon::CelebrasTheCursed;
new celebras_the_cursed();
}
@@ -25,6 +25,8 @@ EndScriptData */
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
namespace Maraudon::Landslide
{
enum Spells
{
SPELL_KNOCKAWAY = 18670,
@@ -106,8 +108,11 @@ public:
}
};
};
}
void AddSC_boss_landslide()
{
using namespace Maraudon;
using namespace Maraudon::Landslide;
new boss_landslide();
}
@@ -25,6 +25,8 @@ EndScriptData */
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
namespace Maraudon::Noxxion
{
enum Spells
{
SPELL_TOXICVOLLEY = 21687,
@@ -141,8 +143,11 @@ public:
}
};
};
}
void AddSC_boss_noxxion()
{
using namespace Maraudon;
using namespace Maraudon::Noxxion;
new boss_noxxion();
}
@@ -26,6 +26,8 @@ EndScriptData */
#include "ScriptedCreature.h"
#include "ScriptedCreature.h"
namespace Maraudon::PrincessTheradas
{
enum Spells
{
SPELL_DUSTFIELD = 21909,
@@ -118,8 +120,11 @@ public:
}
};
};
}
void AddSC_boss_ptheradras()
{
using namespace Maraudon;
using namespace Maraudon::PrincessTheradas;
new boss_princess_theradras();
}
@@ -25,6 +25,8 @@ gets instead the deserter debuff.
#include "ScriptMgr.h"
#include "InstanceScript.h"
namespace Maraudon
{
class instance_maraudon : public InstanceMapScript
{
public:
@@ -40,8 +42,10 @@ public:
instance_maraudon_InstanceMapScript(InstanceMap* map) : InstanceScript(map) { }
};
};
}
void AddSC_instance_maraudon()
{
using namespace Maraudon;
new instance_maraudon();
}
@@ -35,6 +35,8 @@ EndScriptData */
#include "ScriptedCreature.h"
#include "TemporarySummon.h"
namespace OnyxiasLair::Onyxia
{
enum Yells
{
// Say
@@ -495,8 +497,11 @@ public:
return GetOnyxiaAI<boss_onyxiaAI>(creature);
}
};
}
void AddSC_boss_onyxia()
{
using namespace OnyxiasLair;
using namespace OnyxiasLair::Onyxia;
new boss_onyxia();
}
@@ -30,6 +30,8 @@ EndScriptData */
#include "onyxias_lair.h"
#include "TemporarySummon.h"
namespace OnyxiasLair
{
BossBoundaryData const boundaries =
{
{ DATA_ONYXIA, new CircleBoundary(Position(-34.3697f, -212.3296f), 100.0) }
@@ -264,8 +266,10 @@ public:
bool achievSheDeepBreathMore;
};
};
}
void AddSC_instance_onyxias_lair()
{
using namespace OnyxiasLair;
new instance_onyxias_lair();
}
@@ -20,6 +20,8 @@
#include "CreatureAIImpl.h"
namespace OnyxiasLair
{
#define OnyxiaScriptName "instance_onyxias_lair"
#define DataHeader "OL"
@@ -78,5 +80,6 @@ inline AI* GetOnyxiaAI(T* obj)
{
return GetInstanceAI<AI>(obj, OnyxiaScriptName);
}
}
#endif
@@ -26,6 +26,8 @@ gets instead the deserter debuff.
#include "ScriptMgr.h"
#include "InstanceScript.h"
namespace RagefireChasm
{
class instance_ragefire_chasm : public InstanceMapScript
{
public:
@@ -45,8 +47,10 @@ public:
return new instance_ragefire_chasm_InstanceMapScript(map);
}
};
}
void AddSC_instance_ragefire_chasm()
{
using namespace RagefireChasm;
new instance_ragefire_chasm();
}
@@ -20,6 +20,8 @@
#include "Define.h"
namespace RagefireChasm
{
#define RCScriptName "instance_ragefire_chasm"
#define DataHeader "RC"
@@ -33,6 +35,7 @@ enum RCDataTypes
DATA_BAZZALAN = 2,
DATA_TARAGAMAN_THE_HUNGERER = 3
};
}
#endif // RAGEFIRE_CHASM_H_
@@ -19,6 +19,8 @@
#include "ScriptedCreature.h"
#include "razorfen_downs.h"
namespace RazorfenDowns::AmnennarTheColdbringer
{
enum Say
{
SAY_AGGRO = 0,
@@ -154,8 +156,11 @@ public:
return new boss_amnennar_the_coldbringerAI(creature);
}
};
}
void AddSC_boss_amnennar_the_coldbringer()
{
using namespace RazorfenDowns;
using namespace RazorfenDowns::AmnennarTheColdbringer;
new boss_amnennar_the_coldbringer();
}
@@ -19,6 +19,8 @@
#include "ScriptedCreature.h"
#include "razorfen_downs.h"
namespace RazorfenDowns::Glutton
{
enum Say
{
SAY_AGGRO = 0,
@@ -100,8 +102,11 @@ public:
return new boss_gluttonAI(creature);
}
};
}
void AddSC_boss_glutton()
{
using namespace RazorfenDowns;
using namespace RazorfenDowns::Glutton;
new boss_glutton();
}
@@ -19,6 +19,8 @@
#include "ScriptedCreature.h"
#include "razorfen_downs.h"
namespace RazorfenDowns::MordreshFireEye
{
enum Say
{
SAY_OOC_1 = 0,
@@ -132,8 +134,11 @@ public:
return new boss_mordresh_fire_eyeAI(creature);
}
};
}
void AddSC_boss_mordresh_fire_eye()
{
using namespace RazorfenDowns;
using namespace RazorfenDowns::MordreshFireEye;
new boss_mordresh_fire_eye();
}
@@ -19,6 +19,8 @@
#include "ScriptedCreature.h"
#include "razorfen_downs.h"
namespace RazorfenDowns::TutenKash
{
enum Spells
{
SPELL_THRASH = 8876,
@@ -103,8 +105,11 @@ public:
return new boss_tuten_kashAI(creature);
}
};
}
void AddSC_boss_tuten_kash()
{
using namespace RazorfenDowns;
using namespace RazorfenDowns::TutenKash;
new boss_tuten_kash();
}
@@ -23,6 +23,8 @@
#include "razorfen_downs.h"
#include "TemporarySummon.h"
namespace RazorfenDowns
{
Position const PosSummonTutenkash[15] =
{
// 7349 Tomb Fiend
@@ -182,8 +184,10 @@ public:
return new instance_razorfen_downs_InstanceMapScript(map);
}
};
}
void AddSC_instance_razorfen_downs()
{
using namespace RazorfenDowns;
new instance_razorfen_downs();
}
@@ -39,6 +39,8 @@ EndContentData */
#include "ScriptedGossip.h"
#include "TemporarySummon.h"
namespace RazorfenDowns
{
/*###
## npc_belnistrasz for Quest 3525 "Extinguishing the Idol"
######*/
@@ -395,9 +397,11 @@ class go_gong : public GameObjectScript
return GetRazorfenDownsAI<go_gongAI>(go);
}
};
}
void AddSC_razorfen_downs()
{
using namespace RazorfenDowns;
new npc_belnistrasz();
new npc_idol_room_spawner();
new npc_tomb_creature();
@@ -20,6 +20,8 @@
#include "CreatureAIImpl.h"
namespace RazorfenDowns
{
#define RFDScriptName "instance_razorfen_downs"
#define DataHeader "RFD"
@@ -68,5 +70,6 @@ inline AI* GetRazorfenDownsAI(T* obj)
{
return GetInstanceAI<AI>(obj, RFDScriptName);
}
}
#endif
@@ -30,6 +30,8 @@ EndScriptData */
#include "Player.h"
#include "razorfen_kraul.h"
namespace RazorfenKraul
{
#define WARD_KEEPERS_NR 2
class instance_razorfen_kraul : public InstanceMapScript
@@ -93,8 +95,10 @@ public:
return new instance_razorfen_kraul_InstanceMapScript(map);
}
};
}
void AddSC_instance_razorfen_kraul()
{
using namespace RazorfenKraul;
new instance_razorfen_kraul();
}
@@ -23,6 +23,8 @@
#include "PetAI.h"
#include "SpellScript.h"
namespace RazorfenKraul
{
enum Willix
{
SAY_READY = 0,
@@ -134,8 +136,10 @@ public:
return new npc_willixAI(creature);
}
};
}
void AddSC_razorfen_kraul()
{
using namespace RazorfenKraul;
new npc_willix();
}
@@ -18,7 +18,11 @@
#ifndef DEF_RAZORFEN_KRAUL_H
#define DEF_RAZORFEN_KRAUL_H
namespace RazorfenKraul
{
#define DataHeader "RFK"
#define EVENT_WARD_KEEPER 1
}
#endif
@@ -23,6 +23,8 @@
#include "ruins_of_ahnqiraj.h"
#include "ScriptedCreature.h"
namespace RuinsOfAhnQiraj::Ayamiss
{
enum Spells
{
SPELL_STINGER_SPRAY = 25749,
@@ -300,9 +302,12 @@ class npc_hive_zara_larva : public CreatureScript
return GetAQ20AI<npc_hive_zara_larvaAI>(creature);
}
};
}
void AddSC_boss_ayamiss()
{
using namespace RuinsOfAhnQiraj;
using namespace RuinsOfAhnQiraj::Ayamiss;
new boss_ayamiss();
new npc_hive_zara_larva();
}
@@ -22,6 +22,8 @@
#include "ScriptedCreature.h"
#include "SpellScript.h"
namespace RuinsOfAhnQiraj::Buru
{
enum Emotes
{
EMOTE_TARGET = 0
@@ -273,9 +275,12 @@ class spell_egg_explosion : public SpellScriptLoader
return new spell_egg_explosion_SpellScript();
}
};
}
void AddSC_boss_buru()
{
using namespace RuinsOfAhnQiraj;
using namespace RuinsOfAhnQiraj::Buru;
new boss_buru();
new npc_buru_egg();
new spell_egg_explosion();
@@ -22,6 +22,8 @@
#include "ruins_of_ahnqiraj.h"
#include "ScriptedCreature.h"
namespace RuinsOfAhnQiraj::Kurinnaxx
{
enum Spells
{
SPELL_MORTALWOUND = 25646,
@@ -140,8 +142,11 @@ class boss_kurinnaxx : public CreatureScript
return GetAQ20AI<boss_kurinnaxxAI>(creature);
}
};
}
void AddSC_boss_kurinnaxx()
{
using namespace RuinsOfAhnQiraj;
using namespace RuinsOfAhnQiraj::Kurinnaxx;
new boss_kurinnaxx();
}
Loaded 100 of 159 files, more files were not shown because too many files have changed in this diff. Show more