GameState

open class GameState

Utilities for inspecting the client game state

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
enum State
A current state of the game, such as loading, at login screen, or logged in.

Functions

Link copied to clipboard
open fun getFps(): Int
Gets the current fps.
Link copied to clipboard
Gets the tile that the hint arrow is pointing to.
Link copied to clipboard
open fun getLoopCycle(): Int
Gets the runescape client's current loop cycle.
Link copied to clipboard
Gets the rotation of the minimap
Link copied to clipboard
Gets the name of the selected item if there is one.
Link copied to clipboard
open fun getSetting(index: Int): Int
Pulls Setting value from the client with the given index.
Link copied to clipboard
Gets the current state of the game
Link copied to clipboard
open fun getUpText(): String
Gets the game's "uptext" that appears in the top left corner of the screen.
Link copied to clipboard
open fun getVarbit(id: Int): Int
Pulls org.tribot.script.sdk.VarBit value from the client with the given varbit ID.
Link copied to clipboard
open fun getVarc(index: Int): Optional<Any>
Gets the client-side variable at the specified index
Link copied to clipboard
open fun getVarcInt(index: Int): Optional<Integer>
Gets the client-side variable at the specified index as an int
Link copied to clipboard
open fun getVarcString(index: Int): Optional<String>
Gets the client-side variable at the specified index as a string
Link copied to clipboard
Determines the height of the viewport (OSRS scene render).
Link copied to clipboard
open fun getViewportWidth(): Int
Determines the width of the viewport (OSRS scene render).
Link copied to clipboard
Determines if an inventory item is selected (highlighted).
Link copied to clipboard
Checks if a gravestone is active
Link copied to clipboard
Determines if the game is in "building mode", which can be toggled when in your own Player Owned House.
Link copied to clipboard
open fun isInInstance(): Boolean
Checks if we are in an instance
Link copied to clipboard
open fun isLoading(): Boolean
Checks if the game is loading the current player.