Pin Screen

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

The source for this file can be found here.

Consts, Types, Vars

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

type TRSPinScreen

type
  TRSPinScreen = type TRSInterface;

A type that stores the pinScreen interface properties.

var pinScreen

var
  pinScreen: TRSPinScreen;

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

TRSPinScreen methods

The following methods should be called through the pinScreen variable.

Example:

if inScreen.isOpen() then
  writeln('Pin screen is open!');

isOpen

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

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

Note

  • by Olly
  • Last Updated: 17 July 2014 by The Mayor

Example:

if pinScreen.isOpen(1000) then
   writeln('Pinscreen is open!');

close

function TRSPinScreen.close(): boolean;

Returns true if the pinScreen is successfully closed.

Note

  • by Olly
  • Last Updated: 22 September 2013 by Olly

Example:

if pinScreen.close() then
  writeln('The pinScreen has been closed');

waitNotOpen

function TRSPinScreen.waitNotOpen(waitTime: integer): boolean;

Returns true if the pinScreen is no longer open within waitTime

Note

  • by Olly
  • Last Updated: 22 September 2013 by Olly

Example:

if pinScreen.waitNotOpen(5000) then
  writeln('The pinScreen is no longer open');

isPinVaild

function TRSPinScreen.isPinVaild(pin: string): boolean;

Returns true if the pin pin is a valid 4 digit number.

Note

  • by Olly
  • Last Updated: 13 October 2013 by Olly

Example:

if pinScreen.isPinVaild('1234') then
   writeln('1234 is a vaild pin!');

enter

function TRSPinScreen.enter(pin: string): boolean;

Returns true if it successfully enters the bankpin pin . It will attempt up to 2 times.

Note

  • by Olly
  • Last Updated: 22 September 2013 by Olly

Example:

if bankScreen.open(BANK_TABLE_BURTHORPE) then
begin
  if pinScreen.isOpen() then
    if pinScreen.enter(players[currentPlayer].bankPin) then
      writeLn('Entered you''re bank pin!');

  // Other banking code
end;