示例#1
0
void ArenaTeam::Roster(WorldPacket & data)
{
	data.Initialize(SMSG_ARENA_TEAM_ROSTER);
	data.reserve(m_memberCount * 81 + 9);
	data << m_id;
	data << uint8(0); //3.0.8, played? Specifies whether we are sending 2 extra floats for each member
	data << m_memberCount;
	data << GetPlayersPerTeam();

	for(uint32 i = 0; i < m_memberCount; ++i)
	{
		PlayerInfo* info = m_members[i].Info;
		// TODO : burlex figure out why this became null
		if( info != NULL )
		{
			data << uint64(info->guid);
			data << uint8( (info->m_loggedInPlayer != NULL) ? 1 : 0 );
			data << info->name;
			data << uint32( m_members[i].Info->guid == m_leader ? 0 : 1); // Unk
			data << uint8( info->lastLevel );
			data << uint8( info->cl );
			data << m_members[i].Played_ThisWeek;
			data << m_members[i].Won_ThisWeek;
			data << m_members[i].Played_ThisSeason;
			data << m_members[i].Won_ThisSeason;
			data << m_members[i].PersonalRating;
			// if uint8 flag at the beginning is not 0, 2 unknown floats are expected here
		}
	}
}
示例#2
0
void ArenaTeam::Roster(WorldPacket & data)
{
	data.Initialize(SMSG_ARENA_TEAM_ROSTER);
	data.reserve(m_memberCount * 81 + 9);
	data << m_id;
	data << m_memberCount;
	data << GetPlayersPerTeam();

	for(uint32 i = 0; i < m_memberCount; ++i)
	{
		PlayerInfo* info = m_members[i].Info;
		// TODO : burlex figure out why this became null
		if( info != NULL )
		{
			data << uint64(info->guid);
			data << uint8( (info->m_loggedInPlayer != NULL) ? 1 : 0 );
			data << info->name;
			data << uint32( m_members[i].Info->guid == m_leader ? 0 : 1); // Unk
			data << uint8( info->lastLevel );
			data << uint8( info->cl );
			data << m_members[i].Played_ThisWeek;
			data << m_members[i].Won_ThisWeek;
			data << m_members[i].Played_ThisSeason;
			data << m_members[i].Won_ThisSeason;
			data << m_stat_rating; // (actually personal rating here /shrug)
		}
	}
}
示例#3
0
void ArenaTeam::Query(WorldPacket & data)
{
/*
13329
{SERVER} Packet: (0xC47F) SMSG_ARENA_TEAM_QUERY_RESPONSE PacketSize = 33 TimeStamp = 22277707
A2 69 74 00 
35 6D 61 6E 00 
05 00 00 00 
70 33 4A FF 
4F 00 00 00 
C9 FA 54 FF 
02 00 00 00 
91 BD D1 FF 
14333
{SERVER} Packet: (0xFE2F) SMSG_ARENA_TEAM_QUERY_RESPONSE PacketSize = 39 TimeStamp = 1742125
9C 45 59 00 
74 75 70 6C 61 70 6F 74 74 69 00 
02 00 00 00 
E8 7B 00 FF
2F 00 00 00 
29 00 D4 FF 
04 00 00 00 
1E 00 E6 FF 
*/
	data.Initialize(SMSG_ARENA_TEAM_QUERY_RESPONSE);
	data << m_id;
	data << m_name;
	data << GetPlayersPerTeam();
	data << m_emblemColour;
	data << m_emblemStyle;
	data << m_borderColour;
	data << m_borderStyle;
	data << m_backgroundColour;
}
示例#4
0
void ArenaTeam::Query(WorldPacket & data)
{
	data.Initialize(SMSG_ARENA_TEAM_QUERY_RESPONSE);
	data << m_id;
	data << m_name;
	data << GetPlayersPerTeam();
	data << m_emblemColour;
	data << m_emblemStyle;
	data << m_borderColour;
	data << m_borderStyle;
	data << m_backgroundColour;
}
示例#5
0
void ArenaTeam::Query(WorldSession * session)
{
	WorldPacket data(SMSG_ARENA_TEAM_QUERY_RESPONSE, 4*7+m_name.size()+1);
	data << uint32(m_id);									// team id
	data << m_name;											// team name
	data << uint32(GetPlayersPerTeam());					// arena team type (2=2x2, 3=3x3 or 5=5x5)
	data << uint32(m_emblemStyle);							// emblem style?
	data << uint32(m_emblemColour);							// emblem color?
	data << uint32(m_borderStyle);							// border style?
	data << uint32(m_borderColour);							// border color?
	data << uint32(m_backgroundColour);						// background color?
	session->SendPacket(&data);
	sLog.outDebug("WORLD: Sent SMSG_ARENA_TEAM_QUERY_RESPONSE");
}
示例#6
0
void ArenaTeam::Roster(WorldPacket & data)
{
/*
13329
{SERVER} Packet: (0xAC5E) SMSG_ARENA_TEAM_ROSTER PacketSize = 56 TimeStamp = 22277707
A2 69 74 00 
00 
01 00 00 00 
05 00 00 00 
43 E7 38 03 00 00 00 01 
01 
47 75 6E 62 6F 6F 74 00 
00 00 00 00 
55 level
03 class
00 00 00 00 Played_ThisWeek
00 00 00 00 Won_ThisWeek
00 00 00 00 Played_ThisSeason
00 00 00 00 Won_ThisSeason
00 00 00 00 PersonalRating
14333
{SERVER} Packet: (0xA276) SMSG_ARENA_TEAM_ROSTER PacketSize = 95 TimeStamp = 2996061
6B 22 79 00 
00 
02 00 00 00 
02 00 00 00 
8F DC 38 03 00 00 00 01 
01 
48 6F 6C 6F 77 00 
00 00 00 00 
55 
09 
01 00 00 00 
00 00 00 00 
01 00 00 00 
00 00 00 00 
00 00 00 00 
E9 D7 38 03 00 00 00 01 
01 
55 64 72 65 61 00 
01 00 00 00 
55 
08 
01 00 00 00 
00 00 00 00 
01 00 00 00 
00 00 00 00 
00 00 00 00 

*/
	data.Initialize(SMSG_ARENA_TEAM_ROSTER);
	data.reserve(m_memberCount * 81 + 9);
	data << m_id;
	data << uint8(0); // 3.0.8
	data << m_memberCount;
	data << GetPlayersPerTeam();

	for(uint32 i = 0; i < m_memberCount; ++i)
	{
		PlayerInfo* info = m_members[i].Info;
		// TODO : burlex figure out why this became null
		if( info != NULL )
		{
			data << uint64(info->guid);
			data << uint8( (info->m_loggedInPlayer != NULL) ? 1 : 0 );
			data << info->name;
			data << uint32( m_members[i].Info->guid == m_leader ? 0 : 1); // Unk
			data << uint8( info->lastLevel );
			data << uint8( info->_class );
			data << m_members[i].Played_ThisWeek;
			data << m_members[i].Won_ThisWeek;
			data << m_members[i].Played_ThisSeason;
			data << m_members[i].Won_ThisSeason;
			data << m_members[i].PersonalRating;
		}
	}
}