• 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.2 7.72. How to block OTClient?

paola92

Member
Joined
Jan 14, 2009
Messages
105
Solutions
1
Reaction score
6
Hello guys,
can you let me know how can I block OTClient? I tried to remove lines about OTClient form source but I still can connect.

Appreciate your help!
 
Ok I fixed it.
Please add below code:
Code:
    if (operatingSystem >= CLIENTOS_OTCLIENT_LINUX) {

            disconnectClient("You cannot use OTClient on this server.");

        }

Under
Code:
void ProtocolGame::connect(uint32_t playerId, OperatingSystem_t operatingSystem)
{
    eventConnect = 0;

and

Code:
void ProtocolGame::login(const std::string& name, uint32_t accountId, OperatingSystem_t operatingSystem)
{

in protocolgame.cpp.

It works 100%.
 
Back
Top