These examples demonstrate the class, not every member listed above. Each example links the declarations it teaches.
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;
Reset local state on an area change
if (!LokiPoe.IsInGame || LokiPoe.Me == null)
{
previousAreaHash = null;
previousAreaId = null;
areaTargets.Clear();
return;
}
var area = LokiPoe.CurrentWorldArea;
var currentHash = LokiPoe.LocalData.AreaHash;
if (area == null || currentHash == 0)
return;
if (currentHash != previousAreaHash || area.Id != previousAreaId)
{
previousAreaHash = currentHash;
previousAreaId = area.Id;
areaTargets.Clear();
}
Run in Tick. Own these fields on your plugin: uint? previousAreaHash; string previousAreaId; readonly List<int> areaTargets = new List<int>(); reset them in Start. Hash identifies ordinary instance changes; zone ID also distinguishes local areas sharing a hash. Name is only a label. Some special transfers share both identifiers; travel needs its own bounded arrival check.
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.
An error has occurred. This application may no longer respond until reloaded.
Reload🗙