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.InGameStateView DPB1 version →

Members and overloads

19 results

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.

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

questIdstring
A string rapresenting the quest Id
cruelbool
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.

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

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.

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

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.

CanOpenTownPortal

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

Return true if we can create a town portal here.

CurrentTarget

PropertyLink ↗
public static NetworkObject LokiPoe.InGameState.CurrentTarget { get; }

Return the current NetworkObject under the cursor.

EnteringAreaText

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

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

FrameUnderCursor

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

Return the address of the Element currently under the cursor.

HeavyStunPct

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

Return the actual PCT of Heavy stun accumulated.

IsEnteringAreaTextShown

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

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

IsLeaveHideoutButtonShowing

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

Return true if the Leave Hideout button is displayed.

IsLeftPanelShown

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

Return true if the Left oannel is open.

IsRightPanelShown

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

Return true if the Right oannel is open.

IsSkipCutscenePanelVisible

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

Return true if the Skip Cutscene displayed.

IsTopMostOverlayActive

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

Obsolete.

Related types

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