5lave Ots
Active Member
how to get a config variable like (X) from config.lua
to be used in protocol login.cpp
here it a c++ example
to be used in protocol login.cpp
here it a c++ example
Lua:
Account account;
if (!IOLoginData::loginserverAuthentication(accountName, password, account)) {
disconnectClient("blah blah "Get the config value here.."");
return;
}