Packet Question

02/07/2011 13:08 Syst3m_W1z4rd#1
#Edit it does work. Nevermind.

Thank you.
02/07/2011 14:34 §hift#2
What was the question o.O ?
02/07/2011 16:01 Kiyono#3
Quote:
Originally Posted by §hift View Post
What was the question o.O ?
Use Google cache, it's still there.
02/07/2011 16:12 Syst3m_W1z4rd#4
Quote:
Originally Posted by §hift View Post
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]);
            }