• Log in or sign up for an account here: https://www.sythe.org/login

Runescape Applet

Juram

Newcomer
Joined
Oct 11, 2009
Sythe Gold
0
Messages
2
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?
 
<3 n4n0
Discord Verified
Two Factor Authentication User
Community Participant
Spam Forum Participant
Sythe's 10th Anniversary
Sythe Awards 2011 Winner
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.
 
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.
 
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.
Get the classloader from the loader that is responsible for loading the client classes.
 
<3 n4n0
Discord Verified
Two Factor Authentication User
Community Participant
Spam Forum Participant
Sythe's 10th Anniversary
Sythe Awards 2011 Winner
Get the classloader from the loader that is responsible for loading the client classes.

Explain. I think I know what you are talking about, but still explain Sir Jimmy.
 
Explain. I think I know what you are talking about, but still explain Sir Jimmy.
Ollie already did (the op posted this question @MITB, too).
Ollie said:
Class client = app.getComponentAt(1, 1).getFocusListeners()[0].getClass();

and to find the other classes, which you will need:

ClassLoader clientClassLoaer = client.getClassLoader();

Class clazz = clientClassLoader.loadClass("clazz");
 
the loader uses a custom classloader to load the client classes; hijack it
 
Runescape Gamblingrunescape gambling
Back
Top