using ODMO.Commons.Enums.ClientEnums; using ODMO.Commons.Writers; namespace ODMO.Commons.Packets.Items { public class ItemConsumeFailPacket : PacketWriter { private const int PacketNumber = 3902; /// /// Returns the reason of not consuming the item. /// /// Consumed item slot /// Consumed item type /// Reason of the error public ItemConsumeFailPacket(short slot, int itemType, ItemConsumeFailEnum failReason = ItemConsumeFailEnum.OtherError) { Type(PacketNumber); WriteShort(slot); WriteInt(itemType); WriteInt(failReason.GetHashCode()); } } }