mirror of
https://github.com/edubart/otclient.git
synced 2025-10-19 05:53:26 +02:00
Started 1050 implementation and fix ups:
* Dat now loads (new animations aren't yet functional). * Fixed the way we reference client versions. TODO: Write new animation functionality & find out protocol changes.
This commit is contained in:
@@ -39,14 +39,14 @@ end
|
||||
-- parsing protocols
|
||||
local function parseMarketEnter(protocol, msg)
|
||||
local balance
|
||||
if g_game.getProtocolVersion() >= 973 then
|
||||
if g_game.getClientVersion() >= 981 then
|
||||
balance = msg:getU64()
|
||||
else
|
||||
balance = msg:getU32()
|
||||
end
|
||||
|
||||
local vocation = -1
|
||||
if g_game.getProtocolVersion() < 950 then
|
||||
if g_game.getClientVersion() < 950 then
|
||||
vocation = msg:getU8() -- get vocation id
|
||||
end
|
||||
local offers = msg:getU8()
|
||||
|
Reference in New Issue
Block a user