mirror of
https://github.com/edubart/otclient.git
synced 2025-11-30 15:26:49 +01:00
rework walk
This commit is contained in:
@@ -29,3 +29,7 @@ function debugContainersItems()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function quit()
|
||||
exit()
|
||||
end
|
||||
@@ -16,3 +16,11 @@ function UIWindow:onKeyPress(keyCode, keyboardModifiers, wouldFilter)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function UIWindow:onMousePress(mousePos, mouseButton)
|
||||
|
||||
end
|
||||
|
||||
function UIWindow:onGeometryChange(oldRect, newRect)
|
||||
|
||||
end
|
||||
|
||||
@@ -71,7 +71,7 @@ end
|
||||
local function onApplicationClose()
|
||||
print('close app')
|
||||
if Game.isOnline() then
|
||||
Game.logout(false)
|
||||
Game.logout(true)
|
||||
else
|
||||
exit()
|
||||
end
|
||||
|
||||
@@ -81,8 +81,7 @@ end
|
||||
|
||||
-- hooked events
|
||||
local function onGameDeath()
|
||||
TextMessage.displayEventAdvance('You are dead.', 10)
|
||||
scheduleEvent(function() Game.logout(true) end, 10*1000)
|
||||
TextMessage.displayEventAdvance('You are dead.', 60)
|
||||
end
|
||||
|
||||
local function onGameTextMessage(msgtype, msg)
|
||||
|
||||
Reference in New Issue
Block a user