Globals

The Globals file holds any variables used throughout multiple files in SRL.

The source for this file can be found here.

var Colors

Convenient colors for scripters to use. Mainly used for SMART debugging.

  • clWhite
  • clBlack
  • clRed
  • clGreen
  • clBlue
  • clPurple
  • clYellow
  • clAqua
  • clOrange
  • clFuchsia
  • clTeal
  • clNavy
  • clGray
  • clLime
  • clMaroon
  • clSilver
  • clPink

Example:

smartImage.drawBox(minimap.getBounds(), false, clFuchsia);

Constant: Events

Integer constants of all the events called througout SRL.

Example:

Variable: SRL_Events

Events that are called throuhgout SRL. These events can be set in any script so custom procedures can be called in certain areas of SRL.

  • EVENT_RS_UPDATE
  • EVENT_LOGOUT
  • EVENT_LOGIN
  • EVENT_PLAYER_NEXT
  • EVENT_ANTIBAN

Example:

SRL_Events[RS_ANTIBAN] := myAntiBanProcedure();

const Mouse Styles

Different ways of moving the mouse:

  • MOUSE_BREAK: moves slower when reaching destination.
  • MOUSE_ACCURATE: a slower, more accurate movement.
  • MOUSE_HUMAN: the most human-like movement of the mouse styles.

Example:

mouse(p, MOUSE_MOVE, MOUSE_ACCURATE);

const Mouse Buttons

Mouse buttons not included in Simba:

  • MOUSE_NONE: Doesn’t do anything.
  • MOUSE_MOVE: Moves the mouse without clicking.

Also available from Simba are MOUSE_LEFT, MOUSE_MIDDLE, and MOUSE_RIGHT.

Example:

mouse(p, MOUSE_MOVE, MOUSE_ACCURATE);

const Skills

Integer constants that represent each skill.

Example:

players[currentPlayer].skillLevel[SKILL_ATTACK] := 50;