Aura.Channel.Scripting.Scripts.GameEventScript.AddEventItemToShop C# (CSharp) Метод

AddEventItemToShop() защищенный Метод

Adds the the item to the given shop.
protected AddEventItemToShop ( string shopName, int itemId, int amount = 1, int price = -1, int stock = -1 ) : void
shopName string
itemId int
amount int
price int
stock int
Результат void
		protected void AddEventItemToShop(string shopName, int itemId, int amount = 1, int price = -1, int stock = -1)
		{
			var shop = ChannelServer.Instance.ScriptManager.NpcShopScripts.Get(shopName);
			if (shop == null)
			{
				Log.Error("{0}.AddEventItemToShop: Shop '{1}' not found.", this.GetType().Name, shopName);
				return;
			}

			shop.Add(Localization.Get("Event"), itemId, amount, price, stock);
		}