reload notification for otclientrc

This commit is contained in:
Eduardo Bart 2012-01-11 19:24:37 -02:00
parent cc432f784b
commit a7865e26e3
1 changed files with 6 additions and 3 deletions

View File

@ -7,9 +7,12 @@ Hotkeys.bind('F3', function() Game.talk('exori frigo') end)
Hotkeys.bind('F4', function() Game.talk('exevo vis hur') end) Hotkeys.bind('F4', function() Game.talk('exevo vis hur') end)
Hotkeys.bind('F5', function() Game.talk('utani gran hur') end) Hotkeys.bind('F5', function() Game.talk('utani gran hur') end)
Hotkeys.bind('F6', function() Game.talk('exani tera') end) Hotkeys.bind('F6', function() Game.talk('exani tera') end)
Hotkeys.bind('Ctrl+R', function() runscript('otclientrc.lua') end)
if rcloaded then local function reload()
print('otclient.rc lua reloaded') runscript('otclientrc.lua')
TextMessage.displayEventAdvance('Script otclientrc.lua reloaded.')
print('Script otclient.rc lua reloaded')
end end
Hotkeys.bind('Ctrl+R', reload)
rcloaded = true rcloaded = true