Quote:
Originally Posted by §hift
What was the question o.O ?
|
Was just if I could write bytes like this.
Code:
public static TQPacket WrongAuth()
{
byte[] Packet = new byte[32];
TQPacket P = new TQPacket(Packet);
P.WriteInt16((ushort)Packet.Length);
P.WriteInt16(0x41f);
P.Move(4);
P.WriteInt32((uint)1);
byte[] bytes = new byte[] {
0xd5, 0xca, 0xba, 0xc5, 0xc3, 0xfb, 0xbb,
0xf2, 0xbf, 0xda, 0xc1, 0xee, 0xb4, 0xed
};
PacketByte.Write(bytes, P);
return P;
}
Code:
for (int i = 0; i < bytes.Length; i++)
{
Packet.WriteByte(bytes[i]);
}