aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Letson <velinath@cloudyday.net>2016-06-14 11:34:10 -0400
committerjoschiwald <joschiwald.trinity@gmail.com>2017-01-29 17:57:19 +0100
commitfd480d14f0752f9d934c50fe0c85b28425cb59df (patch)
treec50fdffbbc13f49acc1b032f9e98e09b407fa6c1 /src
parent15817ba85fca29f777143436153e7ec9d7cde15b (diff)
Core/Scripts: Migrate Professor Dabiri to SAI (#17367)
- removes Professor Dabiri from zone script and adds him to smart_scripts. - also removes one more line of hardcoded text in core scripts (cherry picked from commit 8e84603090726cf3715c444763a2c499f6518e95)
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Outland/zone_netherstorm.cpp53
1 files changed, 1 insertions, 52 deletions
diff --git a/src/server/scripts/Outland/zone_netherstorm.cpp b/src/server/scripts/Outland/zone_netherstorm.cpp
index a325c9f5970..0d463c82dfd 100644
--- a/src/server/scripts/Outland/zone_netherstorm.cpp
+++ b/src/server/scripts/Outland/zone_netherstorm.cpp
@@ -19,7 +19,7 @@
/* ScriptData
SDName: Netherstorm
SD%Complete: 80
-SDComment: Quest support: 10337, 10438, 10652 (special flight paths), 10198, 10191
+SDComment: Quest support: 10337, 10652 (special flight paths), 10198, 10191
SDCategory: Netherstorm
EndScriptData */
@@ -335,56 +335,6 @@ public:
};
/*######
-## npc_professor_dabiri
-######*/
-enum ProfessorDabiriData
-{
- SPELL_PHASE_DISTRUPTOR = 35780,
-
- //WHISPER_DABIRI = 0, not existing in database
-
- QUEST_DIMENSIUS = 10439,
- QUEST_ON_NETHERY_WINGS = 10438,
-};
-
-#define GOSSIP_ITEM "I need a new phase distruptor, Professor"
-
-class npc_professor_dabiri : public CreatureScript
-{
-public:
- npc_professor_dabiri() : CreatureScript("npc_professor_dabiri") { }
-
- //OnQuestAccept:
- //if (quest->GetQuestId() == QUEST_DIMENSIUS)
- //creature->AI()->Talk(WHISPER_DABIRI, player);
-
- bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action) override
- {
- player->PlayerTalkClass->ClearMenus();
- if (action == GOSSIP_ACTION_INFO_DEF+1)
- {
- creature->CastSpell(player, SPELL_PHASE_DISTRUPTOR, false);
- player->CLOSE_GOSSIP_MENU();
- }
-
- return true;
- }
-
- bool OnGossipHello(Player* player, Creature* creature) override
- {
- if (creature->IsQuestGiver())
- player->PrepareQuestMenu(creature->GetGUID());
-
- if (player->GetQuestStatus(QUEST_ON_NETHERY_WINGS) == QUEST_STATUS_INCOMPLETE && !player->HasItemCount(29778))
- player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1);
-
- player->SEND_GOSSIP_MENU(player->GetGossipTextId(creature), creature->GetGUID());
-
- return true;
- }
-};
-
-/*######
## npc_phase_hunter
######*/
@@ -752,7 +702,6 @@ void AddSC_netherstorm()
{
new npc_commander_dawnforge();
new at_commander_dawnforge();
- new npc_professor_dabiri();
new npc_phase_hunter();
new npc_bessy();
new npc_maxx_a_million_escort();