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

Ots only working on custom client

Czimi

New Member
Joined
Dec 10, 2023
Messages
10
Reaction score
1
Hello. I have problem and need help with my ots. I have 7.6 rl map srv but it only works on custom client. Does anyone know how to change so players can join on otclient? My custom client says its 7.61 tibia
 
BUMB

Anyone know how to change from custom client to normal otc ? so everyone can login from normal 7.6 client not custom because they get this message. Please help

otc.png

.cpp

#ifndef OTSERV_PROTOCOL_H
#define OTSERV_PROTOCOL_H

#include <stdio.h>
#include <boost/utility.hpp>
#include <boost/shared_ptr.hpp>

class NetworkMessage;
class OutputMessage;
class Connection;
typedef boost::shared_ptr<OutputMessage> OutputMessage_ptr;

#define CLIENT_VERSION_MIN 760
#define CLIENT_VERSION_MAX 760

#define STRING_CLIENT_VERSION "Please download the new client version from our website. http://www.vexeria.pl"

class Protocol : boost::noncopyable
{
public:
Protocol(Connection* connection)
{
m_connection = connection;
m_rawMessages = false;
m_refCount = 0;
}

virtual ~Protocol() {}

virtual void parsePacket(NetworkMessage& msg){};

void onSendMessage(OutputMessage_ptr msg);
void onRecvMessage(NetworkMessage& msg);
virtual void onRecvFirstMessage(NetworkMessage& msg) = 0;

Connection* getConnection() { return m_connection;}
const Connection* getConnection() const { return m_connection;}
void setConnection(Connection* connection) { m_connection = connection; }

uint32_t getIP() const;
int32_t addRef() {return ++m_refCount;}
int32_t unRef() {return --m_refCount;}

protected:
//Use this function for autosend messages only
OutputMessage_ptr getOutputBuffer();

void setRawMessages(bool value) { m_rawMessages = value; }

virtual void releaseProtocol();
virtual void deleteProtocolTask();
friend class Connection;

private:

OutputMessage_ptr m_outputBuffer;
Connection* m_connection;
bool m_rawMessages;
uint32_t m_refCount;
};

#endif

FIXED MYSELF
CLOSE

DELETE lines

#define CLIENT_VERSION_MIN 760
#define CLIENT_VERSION_MAX 760

#define STRING_CLIENT_VERSION "Please download the new client version from our website. http://www.vexeria.pl"

Then delete when compiling delete the lines that come up red.
 
Last edited:
Back
Top