using ODMO.Commons.Enums.ClientEnums; using ODMO.Commons.Writers; namespace ODMO.Commons.Packets.PersonalShop { public class PersonalShopBuyItemPacket : PacketWriter { private const int PacketNumber = 1513; /// /// Pop up the personal shop window. /// /// The target action enum to choose the shop type /// The item id used to open the shop /// The item id used to open the shop public PersonalShopBuyItemPacket(TamerShopActionEnum shopAction, int slot, int count) { Type(PacketNumber); WriteInt(shopAction.GetHashCode()); WriteInt(slot); WriteInt(count); } /// /// Pop up the personal shop window. /// public PersonalShopBuyItemPacket(TamerShopActionEnum shopAction) { Type(PacketNumber); WriteInt(shopAction.GetHashCode()); } } }