Hey guys anyone have any idea on how to auto reconnect the client back when it disconnect
it`s my network proplems and no not the newest patch but it`s working on patch 5870 p serverQuote:
What you need to worry about is WHY its disconnecting after 15 minutes.
Its a pretty pointless bot if it just hunts for 15 minutes then disconnects you and logs back in again.
Out of curiosity, are you running it on the newest patch of conquer?
I think I will not let it disconnect using the connection packet (1012) ? Correct me if I,m wrong and thanks for the informationQuote:
Alright. Well, the nature of a proxy is to intercept traffic as a middle man attack. It takes up your client's connection and establishes a new connection to the server, yeah? So, when the proxy disconnects, don't let that disconnect the client; instead, make an attempt to reconnect by sending data to the account server and what not. It's not difficult, but it is a bit of work.
If it was a simple matter of blocking the disconnect packet, every bot would be unstoppable. There are serverside checks for many operations on timed intervals, and if your client is sending packets at rates that don't match up or have faulty structures, expect the server to catch your ass and boot you; simple as that.Quote:
I think I will not let it disconnect using the connection packet (1012) ? Correct me if I,m wrong and thanks for the information
No. You need to not close the socket going Client<>Proxy when the server closes the connection.Quote:
I think I will not let it disconnect using the connection packet (1012) ? Correct me if I,m wrong and thanks for the information
I prevent the client from disconnecting from the proxy but now how to create a new connection to proxy packet i see that your proxy sends it on serverconnection_onrecive but how to send it ?Quote:
No. You need to not close the socket going Client<>Proxy when the server closes the connection.
You can then create a NEW connection from Proxy<>Server and continue where you left off (without the client ever realizing it was disconnected.
That being said, I think it's a bit difficult in newer patches because you'd have to basically be writing your own standalone authentication process (handling everything up until standard game begins and then letting client take over)
I could be wrong on that. Alternatively you could just write something in autoit or a similar scripting language to detect the disconnect message and have it manually log back in. Just write your proxy so that it saves settings between disconnect so it will continue where it left off when it first logs in.