Add/get table functions implemented on ext charlist

This commit is contained in:
Henrique Santiago
2012-08-30 02:59:10 -03:00
parent d98f6f7673
commit c517f7b745
10 changed files with 120 additions and 8 deletions

View File

@@ -28,7 +28,7 @@ local function onMotd(protocol, motd)
motdButton:show()
end
local function onCharacterList(protocol, characters, premDays)
local function onCharacterList(protocol, characters, account)
if enterGame:getChildById('rememberPasswordBox'):isChecked() then
g_settings.set('account', g_crypt.encrypt(G.account))
g_settings.set('password', g_crypt.encrypt(G.password))
@@ -40,7 +40,7 @@ local function onCharacterList(protocol, characters, premDays)
loadBox:destroy()
loadBox = nil
CharacterList.create(characters, premDays)
CharacterList.create(characters, account)
CharacterList.show()
local lastMotdNumber = g_settings.getNumber("motd")