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

Loot

MethodLink ↗
public static Task<LootResult> Coroutines.Loot(NetworkObject obj, bool shouldMove = true, int tmeout = 250, bool autoEquip = true)

Attempts to pick up a WorldItem. When shouldMove is enabled, the character may move into interaction range before picking it up.

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

Named values for loot result. Select a value when an API accepts or returns LootResult.

Parameters

obj
Parameter type: NetworkObject

The WorldItem to pick up.

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

Whether the character may move into interaction range. If false, the method returns DreamPoeBot.Loki.Game.LootResult.ShouldMove when movement is required.

tmeout
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. Allow enough time for movement when shouldMove is true.

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

True to allow the game to equip the collected item automatically when the game permits it; false to collect it without requesting automatic equipment.

Returns: DreamPoeBot.Loki.Game.LootResult.None when the interaction was started; otherwise, a value describing why it could not be started.

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.