Пример #1
0
        public static byte[] Create(FloorItem item, MsgFloorItemType type)
        {
            var packet = new MsgFloorItem
            {
                Size             = (ushort)sizeof(MsgFloorItem),
                Id               = 1101,
                UniqueId         = item.UniqueId,
                X                = item.Location.X,
                Y                = item.Location.Y,
                ItemId           = item.Original?.ItemId ?? (int)item.Look,
                MsgFloorItemType = type,
            };

            return(packet);
        }
Пример #2
0
 private static void PickupItem(Player player, ref MsgFloorItem packet) => FloorItemSystem.Pickup(player, packet.UniqueId);