DPB2Class · 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: 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

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

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

Result of a WorldItem loot request.

Parameters

obj
Parameter type: NetworkObject

The world item to collect.

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.

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

The maximum time, in milliseconds, allowed for the interaction.

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

Whether automatic equipment may be requested for the collected item.

Returns: A result describing whether the item was collected or why the attempt failed.

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

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.