• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Feature(?)] Don't clear console after death/relogin.

margoh

{{ user.title }}
Joined
Apr 1, 2013
Messages
806
Solutions
18
Reaction score
350
Hello.

game_console in function online() add at the beginning:
Lua:
if not (g_settings.get('last-logged-character') == g_game.getCharacterName()) then
    clear()
end
In function online() add at the end:
Lua:
-- focus default channel after relogin/death
defaultTab = addTab(tr('Default'), true)
Remove clear() from function offline().


game_interface function onGameEnd() add:
Lua:
g_settings.set('last-logged-character', g_game.getCharacterName())
In function save() add:
Lua:
g_settings.set('last-logged-character', g_game.getCharacterName())

Tried using already existing last-used-character but it didn't want to work.
Cheers.
 
Back
Top