aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoroffl <offl@users.noreply.github.com>2020-06-26 15:49:39 +0200
committerKillyana <morphone1@gmail.com>2020-06-26 15:49:39 +0200
commitf2c2210dbb88ffa3571344030d77f80c0a765591 (patch)
tree2dcac72381509a5738d82d2ece84e0ca05e44aac /src
parent0740692117f67d4e8031be0cbd8c66cf3c1d0cfa (diff)
DB/Quest: Convert & update support for 'City of Light' to SAI
Closes #24814
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Outland/outland_script_loader.cpp4
-rw-r--r--src/server/scripts/Outland/zone_shattrath_city.cpp183
2 files changed, 2 insertions, 185 deletions
diff --git a/src/server/scripts/Outland/outland_script_loader.cpp b/src/server/scripts/Outland/outland_script_loader.cpp
index 6fbf36332e8..ca6b0023580 100644
--- a/src/server/scripts/Outland/outland_script_loader.cpp
+++ b/src/server/scripts/Outland/outland_script_loader.cpp
@@ -131,7 +131,7 @@ void AddSC_hellfire_peninsula();
void AddSC_nagrand();
void AddSC_netherstorm();
void AddSC_shadowmoon_valley();
-void AddSC_shattrath_city();
+// void AddSC_shattrath_city();
void AddSC_terokkar_forest();
// void AddSC_zangarmarsh();
@@ -254,7 +254,7 @@ void AddOutlandScripts()
AddSC_nagrand();
AddSC_netherstorm();
AddSC_shadowmoon_valley();
- AddSC_shattrath_city();
+ // AddSC_shattrath_city();
AddSC_terokkar_forest();
// AddSC_zangarmarsh();
}
diff --git a/src/server/scripts/Outland/zone_shattrath_city.cpp b/src/server/scripts/Outland/zone_shattrath_city.cpp
deleted file mode 100644
index afeaa068086..00000000000
--- a/src/server/scripts/Outland/zone_shattrath_city.cpp
+++ /dev/null
@@ -1,183 +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: Shattrath_City
-SD%Complete: 100
-SDComment: Quest support: 10211.
-SDCategory: Shattrath City
-EndScriptData */
-
-/* ContentData
-npc_kservant
-EndContentData */
-
-#include "ScriptMgr.h"
-#include "ScriptedCreature.h"
-#include "ScriptedEscortAI.h"
-#include "Player.h"
-#include "WorldSession.h"
-
-/*######
-# npc_kservant
-######*/
-
-enum KServant
-{
- SAY1 = 0,
- WHISP1 = 1,
- WHISP2 = 2,
- WHISP3 = 3,
- WHISP4 = 4,
- WHISP5 = 5,
- WHISP6 = 6,
- WHISP7 = 7,
- WHISP8 = 8,
- WHISP9 = 9,
- WHISP10 = 10,
- WHISP11 = 11,
- WHISP12 = 12,
- WHISP13 = 13,
- WHISP14 = 14,
- WHISP15 = 15,
- WHISP16 = 16,
- WHISP17 = 17,
- WHISP18 = 18,
- WHISP19 = 19,
- WHISP20 = 20,
- WHISP21 = 21,
- CITY_OF_LIGHT = 10211
-};
-
-class npc_kservant : public CreatureScript
-{
-public:
- npc_kservant() : CreatureScript("npc_kservant") { }
-
- CreatureAI* GetAI(Creature* creature) const override
- {
- return new npc_kservantAI(creature);
- }
-
- struct npc_kservantAI : public EscortAI
- {
- public:
- npc_kservantAI(Creature* creature) : EscortAI(creature) { }
-
- void WaypointReached(uint32 waypointId, uint32 /*pathId*/) override
- {
- Player* player = GetPlayerForEscort();
- if (!player)
- return;
-
- switch (waypointId)
- {
- case 0:
- Talk(SAY1, player);
- break;
- case 4:
- Talk(WHISP1, player);
- break;
- case 6:
- Talk(WHISP2, player);
- break;
- case 7:
- Talk(WHISP3, player);
- break;
- case 8:
- Talk(WHISP4, player);
- break;
- case 17:
- Talk(WHISP5, player);
- break;
- case 18:
- Talk(WHISP6, player);
- break;
- case 19:
- Talk(WHISP7, player);
- break;
- case 33:
- Talk(WHISP8, player);
- break;
- case 34:
- Talk(WHISP9, player);
- break;
- case 35:
- Talk(WHISP10, player);
- break;
- case 36:
- Talk(WHISP11, player);
- break;
- case 43:
- Talk(WHISP12, player);
- break;
- case 44:
- Talk(WHISP13, player);
- break;
- case 49:
- Talk(WHISP14, player);
- break;
- case 50:
- Talk(WHISP15, player);
- break;
- case 51:
- Talk(WHISP16, player);
- break;
- case 52:
- Talk(WHISP17, player);
- break;
- case 53:
- Talk(WHISP18, player);
- break;
- case 54:
- Talk(WHISP19, player);
- break;
- case 55:
- Talk(WHISP20, player);
- break;
- case 56:
- Talk(WHISP21, player);
- player->GroupEventHappens(CITY_OF_LIGHT, me);
- break;
- }
- }
-
- void MoveInLineOfSight(Unit* who) override
-
- {
- if (HasEscortState(STATE_ESCORT_ESCORTING))
- return;
-
- Player* player = who->ToPlayer();
- if (player && player->GetQuestStatus(CITY_OF_LIGHT) == QUEST_STATUS_INCOMPLETE)
- {
- float Radius = 10.0f;
- if (me->IsWithinDistInMap(who, Radius))
- {
- Start(false, false, who->GetGUID());
- }
- }
- }
-
- void Reset() override { }
- };
-};
-
-void AddSC_shattrath_city()
-{
- new npc_kservant();
-}