mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 22:37:02 +00:00
[11867] Implement GOSSIP_OPTION_MAILBOX
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
parent
249fc30abc
commit
18679dbab1
3 changed files with 25 additions and 19 deletions
|
|
@ -49,6 +49,7 @@ enum Gossip_Option
|
|||
GOSSIP_OPTION_ARMORER = 15, // UNIT_NPC_FLAG_ARMORER (4096)
|
||||
GOSSIP_OPTION_UNLEARNTALENTS = 16, // UNIT_NPC_FLAG_TRAINER (16) (bonus option for GOSSIP_OPTION_TRAINER)
|
||||
GOSSIP_OPTION_UNLEARNPETSKILLS = 17, // UNIT_NPC_FLAG_TRAINER (16) (bonus option for GOSSIP_OPTION_TRAINER)
|
||||
GOSSIP_OPTION_MAILBOX = 18, // UNIT_NPC_FLAG_GOSSIP (1)
|
||||
GOSSIP_OPTION_MAX
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -13014,6 +13014,7 @@ void Player::PrepareGossipMenu(WorldObject *pSource, uint32 menuId)
|
|||
case GOSSIP_OPTION_PETITIONER:
|
||||
case GOSSIP_OPTION_TABARDDESIGNER:
|
||||
case GOSSIP_OPTION_AUCTIONEER:
|
||||
case GOSSIP_OPTION_MAILBOX:
|
||||
break; // no checks
|
||||
default:
|
||||
sLog.outErrorDb("Creature entry %u have unknown gossip option %u for menu %u", pCreature->GetEntry(), itr->second.option_id, itr->second.menu_id);
|
||||
|
|
@ -13240,6 +13241,10 @@ void Player::OnGossipSelect(WorldObject* pSource, uint32 gossipListId, uint32 me
|
|||
case GOSSIP_OPTION_AUCTIONEER:
|
||||
GetSession()->SendAuctionHello(((Creature*)pSource));
|
||||
break;
|
||||
case GOSSIP_OPTION_MAILBOX:
|
||||
PlayerTalkClass->CloseGossip();
|
||||
GetSession()->SendShowMailBox(guid);
|
||||
break;
|
||||
case GOSSIP_OPTION_SPIRITGUIDE:
|
||||
PrepareGossipMenu(pSource);
|
||||
SendPreparedGossip(pSource);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "11866"
|
||||
#define REVISION_NR "11867"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue