here is the code
PHP Code:
/*public static class AddItemToShop
{
unsafe public static byte[] Packet(MarketShopItem TheItem)
{
ushort PacketType = 0x454;
byte[] Packet = new byte[40];
fixed (byte* Ptr = Packet)
{
*((ulong*)(Ptr)) = (ulong)Packet.Length;
*((ulong*)(Ptr + 2)) = (ulong)PacketType;
*((uint*)(Ptr + 4)) = (uint)TheItem.ShopItem.ItemUID;
*((uint*)(Ptr + 8)) = (uint)TheItem.ShopID;
*((uint*)(Ptr + 12)) = (uint)TheItem.Gold;
*((uint*)(Ptr + 16)) = (uint)TheItem.ShopItem.ItemID;
*((ushort*)(Ptr + 20)) = (ushort)TheItem.ShopItem.HealthAndDura;
*((ushort*)(Ptr + 22)) = (ushort)TheItem.ShopItem.HealthAndDura;
*((byte*)(Ptr + 24)) = (byte)TheItem.GoldType;
}
return Packet;
}
}*/