DreamPoeBot 开发者中心

DPB1 与 DPB2 API 参考

技术文档、API 名称及代码示例目前以英语提供。

查找 API、探索可运行的示例,或构建自己的扩展。这里涵盖插件、机器人、例程和移动器,从入门项目到具体实现。

DPB1 · 0.3.29.47DPB2 · 0.4.5.94审阅日期:2026-10-07

想找现成的机器人或插件? 在首页浏览机器人和插件.

搜索参考文档

查找类型、成员或操作

找到 2213 个类型
2,213 个当前类型 14,287 个成员 91,087 个命名值

覆盖两个已审阅产品。每项结果标明所属产品;名称相同不代表行为相同。需要更多背景? 浏览指南和示例.

旧版 Abyss API 已从当前搜索和成员列表中移除。现有链接仍可访问,并明确标注为兼容性参考。支持说明区分开发中的修改与已发布功能。

DPB1Class · 游戏状态与操作

LokiPoe

Start here to check the client state, access the local player and identify the current area. Read in-game data only after checking IsInGame.

DPB2Class · 游戏状态与操作

LokiPoe

Start here to check the client state, access the local player and identify the current area. Read in-game data only after checking IsInGame.

DPB1Class · 游戏状态与操作

LokiPoe.ObjectManager

Retrieve informations about all the game Objects, Npcs, Monsters, WorldItems, AreaTransitions, but also interactable objects like Blight Towers, Ultimatum monolith, harmfull effects, etc etc. Litterally all the dynamic objects placed in game by the server. Use this wisely, as even if the ObjectManager have a cache that is refreshed every 30ms, calling it that fast, is really cpu intensive, you should code your components in the most efficent way possible.

DPB2Class · 游戏状态与操作

LokiPoe.ObjectManager

Retrieve informations about all the game Objects, Npcs, Monsters, WorldItems, AreaTransitions, but also interactable objects like Blight Towers, Ultimatum monolith, harmfull effects, etc etc. Litterally all the dynamic objects placed in game by the server. Use this wisely, as even if the ObjectManager have a cache that is refreshed every 30ms, calling it that fast, is really cpu intensive, you should code your components in the most efficent way possible.

DPB1Class · 机器人、插件与任务

Coroutines

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

DPB2Class · 机器人、插件与任务

Coroutines

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

DPB1Interface · 机器人、插件与任务

ITask

Contract for a unit of asynchronous bot work. Implement Run and the inherited lifecycle and messaging members.

DPB2Interface · 机器人、插件与任务

ITask

Contract for a unit of asynchronous bot work. Implement Run and the inherited lifecycle and messaging members.

DPB1Class · 机器人、插件与任务

BotManager

Discover installed bots, inspect the selected bot and observe or control its lifecycle.

DPB2Class · 机器人、插件与任务

BotManager

Discover installed bots, inspect the selected bot and observe or control its lifecycle.

DPB1Interface · 机器人、插件与任务

IPlugin

Contract for an extension that participates in the bot lifecycle. The inherited contracts describe initialization, enablement and cleanup.

DPB2Interface · 机器人、插件与任务

IPlugin

Contract for an extension that participates in the bot lifecycle. The inherited contracts describe initialization, enablement and cleanup.

DPB1Class · 机器人、插件与任务

PluginManager

Discover installed plugins and inspect the enabled extensions for the current session.

DPB2Class · 机器人、插件与任务

PluginManager

Discover installed plugins and inspect the enabled extensions for the current session.

DPB1Class · 世界、角色与物品

LocalPlayer

The player controlled by the current client. Obtain it through LokiPoe.Me after checking that the client is in game.

DPB2Class · 世界、角色与物品

LocalPlayer

The player controlled by the current client. Obtain it through LokiPoe.Me after checking that the client is in game.

DPB1Class · 世界、角色与物品

Item

Read an item's identity, rarity, stack and other properties. Use its owning inventory or interface API for item actions.

DPB2Class · 世界、角色与物品

Item

Read an item's identity, rarity, stack and other properties. Use its owning inventory or interface API for item actions.

DPB1Class · 游戏状态与操作

InventoryControlWrapper

Work with a specific inventory grid, including selecting and picking up items. Use the local item identifier from that grid.

DPB2Class · 游戏状态与操作

InventoryControlWrapper

Work with a specific inventory grid, including selecting and picking up items. Use the local item identifier from that grid.

DPB1Class · 导航

ExilePather

Query routes and path distances in the current area. Route calculation and issuing movement commands are separate operations.

DPB2Class · 导航

ExilePather

Query routes and path distances in the current area. Route calculation and issuing movement commands are separate operations.

DPB1Class · 界面与面板

LokiPoe.InGameState

This is one of the most important class of the Framework, its purpose, is to offer easy to use wrappers members and methods to retrieve informations and interact with the game intefraces.

DPB2Class · 界面与面板

LokiPoe.InGameState

This is one of the most important class of the Framework, its purpose, is to offer easy to use wrappers members and methods to retrieve informations and interact with the game intefraces.

DPB1Class · 世界、角色与物品

AbyssNodeLarge

An Abyss node with a position and a blockage state. Read nodes recognized by your client; recognition of the reworked final node is still in development.

Reworked final-node recognition: implemented in development, not yet released.
DPB2Class · 世界、角色与物品

AbyssNodeLarge

An Abyss node with a position and a blockage state, including reworked final nodes in public DPB2 0.4.5.91. Blockage state does not establish encounter success.

Reworked final-node recognition is released in DPB2 0.4.5.91 (introduced in 0.4.5.90).
DPB2Class · 游戏数据

AbyssStashTabLayout

Provides abyss stash tab layout data and the operations listed below. Related types link to the values this API consumes or returns.

本参考覆盖已审阅 Release 源码快照中面向开发者的声明,包含通过基类链接访问的继承 API。不同产品版本分别记录,以保留差异。

实践 API

指南与示例

选择具体示例、研究扩展约定,或完成首个项目。这些是独立的文档入口,使用 API 前无需完成整套课程。

指南对应 DPB1: .NET Framework 4.8 (net48). Switch product to keep code, downloads and links aligned. Return to the DPB1 API reference →

DPB 开发入门

你的第一个扩展

分五步创建附近敌人提醒,包括环境设置、完整检查点和预期结果。

开始引导项目 →
解决具体问题

实用示例

识别区域、查找对象、读取背包并检查技能栏。每个示例都链接到相应代码和 API。

浏览示例 →
理解接口约定

执行与生命周期

谁调用 Tick,异步工作如何执行,以及哪个组件负责初始化与清理。

了解执行模型 →

选择扩展类型

全部指南与源代码项目

17 guides · 8 source projects per product

独立 API 实验

Original, anonymous source for the standalone examples, with build and installation instructions. The FollowBot walkthrough uses selected fragments and implementation exercises; it is not a finished bot in this download. Compile baselines: DPB1 0.3.29.47 and DPB2 0.4.5.88; no live game validation claimed.

Download DPB1 kit ↓