House

This file is about TRSHouse and the House variable and all of it’s methods used to interact and navigate an account’s POH:

_images/house.png

For House to work properly you need to setup it’s HouseLoader, which you can do either via the House Form or via the HouseViewer.


TRSHouse

The core record used to handle navigating a POH.


POH.Setup()

procedure TRSHouse.Setup();

Method you need to use at the start of your script after the user has already configured his house with TScriptForm.CreateHouseBuilder().


House.ScaledSearch

function TRSHouse.ScaledSearch(img: TImage; samples: Integer): TPointArray;

Internal TRSHouse method used to get an initial TPointArray of possible positions. This is performed in a downscaled map with a downscaled minimap. This is very innacurate by itself but by ruling down most of the map in a downscaled search before doing a full sized search speed has a dramatic boost. You probably won’t ever need to call this directly.


House.Position

function TRSHouse.Position(): TPoint;

Returns the players current position on the loaded house map.

Example:

WriteLn(House.Position());
WriteLn(House.Similarity); // Check to see the match percentage if needed

House.DebugPosition

function TRSHouse.DebugPosition(): TPoint;

Debugs the player position in the currently loaded house map.

Example:

//setup your house and house.loader
while True do
  Map.DebugPosition();

House variable

Global TRSHouse variable.