Aura.Channel.World.Shops.PersonalShop.SetPrices C# (CSharp) Метод

SetPrices() публичный Метод

Sets the price for the given item, returns true on success.
public SetPrices ( long itemEntityId, int price ) : bool
itemEntityId long
price int
Результат bool
		public bool SetPrices(long itemEntityId, int price)
		{
			var refItem = this.Owner.Inventory.GetItem(itemEntityId);
			if (refItem == null || refItem.Info.Pocket != this.Bag.OptionInfo.LinkedPocketId)
				return false;

			// Update all items with the same item id as the reference item.
			var items = this.GetAllItems();
			foreach (var item in items.Where(a => a.Info.Id == refItem.Info.Id))
				this.UpdatePrice(item, price);

			return true;
		}