Something in packets.cs that would be roughly like this
Code:
public byte[] StallWindow(uint ID, Character C)
{
ushort PacketType = 0x3f2;
byte[] Packet = new byte[24];
fixed (byte* Ptr = Packet)
{
*((ushort*)(Ptr)) = (ushort)Packet.Length;
*((ushort*)(Ptr + 2)) = (ushort)PacketType;
*((uint*)(Ptr + 4)) = (uint)758292;
*((uint*)(Ptr + 8)) = (uint)C.UID;
*((uint*)(Ptr + 12)) = (uint)ID;
*((ushort*)(Ptr + 16)) = (ushort)272;
*((ushort*)(Ptr + 18)) = (ushort)198;
*((ushort*)(Ptr + 20)) = (ushort)6;
*((ushort*)(Ptr + 22)) = (ushort)110;
}
return Packet;
}