Purpose: Webclient on 525
Difficulty: 5/10
Tested On: Any 525 base.
Step 1: Open client2 and remove this part or quote it out
this.frame = new JFrame("Client name");
this.frame.setLayout(new BorderLayout());
this.frame.setResizable(true);
this.jp.setLayout(new BorderLayout());
this.jp.add(this);
this.jp.setPreferredSize(new Dimension(765, 503));
this.frame.getContentPane().add(this.jp, "Center");
this.frame.pack();
this.frame.setVisible(true);
That removes the frame so it instead is embedded into the page.
Step 2:
go to class73 and change the cache Directory to C:/cache525
Step 3: (IF you want an IP changer, otherwise skip this)
put this at the top below the public class client2
public String IPaddr = "";
Then under;
props.put("worldid", "2");
props.put("members", "1");
props.put("modewhat", "0");
props.put("modewhere", "0");
props.put("safemode", "0");
props.put("game", "0");
props.put("js", "1");
props.put("lang", "0");
props.put("affid", "0");
props.put("highmem", "1");
Put;
IPaddr = JOptionPane.showInputDialog(null,"Please enter IP address:");
Finally replace the “Getcodebase” Method with this if your using IP changer
public URL getCodeBase() {
try {
return new URL("http://"+IPaddr);
} catch (Exception localException) {
localException.printStackTrace();
return null;
}
}
Step 4: Compile, Then Assuming you have JAR maker, (if you don’t, its found here: http://www.goldenstudios.or.id/produ…r/JARMaker.zip)
JAR the Client, Set the manifest template to client2 as main class
Then Sign it by Generating the Keystore And signing as Usual, if you don’t know how, find another webclient tutorial (this is a fast one) And Upload to your website, the HTML file is this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> <html style="width:100%;height:100%;"> <head> <title>525 Webclient</title></head> <center> <body BGCOLOR="#000000"><applet name=RuneScape id=game width=765 height=503 archive='rs2_525.jar' code='client2.class' mayscript> <param name=worldid value=60> <param name=members value=1> <param name=modewhat value=0> <param name=modewhere value=0> <param name=safemode value=0> <param name=lang value=0> <param name=affid value=0> <param name=settings value=stringpassedtoserverwhenconnecting> <param name=cookieprefix value=> <param name=cookiehost value=.google.com> <param name=plug value=0> <param name=js value=1> <param name=game value=0> </applet> </body>


5671 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.
Continuing the Discussion
You must be logged in to post a comment.