DPB2Class · Navigation

ExilePather

Query routes and path distances in the current area. Route calculation and issuing movement commands are separate operations.

Namespace: DreamPoeBot.Loki.Bot.Pathfinding

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

Use this API

Start with a concrete example: Measure the route to a transition →

Members and overloads

1 declared here
Show all members

FindPath

MethodLink ↗
public static PathResult ExilePather.FindPath(Vector2i start, Vector2i end, bool waypoints = true, byte distanceBetweenHops = 15)

Finds a path between two points. When waypoints are enabled, segments are spaced by distanceBetweenHops.

Parameters

startVector2i
The starting position for pathfinding
endVector2i
The destination position for pathfinding
waypointsbool
Whether to include waypoints in the returned path
distanceBetweenHopsbyte
Distance between path segments when waypoints are enabled

Returns: A DreamPoeBot.Loki.Bot.Pathfinding.RDWrapper.Types.PathResult containing the found path or failure information

Examples

Imports used by these examples
using System;
using System.Linq;
using DreamPoeBot.Loki.Game;
using DreamPoeBot.Loki.Game.Objects;
using DreamPoeBot.Loki.Bot;
using DreamPoeBot.Loki.Bot.Pathfinding;
using DreamPoeBot.Loki.Common;

Measure the route to a transition

if (!LokiPoe.IsInGame || LokiPoe.Me == null)
    return;

ExilePather.Reload();
if (!ExilePather.IsReady)
    return;

var target = LokiPoe.ObjectManager.GetObjectsByType<AreaTransition>()
    .FirstOrDefault(obj => obj.IsTargetable);
if (target != null)
{
    var distance = ExilePather.PathDistance(LokiPoe.MyPosition, target.Position);
}

Run on the bot thread and throttle repeated checks. Reload prepares the current area's navigation data. A measurement is not a movement command or an arrival confirmation; recheck the target before acting.

Guides and examples

See how these APIs fit together. Labs include complete source; the FollowBot walkthrough teaches you to build your own bot from selected fragments and checkpoints.

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