• Log in or sign up for an account here: https://www.sythe.org/login

RuneScape world functions:

Swan

When They Cry...

Retired Global Moderator
Joined
Jan 23, 2007
Sythe Gold
0
Messages
4,957
Age
32
Location
Australia
Member of the Month Winner
Sythe's 10th Anniversary
imports:
Code:
    import java.net.*;
    import java.io.*;

GetPlayers:
Code:
    private String GetPlayers(int world, String html) {
        int iPos = html.indexOf("e(" + world + ",");
        iPos = html.indexOf("\",\"", iPos) + 3;
        iPos = html.indexOf("\",", iPos) + 2;
        int iPos2 = html.indexOf(",", iPos);
        return html.substring(iPos, iPos2);
    }

GetPrefix:
Code:
    private String GetPrefix(int world, String html) {
        int iPos = html.indexOf("\",\"", html.indexOf("e(" + world + ",")) + 3;
        int iPos2 = html.indexOf(",", iPos) - 1;
        return html.substring(iPos, iPos2);
    }

GetMembers:
Code:
    private String GetMembers(int world, String html) {
        int iPos = html.indexOf("e(" + world + ",");
        iPos = html.indexOf(",", iPos) + 1;
        switch(Integer.parseInt(html.substring(iPos, iPos + 1))) {
        case 0:
            return "Free";
        case 1:
            return "Members";
        }
        return "Error parsing.";
    }
 
May i ask an Off-Topic Question? How do you do those Boxes just by adding "Code:"?
I mean is the thing the box...the
Code:
*Box here*
 
Member of the Month Winner
Sythe's 10th Anniversary
[ code ] and [ /code ] without spaces/
 
Runescape Gamblingrunescape gambling
Back
Top