mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 19:44:54 +02:00
restore some game functionallity
* i'm gradually restoring game functionality with the new modules design, though still a lot to do * you can reload all scripts and modules using Ctrl+R shortcut while playing (finally! this is the reason of all this rework) * a bunch of fixes, but new regression too :P * fix performance issue that could lead freezes in the client in older machines * completely new game module with new design * fix crashs in map render * remove uigame.cpp (now every game input is via lua) * enable DEBUG macro by default, with it you are able to view any possible lua leak while running
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
-- this file use loaded after everything is loaded and initialized
|
||||
-- this file is loaded after all modules are loaded and initialized
|
||||
-- you can place any custom user code here
|
||||
-- you
|
||||
|
||||
Keyboard.bindKeyDown('F1', function() g_game.talk('exura gran') end)
|
||||
Keyboard.bindKeyDown('F2', function() g_game.talk('exori mort') end)
|
||||
@@ -7,12 +8,4 @@ Keyboard.bindKeyDown('F3', function() g_game.talk('exori frigo') end)
|
||||
Keyboard.bindKeyDown('F4', function() g_game.talk('exevo vis hur') end)
|
||||
Keyboard.bindKeyDown('F5', function() g_game.talk('utani gran hur') end)
|
||||
Keyboard.bindKeyDown('F6', function() g_game.talk('exani tera') end)
|
||||
|
||||
local function reload()
|
||||
dofile('otclientrc.lua')
|
||||
TextMessage.displayEventAdvance('Script otclientrc.lua reloaded.')
|
||||
print('Script otclient.rc lua reloaded')
|
||||
end
|
||||
Keyboard.bindKeyDown('Ctrl+R', reload)
|
||||
|
||||
rcloaded = true
|
||||
Keyboard.bindKeyDown('Ctrl+R', Client.reloadScripts)
|
||||
|
Reference in New Issue
Block a user