mirror of
https://github.com/edubart/otclient.git
synced 2025-10-13 19:14:56 +02:00
dont reset password on connection errors
This commit is contained in:
@@ -18,10 +18,12 @@ local function clearAccountFields()
|
||||
Settings.remove('password')
|
||||
end
|
||||
|
||||
local function onError(protocol, error)
|
||||
local function onError(protocol, message, connectionError)
|
||||
loadBox:destroy()
|
||||
clearAccountFields()
|
||||
local errorBox = displayErrorBox('Login Error', error)
|
||||
if not connectionError then
|
||||
clearAccountFields()
|
||||
end
|
||||
local errorBox = displayErrorBox('Login Error', message)
|
||||
errorBox.onOk = EnterGame.show
|
||||
end
|
||||
|
||||
|
@@ -2,8 +2,10 @@
|
||||
-- you can place any custom user code here
|
||||
|
||||
Hotkeys.bind('F1', function() Game.talk('exura gran') end)
|
||||
Hotkeys.bind('F2', function() Game.talk('exori flam') end)
|
||||
Hotkeys.bind('F2', function() Game.talk('exori frigo') end)
|
||||
Hotkeys.bind('F3', function() Game.talk('exevo flam hur') end)
|
||||
Hotkeys.bind('F4', function() Game.talk('exevo pan') end)
|
||||
Hotkeys.bind('F5', function() Game.talk('exani tera') end)
|
||||
Hotkeys.bind('Ctrl+R', function() runscript('otclientrc.lua') end)
|
||||
|
||||
if rcloaded then
|
||||
|
Reference in New Issue
Block a user