mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-19 22:23:28 +02:00
Updated vithrax bot config to version 1.2, fixed market bug and battle button bug
This commit is contained in:
@@ -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
|
||||
depotItems[item:getId()] = tibiaCoins
|
||||
information.depotItems[item:getId()] = tibiaCoins
|
||||
end
|
||||
|
||||
-- update the items widget to match depot items
|
||||
@@ -1425,9 +1425,10 @@ 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
|
||||
depotItems[item:getId()] = tibiaCoins
|
||||
information.depotItems[item:getId()] = tibiaCoins
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user