Thread Tools Display Modes
09/20/17, 02:16 PM   #1
Obtortus
Join Date: Sep 2017
Posts: 1
Quest Turn In Location

I'm having fits with this. I need to get the turn in location from a quest, but I can't seem to even get the coordinates. I'm sure someone else has done this and I have looked at many other Addons without figuring it out.

I see this function (GetQuestConditionPin) in the source code but I can't figure out how to call the stupid thing even with the pin manager from LibMapPins-1.0.

Any help would be appreciated, I've wasted far too much time on this.
  Reply With Quote
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

ESOUI » Developer Discussions » General Authoring Discussion » Quest Turn In Location

Thread Tools
Display Modes

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