aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/EasternKingdoms/eastern_kingdoms_script_loader.cpp2
-rw-r--r--src/server/scripts/EasternKingdoms/zone_stranglethorn_vale.cpp137
2 files changed, 0 insertions, 139 deletions
diff --git a/src/server/scripts/EasternKingdoms/eastern_kingdoms_script_loader.cpp b/src/server/scripts/EasternKingdoms/eastern_kingdoms_script_loader.cpp
index 472f960bdc4..642287574c9 100644
--- a/src/server/scripts/EasternKingdoms/eastern_kingdoms_script_loader.cpp
+++ b/src/server/scripts/EasternKingdoms/eastern_kingdoms_script_loader.cpp
@@ -196,7 +196,6 @@ void AddSC_isle_of_queldanas();
void AddSC_redridge_mountains();
void AddSC_silverpine_forest();
void AddSC_stormwind_city();
-void AddSC_stranglethorn_vale();
void AddSC_swamp_of_sorrows();
void AddSC_tirisfal_glades();
void AddSC_tol_barad();
@@ -389,7 +388,6 @@ void AddEasternKingdomsScripts()
AddSC_redridge_mountains();
AddSC_silverpine_forest();
AddSC_stormwind_city();
- AddSC_stranglethorn_vale();
AddSC_swamp_of_sorrows();
AddSC_tirisfal_glades();
AddSC_tol_barad();
diff --git a/src/server/scripts/EasternKingdoms/zone_stranglethorn_vale.cpp b/src/server/scripts/EasternKingdoms/zone_stranglethorn_vale.cpp
deleted file mode 100644
index 9ffe7b541fc..00000000000
--- a/src/server/scripts/EasternKingdoms/zone_stranglethorn_vale.cpp
+++ /dev/null
@@ -1,137 +0,0 @@
-/*
- * 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/>.
- */
-
-/* ScriptData
-SDName: Stranglethorn_Vale
-SD%Complete: 100
-SDComment: Quest support: 592
-SDCategory: Stranglethorn Vale
-EndScriptData */
-
-/* ContentData
-npc_yenniku
-EndContentData */
-
-#include "ScriptMgr.h"
-#include "Player.h"
-#include "ScriptedCreature.h"
-#include "SpellInfo.h"
-
-/*######
-## npc_yenniku
-######*/
-
-enum Yenniku
-{
- SPELL_YENNIKUS_RELEASE = 3607,
- QUEST_SAVING_YENNIKU = 592,
-};
-
-class npc_yenniku : public CreatureScript
-{
-public:
- npc_yenniku() : CreatureScript("npc_yenniku") { }
-
- CreatureAI* GetAI(Creature* creature) const override
- {
- return new npc_yennikuAI(creature);
- }
-
- struct npc_yennikuAI : public ScriptedAI
- {
- npc_yennikuAI(Creature* creature) : ScriptedAI(creature)
- {
- Initialize();
- bReset = false;
- }
-
- void Initialize()
- {
- Reset_Timer = 0;
- }
-
- uint32 Reset_Timer;
- bool bReset;
-
- void Reset() override
- {
- Initialize();
- me->SetEmoteState(EMOTE_STATE_NONE);
- }
-
- void SpellHit(Unit* caster, SpellInfo const* spell) override
- {
- if (bReset || spell->Id != SPELL_YENNIKUS_RELEASE)
- return;
-
- if (Player* player = caster->ToPlayer())
- {
- if (player->GetQuestStatus(QUEST_SAVING_YENNIKU) == QUEST_STATUS_INCOMPLETE) // Yenniku's Release
- {
- me->SetEmoteState(EMOTE_STATE_STUN);
- me->CombatStop(); //stop combat
- me->GetThreatManager().ClearAllThreat(); //unsure of this
- me->SetFaction(FACTION_HORDE_GENERIC);
-
- bReset = true;
- Reset_Timer = 60000;
- }
- }
- }
-
- void EnterCombat(Unit* /*who*/) override { }
-
- void UpdateAI(uint32 diff) override
- {
- if (bReset)
- {
- if (Reset_Timer <= diff)
- {
- EnterEvadeMode();
- bReset = false;
- me->SetFaction(FACTION_TROLL_BLOODSCALP); // troll, bloodscalp
- return;
- }
-
- Reset_Timer -= diff;
-
- if (me->IsInCombat() && me->GetVictim())
- {
- if (Player* player = me->EnsureVictim()->ToPlayer())
- {
- if (player->GetTeam() == HORDE)
- {
- me->CombatStop();
- me->GetThreatManager().ClearAllThreat();
- }
- }
- }
- }
-
- //Return since we have no target
- if (!UpdateVictim())
- return;
-
- DoMeleeAttackIfReady();
- }
- };
-};
-
-void AddSC_stranglethorn_vale()
-{
- new npc_yenniku();
-}