diff options
Diffstat (limited to 'src/server/scripts')
| -rw-r--r-- | src/server/scripts/EasternKingdoms/eastern_kingdoms_script_loader.cpp | 4 | ||||
| -rw-r--r-- | src/server/scripts/EasternKingdoms/zone_eastern_plaguelands.cpp | 140 | 
2 files changed, 2 insertions, 142 deletions
diff --git a/src/server/scripts/EasternKingdoms/eastern_kingdoms_script_loader.cpp b/src/server/scripts/EasternKingdoms/eastern_kingdoms_script_loader.cpp index a0d578ad32f..e683b6bb705 100644 --- a/src/server/scripts/EasternKingdoms/eastern_kingdoms_script_loader.cpp +++ b/src/server/scripts/EasternKingdoms/eastern_kingdoms_script_loader.cpp @@ -187,7 +187,7 @@ void AddSC_burning_steppes();  void AddSC_dun_morogh();  void AddSC_dun_morogh_area_coldridge_valley();  void AddSC_duskwood(); -void AddSC_eastern_plaguelands(); +//void AddSC_eastern_plaguelands();  void AddSC_ghostlands();  void AddSC_hinterlands();  void AddSC_isle_of_queldanas(); @@ -378,7 +378,7 @@ void AddEasternKingdomsScripts()      AddSC_dun_morogh();      AddSC_dun_morogh_area_coldridge_valley();      AddSC_duskwood(); -    AddSC_eastern_plaguelands(); +    //AddSC_eastern_plaguelands();      AddSC_ghostlands();      AddSC_hinterlands();      AddSC_isle_of_queldanas(); diff --git a/src/server/scripts/EasternKingdoms/zone_eastern_plaguelands.cpp b/src/server/scripts/EasternKingdoms/zone_eastern_plaguelands.cpp deleted file mode 100644 index 89d17c8452d..00000000000 --- a/src/server/scripts/EasternKingdoms/zone_eastern_plaguelands.cpp +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Copyright (C) 2008-2017 TrinityCore <http://www.trinitycore.org/> - * Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/> - * - * 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: Eastern_Plaguelands -SD%Complete: 100 -SDComment: Quest support: 5211. Special vendor Augustus the Touched -SDCategory: Eastern Plaguelands -EndScriptData */ - -/* ContentData -npc_ghoul_flayer -npc_augustus_the_touched -npc_darrowshire_spirit -EndContentData */ - -#include "ScriptMgr.h" -#include "ScriptedCreature.h" -#include "ScriptedGossip.h" -#include "Player.h" -#include "WorldSession.h" - -class npc_ghoul_flayer : public CreatureScript -{ -public: -    npc_ghoul_flayer() : CreatureScript("npc_ghoul_flayer") { } - -    struct npc_ghoul_flayerAI : public ScriptedAI -    { -        npc_ghoul_flayerAI(Creature* creature) : ScriptedAI(creature) { } - -        void Reset() override { } - -        void EnterCombat(Unit* /*who*/) override { } - -        void JustDied(Unit* killer) override -        { -            if (killer->GetTypeId() == TYPEID_PLAYER) -                me->SummonCreature(11064, 0.0f, 0.0f, 0.0f, 0.0f, TEMPSUMMON_TIMED_DESPAWN, 60000); -        } -    }; - -    CreatureAI* GetAI(Creature* creature) const override -    { -        return new npc_ghoul_flayerAI(creature); -    } -}; - -/*###### -## npc_augustus_the_touched -######*/ - -class npc_augustus_the_touched : public CreatureScript -{ -public: -    npc_augustus_the_touched() : CreatureScript("npc_augustus_the_touched") { } - -    bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action) override -    { -        ClearGossipMenuFor(player); -        if (action == GOSSIP_ACTION_TRADE) -            player->GetSession()->SendListInventory(creature->GetGUID()); -        return true; -    } - -    bool OnGossipHello(Player* player, Creature* creature) override -    { -        if (creature->IsQuestGiver()) -            player->PrepareQuestMenu(creature->GetGUID()); - -        if (creature->IsVendor() && player->GetQuestRewardStatus(6164)) -            AddGossipItemFor(player, GOSSIP_ICON_VENDOR, GOSSIP_TEXT_BROWSE_GOODS, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_TRADE); - -        SendGossipMenuFor(player, player->GetGossipTextId(creature), creature->GetGUID()); -        return true; -    } -}; - -/*###### -## npc_darrowshire_spirit -######*/ - -enum DarrowshireSpirit -{ -    SPELL_SPIRIT_SPAWNIN    = 17321 -}; - -class npc_darrowshire_spirit : public CreatureScript -{ -public: -    npc_darrowshire_spirit() : CreatureScript("npc_darrowshire_spirit") { } - -    bool OnGossipHello(Player* player, Creature* creature) override -    { -        SendGossipMenuFor(player, 3873, creature->GetGUID()); -        player->TalkedToCreature(creature->GetEntry(), creature->GetGUID()); -        creature->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE); -        return true; -    } - -    CreatureAI* GetAI(Creature* creature) const override -    { -        return new npc_darrowshire_spiritAI(creature); -    } - -    struct npc_darrowshire_spiritAI : public ScriptedAI -    { -        npc_darrowshire_spiritAI(Creature* creature) : ScriptedAI(creature) { } - -        void Reset() override -        { -            DoCast(me, SPELL_SPIRIT_SPAWNIN); -            me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE); -        } - -        void EnterCombat(Unit* /*who*/) override { } -    }; -}; - -void AddSC_eastern_plaguelands() -{ -    new npc_ghoul_flayer(); -    new npc_augustus_the_touched(); -    new npc_darrowshire_spirit(); -}  | 
