Class RuneScape


  • public final class RuneScape
    extends java.lang.Object
    • Method Detail

      • getFps

        public static int getFps()
        Gets the current fps of the game's canvas
      • getCurrentCycle

        public static int getCurrentCycle()
        The amount of cycles since the applet began executing. Each cycle is 20ms in duration.
      • getVersion

        public static double getVersion()
        Gets the current game version (such as 790.1)
        Returns:
        The current game version as a double
      • isLoggedIn

        public static boolean isLoggedIn()
        Gets whether or not you are logged into the game (this includes when the map is loading)
      • isMapLoaded

        @OSRSOnly
        public static boolean isMapLoaded()
        Gets whether or not the region is loaded on OSRS
      • isMapLoading

        @OSRSOnly
        public static boolean isMapLoading()
        Gets whether or not a new region is loading on OSRS
      • isLoggingIn

        @OSRSOnly
        public static boolean isLoggingIn()
      • isReconnecting

        @OSRSOnly
        public static boolean isReconnecting()
      • isSwitchingWorlds

        @OSRSOnly
        public static boolean isSwitchingWorlds()
      • isStarting

        @OSRSOnly
        public static boolean isStarting()
      • hasCrashed

        @OSRSOnly
        public static boolean hasCrashed()
      • isCutscenePlaying

        @OSRSOnly
        public static boolean isCutscenePlaying()
      • logout

        public static boolean logout()
        Logs the player completely out of the game.
        Returns:
        true if logged out
      • logout

        public static boolean logout​(boolean lobby)
        Logs the player out of the game. Lobby can be specified but it's for RS3 only.
        Parameters:
        lobby - whether to go to the lobby on RS3, otherwise it's ignored.
        Returns:
        true if logged out
      • getLoginState

        public static int getLoginState()
      • isDisconnected

        public static boolean isDisconnected()