using ODMO.Commons.Enums.ClientEnums;
using ODMO.Commons.Writers;
namespace ODMO.Commons.Packets.PersonalShop
{
public class PersonalShopPacket : PacketWriter
{
private const int PacketNumber = 1510;
///
/// Pop up the personal shop window.
///
/// The target action enum to choose the shop type
/// The item id used to open the shop
public PersonalShopPacket(TamerShopActionEnum shopAction, int itemId)
{
Type(PacketNumber);
WriteInt(shopAction.GetHashCode());
WriteInt(itemId);
}
///
/// Updates the tamer shop store window as open.
///
/// The item id used to open the shop
public PersonalShopPacket(int itemId)
{
Type(1511);
WriteInt(100);
WriteInt(itemId);
}
public PersonalShopPacket()
{
Type(1512);
WriteInt(100);
}
}
}