rework walk

This commit is contained in:
Eduardo Bart
2012-01-19 02:12:53 -02:00
parent 4491ee8bdd
commit 6ce92a1a64
22 changed files with 478 additions and 228 deletions

View File

@@ -29,3 +29,7 @@ function debugContainersItems()
end
end
end
function quit()
exit()
end

View File

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

View File

@@ -71,7 +71,7 @@ end
local function onApplicationClose()
print('close app')
if Game.isOnline() then
Game.logout(false)
Game.logout(true)
else
exit()
end

View File

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