Lobby

The lobby file holds functions and procedures that are used in the runescape lobby.

The source for this file can be found here.

Consts, Types, Vars

The following constants, types and variables are used throughout the lobby methods.

const Lobby Tabs

Constants that represent the different lobby tabs.

  • LOBBY_PLAYER
  • LOBBY_WORLDS
  • LOBBY_FRIENDS
  • LOBBY_CHAT
  • LOBBY_CLAN
  • LOBBY_OPTIONS

type TRSLobby

type
  TRSLobby = type TRSInterface;

A type that stores the lobby interface properties.

var lobby

var
  lobby: TRSLobby;

A variable through which scripters can access the TRSLobby type methods.

TRSLobby methods

The following methods should be called through the lobby variable.

Example:

if lobby.isOpen() then
  writeln('It''s open');

isOpen

function TRSLobby.isOpen(): boolean;

Returns true if the lobby is open.

Note

  • by Coh3n
  • Last Updated: 29 July 2014 by Ashaman88

Example:

if lobby.isOpen() then
  writeLn('The lobby is open');

findPlayButton

function findPlayButton(var res: TPoint): boolean;

Returns true if the play button is found somewhere on the client, and passes its midpoint to res .

Note

  • by Coh3n & Olly
  • Last updated: 8 February 2015 by The Mayor

Example:

lobby.findPlayButton(p);

getCurrentTab

function TRSLobby.getCurrentTab: integer;

Returns the current lobby tab number

Note

  • by Bionicle1800, NCDS & Cohen
  • Last Updated: 9 September 2014 by The Mayor

Example:

if (lobby.getCurrentTab() = LOBBY_WORLDS) then
  writeln('The world list is open!');

openTab

function TRSLobby.openTab(tab: integer): boolean;

Opens the lobby tab tab . The tab constants are located at the top of this page.

Note

  • by Olly
  • Last Updated: 22nd August 2014 by Olly

Example:

if lobby.openTab(LOBBY_WORLDS) then
  writeLn('We opened the worlds tab!');

quickSelectWorld

function TRSLobby.quickSelectWorld(wo: integer; click: boolean = true): boolean;

Returns true if the desired world wo appears in the quick select favorites boxes in the bottom right corner of the interface. If found, it will click the world if click is set to true (default = true)

Note

  • by Coh3n
  • Last Updated: 10 October 2014 by Ashaman88

Example:

if (not lobby.isOpen()) then
  lobby.open();