WorldHopper

Made by @Yolandi, modified by @Torwent.

World hopper is resposible for hopping worlds with the logged in world hopper in the logout tab.


type TWorldHopper

type
  TWorldHopper = record(TInterface)
    SILVER, YELLOW: Int32;
    ReadyTime: UInt64;
  end;

WorldHopper record.


TWorldHopper.Setup

procedure TWorldHopper.Setup(); override;

Internal method used to setup the WorldHopper.


TWorldHopper.Scroll

procedure TWorldHopper.Scroll(down: Boolean);

Scroll one page up or down of the world hopper.

Example:

TWorldHopper.Scroll(True);

TWorldHopper.ClickWorld

procedure TWorldHopper.ClickWorld(ocrBounds: TBox);

Click a world in the world hopper.

Example:

TWorldHopper.ReadWorlds(ocrBounds);
TWorldHopper.ClickWorld(ocrBounds[0]);

TWorldHopper.GetCurrentWorld

function TWorldHopper.GetCurrentWorld(): Int32;

Returns the current world we are on.

Example:

WriteLn TWorldHopper.GetCurrentWorld();

TWorldHopper.ReadWorlds

function TWorldHopper.ReadWorlds(out boxes: TBoxArray): TIntegerArray;
function TWorldHopper.ReadWorlds(): TIntegerArray;  overload;

Returns currently visible worlds.

Example:

WriteLn TWorldHopper.ReadWorlds();

TWorldHopper.WaitForHop

function TWorldHopper.WaitForHop(world: Int32; ocrBounds: TBox; coolDownOnFail: Boolean=True): Boolean;

Exits false if “Please wait” not found, presumably due to combat.


TWorldHopper.Hop

function TWorldHopper.Hop(targetWorlds: TIntegerArray): Boolean;

Hops to a different world from the specified targetWorlds.

Example:

WriteLn TWorldHopper.Hop([303, 304, 305]);