aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMitchesD <majklprofik@seznam.cz>2015-10-30 14:46:14 +0100
committerMitchesD <majklprofik@seznam.cz>2015-10-30 14:46:14 +0100
commit26d362febc197d42a4b0cc175fa7a11f8acc81c5 (patch)
tree817d7a30314914d60f7eb2d5b42728231ca2a691 /src
parent6baa12076697e9098a5a2eb3440b029f1462d1e4 (diff)
Revert "DB/NPC: Stable Masters" Please in the future mark 335 only commits with *_335 in the end of SQL file, if it has any.
This reverts commit 18f511431a794392075ab8d15519ac15d2b6e79d.
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/World/npcs_special.cpp69
1 files changed, 1 insertions, 68 deletions
diff --git a/src/server/scripts/World/npcs_special.cpp b/src/server/scripts/World/npcs_special.cpp
index db1785748de..e72e094ea06 100644
--- a/src/server/scripts/World/npcs_special.cpp
+++ b/src/server/scripts/World/npcs_special.cpp
@@ -53,11 +53,10 @@ EndContentData */
#include "GridNotifiersImpl.h"
#include "Cell.h"
#include "CellImpl.h"
-#include "SpellHistory.h"
#include "SpellAuras.h"
#include "Pet.h"
#include "CreatureTextMgr.h"
-#include "SmartAI.h"
+#include "SpellHistory.h"
/*########
# npc_air_force_bots
@@ -2324,71 +2323,6 @@ public:
}
};
-enum StableMasters
-{
- SPELL_MINIWING = 54573,
- SPELL_JUBLING = 54611,
- SPELL_DARTER = 54619,
- SPELL_WORG = 54631,
- SPELL_SMOLDERWEB = 54634,
- SPELL_CHIKEN = 54677,
- SPELL_WOLPERTINGER = 54688,
-
- STABLE_MASTER_GOSSIP_SUB_MENU = 9820
-};
-
-class npc_stable_master : public CreatureScript
-{
- public:
- npc_stable_master() : CreatureScript("npc_stable_master") { }
-
- struct npc_stable_masterAI : public SmartAI
- {
- npc_stable_masterAI(Creature* creature) : SmartAI(creature) { }
-
- void sGossipSelect(Player* player, uint32 menuId, uint32 gossipListId) override
- {
- SmartAI::sGossipSelect(player, menuId, gossipListId);
- if (menuId != STABLE_MASTER_GOSSIP_SUB_MENU)
- return;
-
- switch (gossipListId)
- {
- case 0:
- player->CastSpell(player, SPELL_MINIWING, false);
- break;
- case 1:
- player->CastSpell(player, SPELL_JUBLING, false);
- break;
- case 2:
- player->CastSpell(player, SPELL_DARTER, false);
- break;
- case 3:
- player->CastSpell(player, SPELL_WORG, false);
- break;
- case 4:
- player->CastSpell(player, SPELL_SMOLDERWEB, false);
- break;
- case 5:
- player->CastSpell(player, SPELL_CHIKEN, false);
- break;
- case 6:
- player->CastSpell(player, SPELL_WOLPERTINGER, false);
- break;
- default:
- return;
- }
-
- player->PlayerTalkClass->SendCloseGossip();
- }
- };
-
- CreatureAI* GetAI(Creature* creature) const override
- {
- return new npc_stable_masterAI(creature);
- }
-};
-
void AddSC_npcs_special()
{
new npc_air_force_bots();
@@ -2411,5 +2345,4 @@ void AddSC_npcs_special()
new npc_firework();
new npc_spring_rabbit();
new npc_imp_in_a_ball();
- new npc_stable_master();
}