mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
disconnect on death
This commit is contained in:
@@ -56,5 +56,9 @@ function Game.onConnectionError(message)
|
||||
errorBox.onOk = CharacterList.show
|
||||
end
|
||||
|
||||
function Game.onDeath()
|
||||
print('dead')
|
||||
end
|
||||
|
||||
connect(Game, { onLogin = Game.createInterface }, true)
|
||||
connect(Game, { onLogout = Game.destroyInterface })
|
||||
|
Reference in New Issue
Block a user