public static Task<Vector2i> Coroutines.ExInteractWith<T>(NetworkObject obj, bool holdCtrl = false, int timeout = 1000, bool autoEquip = true)
Attempts to interact with a game object of the requested type and reports the resulting interaction position. The character may move into range first. For collectible items, autoEquip set to true allows the game to equip the collected item automatically when permitted; false collects it without requesting automatic equipment.
public static Task Coroutines.FinishCurrentAction(bool resetInput = true)
This function make sure we are not actually performing another action, and if so, it wait till the end of that action, or the default timeout (5000ms). You usually call this to make sure a previous action you performed (cast a non instant skill, MoveToward etc etc) run to completition, before to perform another one.
Return type:TaskNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Parameters
resetInput
Parameter type:boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
True, if you want to reset all key state after the current action completed.
Returns: An asynchronous operation. Await it before reading the result or continuing the workflow.
public static Task Coroutines.FinishCurrentMoveAction(bool resetInput = true)
This function make sure we are not actually performing another move action, and if so, it wait till the end of that move action, or the default timeout (5000ms). You usually call this to make sure a previous move action you performed run to completition, before to perform another one.
Return type:TaskNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Parameters
resetInput
Parameter type:boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
True, if you want to reset all key state after the current action completed.
Returns: An asynchronous operation. Await it before reading the result or continuing the workflow.
Attempts to interact with a game object of the requested type. The character may move into interaction range first. For collectible items, autoEquip set to true allows the game to equip the collected item automatically when permitted; false collects it without requesting automatic equipment.
Return type:Task<bool>No current DPB page is linked for this built-in, external, generic or compatibility-only type.
This is a convenient method to pause The bot execution for a number of ms equal to your actual average latency multiplied for the LatencyFactor. Usually used after the execution of an action, this make sure the game has time to send the current action to the server and recieve an answer.
Return type:Task<int>No current DPB page is linked for this built-in, external, generic or compatibility-only type.
public static Task<int> Coroutines.LatencyWait(float factor)
This is a convenient method to pause The bot execution for a number of ms equal to your actual average latency multiplied for the factor parameter. Usually used after the execution of an action, this make sure the game has time to send the current action to the server and recieve an answer.
Return type:Task<int>No current DPB page is linked for this built-in, external, generic or compatibility-only type.
Parameters
factor
Parameter type:floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies factor.
Returns: An asynchronous operation. Await it before reading the result or continuing the workflow.
public static Task<LootResult> Coroutines.Loot(NetworkObject obj, bool shouldMove = true, int tmeout = 250, bool autoEquip = true)
Attempts to collect a world item. When shouldMove is true, the character may move into interaction range first. Setting autoEquip to true allows the game to equip the collected item automatically when permitted; false collects it without requesting automatic equipment.
public static int Coroutines.ReactionMinSleepDelay { get; set; }
Get or Set the Min sleep value for ReactionWait.
Value type:intNo 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;
Inspect the shared interaction timing settings
var latencyFactor = Coroutines.LatencyFactor;
var minimumReactionMs = Coroutines.ReactionMinSleepDelay;
var maximumReactionMs = Coroutines.ReactionMaxSleepDelay;
These are shared timing settings, not proof of action completion. Read them without changing other components' defaults. For a small cancellable wait, follow the AcademyWorkshop stopwatch-and-Yield example. Coroutine helpers belong inside the bot-owned workflow, never Task.Run or async void Tick.
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🗙