delete this thread.
struct HEADER
{
ushort Size;
ushort Type;
}
struct NET_MSG
{
HEADER Header;
ByteArray Data;
}
public static COPacket Weather(byte Type, uint Intensity, uint Direction, uint Appearance)
{
COPacket Packet = new COPacket(new byte[17])
Packet.WriteInt16(Packet.Length);
Packet.WriteInt16(1016);
Packet.WriteByte(Type);
Packet.WriteInt32(Intensity);
Packet.WriteInt32(Direction);
Packet.WriteInt32(Appearance);
return Packet;
}
P.WriteInt32((uint)(Weather_Intensity));
Length -> Int16 Type -> Int16 Look -> Int32 Intensity -> Int32 Direction -> Int32 Color -> Int32
public static COPacket Weather(byte Type, uint Intensity, uint Direction, uint Appearance)
{
byte[] Packet = new byte[20];
COPacket P = new COPacket(Packet);
P.WriteInt16((ushort)(Packet.Length));
P.WriteInt16((ushort)(1017));
P.WriteInt16(Type);
P.WriteInt32(Intensity);
P.WriteInt32(Direction);
P.WriteInt32(Appearance);
return P;
}
byte[20] >> 20
Int16 >> 18
Int16 >> 16
Int16 >> 14
Int32 >> 10
Int32 >> 6
Int32 >> 2