Few minor fixes here and there:

* Fixed miniwindow cancelling (sorry Summ! :D)
* Fixed pathFind to check floor change tiles
* Fixed buying/selling stackable items in pv < 860
* Added force walk to the first step of auto walking for open tibia
This commit is contained in:
BeniS
2013-01-18 18:27:29 +13:00
parent 6ad7269e5a
commit 1500c1d2f2
7 changed files with 38 additions and 14 deletions

View File

@@ -29,8 +29,8 @@ function init()
g_ui.importStyle('styles/countwindow.otui')
connect(g_game, {
onGameStart = show,
onGameEnd = hide,
onGameStart = onGameStart,
onGameEnd = onGameEnd,
onLoginAdvice = onLoginAdvice
}, true)
@@ -98,8 +98,8 @@ end
function terminate()
disconnect(g_game, {
onGameStart = show,
onGameEnd = hide,
onGameStart = onGameStart,
onGameEnd = onGameEnd,
onLoginAdvice = onLoginAdvice
})
@@ -109,6 +109,19 @@ function terminate()
gameRootPanel:destroy()
end
function onGameStart()
show()
-- open tibia has delay in auto walking
if not g_game.isOfficialTibia() then
g_game.enableFeature(GameForceFirstAutoWalkStep)
end
end
function onGameEnd()
hide()
end
function show()
connect(g_app, { onClose = tryExit })
logoutButton:show()