Support Forums
Runescape Revision Check - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18)
+---- Forum: Java Programming (https://www.supportforums.net/forumdisplay.php?fid=22)
+---- Thread: Runescape Revision Check (/showthread.php?tid=7236)



Runescape Revision Check - Project Evolution - 05-21-2010

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


RE: Runescape Revision Check - delme - 05-22-2010

Thats pretty cool, do you know how to *embedd* runescape into a gui like RsBot?


RE: Runescape Revision Check - Project Evolution - 05-23-2010

You would have to hack the client's canvas, which I wouldnt know how to do yet.


RE: Runescape Revision Check - alfonzo1955 - 05-23-2010

(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.


RE: Runescape Revision Check - Statics - 05-23-2010

That's very cool man, keep it up.


RE: Runescape Revision Check - tsgh mike - 08-03-2010

Very nice, this will be useful as i am a rsps owner, keep up the good work dude.


RE: Runescape Revision Check - wchar_t - 08-06-2010

Nice Share.

I Will Be Sure to give credits.

Oui


RE: Runescape Revision Check - Project Evolution - 08-06-2010

Thanks guys. Smile