Exemplo n.º 1
0
void WorldSession::HandleLfgGetStatus(WorldPacket& recv_data)
{
    DEBUG_LOG("CMSG_LFG_GET_STATUS");
    
    Player* pPlayer = GetPlayer();
    ObjectGuid guid = pPlayer->GetObjectGuid();
    LFGPlayerStatus currentStatus = sLFGMgr.GetPlayerStatus(guid);
    
    if (pPlayer->GetGroup())
    {
        SendLfgUpdate(true, currentStatus);
        currentStatus.dungeonList.clear();
        SendLfgUpdate(false, currentStatus);
    }
    else
    {
        // reverse order
        SendLfgUpdate(false, currentStatus);
        currentStatus.dungeonList.clear();
        SendLfgUpdate(true, currentStatus);
    }
}
Exemplo n.º 2
0
void WorldSession::HandleMeetingStoneInfo( WorldPacket & /*recv_data*/ )
{
    DEBUG_LOG( "WORLD: Received CMSG_MEETING_STONE_INFO" );

    SendLfgUpdate(0, 0, 0);
}