mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-04-30 03:09:20 +02:00
Updated market to work on >10.90
This commit is contained in:
parent
9b9ade0bc9
commit
440bf56060
@ -726,8 +726,10 @@ local function initMarketItems()
|
|||||||
}
|
}
|
||||||
|
|
||||||
-- add new market item
|
-- add new market item
|
||||||
table.insert(marketItems[marketData.category], marketItem)
|
if marketItems[marketData.category] ~= nil then
|
||||||
itemSet[marketData.tradeAs] = true
|
table.insert(marketItems[marketData.category], marketItem)
|
||||||
|
itemSet[marketData.tradeAs] = true
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -81,6 +81,15 @@ local function parseMarketDetail(protocol, msg)
|
|||||||
msg:getU16()
|
msg:getU16()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if g_game.getClientVersion() >= 1100 then -- imbuements
|
||||||
|
if msg:peekU16() ~= 0x00 then
|
||||||
|
table.insert(descriptions, {MarketItemDescription.Last + 1, msg:getString()})
|
||||||
|
else
|
||||||
|
msg:getU16()
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
local time = (os.time() / 1000) * statistics.SECONDS_PER_DAY;
|
local time = (os.time() / 1000) * statistics.SECONDS_PER_DAY;
|
||||||
|
|
||||||
local purchaseStats = {}
|
local purchaseStats = {}
|
||||||
|
@ -11,7 +11,7 @@ DetailsTableRow < TableRow
|
|||||||
DetailsTableColumn < TableColumn
|
DetailsTableColumn < TableColumn
|
||||||
font: verdana-11px-monochrome
|
font: verdana-11px-monochrome
|
||||||
background-color: alpha
|
background-color: alpha
|
||||||
text-offset: 5 2
|
text-offset: 2 2
|
||||||
color: #cccccc
|
color: #cccccc
|
||||||
width: 100
|
width: 100
|
||||||
focusable: false
|
focusable: false
|
||||||
|
@ -289,7 +289,7 @@ function walk(dir, ticks)
|
|||||||
local dash = false
|
local dash = false
|
||||||
local ignoredCanWalk = false
|
local ignoredCanWalk = false
|
||||||
if not g_game.getFeature(GameNewWalking) then
|
if not g_game.getFeature(GameNewWalking) then
|
||||||
dash = g_settings.getBoolean("dash", true)
|
dash = g_settings.getBoolean("dash", false)
|
||||||
end
|
end
|
||||||
|
|
||||||
local ticksToNextWalk = player:getStepTicksLeft()
|
local ticksToNextWalk = player:getStepTicksLeft()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user