View Single Post
09/24/21, 02:43 AM   #6
Calamath
AddOn Author - Click to view addons
Join Date: Aug 2019
Posts: 36
Update32

As previously announced, starting with Update 32,
you can use ESOUI to get notifications of the start and end of Dark Anchor world events.

I have confirmed this with PTS 7.2.0.
The following notifications are made in line with the Dark Anchor world event.

Activation:
(1)EVENT_WORLD_EVENT_ACTIVE_LOCATION_CHANGED
(2)EVENT_WORLD_EVENT_ACTIVATED

Deactivation:
(1)EVENT_WORLD_EVENT_DEACTIVATED

The dark anchor seems to be assigned a unique worldEventInstanceId for each zone,
and as you know, the POI where the dark anchor is activated will change each time.

If the player is in the same zone,
the poiIndex of the active dark anchor can be determined by passing the worldEventInstanceId notified by the event as an argument to GetWorldEventPOIInfo().

Note that if you have already obtained the database of poiIndex of the dark anchor, you can use GetPOIWorldEventInstanceId().
Only the active dark anchor will return worldEventInstanceId as the return value.
Inactive dark anchors will return 0 as now.

Congratulations.

- Calamath

Last edited by Calamath : 09/24/21 at 02:45 AM.