Smart

The Smart file stores all the functions and procedures used to initiate SMART in scripts. To use SMART in a script, simply add the following code before SRL is included.

{$DEFINE SMART}

The source for this file can be found here.

var SMART plugins

A TStringArray of smart plugins

var User Set

Variables that can be used in scripts.

  • smartGetJavaPath - If enabled will attempt to find your java path
  • smartShowConole - If enabled will show the java console else wont.
  • smartForceNewClient - If enabled will skip attempting to pair to a previously spawned client
  • smartEnableDrawing - If enabled will allow drawing on smart.
  • smartInitSeq - Key that smart will press while smart is loading.
  • smartUserAgent - The userAgent header (i.e, the ‘browser’ information sent to the RS server)
  • smartResetAttempts - The max attempts to respawn SMART during sixHourFix()

getJavaPath

function getJavaPath(): string;

Will return the Java path needed for the first parameter of SmartSpawnClient.

Note

  • By: Olly
  • Last Updated: 26 August 2013 by Olly

Example:

s := getJavaPath();

smartSetDebug; overload

procedure smartSetDebug(enable: boolean); overload;

Overloaded function that toggles the debug image on smart without needing the target parameter.

Note

  • By: Olly
  • Last Updated: 26 August 2013 by Olly

Example:

smartSetDebug(true);

smartGetParameters

function smartGetParameters(out params: array of string): boolean;

Attempts to grab the correct parameters for spawning a SMART client. Results if succesfull or not.

Note

  • By: Brandon, Mormanman, Benland100
  • Last Updated: 26 May 2013 by Olly

Example:

smartGetParameters(tsa);

smartSetAsTarget

function smartSetAsTarget(pid: integer): boolean;

Pairs Simba to the smart client via EIOS.

Note

  • By: Olly
  • Last Updated: 28 August 2013 by Olly

Example:

smartCreateClient

procedure smartCreateClient(w, h: integer);

Creates a smart client using the dimensions “w” and “h”.

Note

  • By: Olly
  • Last Updated: 28 August 2013 by Olly

Example:

smartCreateClient(800, 600);

smartGetPIDs

function smartGetPIDs(): TIntegerArray;

Returns all true, non pair PIDs of smart clients.

Note

  • By: Olly
  • Last Updated: August 28, 2013 by Olly

Example:

tia := smartGetPIDs();

smartPairToExistingClient

function smartPairToExistingClient(): boolean;

Attempts to pair us to a previously spawned smart client, will result true if succesfull.

Note

  • By: Olly
  • Last Updated: August 28, 2013 by Olly

Example:

initSmart

procedure initSmart();

Initializes a SMART client. If it cannot pair to an existing client, it will attempt to spawn a client. It will terminate the script if anything goes wrong.

Note

  • By: Olly
  • Last Updated: 26 August 2013 by Olly

Example:

smartFreeCurrentClient

procedure smartFreeCurrentClient();

Frees our current smart client.

Note

  • By: Olly
  • Last Updated: 28 August 2013 by Olly

Example:

smartSetupDrawing

procedure smartSetupDrawing();

Setups SMART so it’s ready to be drawn on-to.

Note

  • By: Olly
  • Last Updated: 28 August 2013 by Olly

Example:

smartFreeDrawing

procedure smartFreeDrawing();

Frees the TMufasaBitmap used for smart drawing.

Note

  • By: Olly
  • Last Updated: 28 August 2013 by Olly

Example:

smartReloadClient

procedure smartReloadClient();

Kills the current client, and spawns a new one. The ‘waitTime’ parameter is how long to wait after killing the client before spawning a new one.

Note

  • By: Olly
  • Last Updated: 20 September 2013 by Olly

Example:

smartReloadClient(60000);

sixHourFix

procedure sixHourFix();

Kills the current client, spawns a new one, and then logs the currentPlayer back into the game.

Note

  • By: Olly
  • Last Updated: 1 July 2015 by The Mayor

Example:

__smartCheckPlugins

procedure __smartCheckPlugins();

Checks what plugins are present in the plugins folder and warns the user if the directX of OpenGL ones are missing.

Note

  • By: Olly

Example: