public static uint LokiPoe.LocalData.AreaHash { get; }
Retrieve the Unique uint related to the current Area. every instance of a area have a unique AreaHash and its always the same even if you exit and reenter that Area instance. If you generate a new Area instance, its AreaHash will be different, but always the same till that instance exist.
Value type:uintNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
public static uint LokiPoe.LocalData.AreaLayoutHash { get; }
Retrieve the Unique uint related to the current Area Layout. every instance of a area, with the same map layout, have a unique AreaLayoutHash and its always the same even if you exit and reenter that Area instance. This value will be the same, for different Instance with the same map layout, like same Hideouts, or the Mirage instance.
Value type:uintNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
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.
DPB1 0.3.29.56 · 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.
Ocorreu um erro. Recarregue a página para continuar.
Recarregar🗙