client¶
Refers to the oldschool runescape client. Stores general methods checking the state of the client.
srl.IsClientState¶
function TSRL.IsClientState(States: ERSClientStateSet): Boolean; overload;
Returns True
if the client state equals any of the States`
srl.IsClientState¶
function TSRL.IsClientState(State: ERSClientState): Boolean; overload;
Returns True
if the clients state equals the State
srl.IsLoggedIn¶
function TSRL.IsLoggedIn(WaitTime: Int32): Boolean; overload;
Overload that accepts a WaitTime
parameter.
srl.IsClientReady¶
function TSRL.IsClientReady: Boolean; overload;
- Returns true if the client is in a known state, this means either of the following are active:
- Logged in
- Login screen
- World switcher
- Lobby
srl.IsClientReady¶
function TSRL.IsClientReady: Boolean; overload;
Overload that accepts WaitTime
parameter.
srl.IsClientLoading¶
function TSRL.IsClientLoading: Boolean; overload;
Returns True
if the client is loading by checking for Loading - please wait
in the top left.
srl.IsClientLoading¶
function TSRL.IsClientLoading: Boolean; overload;
Overload that accepts WaitTime
parameter.
srl.WaitClientLoading¶
procedure TSRL.WaitClientLoading;
Waits forever until the client has finished loading.