Thread Tools Display Modes
07/18/15, 04:38 AM   #1
Keldor
 
Keldor's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2015
Posts: 101
Track Dolmen

Hi,

I've searched a while for a way to track completed dolmen via API.
I was wondering that there is no dolmen complete EVENT in the API.

Have I missed something or is there currently no way to track dolmens?

Keldor
  Reply With Quote
07/18/15, 05:10 AM   #2
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
You'll probably need to hard-code the related achievements.
  Reply With Quote
07/18/15, 05:19 AM   #3
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,602
Maybe through map pins? Once you completed a dolmen it will become white. Should be possible to get it that way.
  Reply With Quote
07/18/15, 06:13 AM   #4
Keldor
 
Keldor's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2015
Posts: 101
Thanks, yes this would be helpfully to export the list of completed dolmen. But I look for a way to get a counter for completed dolmen for the ESO DB. So I look for a way to increase the counter every time the player has completed a dolmen.

Keldor
  Reply With Quote
07/18/15, 08:48 AM   #5
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,602
Hmm.. that's certainly a bit harder. At least the first few hundreds will be shown in the achievements, but afterwards you will have to rely on some other method.
Maybe you can track when the boss at a dolmen get's killed via the combat events and count that?
  Reply With Quote
07/18/15, 10:50 AM   #6
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
I don't know enough about achievements, but maybe this will give you an Idea.
Like sirinsidiator said this should work until they max out the Anchor Devastater achievement at 250 anchors. After that though, unless the achievement updated event keeps firing to keep track of how many you have completed, I don't know any other easy way to do it.

Lua Code:
  1. -- id (621): Anchor Devastater
  2. local function OnAchievementUpdated(eventCode, id)
  3.     if id == 621 then
  4.         -- Do you want to separate the counters
  5.         -- for each individual dolmen?
  6.         -- if so figure out which one they completed like this:
  7.         local zone, poi = GetCurrentSubZonePOIIndices()
  8.         local dolmenName = GetPOIInfo(zone, poi)
  9.         UpdateDolmenCounter(dolmenName)
  10.     end
  11. end
  12. EVENT_MANAGER:RegisterForEvent(ADDON_NAME,  EVENT_ACHIEVEMENT_UPDATED, OnAchievementUpdated)

One possible problem is, I don't know how this works, what happens if you die & respawn somewhere else then an anchor is closed. Do you still get the achievement update for particpating in it? Even though you were not there when it closed? If so the code to get the dolmen name would not return the proper name because you would not be at that poi so you would have to check that the returned name is a proper dolmen name and filter it out or just add it to a global unspecified dolmen counter.
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Track Dolmen


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off