Adblock breaks this site

Runescape Applet

Discussion in 'Programming General' started by Juram, Oct 11, 2009.

  1. Juram

    Juram Newcomer

    Joined:
    Oct 11, 2009
    Posts:
    2
    Referrals:
    0
    Sythe Gold:
    0
    Runescape Applet

    I managed to run the Runescape applet in a JFrame so far.
    Now I would like to get the player's coordinates from the applet as I don't want to analyse the pixels of the game yet.
    Is that possible? I've seen a bot from rsbots.net that actually could display the character's absoulte coordinates.

    Here is my code:
    Code:
    Class loader = Class.forName("loader");
    
    Client client = new Client(); // Client extends JFrame
    RSStub stub = new RSStub(44, true, 15); /* world numer, is members world, country
      RSStub implements AppletStub */
    			
    Applet app = (Applet)loader.newInstance();
    			
    app.setStub(stub);
    app.init();
    app.start();
    
    client.AddApplet(app);
    client.setSize(600, 400);
    client.setVisible(true);
    
    Thanks
    Great site btw :D

    ===========================================

    I have been searching for tutorials and analysed some java bot codes now and I want to share my results:
    You can do that by either reflection or BCEL (which basically also is reflection, but you can also inject code).

    I tried to analyse the loader.class file (the file that is executed first). When I view it in a bytecode-viewer (or using java reflection) I get the following fields and methods:
    Code:
    h : String
    i : String
    j : int
    <clinit>()
    a : Applet
    b : int
    c : boolean
    d : int
    e : boolean
    f : boolean
    g : boolean
    k : int
    loader()
    a(boolean, ml, c, byte)
    a(byte, c, boolean)
    a(byte[], File, byte)
    a(c, byte[], int, boolean)
    a(int, File)
    a(int, String)
    destroy()
    init()
    paint(Graphics)
    run()
    start()
    stop()
    update(Graphics)
    
    And I found out that loader extends Applet.

    Has anyone an idea how to proceed?
     
  2. SuF

    SuF Legend
    Pirate Retired Global Moderator

    Joined:
    Jan 21, 2007
    Posts:
    14,212
    Referrals:
    28
    Sythe Gold:
    1,234
    Discord Unique ID:
    203283096668340224
    <3 n4n0 Two Factor Authentication User Community Participant Spam Forum Participant Sythe's 10th Anniversary
    Runescape Applet

    You need to find a certain variable or 2 and maybe do a calculation and then you will have the coordinates. I'd decompile Rsbot and look in there for which variable it is.
     
  3. Juram

    Juram Newcomer

    Joined:
    Oct 11, 2009
    Posts:
    2
    Referrals:
    0
    Sythe Gold:
    0
    Runescape Applet

    Thanks for your reply.
    I found out that to get the coordinates and other game-related stuff I need to get an instance of "client" (from runescape.jar). But I don't want to use an unsigned applet because it is incredibly slow.
    How can I get the instance of client when using the class loader (from loaderXXX.jar)? I tried to analyse the bytecode but I didn't have any success.
     
  4. Jimmy

    Jimmy Ghost
    Retired Sectional Moderator $5 USD Donor

    Joined:
    Jun 24, 2008
    Posts:
    2,421
    Referrals:
    10
    Sythe Gold:
    25
    Runescape Applet

    Get the classloader from the loader that is responsible for loading the client classes.
     
  5. SuF

    SuF Legend
    Pirate Retired Global Moderator

    Joined:
    Jan 21, 2007
    Posts:
    14,212
    Referrals:
    28
    Sythe Gold:
    1,234
    Discord Unique ID:
    203283096668340224
    <3 n4n0 Two Factor Authentication User Community Participant Spam Forum Participant Sythe's 10th Anniversary
    Runescape Applet

    Explain. I think I know what you are talking about, but still explain Sir Jimmy.
     
  6. Jimmy

    Jimmy Ghost
    Retired Sectional Moderator $5 USD Donor

    Joined:
    Jun 24, 2008
    Posts:
    2,421
    Referrals:
    10
    Sythe Gold:
    25
    Runescape Applet

    Ollie already did (the op posted this question @MITB, too).
     
  7. super_

    super_ Member

    Joined:
    Dec 20, 2008
    Posts:
    91
    Referrals:
    0
    Sythe Gold:
    0
    Runescape Applet

    the loader uses a custom classloader to load the client classes; hijack it
     
< [NEWB FRIENDLY] Simple Hours to Minutes Converter. | My First Runescape Program >


 
 
Adblock breaks this site