Table Of Contents

Previous topic

Text

This Page

Worldswitcher

The Worldswitcher include contains all kinds of functions to control the built-in RS world switcher.

WorldScreen

function Worldscreen: boolean;

Returns true if the Worldswitcher screen is open

Note

by Icefire908

Example:

OpenWorldScreen

function: OpenWorldScreen: Boolean;

Opens the Worldswitcher screen. Returns true if it is succesfully opened.

Note

by Bionicle1800

Example:

UpdateWorlds

procedure UpdateWorlds;

Parses the worlds page into Worlds.ini

Note

by mixster

Example:

LoadWorldArrays

procedure LoadWorldArrays;

Loads the world array into Worldarray from Worlds.ini

..note:

by Narcle; Edits by Nava2;

Example:

WS_CurrentWorld

function WS_CurrentWorld(var World: Integer): Boolean;

Results true if the current world is members,returns world number. World returns -1 if failed. Only works at world screen.

..note:

by Icefire908

Example:

FindWorld

function FindWorld(W: integer): Boolean;

Scrolls to area and returns true if world was found.

..note:

by Narcle fixed by Shuttleu

Example:

GetWorldInfo

function GetWorldInfo(World: Integer; var WorldRec: TWorld): Boolean;

Records World info into TWorld record, also Results true if world was found.

..note:

by Narcle

Example:

SelectWorld

Function SelectWorld(W: Integer): Boolean;

Switches to the specified world. Returns true if successful.

..note:

by Narcle & ZephyrsFury

Example:

RandomWorld

function RandomWorld(Members, PvP: Boolean): Integer;

Returns a random world by paramaters.

..note:

by Narcle & mixster

Example:

ChangeWorld

function ChangeWorld(W: Integer): Boolean;

Changes to world W. Returns True if successful.

..note:

by Nava2

Example:

OrderWorlds

Procedure OrderWorlds(by: string; Descending: boolean);

Orders worlds by ‘by’ in order ‘Descending’, Check function for valid params of ‘by’, Descending = true means the left button

..note:

by NaumanAkhlaQ

Example:

ChooseWorldBy

Function ChooseWorldBy(SettingsNames:TStringArray; SettingsDescending: array of boolean; Members, PVP: boolean): boolean;

Chooses a world by SettingsNames , ordered by SettingsDescending, Takes into account Members and PVP, Check OrderWorlds for valid params for SettingsNames

..note:

by Rasta Magician

Example: