Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Trying to make a bot

  1. #1
    Junior Member
    Join Date
    Mar 2010
    Thanked 0 Times in 0 Posts

    Default Trying to make a bot

    hi guys,

    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.

  2. #2
    Junior Member
    Join Date
    Jun 2010
    Thanked 0 Times in 0 Posts

    Default 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.

Similar Threads

  1. make forum with EJB??!!
    By element_sole in forum Enterprise JavaBeans
    Replies: 3
    Last Post: February 12th, 2010, 02:18 PM
  2. how to make a program take time...
    By DLH112 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 10th, 2010, 07:09 PM
  3. What programs shall i make?
    By DarrenReeder in forum Java Theory & Questions
    Replies: 1
    Last Post: December 27th, 2009, 08:31 AM
  4. How to make it???
    By Subhasis Banerjee in forum JavaServer Pages: JSP & JSTL
    Replies: 0
    Last Post: October 29th, 2009, 02:49 PM
  5. Java algorithm for bank program to connect database
    By araujo3rd in forum Algorithms & Recursion
    Replies: 1
    Last Post: December 10th, 2008, 01:34 PM