Antiban

The antiban file contains some useful functions that can be used for antiban. Antiban is a term used for human-like script behavior, and antiban functions are used throughout scripts to lessen the chance of a ban.

The source for this file can be found here.

randomRClickItem

procedure randomRClickItem();

Randomly rights clicks an item in the backpack, randomly chooses Cancel or Examine.

Note

  • by phantombmx/EvilChicken!, idea by Naum
  • Last Updated: 13 August 2013 by Coh3n

Example:

randomRClickItem();

sleepAndMoveMouse

procedure sleepAndMoveMouse(Time: Integer);

Moves the mouse around for the specified “Time”. Moves the mouse like a bored human would.

Note

  • by RsN
  • Last Updated: 16 August 2013 by Coh3n

Example:

sleepAndMoveMouse(1000 + random(2000));

pickUpMouse

procedure pickUpMouse();

Acts just like you picked your mouse off the pad, then sets it back down.

Note

  • by dark_sniper
  • Last Updated: 15 August 2013 by Coh3n

Example:

pickUpMouse();

mouseOffClient

procedure mouseOffClient(direction: integer; waitTime: integer = 0);

Moves the mouse off the client in a specified direction. Waits up to waitTime. Valid arguments for ‘direction’ are:

  • OFF_CLIENT_TOP
  • OFF_CLIENT_BOTTOM
  • OFF_CLIENT_LEFT
  • OFF_CLIENT_RIGHT
  • OFF_CLIENT_RANDOM

Note

  • by Ollybest
  • Last Updated: 16 August 2015 by Thomas

Example:

mouseOffClient(OFF_CLIENT_RANDOM, randomRange(3000, 8000));

smallRandomMouse

procedure smallRandomMouse();

Randomly moves the mouse in a max radius of ‘radius’ (default 80) of its current postion, has alot of gravity and wind so it can simulate a human flicking/spiraling the mouse.

Note

  • by Flight
  • Last Updated: 21 August 2013 by Coh3n

Example:

smallRandomMouse();

randomMouseSpeed

procedure randomMouseSpeed(Amount, MinMS, MaxMS: Integer);

Randomly changes the mousespeed by the amount (+/-) within the min and max mousespeed limit.

Note

  • by Ollybest

Example:

randomMouseSpeed(3, 10, 20);

randomCompass

function randomCompass(MinMovement, MaxMovement: Integer; Return: Boolean): Boolean;

Rotates the compass somewhere between MinMovement and MaxMovement. It will return to original angle if ‘Return’ is set to true.

Note

  • by Nebula
  • Last Updated: 6 March 2011 by Nebula

Example:

randomCompass(10, 30, true);

randomCameraAngle

procedure randomCameraAngle(endAngle: integer);

Randomly changes the angle of the 3D game area’s camera. Finishes depending on ‘endAngle’. Valid arguments for ‘endAngle’:

  • MS_ANGLE_HIGH
  • MS_ANGLE_LOW
  • MS_ANGLE_NONE

Note

  • by R1ch
  • Last Updated: 23 August 2013 by Coh3n

Example:

randomCameraAngle(MS_ANGLE_HIGH);

randomGameTab

procedure randomGameTab(returnToOriginal: boolean = false);

Switches to a random gametab, Will return to the original tab if ‘returnToOriginal’ is set to true (false by default).

Note

  • by Olly
  • Last Updated: 19 Novemeber 2013 by Olly

Example:

randomGameTab(true);

dragRandomItem

procedure dragRandomItem(excludeSlots: TIntegerArray = []);

Moves an item in your backpack to a random free slot. Will exclude all slots in the ‘excludeSlots’ array. By default, it won’t exclude any slots.

Note

  • by Ollybest
  • Last Updated: 23 August 2013 by Coh3n

Example:

dragRandomItem();

mouseMovingObject

procedure mouseMovingObject();

Splits the screen up into boxes and hovers the one with the most pixel shifts. Will randomly right-click and examine the object.

Note

  • by Ollybest
  • Last Updated: 17 September 2013 by Olly

Example:

mouseMovingObject();

closePopup

function closePopup(useEscKey: boolean = false): boolean;

Finds and closes most popup windows and buttons, so be careful where it’s used. Will use the escape key if the useEscKey paramater is set to true.

Note

  • by The Mayor
  • Last Updated: 10 October 2015 by Thomas

Example:

closepopup(true);

hoverSkill

procedure hoverSkill(skill: integer);

Hovers the skill ‘skill’.

Note

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

Example:

hoverSkill(SKILL_ATTACK);

hoverRandomSkill

procedure hoverRandomSkill();

Hovers a random skill.

Note

  • by Olly
  • Last Updated: 08 December 2013 by Olly

Example:

hoverSkill(SKILL_ATTACK);

browseSkillMenu

function browseSkillMenu(skill: integer; maxScrollAmount: integer = 10);

Clicks on the skill ‘skill’ and scrolls through its skill information menu. Specify the maximum scroll amount via maxScrollAmount.

Note

  • by Clarity
  • Last Updated: 20 January 2015 by Clarity

Example:

browseSkillMenu(SKILL_ATTACK, 5);

hoverOnlineFriend

procedure hoverOnlineFriend();

Hovers an online friend.

Note

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

Example:

hoverOnlineFriend();

boredHuman

procedure boredHuman(returnToStartAngle: boolean = true);
Performs 3-11 times:
  • Rotates the camera
  • Moves the mouse around MainScreen,
  • If it finds mouseOverText it will randomly interact with chooseoption menu.

It will return to the start angle if ‘returnToStartAngle’ is set to true.

Note

  • by WT-Fakawi
  • Last Updated: 08 December 2013 by Olly

Example:

boredHuman();

exitTreasure

function exitTreasure(): boolean;

Finds and exits the annoying Treasure Chest pop up that can be dragged anywhere on the screen.

Note

  • by Coh3n & Ashaman88
  • Last Updated: 4 February 2014 by Ashaman88

Example:

exitTreasure();

findTicket

function findTicket(var p: TPoint): boolean;

Returns true if the Treasure spin ticket it found. Returns its coordinates in a TPoint ‘p’.

Note

  • by Kyle Undefined
  • Last Updated: 4 February 2014 by Ashaman88

Example:

findTicket(p);

destroyTicket

function destroyTicket(slot: integer, continuous: boolean = false): boolean;

Destroys a ticket if found in the backpack. Will continuously press the Y-key while doing so if the continuous parameter is set to true.

Note

  • by Ashaman88
  • Last Updated: 3 Oktober 2015 by Thomas

Example:

if findTicket(p) then
    destroyTicket(tabBackpack.pointToSlot(p), true);

claimTicket

function claimTicket(): boolean;

Claims a spin ticket if found in the backpack. If it can’t be claimed, it will destroy it instead.

Note

  • by Olly
  • Last Updated: 4 February 2014 by Ashaman88

Example:

claimTicket();