diff options
| author | Andrew Letson <velinath@users.noreply.github.com> | 2017-10-21 07:28:57 -0400 |
|---|---|---|
| committer | Aokromes <Aokromes@users.noreply.github.com> | 2017-10-21 13:28:57 +0200 |
| commit | 9fe890744c5967bd46c0bd19e8901df6d91cd891 (patch) | |
| tree | b384f518a4ddff4223fb4f98f8052647a48399fb /src | |
| parent | c11552a5d4192f783a450181da199a9b763a9749 (diff) | |
[3.3.5] DB/Scripts: Rivern Frostwind
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/scripts/Kalimdor/zone_winterspring.cpp | 47 |
1 files changed, 1 insertions, 46 deletions
diff --git a/src/server/scripts/Kalimdor/zone_winterspring.cpp b/src/server/scripts/Kalimdor/zone_winterspring.cpp index a2557bbdd43..5e7080ae621 100644 --- a/src/server/scripts/Kalimdor/zone_winterspring.cpp +++ b/src/server/scripts/Kalimdor/zone_winterspring.cpp @@ -19,12 +19,11 @@ /* ScriptData SDName: Winterspring SD%Complete: Almost Completely Emptied -SDComment: Vendor Rivern Frostwind. Quest Support 4901 +SDComment: Quest Support 4901 SDCategory: Winterspring EndScriptData */ /* ContentData -npc_rivern_frostwind npc_ranshalla go_elune_fire EndContentData */ @@ -36,52 +35,9 @@ EndContentData */ #include "ObjectAccessor.h" #include "Player.h" #include "ScriptedEscortAI.h" -#include "ScriptedGossip.h" #include "TemporarySummon.h" #include "WorldSession.h" -/*###### -## npc_rivern_frostwind -######*/ - -class npc_rivern_frostwind : public CreatureScript -{ -public: - npc_rivern_frostwind() : CreatureScript("npc_rivern_frostwind") { } - - struct npc_rivern_frostwindAI : public ScriptedAI - { - npc_rivern_frostwindAI(Creature* creature) : ScriptedAI(creature) { } - - bool GossipSelect(Player* player, uint32 /*menuId*/, uint32 gossipListId) override - { - uint32 const action = player->PlayerTalkClass->GetGossipOptionAction(gossipListId); - ClearGossipMenuFor(player); - if (action == GOSSIP_ACTION_TRADE) - player->GetSession()->SendListInventory(me->GetGUID()); - - return true; - } - - bool GossipHello(Player* player) override - { - if (me->IsQuestGiver()) - player->PrepareQuestMenu(me->GetGUID()); - - if (me->IsVendor() && player->GetReputationRank(589) == REP_EXALTED) - AddGossipItemFor(player, GOSSIP_ICON_VENDOR, GOSSIP_TEXT_BROWSE_GOODS, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_TRADE); - - SendGossipMenuFor(player, player->GetGossipTextId(me), me->GetGUID()); - return true; - } - }; - - CreatureAI* GetAI(Creature* creature) const override - { - return new npc_rivern_frostwindAI(creature); - } -}; - enum Says { // Escort texts @@ -643,7 +599,6 @@ public: void AddSC_winterspring() { - new npc_rivern_frostwind(); new npc_ranshalla(); new go_elune_fire(); } |
