Trying to make a bot
i want to try to do a bot for a game, but i dont know how to start this.
the game client, make a communication with the server, what i need to do, is send and receive packets of this commnication.
i did a socket server, and now, the game client connect in localhost on my program, and then, i did a client socket, to connect to the game server.
the problem here is,
i dont know, what type of data i need to receive and how from client.
i did a String receiver, and i received a string, encoded, and a sent it to the server, but the server didnt awser to me.
i trying to convert the string to hex, but i dont know if its right, if its what i need to do..
somebody know, what king of data to receive for a game server and how to do it?
by the way, the game i am talking about is "Tibia".
thx a lot.
Re: Trying to make a bot
if you mean a bot as an an autonomous player, you don't need a server socket connected to the game client in your final code.
to figure out the protocol, you should have a server and client socket connected to the game client and game server respectively. have the client socket send anything the server socket hears and vice versa. they should also print the traffic on the console. play the game, and use the data to reverse engineer the protocol.
then you just need to have your program use that protocol to control the character.