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