DPB2Class · Game state and actions

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.

Namespace: DreamPoeBot.Loki.Game

public static class LokiPoe.ObjectManager
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

GetObjectById

MethodLink ↗
public static T LokiPoe.ObjectManager.GetObjectById<T>(long id) where T : class

Retrieve a specific Type Object by its id. Please note, this is the faster way to retrieve NetworkObjects, as it directly pull them from the game dictionary Id, address.

Return type: TNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

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

The id of the object to retrieve

Returns: The T object retrieved, or null.

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

Guides using this class

These guides refer to LokiPoe.ObjectManager as a whole and may use other members. They are not dedicated examples of the selected member.

See how these APIs fit together. Labs include complete source; the FollowBot walkthrough teaches you to build your own bot from selected fragments and checkpoints.

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.