With this tutorial you will be able to connect to your VPS / Nat server such as Google Cloud for example
Char.cpp
Search for
Add below
Config.cpp
Look for
Add bellow
Search
Add bellow
Config.h
Search
Add bellow
desc.cpp
Input_db.cpp
Search
Add bellow
Look for
Add bellow
Search
Add bellow
To finish this you need to compile and replace the game and open the CONFIG files (Auth, Chann el (X) / Core (X) and Game99) and add:
Char.cpp
Search for
C++:
p.lAddr = lAddr;
C++:
if (!g_stProxyIP.empty())
p.lAddr = inet_addr(g_stProxyIP.c_str()
Look for
C++:
uint32_t g_dwSkillBookNextReadMax = 43200;
C++:
std::string g_stProxyIP = "";
C++:
fprintf(stdout, "SKILLBOOK_NEXTREAD_MAX: %u\n", g_dwSkillBookNextReadMax);
C++:
TOKEN("proxy_ip")
{
g_stProxyIP = value_string;
}
Search
C++:
extern uint32_t g_dwSkillBookNextReadMax;
C++:
extern std::string g_stProxyIP;
Input_db.cpp
Search
C++:
rTab.players[i].szName);
C++:
if (!g_stProxyIP.empty())
rTab.players[i].lAddr=inet_addr(g_stProxyIP.c_str());
C++:
struct in_addr in;
C++:
if (!g_stProxyIP.empty())
rTab.players[i].lAddr=inet_addr(g_stProxyIP.c_str());
C++:
pack.player = pPacketDB->player;
C++:
if (!g_stProxyIP.empty())
pack.player.lAddr=inet_addr(g_stProxyIP.c_str());
C++:
PROXY_IP: TON_IP


