Exemplo n.º 1
0
 public Item(int id)
 {
     this.Id            = id;
     this.InventoryType = ItemMetadataStorage.GetTab(id);
     this.ItemSlot      = ItemMetadataStorage.GetSlot(id);
     this.SlotMax       = ItemMetadataStorage.GetSlotMax(id);
     this.IsTemplate    = ItemMetadataStorage.GetIsTemplate(id);
     this.Slot          = -1;
     this.Amount        = 1;
     this.Stats         = new ItemStats();
     this.CanRepackage  = true; // If false, item becomes untradable
 }
Exemplo n.º 2
0
 public Item(int id)
 {
     this.Id           = id;
     this.Uid          = GuidGenerator.Long();
     this.InventoryTab = ItemMetadataStorage.GetTab(id);
     this.ItemSlot     = ItemMetadataStorage.GetSlot(id);
     this.GemSlot      = ItemMetadataStorage.GetGem(id);
     this.Rarity       = ItemMetadataStorage.GetRarity(id);
     this.SlotMax      = ItemMetadataStorage.GetSlotMax(id);
     this.IsTemplate   = ItemMetadataStorage.GetIsTemplate(id);
     this.PlayCount    = ItemMetadataStorage.GetPlayCount(id);
     this.Content      = ItemMetadataStorage.GetContent(id);
     this.Slot         = -1;
     this.Amount       = 1;
     this.Stats        = new ItemStats();
     this.CanRepackage = true; // If false, item becomes untradable
 }