From 9e91219cd3b7b9bd02d75a247053abd90d17de11 Mon Sep 17 00:00:00 2001 From: Malcrom Date: Mon, 15 Jul 2013 13:51:51 -0230 Subject: DB/Gossip: Add missing gossip for Sputtervalve. Moved all scripting to SAI. --- src/server/scripts/Kalimdor/zone_the_barrens.cpp | 37 ------------------------ 1 file changed, 37 deletions(-) (limited to 'src/server/scripts') diff --git a/src/server/scripts/Kalimdor/zone_the_barrens.cpp b/src/server/scripts/Kalimdor/zone_the_barrens.cpp index b1f6114d33f..62867c46f78 100644 --- a/src/server/scripts/Kalimdor/zone_the_barrens.cpp +++ b/src/server/scripts/Kalimdor/zone_the_barrens.cpp @@ -175,42 +175,6 @@ public: }; -/*###### -## npc_sputtervalve -######*/ - -#define GOSSIP_SPUTTERVALVE "Can you tell me about this shard?" - -class npc_sputtervalve : public CreatureScript -{ -public: - npc_sputtervalve() : CreatureScript("npc_sputtervalve") { } - - bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action) OVERRIDE - { - player->PlayerTalkClass->ClearMenus(); - if (action == GOSSIP_ACTION_INFO_DEF) - { - player->SEND_GOSSIP_MENU(2013, creature->GetGUID()); - player->AreaExploredOrEventHappens(6981); - } - return true; - } - - bool OnGossipHello(Player* player, Creature* creature) OVERRIDE - { - if (creature->IsQuestGiver()) - player->PrepareQuestMenu(creature->GetGUID()); - - if (player->GetQuestStatus(6981) == QUEST_STATUS_INCOMPLETE) - player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_SPUTTERVALVE, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF); - - player->SEND_GOSSIP_MENU(player->GetGossipTextId(creature), creature->GetGUID()); - return true; - } - -}; - /*###### ## npc_taskmaster_fizzule ######*/ @@ -691,7 +655,6 @@ void AddSC_the_barrens() { new npc_beaten_corpse(); new npc_gilthares(); - new npc_sputtervalve(); new npc_taskmaster_fizzule(); new npc_twiggy_flathead(); new npc_wizzlecrank_shredder(); -- cgit v1.2.3