mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[10256] New auction command with subcommands for look different auction stores from anywhere.
This commit is contained in:
parent
dbf2d02762
commit
9a6535963c
13 changed files with 151 additions and 40 deletions
|
|
@ -4145,6 +4145,35 @@ bool ChatHandler::HandleHideAreaCommand(const char* args)
|
|||
return true;
|
||||
}
|
||||
|
||||
bool ChatHandler::HandleAuctionAlianceCommand(const char* /*args*/)
|
||||
{
|
||||
m_session->GetPlayer()->SetAuctionAccessMode(m_session->GetPlayer()->GetTeam() != ALLIANCE ? -1 : 0);
|
||||
m_session->SendAuctionHello(m_session->GetPlayer());
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ChatHandler::HandleAuctionHordeCommand(const char* /*args*/)
|
||||
{
|
||||
m_session->GetPlayer()->SetAuctionAccessMode(m_session->GetPlayer()->GetTeam() != HORDE ? -1 : 0);
|
||||
m_session->SendAuctionHello(m_session->GetPlayer());
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ChatHandler::HandleAuctionGoblinCommand(const char* /*args*/)
|
||||
{
|
||||
m_session->GetPlayer()->SetAuctionAccessMode(1);
|
||||
m_session->SendAuctionHello(m_session->GetPlayer());
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ChatHandler::HandleAuctionCommand(const char* /*args*/)
|
||||
{
|
||||
m_session->GetPlayer()->SetAuctionAccessMode(0);
|
||||
m_session->SendAuctionHello(m_session->GetPlayer());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ChatHandler::HandleBankCommand(const char* /*args*/)
|
||||
{
|
||||
m_session->SendShowBank( m_session->GetPlayer()->GetGUID() );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue