OTCv8 3.0 rev 2

This commit is contained in:
OTCv8
2021-04-07 21:31:27 +00:00
parent e93bcdc9cf
commit d77991f60f
85 changed files with 8780 additions and 8200 deletions

View File

@@ -1384,7 +1384,7 @@ function Market.onMarketEnter(depotItems, offers, balance, vocation, items)
for i = 1, #marketItems[MarketCategory.TibiaCoins] do
local item = marketItems[MarketCategory.TibiaCoins][i].displayItem
information.depotItems[item:getId()] = tibiaCoins
depotItems[item:getId()] = tibiaCoins
end
-- update the items widget to match depot items
@@ -1425,10 +1425,9 @@ end
function Market.onCoinBalance(coins, transferableCoins)
tibiaCoins = coins
if not information or type(information.depotItems) ~= "table" then return end
if not marketItems[MarketCategory.TibiaCoins] then return end
for i = 1, #marketItems[MarketCategory.TibiaCoins] do
local item = marketItems[MarketCategory.TibiaCoins][i].displayItem
information.depotItems[item:getId()] = tibiaCoins
depotItems[item:getId()] = tibiaCoins
end
end