aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMitchesD <majklprofik@seznam.cz>2014-10-09 16:42:08 +0200
committerMitchesD <majklprofik@seznam.cz>2014-10-09 16:42:08 +0200
commit9e7a9ff6e19926d51a747eac172ec1723ad5561c (patch)
treead0881de03205f990559b3eb2e9d9c34eebb8a9e /src
parentcaf81f36e2b67b19fedff73a5cd1b9492883448b (diff)
Scripts/Dalaran: remove unneeded script
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Northrend/zone_dalaran.cpp47
1 files changed, 1 insertions, 46 deletions
diff --git a/src/server/scripts/Northrend/zone_dalaran.cpp b/src/server/scripts/Northrend/zone_dalaran.cpp
index fb5e63a2301..27d3e6dadc6 100644
--- a/src/server/scripts/Northrend/zone_dalaran.cpp
+++ b/src/server/scripts/Northrend/zone_dalaran.cpp
@@ -128,50 +128,6 @@ public:
}
};
-/*######
-## npc_hira_snowdawn
-######*/
-
-enum HiraSnowdawn
-{
- SPELL_COLD_WEATHER_FLYING = 54197
-};
-
-#define GOSSIP_TEXT_TRAIN_HIRA "I seek training to ride a steed."
-
-class npc_hira_snowdawn : public CreatureScript
-{
-public:
- npc_hira_snowdawn() : CreatureScript("npc_hira_snowdawn") { }
-
- bool OnGossipHello(Player* player, Creature* creature) override
- {
- if (!creature->IsVendor() || !creature->IsTrainer())
- return false;
-
- player->ADD_GOSSIP_ITEM(GOSSIP_ICON_VENDOR, GOSSIP_TEXT_TRAIN_HIRA, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_TRAIN);
-
- if (player->getLevel() >= 80 && player->HasSpell(SPELL_COLD_WEATHER_FLYING))
- player->ADD_GOSSIP_ITEM(GOSSIP_ICON_VENDOR, GOSSIP_TEXT_BROWSE_GOODS, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_TRADE);
-
- player->SEND_GOSSIP_MENU(player->GetGossipTextId(creature), creature->GetGUID());
-
- return true;
- }
-
- bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action) override
- {
- player->PlayerTalkClass->ClearMenus();
- if (action == GOSSIP_ACTION_TRAIN)
- player->GetSession()->SendTrainerList(creature->GetGUID());
-
- if (action == GOSSIP_ACTION_TRADE)
- player->GetSession()->SendListInventory(creature->GetGUID());
-
- return true;
- }
-};
-
enum MinigobData
{
ZONE_DALARAN = 4395,
@@ -284,7 +240,6 @@ class npc_minigob_manabonk : public CreatureScript
void AddSC_dalaran()
{
- new npc_mageguard_dalaran;
- new npc_hira_snowdawn;
+ new npc_mageguard_dalaran();
new npc_minigob_manabonk();
}