Adblock breaks this site

Java RS Bot help

Discussion in 'Programming General' started by Jinchikaosu, Jun 5, 2011.

  1. Jinchikaosu

    Jinchikaosu Newcomer

    Joined:
    Jun 5, 2011
    Posts:
    1
    Referrals:
    0
    Sythe Gold:
    0
    Java RS Bot help

    Hello, I need some help making a bot for Runescape.
    However, unlike some other people who ask, I do have a knowledge of the programming language I am using.
    I already know the java.awt.Robot class, and made a bot with some success.
    However, the Robot class relies on getting pixel colors.

    After looking around online to see what other people did for their bots, I noticed that quite a few of them use the objects numbers runescape uses (see http://www.scribd.com/doc/16742261/How-to-Make-an-RSBot-Script for one particular example)

    So, I have 3 questions if you could help me please:
    1) How would I get the object numbers/onscreen position from the game without using a pre-existing 3rd party library (not that I don't trust them, but I just don't trust RS bot software unless I personally wrote it)? I understand it's not going to be as easy as "public RSObject getObjectAt(int x, int y)"
    2) How can I "integrate" my bot with RS? Actually, now that I start looking at it, how would I integrate RS with my bot? From the looks of it, they're using a JFrame with RS embedded within it.
    3) If the above 2 answers cannot be found, can someone show me where I can find the .java source code for the RSBot libraries from the URL above?

    Thank you for your time.
    -Jinchi Kaosu
     
  2. wackywamba

    wackywamba Guru

    Joined:
    Jul 14, 2005
    Posts:
    1,358
    Referrals:
    0
    Sythe Gold:
    1
    Java RS Bot help

    Hey there, well...

    1) What you're looking for is what is known by the botting community as "hooks". These allow you to interact with specific elements of your runescape client, for example you know what is a 'shark' and what is a 'bone'. These along with most things runescape related are 'obfuscated'. Basically, this means that jagex try to encrypt it to make life very difficult for any body to reproduce, interact or change their code.

    Further detail: To go deeper into this, you get two types of botting in runescape, one which uses reflection i.e. RSBots and then there is injection i.e. robots in disguise. Basically, the former uses these hooks to reflect back onto the program (if you think of a person sitting on the computer playing the game) whereas the latter changes the actual code.

    There are multiple arguments to use either one... I'm not going to go into that because it's been debated on a lot of forums and if you really don't understand it... well post another topic.

    2) Friend, I'm sorry to tell you but if you think they're using a JFrame... you've got a long way to go - rather refer to point 3.

    3) Okay, well this isn't what you asked for but go take a look at http://tribot.org/ this website is an opensource runescape bot, that is run by a man named trilez and who I have great respect for. This will give you a good idea of how to get a start as it's an entire community based around the development of it - although it's more based on the scripts and furthering the development of the bot, you can sort of trace back to the start to get a general idea of how to make your own bot.

    I hope that helped, sorry it's very late by me so my grammar and logic are a bit substandard right now.


     
< Speed up my pc 2011 with mirrors[RS] | [Basic C++]~Xiang's C++ Programs~[Updated Regularly] >


 
 
Adblock breaks this site