Sythe.Org Forums     Register     FAQ     Members List     Calendar     Mark Forums Read    
 
Sythe.Org Forums  
   Runescape Gold

Sythe.org — A Virtual Goods Trading Hub

Make real cash! buying and selling in-game items.

We have a no-scam policy.

You can make thousands playing your favourite games here at Sythe.org.

Just sign up an account and follow the rules!


Take me to

Runescape Markets

Other Game Markets

Support Center

Register an Account

Close
Runescape Applet
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 10-11-2009, 10:26 PM
Newcomer
 
Join Date: Oct 2009
Posts: 2
Default 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

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

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?

Last edited by Juram : 10-12-2009 at 04:58 PM. Reason: new perceptions :)
Reply With Quote
  #2  
Old 10-13-2009, 03:07 AM
Legend
Java Programmers Pirate
 
Join Date: Jan 2007
Posts: 10,913
<3 n4n0
Default Re: 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.
__________________
PM me with any issues.

I do not MM or trade anything.
Anyone claiming to be me in a trade or MM is an imposter.
Reply With Quote
  #3  
Old 10-13-2009, 07:10 PM
Newcomer
 
Join Date: Oct 2009
Posts: 2
Default Re: 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.
Reply With Quote
  #4  
Old 10-13-2009, 11:42 PM
Jimmy's Avatar
Leecher
Ex-Moderator $5 USD Donor
 
Join Date: Jun 2008
Location: Southern California
Posts: 2,359
Default Re: Runescape Applet

Quote:
Originally Posted by Juram View Post
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.
Reply With Quote
  #5  
Old 10-14-2009, 01:45 AM
Legend
Java Programmers Pirate
 
Join Date: Jan 2007
Posts: 10,913
<3 n4n0
Default Re: Runescape Applet

Quote:
Originally Posted by Jimmy5410 View Post
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.
__________________
PM me with any issues.

I do not MM or trade anything.
Anyone claiming to be me in a trade or MM is an imposter.
Reply With Quote
  #6  
Old 10-14-2009, 01:59 AM
Jimmy's Avatar
Leecher
Ex-Moderator $5 USD Donor
 
Join Date: Jun 2008
Location: Southern California
Posts: 2,359
Default Re: Runescape Applet

Quote:
Originally Posted by SuF View Post
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).
Quote:
Originally Posted by Ollie
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");

Last edited by Jimmy : 10-14-2009 at 01:59 AM.
Reply With Quote
  #7  
Old 10-17-2009, 11:29 PM
Member
 
Join Date: Dec 2008
Posts: 91
Default Re: Runescape Applet

the loader uses a custom classloader to load the client classes; hijack it
Reply With Quote
Reply



Cheap RS Gold Store  Runescape Gold

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

All times are GMT +1. The time now is 06:51 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.1