Updated to OTCv8 3.0 rev 99

This commit is contained in:
OTCv8
2021-09-05 16:09:55 +00:00
parent a22d7a7a63
commit 4231b74314
96 changed files with 3024 additions and 1713 deletions

View File

@@ -56,8 +56,8 @@ local function parseMarketEnter(protocol, msg)
end
local balance = 0
if g_game.getClientVersion() <= 1250 or not g_game.getFeature(GameTibia12Protocol) then
if g_game.getClientVersion() >= 981 or g_game.getClientVersion() < 944 then
if g_game.getProtocolVersion() <= 1250 or not g_game.getFeature(GameTibia12Protocol) then
if g_game.getProtocolVersion() >= 981 or g_game.getProtocolVersion() < 944 then
balance = msg:getU64()
else
balance = msg:getU32()
@@ -65,7 +65,7 @@ local function parseMarketEnter(protocol, msg)
end
local vocation = -1
if g_game.getClientVersion() >= 944 and g_game.getClientVersion() < 950 then
if g_game.getProtocolVersion() >= 944 and g_game.getProtocolVersion() < 950 then
vocation = msg:getU8() -- get vocation id
end
local offers = msg:getU8()
@@ -100,7 +100,7 @@ local function parseMarketDetail(protocol, msg)
end
end
if g_game.getClientVersion() >= 1100 then -- imbuements
if g_game.getProtocolVersion() >= 1100 then -- imbuements
if msg:peekU16() ~= 0x00 then
table.insert(descriptions, {MarketItemDescription.Last + 1, msg:getString()})
else