mirror of
https://github.com/edubart/otclient.git
synced 2025-10-17 04:53:27 +02:00
Finished stable implementation (as far as tested), still requires more testing.
This commit is contained in:
@@ -134,7 +134,7 @@ function online()
|
||||
if player then
|
||||
local char = g_game.getCharacterName()
|
||||
|
||||
local lastCombatControls = g_settings.getNode('LastCombatControls')
|
||||
local lastCombatControls = g_settings:getNode('LastCombatControls')
|
||||
|
||||
if not table.empty(lastCombatControls) then
|
||||
if lastCombatControls[char] then
|
||||
@@ -167,7 +167,7 @@ function online()
|
||||
end
|
||||
|
||||
function offline()
|
||||
local lastCombatControls = g_settings.getNode('LastCombatControls')
|
||||
local lastCombatControls = g_settings:getNode('LastCombatControls')
|
||||
if not lastCombatControls then
|
||||
lastCombatControls = {}
|
||||
end
|
||||
@@ -186,7 +186,7 @@ function offline()
|
||||
end
|
||||
|
||||
-- save last combat control settings
|
||||
g_settings.setNode('LastCombatControls', lastCombatControls)
|
||||
g_settings:setNode('LastCombatControls', lastCombatControls)
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user