mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 03:24:55 +02:00
connection fixes, motd fixed
This commit is contained in:
@@ -36,7 +36,11 @@ function enterGame_onOkClicked()
|
||||
protocolLogin.onMotd = function(motd)
|
||||
loadMessageBox.onDestroy = nil
|
||||
loadMessageBox:destroy()
|
||||
local msgBox = messageBox("Message of the day", motd)
|
||||
|
||||
local motdNumber = string.sub(motd, 0, string.find(motd, "\n"))
|
||||
local motdText = string.sub(motd, string.find(motd, "\n") + 1, string.len(motd))
|
||||
|
||||
local msgBox = messageBox("Message of the day", motdText)
|
||||
msgBox.onDestroy = function()
|
||||
enterGameWindow.visible = true
|
||||
end
|
||||
@@ -45,6 +49,8 @@ function enterGame_onOkClicked()
|
||||
|
||||
local account = enterGameWindow:child("accountNameTextEdit").text
|
||||
local password = enterGameWindow:child("passwordTextEdit").text
|
||||
account = "tibialua0"
|
||||
password = "lua123456"
|
||||
|
||||
protocolLogin:login(account, password)
|
||||
end
|
||||
|
Reference in New Issue
Block a user