int BuyItem(number);
Where number is unique identifier of the item based on League of Legends API.
Returns false if player is too far away from the shop, he got not enough money or item cannot be bought and returns true on success.
Value of number cannot be nil. Throw critical error if it is.
__________________________________________________________________________________________________________________
int SellItem(slot);
Where slot is unique number of the slot that contains an item you want to sell.
Returns false if player is too far away from the shop or item cannot be sold and returns true on success.
int GetCost(number);
Where number is unique identifier of the item based on League of Legends API.
Returns cost of an item as int or returns nil if item cannot be bought. This value takes takes into account all previously purchased items so cost is smaller for each component you posses.
Value of number cannot be nil. Throw critical error if it is.
int GetPrice(number);
Alias for the int GetCost(number); function.
int GetOriginalPrice(number);
Where number is unique identifier of the item based on League of Legends API.
Returns full cost of an item as int or returns nil if item cannot be bought. This value remains intact even if you already own some components for the final item.
Value of number cannot be nil. Throw critical error if it is.
Sign In
Create Account

Back to top
Report








