{ if (ID == TeamElitePk.GamePackets.SkillElitePkBrackets) { ushort offset = (ushort)(20 + Index * 44);//21/22 Index++; WriteUInt32(stats.LeaderUID, offset, packet); offset += 4; WriteUInt32((uint)rank, offset, packet); offset += 4; WriteString(stats.Name, offset, packet); offset += 32; WriteUInt32(stats.LeaderMesh, offset, packet); offset += 4; } else { ushort offset = (ushort)(24 + Index * 48);//21/22 Index++; WriteUInt32(stats.LeaderUID, offset, packet); offset += 4; WriteUInt32((uint)rank, offset, packet); offset += 4; WriteString(stats.Name, offset, packet); offset += 32; WriteUInt32(stats.LeaderMesh, offset, packet); offset += 4; } } class TeamElitePk Search public void Rankings( if (this.State >= 8) { ranks.Type = 2U; if (this.State == 8) { ranks.Count = 1U; ranks.Append(this.Top8[2], 3, ID); } else { ranks.Count = 3U; for (int index = 0; index < 3; ++index) ranks.Append(this.Top8[index], index + 1, ID); } client.Send(ranks.ToArray()); } else { ranks.Count = (uint)this.Top8.Length; for (int rank = 0; (long)rank < (long)ranks.Count; ++rank) { if (this.Top8[rank] != null) ranks.Append(this.Top8[rank], rank, ID); } client.Send(ranks.ToArray()); } public static TeamElitePk.GamePackets ID;