House

This file is about THouse 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.


THouse

The core record used to handle navigating a POH.


POH.Setup()

procedure THouse.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 THouse.ScaledSearch(img: TImage; samples: Integer): TPointArray;

Internal THouse 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 THouse.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 THouse.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 THouse variable.