Pt translations, some helper functions

This commit is contained in:
Henrique Santiago
2013-01-24 14:01:28 -02:00
parent c3eede9872
commit bc55cbbbd1
9 changed files with 90 additions and 68 deletions

View File

@@ -88,6 +88,8 @@ function setOptions()
end
function init()
if g_game.getProtocolVersion() < 870 then return end
connect(g_game, { onGameStart = setOptions,
onGameEnd = resetWindow })
@@ -160,6 +162,8 @@ function init()
end
function terminate()
if g_game.getProtocolVersion() < 870 then return end
disconnect(g_game, { onGameStart = setOptions,
onGameEnd = resetWindow,
onSpellGroupCooldown = modules.game_interface.setGroupCooldown,