Ejemplo n.º 1
0
 public MsgItemInformation(Item item, MsgItemInfoAction action = MsgItemInfoAction.AddItem, MsgItemPosition position = MsgItemPosition.Inventory) : this()
 {
     Size               = (ushort)sizeof(MsgItemInformation);
     Id                 = 1008;
     UniqueId           = item.UniqueId;
     ItemId             = item.ItemId;
     CurrentDurability  = item.CurrentDurability;
     MaxiumumDurability = item.MaximumDurability;
     Action             = action;
     Ident              = 0;
     Position           = position;
     Gem1               = item.Gem1;
     Gem2               = item.Gem2;
     RebornEffect       = item.RebornEffect;
     Magic2             = 0;
     Bless              = item.Bless;
     Plus               = item.Plus;
     Enchant            = item.Enchant;
     Restrain           = item.CustomTextId;
 }
Ejemplo n.º 2
0
 public MsgItemInfoEx(Product product, MsgItemPosition position = MsgItemPosition.Inventory, ItemExType type = ItemExType.None) : this()
 {
     Size               = (ushort)sizeof(MsgItemInfoEx);
     Id                 = 1108;
     OwnerUID           = product.Owner;
     UniqueId           = product.Item.UniqueId;
     ItemId             = product.Item.ItemId;
     Price              = product.Price;
     CurrentDurability  = product.Item.CurrentDurability;
     MaxiumumDurability = product.Item.MaximumDurability;
     ItemExType         = type;
     Position           = position;
     Gem1               = product.Item.Gem1;
     Gem2               = product.Item.Gem2;
     RebornEffect       = product.Item.RebornEffect;
     Plus               = product.Item.Plus;
     Bless              = product.Item.Bless;
     Enchant            = product.Item.Enchant;
     Restrain           = product.Item.CustomTextId;
 }