DPB1Class · Bots, plugins and tasks

Coroutines

Asynchronous helpers for timing, interaction and common game actions. Await these helpers within the bot workflow.

Namespace: DreamPoeBot.Loki.Bot

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

Members and overloads

1 declared here
Show all members

ExInteractWith

MethodLink ↗
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 returns the character's interaction position. The character may move into interaction range when necessary.

Return type: Task<Vector2i>
Explore Vector2i → members & methods

A two-dimensional integer position. Used by grid-position and pathfinding APIs; screen-position APIs may expect a different coordinate type.

Parameters

obj
Parameter type: NetworkObject

The game object to interact with.

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

Whether to keep the Control key pressed while interacting.

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

The maximum time, in milliseconds, to wait for the interaction.

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

For WorldItems, true to allow the game to equip the collected item automatically when the game permits it; false to collect it without requesting automatic equipment. This value has no effect on other object types.

Returns: The interaction position when successful; otherwise, DreamPoeBot.Common.Vector2i.Zero.

No dedicated example has been reviewed for this member. Browse the class reference; its examples may demonstrate other operations.

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.