Exemplo n.º 1
0
        /// <summary>
        /// Attempts to sell an item
        /// </summary>
        /// <param name="character">Sekller</param>
        /// <param name="shopId">Shop id</param>
        /// <param name="itemId">Item id</param>
        /// <param name="count">Amount to sell</param>
        public void TrySellItemForCharacter(Character character, int shopId, int itemId, int count)
        {
            ItemShop shop = GetItemShopForId(shopId);

            if (shop != null)
            {
                shop.SellItem(character, itemId, count);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Attempts to sell an item
        /// </summary>
        /// <param name="character">Sekller</param>
        /// <param name="shopId">Shop id</param>
        /// <param name="itemId">Item id</param>
        /// <param name="count">Amount to sell</param>
        public void TrySellItemForCharacter(Character character, int shopId, int itemId, int count)
        {
            API.shared.consoleOutput("try sell");
            ItemShop shop = GetItemShopForId(shopId);

            if (shop != null)
            {
                shop.SellItem(character, itemId, count);
            }
        }