Lodestone Screen

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

The source for this file can be found here.

Consts, Types, Vars

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

const Locations

All possible locations to teleport on the lodestone network:

  • LOCATION_LUNAR_ISLE
  • LOCATION_EAGLES_PEAK
  • LOCATION_TIRANNWN
  • LOCATION_FREMENNIK
  • LOCATION_SEERS_VILLAGE
  • LOCATION_ARDOUGNE
  • LOCATION_YANILLE
  • LOCATION_OOGLOG
  • LOCATION_BURTHORPE
  • LOCATION_CATHERBY
  • LOCATION_TAVERLEY
  • LOCATION_KARAMJA
  • LOCATION_WILDERNESS
  • LOCATION_EDGEVILLE
  • LOCATION_FALADOR
  • LOCATION_PORT_SARIM
  • LOCATION_VARROCK
  • LOCATION_DRAYNOR_VILLAGE
  • LOCATION_LUMBRIDGE
  • LOCATION_BANDIT_CAMP
  • LOCATION_AL_KHARID
  • LOCATION_CANIFIS
  • LOCATION_ASHDALE
  • LOCATION_PRIFDDINAS
  • LOCATION_PREVIOUS

type TRSLodestoneScreen

type
  TRSLodestoneScreen = type TRSInterface;

A type that stores the lodestone interface properties.

var lodestoneScreen

var
  lodestoneScreen: TRSLodestoneScreen;

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

TRSLodestoneScreen methods

The following methods should be called through the lodestoneScreen variable.

Example:

if lodestoneScreen.isOpen() then
  writeln('Lodestone screen is open!');

isOpen

function TRSLodestoneScreen.isOpen(waitTime: integer = 0): boolean;

Returns true if the lodestone interface is open. The optional waitTime parameter (default = 0) is the maximum time (in milliseconds) it will keep looking.

Note

  • by Olly
  • Last Updated: 16 November 2013 by Olly

Example:

if lodestoneScreen.isOpen(2000) then
  writeln('Lodestone screen is open!');

close

function TRSLodestoneScreen.close(): boolean;

Returns true if the lodestone screen is successfully closed.

Note

  • by Olly
  • Last Updated: 16 November 2013 by Olly

Example:

if lodestoneScreen.close() then
  writeln('The lodestone screen has been closed.');

_isLocationVaild

function TRSLodestoneScreen._isLocationVaild(location: integer): boolean;

Returns true if the lodestone location is one of the Location constants at the top of this page.

Note

  • by Olly
  • Last Updated: 16 November 2013 by Olly

Example:

if lodestoneScreen._isLocationVaild(LOCATION_VARROCK) then
  writeln('LOCATION_VARROCK is a valid lodestone');

_getTeleportBox

function TRSLodestoneScreen._getTeleportBox(location: integer): TBox;

Returns a TBox of the lodestone button location .

Note

  • by Olly
  • Last Updated: 16 November 2013 by Olly

Example:

b := lodestoneScreen._getTeleportBox(LOCATION_CANIFIS);

_isLocked

function TRSLodestoneScreen._isLocked(location: integer): boolean;

Returns true if the lodestone location is avaliable to the player.

Note

  • by The Mayor
  • Last Updated: 16 December 2014 by The Mayor

Example:

if lodestoneScreen._isLocked(LOCATION_ASHDALE) then
  writeln('Either you are F2P or you need to activate the Ashdale loadstone!');

teleportTo

function TRSLodestoneScreen.teleportTo(location: integer): boolean;

Will teleport to location. Use the Location constants at the top of this page. Will wait untill animation is done if the waitAfter boolean is set to true.

Note

  • by Olly
  • Last Updated: 16 December 2014 by The Mayor

Example:

if lodestoneScreen.teleportTo(LOCATION_LUMBRIDGE) then
  writeln('We just teleported to Lumbridge');