Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Runescape Revision Check
#1
Code:
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.Socket;

public class lol {

    public static void main(String[] args) {
        try {
            System.out.println(getRSVersion(595));
        } catch (IOException ex) {
            ex.printStackTrace();
            System.out.println("Exception Thrown!");
        }
    }

    static int getRSVersion(int revision) throws IOException {
        int rsVersion = revision;
        String version = "";
        boolean found = false;
        Socket sock = null;
        OutputStream out = null;
        InputStream in = null;
        do {
            sock = new Socket("world1.runescape.com", 43594);
            out = sock.getOutputStream();
            in = sock.getInputStream();
            byte[] sentBytes = { 15, (byte)(rsVersion >> 24), (byte)(rsVersion >> 16),
                        (byte)(rsVersion >> 8), (byte)rsVersion };
            out.write(sentBytes);
            sentBytes = new byte[1];
            int readBytes = in.read();
            if (readBytes != 0) {
                System.out.println(rsVersion);
                rsVersion++;
            } else {
                found = true;
                out.close();
                in.close();
                sock.close();
            }
        } while (!found);

        return rsVersion;
    }

}

Quote:run-single:
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
BUILD SUCCESSFUL (total time: 9 seconds)
609 = current RS version
My SMF Modifications:
http://anthony.vibrantvps.com/smf
Reply
#2
Thats pretty cool, do you know how to *embedd* runescape into a gui like RsBot?
Reply
#3
You would have to hack the client's canvas, which I wouldnt know how to do yet.
My SMF Modifications:
http://anthony.vibrantvps.com/smf
Reply
#4
(05-22-2010, 10:23 PM)Detest Wrote: Thats pretty cool, do you know how to *embedd* runescape into a gui like RsBot?

You could check their source code.
(05-24-2010, 06:15 PM)Omniscient Wrote: We take HF refugees in bulk.
Lol
Reply
#5
That's very cool man, keep it up.
Reply
#6
Very nice, this will be useful as i am a rsps owner, keep up the good work dude.
[Image: Untitled-10-2.gif]
Reply
#7
Nice Share.

I Will Be Sure to give credits.

Oui
Reply
#8
Thanks guys. Smile
My SMF Modifications:
http://anthony.vibrantvps.com/smf
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Runescape Servers Sub 43 6,677 10-19-2009, 06:09 PM
Last Post: ReVamped

Forum Jump:


Users browsing this thread: 1 Guest(s)