connection fixes, motd fixed

This commit is contained in:
Henrique
2011-05-31 02:24:30 -03:00
parent 9b2d71f6d8
commit c490577ea8
6 changed files with 33 additions and 23 deletions

View File

@@ -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