DPB2Class · Game state and actions

LokiPoe.ClientFunctions

This is a convenient class to perform various action on the game client, and retrieve informations.

Namespace: DreamPoeBot.Loki.Game

public static class LokiPoe.ClientFunctions
Reference: DPB2 0.4.5.103Compare the DPB1 reference → Check signatures and usage notes separately; a matching type is not a compatibility guarantee.

Members and overloads

1 declared here
Show all members

GetHeightAt

MethodLink ↗
public static float LokiPoe.ClientFunctions.GetHeightAt(int x, int y)

Returns the current area's terrain height at grid coordinates, including cell zero.

Return type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

x
Parameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies x.

y
Parameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies y.

Returns: The float result.

DPB2 0.4.5.91 rejects invalid terrain coordinates with ArgumentOutOfRangeException and unavailable or changed-area terrain with InvalidOperationException. For coordinate conversions this applies when checkZ is true. Abort the pending action on failure; do not catch and continue with a click or key press. Discard saved targets when changing areas and reacquire them before a later attempt.

No dedicated example has been reviewed for this member. Browse the class reference; its examples may demonstrate other operations.

DPB2 0.4.5.103 · Reference reviewed 2026-10-30. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.