Table Of Contents

Previous topic

Inventory

Next topic

Mapwalk

This Page

Login

The Login include contains all Login related functions

RSReady

function RSReady: Boolean;

Returns true if we are ready to auto (on loginscreen or logged in). Useful for waiting until RS has fully loaded.

Note

by ZephyrsFury

Example:

Login_SetAudio

procedure Login_SetAudio(Volume, SFX, Area: Integer; SMSetting: (Stereo, Mono, NoChange) );

Sets audio options through the login screen. Use: Enter the desired Setting for the desired Option. Make option 0 for no change. EG. Login_SetAudio(1, 5, 2, NoChange);

1 2 3 4 5 <-o—o—o—o—o-> Volume, SFX, Area:

Note

by ZephyrsFury, fixed by Markus

Example:

Login_SetGraphics

procedure Login_SetGraphics(Brightness: Integer);

Sets graphic options in the login screen.

Note

by ZephyrsFury Fixed by TRiLeZ, Markus

Example:

SetAudioOff

procedure SetAudioOff;

Sets the Audio to off (1 for each bar). Works logged in and out.

Note

by ZephyrsFury

Example:

SetAutoingDefaults

   procedure SetAutoingDefaults;

Sets the graphic options for best SRL compatibility. Works both logged in and out.

Note

by ZephyrsFury

Example:

LobbyScreen

function LobbyScreen: Boolean;

Returns true if we are at the Lobby Screen

Note

by IceFire908 & Bionicle1800

Example:

ExitToLobby

function ExitToLobby: Boolean;

Exits to the Lobby (for breaks?)

Note

by Starblaster100, Raymond, IceFire908, & Tarajunky

Example:

LeaveLobby

function LeaveLobby: Boolean;

Logs you out from lobby screen.

Note

by IceFire908

Example:

Logout

function Logout: Boolean;

Logs you all the way out from ingame.

Note

by Starblaster100, Raymond, IceFire908, & Tarajunky

Example:

LoginPlayerToLob

function LoginPlayerToLob: Boolean;

Like LoginPlayer but only to the lobbyscreen.

Note

by The SRL Team

Example:

LoginPlayer

procedure LoginPlayer;

Logs in the Player[CurrentPlayer]. Detects most Client Login Errors

Note

by The SRL Team

Example:

NextPlayerIndex

function NextPlayerIndex: Integer;

Returns the player number of the next active player.

Note

by Dankness, Ron, Raymond & ZephyrsFury

Example:

RandomPlayerIndex

function RandomPlayerIndex: Integer;

Returns the Player number of a random active player.

Note

by Dankness, Ron, Raymond & ZephyrsFury

Example:

SwitchToPlayer

function SwitchToPlayer(PlayerNo: Integer; Active: Boolean): Boolean;
Switches to a specific player, setting the current player’s
activity to True or False.

Note

by Dankness, Ron, Raymond & ZephyrsFury

Example:

NextPlayer

procedure NextPlayer(Active: Boolean);

Logs in the next player that isn’t inactive. Boolean: True - Current player is ok. False - Current player is false.

Note

by ZephyrsFury

Example:

RandomNextPlayer

procedure RandomNextPlayer(Active: Boolean);

Logs in a random player that isn’t inactive. Boolean: True - Current player is ok. False - Current player is false.

Note

by ZephyrsFury

Example:

CheckUserNicks

procedure CheckUserNicks;

Checks if all nicks are set correct.

Note

by Sumilion, Raymond, and Nava2

Example: