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

TFS 1.X+ get a config value with c++ to dislpay on tibia client

5lave Ots

Active Member
Joined
Oct 2, 2017
Messages
246
Solutions
1
Reaction score
40
Location
Ankrahmun
im using @Nekiro 's downgraded 8.6 tfs and i need to get a value X & Y from config.lua and insert them to a login error message
that is the c++ lines on (protocolLogin.cpp)


Lua:
//acc name not exist
    Account account;
    if (!IOLoginData::loginserverAuthentication(accountName, password, account)) {
        disconnectClient("Wrong AccountName OR Password! ");
        return;
    }
its something like that disconnectClient("wrong acc or pass \n please goto (getConfig.LUA Value X) dot (getConfig.LUA Value Y) ");
so it will be like that after execution:
C++:
Wrong account number or password
Please Login at (config.serverName) . (config.DomainValue)
i saw a definition like that
C++:
    string[MOTD] = getGlobalString(L, "motd", "");
but i dont know how to redifine it and how to merge it on other files (if needed) dunno :D
Thanks
 
Back
Top