mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
Core/Scripts: Move condition for 'npc_marin_noggenfogger' gossip menu option to DB and remove 'npc_marin_noggenfogger' script
This commit is contained in:
@@ -19,14 +19,13 @@
|
||||
/* ScriptData
|
||||
SDName: Tanaris
|
||||
SD%Complete: 80
|
||||
SDComment: Quest support: 648, 1560, 2954, 4005, 10277, 10279(Special flight path). Noggenfogger vendor
|
||||
SDComment: Quest support: 648, 1560, 2954, 4005, 10277, 10279(Special flight path).
|
||||
SDCategory: Tanaris
|
||||
EndScriptData */
|
||||
|
||||
/* ContentData
|
||||
npc_aquementas
|
||||
npc_custodian_of_time
|
||||
npc_marin_noggenfogger
|
||||
npc_steward_of_time
|
||||
npc_stone_watcher_of_norgannon
|
||||
npc_OOX17
|
||||
@@ -281,39 +280,6 @@ public:
|
||||
|
||||
};
|
||||
|
||||
/*######
|
||||
## npc_marin_noggenfogger
|
||||
######*/
|
||||
|
||||
class npc_marin_noggenfogger : public CreatureScript
|
||||
{
|
||||
public:
|
||||
npc_marin_noggenfogger() : CreatureScript("npc_marin_noggenfogger") { }
|
||||
|
||||
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action) OVERRIDE
|
||||
{
|
||||
player->PlayerTalkClass->ClearMenus();
|
||||
if (action == GOSSIP_ACTION_TRADE)
|
||||
player->GetSession()->SendListInventory(creature->GetGUID());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool OnGossipHello(Player* player, Creature* creature) OVERRIDE
|
||||
{
|
||||
if (creature->IsQuestGiver())
|
||||
player->PrepareQuestMenu(creature->GetGUID());
|
||||
|
||||
if (creature->IsVendor() && player->GetQuestRewardStatus(2662))
|
||||
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;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
/*######
|
||||
## npc_steward_of_time
|
||||
######*/
|
||||
@@ -681,7 +647,6 @@ void AddSC_tanaris()
|
||||
{
|
||||
new npc_aquementas();
|
||||
new npc_custodian_of_time();
|
||||
new npc_marin_noggenfogger();
|
||||
new npc_steward_of_time();
|
||||
new npc_stone_watcher_of_norgannon();
|
||||
new npc_OOX17();
|
||||
|
||||
Reference in New Issue
Block a user