• 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!

What is the function of otclientrc.lua?

lord vortexx

New Member
Joined
Dec 14, 2008
Messages
92
Reaction score
3
I wonder what the function of otclientrc.lua, from what I can see it runs right after loading the modules.
I could not apply in practice, it will be me who could quickly provide an explanation and a simple example?

thank you
 
As you said, it is executed after all modules are loaded.

In init.lua:
Lua:
if g_resources.fileExists("/otclientrc.lua") then
  dofile("/otclientrc.lua")
end

In case you want to test something there.
 
Yes, I understand that, just wanted to know an application of this Practice Appeal.
 
I created it to do exactly what TheSumm said, test codes, and some custom key bindings. My otclientrc.lua contains a bunch of codes that I use while developing with otclient, mainly defined functions, which I call using the terminal (Ctrl+T) or a key combo.
 
Last edited:
Back
Top