Some more info about SMSG_ARENA_TEAM_ROSTER structure.

This commit is contained in:
balrok 2009-01-26 23:09:07 +03:00 committed by VladimirMangos
parent d88bf2643b
commit 09162d082c

View file

@ -304,9 +304,11 @@ void ArenaTeam::Roster(WorldSession *session)
{
Player *pl = NULL;
uint8 unk308 = 0;
WorldPacket data(SMSG_ARENA_TEAM_ROSTER, 100);
data << uint32(GetId()); // arena team id
data << uint8(0); // unknow 3.0.8
data << uint8(unk308); // 308 unknown value but affect packet structure
data << uint32(GetMembersSize()); // members count
data << uint32(GetType()); // arena team type?
@ -325,6 +327,11 @@ void ArenaTeam::Roster(WorldSession *session)
data << uint32(itr->games_season); // played this season
data << uint32(itr->wins_season); // wins this season
data << uint32(itr->personal_rating); // personal rating
if(unk308)
{
data << float(0.0); // 308 unk
data << float(0.0); // 308 unk
}
}
session->SendPacket(&data);