DPB2Class · Interface and panels

LokiPoe.InGameState

This is one of the most important class of the Framework, its purpose, is to offer easy to use wrappers members and methods to retrieve informations and interact with the game intefraces.

Namespace: DreamPoeBot.Loki.Game

public static class LokiPoe.InGameState
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

19 declared here

GetCurrentQuestState

MethodLink ↗
public static DatQuestStateWrapper LokiPoe.InGameState.GetCurrentQuestState(DatQuestWrapper quest)

Return a DatQuestStateWrapper class describing the state of the requested Quest. Pls Note: sometime, after you collect a quest Reward, the quest state do not update correctly untill you log out and in again, for this reason is highly advised to always record the actual quest state befor collecting a reward, and check again after you collected it. If the state has not changed, just log out to char selection screen andlog in again, and you will have the updated state.

Return type: DatQuestStateWrapper
Explore DatQuestStateWrapper → members & methods

Game-data record for quest state. Use its identifiers and properties to look up game definitions.

Parameters

quest
Parameter type: DatQuestWrapper

A DatQuestWrapper rapresenting the desired quest

Returns: A DatQuestStateWrapper class describing the state, or null.

GetCurrentQuestState

MethodLink ↗
public static DatQuestStateWrapper LokiPoe.InGameState.GetCurrentQuestState(string questId, bool cruel = false)

Return a DatQuestStateWrapper class describing the state of the requested Quest Id. Pls Note: sometime, after you collect a quest Reward, the quest state do not update correctly untill you log out and in again, for this reason is highly advised to always record the actual quest state befor collecting a reward, and check again after you collected it. If the state has not changed, just log out to char selection screen andlog in again, and you will have the updated state.

Return type: DatQuestStateWrapper
Explore DatQuestStateWrapper → members & methods

Game-data record for quest state. Use its identifiers and properties to look up game definitions.

Parameters

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

A string rapresenting the quest Id

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

Not read by this overload in the reviewed source. Do not rely on this argument to change its behavior.

Returns: A DatQuestStateWrapper class describing the state, or null.

GetCurrentQuestStateAccurate

MethodLink ↗
public static DatQuestStateWrapper LokiPoe.InGameState.GetCurrentQuestStateAccurate(string questId)

Return a DatQuestStateWrapper class describing the state of the requested Quest Id, this method also reload all the QuestState from the Data file. Pls Note: sometime, after you collect a quest Reward, the quest state do not update correctly untill you log out and in again, for this reason is highly advised to always record the actual quest state befor collecting a reward, and check again after you collected it. If the state has not changed, just log out to char selection screen andlog in again, and you will have the updated state.

Return type: DatQuestStateWrapper
Explore DatQuestStateWrapper → members & methods

Game-data record for quest state. Use its identifiers and properties to look up game definitions.

Parameters

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

A string rapresenting the quest Id

Returns: A DatQuestStateWrapper class describing the state, or null.

GetCurrentQuestStates

MethodLink ↗
public static Dictionary<string, KeyValuePair<DatQuestWrapper, DatQuestStateWrapper>> LokiPoe.InGameState.GetCurrentQuestStates()

Retrieve ALL the quests and their state for Normal difficulty.

Return type: Dictionary<string, KeyValuePair<DatQuestWrapper, DatQuestStateWrapper>>
Explore DatQuestWrapper → members & methods

Game-data record for quest. Use its identifiers and properties to look up game definitions.

Explore DatQuestStateWrapper → members & methods

Game-data record for quest state. Use its identifiers and properties to look up game definitions.

Returns: The Dictionary<string, KeyValuePair<DatQuestWrapper, DatQuestStateWrapper>> result.

GetCurrentQuestStates

MethodLink ↗
public static Dictionary<string, KeyValuePair<DatQuestWrapper, DatQuestStateWrapper>> LokiPoe.InGameState.GetCurrentQuestStates(bool cruel = false)

Retrieve ALL the quests and their state for normal or cruel difficulty.

Return type: Dictionary<string, KeyValuePair<DatQuestWrapper, DatQuestStateWrapper>>
Explore DatQuestWrapper → members & methods

Game-data record for quest. Use its identifiers and properties to look up game definitions.

Explore DatQuestStateWrapper → members & methods

Game-data record for quest state. Use its identifiers and properties to look up game definitions.

Parameters

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

Not read by this overload in the reviewed source. Do not rely on this argument to change its behavior.

Returns: Dictionary string KeyValuePair DatQuestWrapper DatQuestStateWrapper rapresentind quest Id and wrappers for quest and quest state.

LeaveHideout

MethodLink ↗
public static bool LokiPoe.InGameState.LeaveHideout()

Click the Leave Hideout Button.

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

Returns: Return true if the button was pressed or false on all other errors.

OpenPortal

MethodLink ↗
public static void LokiPoe.InGameState.OpenPortal()

Click the Town portal button.

Return type: voidNo return value.

CanOpenTownPortal

PropertyLink ↗
public static bool LokiPoe.InGameState.CanOpenTownPortal { get; }

Return true if we can create a town portal here.

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

EnteringAreaText

PropertyLink ↗
public static string LokiPoe.InGameState.EnteringAreaText { get; }

Return 'areaName' if the text "Entering {areaName}" is displayed.

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

FrameUnderCursor

PropertyLink ↗
public static long LokiPoe.InGameState.FrameUnderCursor { get; }

Return the address of the Element currently under the cursor.

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

HeavyStunPct

PropertyLink ↗
public static float LokiPoe.InGameState.HeavyStunPct { get; }

Return the actual PCT of Heavy stun accumulated.

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

IsEnteringAreaTextShown

PropertyLink ↗
public static bool LokiPoe.InGameState.IsEnteringAreaTextShown { get; }

Return true if the text "Entering {areaName}" is displayed.

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

IsLeaveHideoutButtonShowing

PropertyLink ↗
public static bool LokiPoe.InGameState.IsLeaveHideoutButtonShowing { get; }

Return true if the Leave Hideout button is displayed.

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

IsLeftPanelShown

PropertyLink ↗
public static bool LokiPoe.InGameState.IsLeftPanelShown { get; }

Return true if the Left oannel is open.

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

IsRightPanelShown

PropertyLink ↗
public static bool LokiPoe.InGameState.IsRightPanelShown { get; }

Return true if the Right oannel is open.

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

IsSkipCutscenePanelVisible

PropertyLink ↗
public static bool LokiPoe.InGameState.IsSkipCutscenePanelVisible { get; }

Return true if the Skip Cutscene displayed.

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

IsTopMostOverlayActive

PropertyLink ↗Deprecated
public static bool LokiPoe.InGameState.IsTopMostOverlayActive { get; }

Obsolete.

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

WindowControl

PropertyLink ↗
public static LokiPoe.InGameState.DockedWindowControlWrapper LokiPoe.InGameState.WindowControl { get; }

Reads window control on LokiPoe.InGameState as static. The exact type and accessors are shown below.

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

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.