ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   General Authoring Discussion (https://www.esoui.com/forums/forumdisplay.php?f=174)
-   -   Quest Turn In Location (https://www.esoui.com/forums/showthread.php?t=7372)

Obtortus 09/20/17 02:16 PM

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.

Shinni 09/20/17 03:14 PM

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


All times are GMT -6. The time now is 04:17 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI