Deprecated: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /home/iano/public_html/tpforums-vb5/forum/includes/class_core.php on line 5842
PHP Warning: Use of undefined constant MYSQL_NUM - assumed 'MYSQL_NUM' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165
PHP Warning: Use of undefined constant MYSQL_ASSOC - assumed 'MYSQL_ASSOC' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165
PHP Warning: Use of undefined constant MYSQL_BOTH - assumed 'MYSQL_BOTH' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165
PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ..../includes/functions_navigation.php on line 588
PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ..../includes/functions_navigation.php on line 612
PHP Warning: Use of undefined constant misc - assumed 'misc' (this will throw an Error in a future version of PHP) in ..../global.php(29) : eval()'d code(6) : eval()'d code on line 1
PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../global.php(29) : eval()'d code(6) : eval()'d code on line 1
PHP Warning: Use of undefined constant misc - assumed 'misc' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(4) : eval()'d code on line 1
PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(4) : eval()'d code on line 1
PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6
PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6 [C++] Proxy
I decided to learn something about winsocks. I found somewhere on my computer old sources then I tried to login on OpenTibia. Everything goes fine to the moment when I choose character. When it trying to connect server without ANY result.
DWORD initBot(LPVOID lpParam)
{
if(!mem.gameWindowExists())
SendMessage(mainDlg, WM_DESTROY, 0, 0);
else
{
addConsoleMsg(">> Game window has been found!");
if(!utils.changeLoginServers(LOGIN_SERVER_IP, LOGIN_SERVER_PORT))
addConsoleMsg(">> Couldn't change login servers!");
else
{
addConsoleMsg(">> Login servers has been changed to: %s:%i", LOGIN_SERVER_IP, LOGIN_SERVER_PORT);
addConsoleMsg(">> Now you can log in!");
SOCKET proxySocket = con.createServer(LOGIN_SERVER_PORT);
if(proxySocket != 0)
{
addConsoleMsg(">> Proxy server has been created!");
serverSock = con.connectTo(SERVER_IP, SERVER_PORT);
if(serverSock != 0)
{
addConsoleMsg(">> Connected to game server.");
if(nm.ReadFromSocket(gameServer))
waiting for a ping?
anyway, i dont know what the problem is, but if i where you, id launch WPE/rPE, record the exact packets the client would send to the server (for logging in), then compare with the exact packets your app send..