mirror of
https://github.com/edubart/otclient.git
synced 2025-10-16 12:34:55 +02:00
Started updating to 9.8+ features, not yet finished (unsafe version).
Need to finish: * Pending login state * New creature speed changes * Vip state displays Fixed: * Creature light * Missing lua constants If someone can finish this off that would be good, I will be busy for a while :)
This commit is contained in:
@@ -38,7 +38,13 @@ end
|
||||
|
||||
-- parsing protocols
|
||||
local function parseMarketEnter(msg)
|
||||
local balance = msg:getU32()
|
||||
local balance
|
||||
if(g_game.getClientVersion() >= 980) then
|
||||
balance = msg:getU64()
|
||||
else
|
||||
balance = msg:getU32()
|
||||
end
|
||||
|
||||
local vocation = -1
|
||||
if g_game.getClientVersion() < 950 then
|
||||
vocation = msg:getU8() -- get vocation id
|
||||
|
@@ -65,6 +65,8 @@ GamePurseSlot = 21
|
||||
GameFormatCreatureName = 22
|
||||
GameSpellList = 23
|
||||
GameClientPing = 24
|
||||
GameLoginPending = 25
|
||||
GameNewSpeedLaw = 26
|
||||
|
||||
TextColors = {
|
||||
red = '#f55e5e', --'#c83200'
|
||||
|
@@ -50,7 +50,7 @@ function g_game.getSupportedProtocols()
|
||||
return {
|
||||
810, 853, 854, 860, 861, 862, 870,
|
||||
910, 940, 944, 953, 954, 960, 961,
|
||||
963, 970, 971
|
||||
963, 970, 971, 980, 981
|
||||
}
|
||||
end
|
||||
|
||||
|
@@ -1,9 +1,11 @@
|
||||
GameServerOpcodes = {
|
||||
GameServerInitGame = 10,
|
||||
GameServerGMActions = 11,
|
||||
GameServerEnterGame = 15,
|
||||
GameServerLoginError = 20,
|
||||
GameServerLoginAdvice = 21,
|
||||
GameServerLoginWait = 22,
|
||||
GameServerAddCreature = 23,
|
||||
GameServerPingBack = 29,
|
||||
GameServerPing = 30,
|
||||
GameServerChallange = 31,
|
||||
@@ -94,7 +96,8 @@ GameServerOpcodes = {
|
||||
GameServerMarketEnter = 246, -- 944
|
||||
GameServerMarketLeave = 247, -- 944
|
||||
GameServerMarketDetail = 248, -- 944
|
||||
GameServerMarketBrowse = 249 -- 944
|
||||
GameServerMarketBrowse = 249, -- 944
|
||||
GameServerShowModalDialog = 250 -- 960
|
||||
}
|
||||
|
||||
ClientOpcodes = {
|
||||
@@ -184,5 +187,6 @@ ClientOpcodes = {
|
||||
ClientMarketBrowse = 245, -- 944
|
||||
ClientMarketCreate = 246, -- 944
|
||||
ClientMarketCancel = 247, -- 944
|
||||
ClientMarketAccept = 248 -- 944
|
||||
}
|
||||
ClientMarketAccept = 248, -- 944
|
||||
ClientAnswerModalDialog = 249 -- 960
|
||||
}
|
||||
|
Reference in New Issue
Block a user