From what i've been told, there's a problem with the coding for creating a new char. I've looked it over many times and still cant figure out what's wrong. I'm not ahsamed to say that im still a rookie at this coding thing (i didnt do to well in my computer science clas last year) lol.
Also, im using Qonquer with out patches, etc. is that a problem?
I posted the the coding for a new char from my source below. I hope some1 can read it and see what exactly the problem is. If this isnt where the problem is, some1 plz point it out. TY!!!!
public byte[] NewCharPacket(int MessageId)
{
ushort PacketType = 0x3ec;
byte[] Packet = new byte[54];
fixed (byte* p = Packet)
{
*((ushort*)p) = (ushort)Packet.Length;
*((ushort*)(p + 2)) = (ushort)PacketType;
*(p + 4) = 0xff;
*(p + 5) = (0xff);
*(p + 6) = (0xff);
*(p + 8) = (0x35);
*(p + 9) = (0x08);
*(p + 13) = (0x28);
*(p + 14) = (0x03);
*(p + 24) = (0x04);
*(p + 25) = (0x06);
*((uint*)(p + 26)) = (uint)MessageId;
*(p + 30) = (0x45);
*(p + 31) = (0x4d);
*(p + 32) = (0x08);
*(p + 33) = (0x41);
*(p + 34) = (0x4c);
*(p + 35) = (0x4c);
*(p + 36) = (0x55);
*(p + 37) = (0x53);
*(p + 38) = (0x45);
*(p + 39) = (0x52);
*(p + 40) = (0x53);
*(p + 42) = (0x08);
*(p + 43) = (0x4e);
*(p + 44) = (0x45);
*(p + 45) = (0x57);
*(p + 46) = (0x5f);
*(p + 47) = (0x52);
*(p + 48) = (0x4f);
*(p + 49) = (0x4c);
*(p + 50) = (0x45);
}
return Packet;
}
Also, im using Qonquer with out patches, etc. is that a problem?
I posted the the coding for a new char from my source below. I hope some1 can read it and see what exactly the problem is. If this isnt where the problem is, some1 plz point it out. TY!!!!
public byte[] NewCharPacket(int MessageId)
{
ushort PacketType = 0x3ec;
byte[] Packet = new byte[54];
fixed (byte* p = Packet)
{
*((ushort*)p) = (ushort)Packet.Length;
*((ushort*)(p + 2)) = (ushort)PacketType;
*(p + 4) = 0xff;
*(p + 5) = (0xff);
*(p + 6) = (0xff);
*(p + 8) = (0x35);
*(p + 9) = (0x08);
*(p + 13) = (0x28);
*(p + 14) = (0x03);
*(p + 24) = (0x04);
*(p + 25) = (0x06);
*((uint*)(p + 26)) = (uint)MessageId;
*(p + 30) = (0x45);
*(p + 31) = (0x4d);
*(p + 32) = (0x08);
*(p + 33) = (0x41);
*(p + 34) = (0x4c);
*(p + 35) = (0x4c);
*(p + 36) = (0x55);
*(p + 37) = (0x53);
*(p + 38) = (0x45);
*(p + 39) = (0x52);
*(p + 40) = (0x53);
*(p + 42) = (0x08);
*(p + 43) = (0x4e);
*(p + 44) = (0x45);
*(p + 45) = (0x57);
*(p + 46) = (0x5f);
*(p + 47) = (0x52);
*(p + 48) = (0x4f);
*(p + 49) = (0x4c);
*(p + 50) = (0x45);
}
return Packet;
}