Paying RSGP for help with simple Java.

bbbrttrader

Forum Addict
Trade With Caution
Joined
Feb 6, 2011
Sythe Gold
0
Messages
364
Location
Fukuoka, Japan
Paying RSGP for help with simple Java.
Hey guys, I ran into a dilemma today at school. I go to a fairly rich private school at a dorm, so we all get computers. But, my highschool tech team is very good at stopping kids from getting games. The RS official client is blocked, I don't know any way to get it to work, it's blocked through the browser also. So, I would like it if someone could make me a .jar file that runs RS. Doesn't have to be fancy, just click, loads RS, just like a botting client except without the bot. If someone could make me a decent one, I'm willing to give a hefty sum of RSGP, I just don't know how hard this task is. If you can do this, I would appreciate a pm or a post here. It would be best if someone could look at my coding and tell me what I did wrong. It launches and stuff with the coding below, but it just gives me a blank gray screen. Here's the code:

Starts-

import java.applet.*;
import java.awt.*;
import java.net.*;
import java.io.*;
import java.util.*;
import javax.swing.*;
import java.util.regex.*;
/**
* @author Parnassian
*/
public class RuneScapeLoader extends JFrame implements
AppletStub {
private static final HashMap<String, String> params = new HashMap<String, String>();
final String baseLink = "http://world2.runescape.com/";
String HTML = null;
String URL = null;

public RuneScapeLoader() {
try {
System.out.println("Parsing parameters...");
parseParams();
System.out.println("Downloading runescape client... ");
System.out.println(URL);
downloadFile(URL);
System.out.println("Runescape client downloaded.");
System.out.println("Running runescape...");
setTitle("Runescape loader");
Applet loader = (Applet) new URLClassLoader(
new URL[] { new File("runescape.jar").toURL() }).loadClass("client").newInstance();
loader.setStub(this);
loader.init();
loader.start();
System.out.println("Runescape client loaded from runescape.jar");
getContentPane().add(loader, BorderLayout.CENTER);
setSize(788, 560);
} catch (Exception e) {
e.printStackTrace();
}
}

public void appletResize(int width, int height) {
}

public final URL getCodeBase() {
try {
return new URL(baseLink);
} catch (Exception e) {
return null;
}
}

public final URL getDocumentBase() {
try {
return new URL(baseLink);
} catch (Exception e) {
return null;
}
}

public final String getParameter(String name) {
return params.get(name);
}

public final AppletContext getAppletContext() {
return null;
}

public static void main(String[] args) {
try {
new RuneScapeLoader().setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}

String getContent(String link) {
try {
URL url = new URL(link);
BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
String myparams = null;
String inputLine;
while ((inputLine = in.readLine()) != null) {
myparams += inputLine;
}
in.close();
return myparams;
} catch (Exception e) {
e.printStackTrace();
}
return null;
}

String getUrl() throws Exception {
return baseLink + ext("archive=", " ", HTML);
}

void downloadFile(final String url) {
try {
BufferedInputStream in = new BufferedInputStream(new URL(url).openStream());
FileOutputStream fos = new FileOutputStream("runescape.jar");
BufferedOutputStream bout = new BufferedOutputStream(fos, 1024);
byte[] data = new byte[1024];
int x = 0;
while((x=in.read(data, 0, 1024))>=0) {
bout.write(data, 0, x);
}
bout.close();
in.close();
} catch(Exception e) {
e.printStackTrace();
}
}

String ext(String from,String to,String str1) {
int p = 0;
p = str1.indexOf(from,p)+from.length();
return str1.substring(p,str1.indexOf(to,p));
}

void parseParams() {
try {
HTML = getContent(baseLink);
Pattern regex = Pattern.compile("<param name=\"?([^\\s]+)\"?\\s+value=\"?([^>]*)\"?>", Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CASE);
Matcher regexMatcher = regex.matcher(HTML);
while (regexMatcher.find())
if (!params.containsKey(regexMatcher.group(1))) {
params.put(remove(regexMatcher.group(1)), remove(regexMatcher.group(2)));
}
System.out.println("--------------------------------------------------------------------------------");
System.out.println("Succesfully parsed parameters.");
URL = getUrl();
} catch (Exception e) {
e.printStackTrace();
}
}

String remove(String str) {
return str.replaceAll("\"", "");
}
}
 
Paying RSGP for help with simple Java.
I think I can help you out, you don't want the client to come directly from the source since its already blocked, so I can help you bypass it through a private proxy, put it in a .Jar and BAM.

PM if interested
 
Runescape Gamblingrunescape gambling
Back
Top