Hassan Emprator
2019-04-24, 03:00 PM
نيجي لاضافه
هتفح الكلاس دا TeamElitePkTop
بعد كدا هنبحث عن الكود دا
public void Append(
بعد اما تلاقيه هتبدل كود الAppend دا لي د
public void Append(TeamElitePk.FighterStats stats, int rank, TeamElitePk.GamePackets ID)
{
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;
}
}
بعد كدا هتفح كلاس TeamElitePk
وهنبحث عن
public void Rankings(
بعد اما تلاقيه هتبدله بي دا
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;
بس كدا سلااام
هتفح الكلاس دا TeamElitePkTop
بعد كدا هنبحث عن الكود دا
public void Append(
بعد اما تلاقيه هتبدل كود الAppend دا لي د
public void Append(TeamElitePk.FighterStats stats, int rank, TeamElitePk.GamePackets ID)
{
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;
}
}
بعد كدا هتفح كلاس TeamElitePk
وهنبحث عن
public void Rankings(
بعد اما تلاقيه هتبدله بي دا
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;
بس كدا سلااام