Aura.Channel.Scripting.Scripts.NpcShopScript.Add C# (CSharp) Метод

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

Adds item to tab.
public Add ( string tabTitle, int itemId, int amount = 1, int price = -1, int stock = -1 ) : void
tabTitle string
itemId int
amount int
price int Uses db value if lower than 0 (default).
stock int Amount of times item can be bough, unlimited if lower than 0 (default).
Результат void
		public void Add(string tabTitle, int itemId, int amount = 1, int price = -1, int stock = -1)
		{
			var item = new Item(itemId);
			item.Amount = amount;

			this.Add(tabTitle, item, price, stock);
		}

Same methods

NpcShopScript::Add ( string tabTitle, Func shouldDisplay = null ) : NpcShopTab
NpcShopScript::Add ( string tabTitle, bool randomizeColors, Func shouldDisplay = null ) : NpcShopTab
NpcShopScript::Add ( ) : void
NpcShopScript::Add ( string tabTitle, Item item, int price, int stock ) : void
NpcShopScript::Add ( string tabTitle, int itemId, string metaData, int price = -1, int stock = -1 ) : void
NpcShopScript::Add ( string tabTitle, int itemId, uint color1, uint color2, uint color3, int price = -1, int stock = -1 ) : void