Hello e*PvPers. I'm trying to learn how the packets are going, But I've got a trouble. Once i try to send the arena packet , the client crashes :/ I've made the packet from 12tails' Packet Structure. Please check if it's right. and forward me on the right way.
There's the packet.
And There's the structure
#request close
There's the packet.
Code:
public static COPacket ArenaInfo(Game.Character C)
{
byte[] Packet = new byte[52];
COPacket P = new COPacket(Packet);//0
P.WriteInt16(2209);//2
P.WriteInt16(C.ArenaRank);//4
P.WriteInt32(C.ArenaStatus);//12
P.WriteInt16(C.ActivityPoint);//16
P.WriteByte(C.TimesToday);//20
P.WriteByte(C.WinsToday);//21
P.WriteInt32((uint)(C.WinsHistory));//24 (int)
P.WriteInt32((uint)C.LosesHistory);// 28 (int)
P.WriteInt32((uint)C.SeasonWins);//32 (int)
P.WriteInt32((uint)C.SeasonLoses);//36 (int)
P.WriteInt32((uint)C.HistoryHonor);//40 (int)
P.WriteInt32((uint)C.CurrentHonor);//44 (int)
P.WriteInt32((uint)C.ArenaPoint);//48 (int)
return P;
}
Thanks Fang For helping meQuote:
[Offset] [Type] [Value]
0 ushort 52
2 ushort 2209
4 ushort Rank
12 uint Status(signed/awaiting/inactive)
16 ushort ActitivityPoint
20 byte TimesToday
21 byte WinsToday
24 int HistoryWins
28 int HistoryDefeats
32 int SeansonWins
36 int SeasonDefeats
40 int HistoryHonnor
44 int CurrentHonnor
48 int ArenaPoint
#request close