DPB2Class · Game state and actions

LokiPoe

Start here to check the client state, access the local player and identify the current area. Read in-game data only after checking IsInGame.

Namespace: DreamPoeBot.Loki.Game

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

Use this API

Class usage example: Check the client before reading →

Members and overloads

33 declared here

MyReaction

PropertyLink ↗
public static byte LokiPoe.MyReaction { get; }

Return a byte representing the raw Playing character Reaction value.

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

MyRotation

PropertyLink ↗
public static float LokiPoe.MyRotation { get; }

Return a float representing the Playing character rotation.

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

Class usage examples

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;

Check the client before reading

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

var player = LokiPoe.Me;
var area = LokiPoe.CurrentWorldArea;

Run this guard in the bot workflow before reading character or area data.

Guides using this class

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.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.