RuneScape world functions:

Discussion in 'Programming General' started by Swan, Sep 28, 2007.

RuneScape world functions:
  1. Unread #1 - Sep 28, 2007 at 6:44 AM
  2. Swan
    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner

    Swan When They Cry...
    Retired Global Moderator

    RuneScape world functions:

    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.";
        }
    
     
  3. Unread #2 - Sep 28, 2007 at 7:17 AM
  4. 0120012345
    Joined:
    Jan 28, 2007
    Posts:
    2,021
    Referrals:
    0
    Sythe Gold:
    5

    0120012345 Grand Master

    RuneScape world functions:

    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*
     
  5. Unread #3 - Sep 28, 2007 at 7:24 AM
  6. Swan
    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner

    Swan When They Cry...
    Retired Global Moderator

    RuneScape world functions:

    [ code ] and [ /code ] without spaces/
     
< Not able to post in VB section? | Converting an integer to a constant? >

Users viewing this thread
1 guest


 
 
Adblock breaks this site