View Single Post
09/20/17, 03:14 PM   #2
Shinni
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 167
This is the function that creates quest pins on the map:
https://github.com/esoui/esoui/blob/...dmap.lua#L3453

Using that, the following code should give you the position of the quest pins for a given questindex:

Lua Code:
  1. local questSteps = WORLD_MAP_QUEST_BREADCRUMBS:GetSteps(questIndex)
  2. if questSteps then
  3.     for stepIndex, questConditions in pairs(questSteps) do
  4.         for conditionIndex, conditionData in pairs(questConditions) do
  5.             local xLoc, yLoc = conditionData.xLoc, conditionData.yLoc
  6.             -- now your code processing the coordinates of this pin
  7.         end
  8.     end
  9. end

Last edited by Shinni : 09/20/17 at 03:24 PM.
  Reply With Quote