Yield to the normal interaction timing
if (!LokiPoe.IsInGame)
return;
await Coroutines.FinishCurrentAction();
await Coroutines.LatencyWait();Use inside the bot's asynchronous workflow. Do not block the bot thread with Thread.Sleep.
Asynchronous helpers for timing, interaction and common game actions. Await these helpers within the bot workflow.
Namespace: DreamPoeBot.Loki.Bot
public static class CoroutinesView DPB1 version โ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;if (!LokiPoe.IsInGame)
return;
await Coroutines.FinishCurrentAction();
await Coroutines.LatencyWait();Use inside the bot's asynchronous workflow. Do not block the bot thread with Thread.Sleep.
public static Task<LootResult> Coroutines.Loot(NetworkObject obj, bool shouldMove, int tmeout)
Attempts to collect a world item. When shouldMove is true, the character may move into interaction range first.
objNetworkObjectshouldMovebooltmeoutintReturns: A result describing whether the item was collected or why the attempt failed.
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.