aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sql/updates/world/master/2021_12_20_23_world_2020_01_19_01_world.sql6
-rw-r--r--src/server/scripts/Northrend/zone_borean_tundra.cpp114
2 files changed, 6 insertions, 114 deletions
diff --git a/sql/updates/world/master/2021_12_20_23_world_2020_01_19_01_world.sql b/sql/updates/world/master/2021_12_20_23_world_2020_01_19_01_world.sql
new file mode 100644
index 00000000000..9a2336b5a4b
--- /dev/null
+++ b/sql/updates/world/master/2021_12_20_23_world_2020_01_19_01_world.sql
@@ -0,0 +1,6 @@
+UPDATE `creature_template` SET `ScriptName`='',`AIName`='SmartAI' WHERE `entry` IN (27306,27906,27173,27904);
+DELETE FROM `smart_scripts` WHERE `entryorguid` IN (27906,27173,27904) AND `source_type`=0;
+INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
+(27906,0,0,0,25,0,100,0,0,0,0,0,0,11,48310,0,0,0,0,0,10,123746,27306,0,0,0,0,0,0,'Warmage Hollister - On Reset - Cast \'Transitus Shield Beam\''),
+(27173,0,0,0,25,0,100,0,0,0,0,0,0,11,48310,0,0,0,0,0,10,123745,27306,0,0,0,0,0,0,'Warmage Calandra - On Reset - Cast \'Transitus Shield Beam\''),
+(27904,0,0,0,25,0,100,0,0,0,0,0,0,11,48310,0,0,0,0,0,10,123744,27306,0,0,0,0,0,0,'Warmage Watkins - On Reset - Cast \'Transitus Shield Beam\'');
diff --git a/src/server/scripts/Northrend/zone_borean_tundra.cpp b/src/server/scripts/Northrend/zone_borean_tundra.cpp
index 4a3418f6146..12963a4e563 100644
--- a/src/server/scripts/Northrend/zone_borean_tundra.cpp
+++ b/src/server/scripts/Northrend/zone_borean_tundra.cpp
@@ -2042,119 +2042,6 @@ public:
}
};
-/*******************************************************
- * npc_warmage_coldarra
- *******************************************************/
-
-enum Spells
-{
- SPELL_TRANSITUS_SHIELD_BEAM = 48310
-};
-
-enum NPCs
-{
- NPC_TRANSITUS_SHIELD_DUMMY = 27306,
- NPC_WARMAGE_HOLLISTER = 27906,
- NPC_WARMAGE_CALANDRA = 27173,
- NPC_WARMAGE_WATKINS = 27904
-};
-
-class npc_warmage_coldarra : public CreatureScript
-{
-public:
- npc_warmage_coldarra() : CreatureScript("npc_warmage_coldarra") { }
-
- struct npc_warmage_coldarraAI : public ScriptedAI
- {
- npc_warmage_coldarraAI(Creature* creature) : ScriptedAI(creature)
- {
- Initialize();
- }
-
- void Initialize()
- {
- m_uiTimer = 0;
- }
-
- uint32 m_uiTimer; //Timer until recast
-
- void Reset() override
- {
- Initialize();
- }
-
- void JustEngagedWith(Unit* /*who*/) override { }
-
- void AttackStart(Unit* /*who*/) override { }
-
- void UpdateAI(uint32 uiDiff) override
- {
- if (m_uiTimer <= uiDiff)
- {
- std::list<Creature*> orbList;
- GetCreatureListWithEntryInGrid(orbList, me, NPC_TRANSITUS_SHIELD_DUMMY, 32.0f);
-
- switch (me->GetEntry())
- {
- case NPC_WARMAGE_HOLLISTER:
- {
- if (!orbList.empty())
- {
- for (std::list<Creature*>::const_iterator itr = orbList.begin(); itr != orbList.end(); ++itr)
- {
- if (Creature* pOrb = *itr)
- if (pOrb->GetPositionY() > 6680)
- DoCast(pOrb, SPELL_TRANSITUS_SHIELD_BEAM);
- }
- }
- m_uiTimer = urand(90000, 120000);
- }
- break;
- case NPC_WARMAGE_CALANDRA:
- {
- if (!orbList.empty())
- {
- for (std::list<Creature*>::const_iterator itr = orbList.begin(); itr != orbList.end(); ++itr)
- {
- if (Creature* pOrb = *itr)
- if ((pOrb->GetPositionY() < 6680) && (pOrb->GetPositionY() > 6630))
- DoCast(pOrb, SPELL_TRANSITUS_SHIELD_BEAM);
- }
- }
- m_uiTimer = urand(90000, 120000);
- }
- break;
- case NPC_WARMAGE_WATKINS:
- {
- if (!orbList.empty())
- {
- for (std::list<Creature*>::const_iterator itr = orbList.begin(); itr != orbList.end(); ++itr)
- {
- if (Creature* pOrb = *itr)
- if (pOrb->GetPositionY() < 6630)
- DoCast(pOrb, SPELL_TRANSITUS_SHIELD_BEAM);
- }
- }
- m_uiTimer = urand(90000, 120000);
- }
- break;
- }
- }
- else m_uiTimer -= uiDiff;
-
- ScriptedAI::UpdateAI(uiDiff);
-
- if (!UpdateVictim())
- return;
- }
- };
-
- CreatureAI* GetAI(Creature* creature) const override
- {
- return new npc_warmage_coldarraAI(creature);
- }
-};
-
/*######
## npc_hidden_cultist
######*/
@@ -2603,7 +2490,6 @@ void AddSC_borean_tundra()
new npc_bonker_togglevolt();
new npc_trapped_mammoth_calf();
new npc_valiance_keep_cannoneer();
- new npc_warmage_coldarra();
new npc_hidden_cultist();
new spell_windsoul_totem_aura();
new spell_q11719_bloodspore_ruination_45997();