Fix 10.76 login protocol, added missing lua consts
This commit is contained in:
parent
3bffa6b04a
commit
b237b713ef
|
@ -195,7 +195,9 @@ MessageModes = {
|
|||
RVRChannel = 46,
|
||||
RVRAnswer = 47,
|
||||
RVRContinue = 48,
|
||||
Last = 49,
|
||||
GameHighlight = 49,
|
||||
NpcFromStartBlock = 50,
|
||||
Last = 51,
|
||||
Invalid = 255,
|
||||
}
|
||||
|
||||
|
|
|
@ -11,6 +11,10 @@ LoginServerSessionKey = 40
|
|||
LoginServerCharacterList = 100
|
||||
LoginServerExtendedCharacterList = 101
|
||||
|
||||
-- Since 10.76
|
||||
LoginServerRetry = 10
|
||||
LoginServerErrorNew = 11
|
||||
|
||||
function ProtocolLogin:login(host, port, accountName, accountPassword, authenticatorToken, stayLogged)
|
||||
if string.len(host) == 0 or port == nil or port == 0 then
|
||||
signalcall(self.onLoginError, self, tr("You must enter a valid server address and port."))
|
||||
|
@ -144,7 +148,9 @@ end
|
|||
function ProtocolLogin:onRecv(msg)
|
||||
while not msg:eof() do
|
||||
local opcode = msg:getU8()
|
||||
if opcode == LoginServerError then
|
||||
if opcode == LoginServerErrorNew then
|
||||
self:parseError(msg)
|
||||
elseif opcode == LoginServerError then
|
||||
self:parseError(msg)
|
||||
elseif opcode == LoginServerMotd then
|
||||
self:parseMotd(msg)
|
||||
|
|
Loading…
Reference in New Issue