/*
* Ascent MMORPG Server
* Copyright (C) 2005-2007 Ascent Team
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
*/
#include "StdAfx.h"
bool ChatHandler::HandleSetBGScoreCommand(const char* args, WorldSession *m_session)
{
return true;
}
bool ChatHandler::HandleStartBGCommand(const char *args, WorldSession *m_session)
{
return true;
}
bool ChatHandler::HandlePauseBGCommand(const char *args, WorldSession *m_session)
{
return true;
}
bool ChatHandler::HandleBGInfoCommnad(const char *args, WorldSession *m_session)
{
return true;
}
bool ChatHandler::HandleBattlegroundCommand(const char* args, WorldSession *m_session)
{
uint32 type = atoi(args);
if(type != 2 && type != 3 && type != 4 && type != 5)
return false;
Player * plr = getSelectedChar(m_session, true);
if(!plr) return true;
BattlegroundManager.HandleBattlegroundListPacket(plr->GetSession(), atoi(args));
return true;
}
bool ChatHandler::HandleSetWorldStateCommand(const char* args, WorldSession *m_session)
{
return true;
}
bool ChatHandler::HandlePlaySoundCommand(const char* args, WorldSession *m_session)
{
return true;
}
bool ChatHandler::HandleSetBattlefieldStatusCommand(const char* args, WorldSession *m_session)
{
uint32 type = atoi(args);
BattlegroundManager.SendBattlefieldStatus(m_session->GetPlayer(), 1, type, 0 , 0, m_session->GetPlayer()->GetMapId());
return true;
}
bool ChatHandler::HandleBattlegroundExitCommand(const char* args, WorldSession* m_session)
{
return true;
}