Thread: Location Search
View Single Post
06/10/20, 03:48 AM   #8
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,989
Yes but the quests etc. provide events that fire or at least something like a chatter begin or quest step or end event where you can check if it is a quest.
Just visiting the cities will not collect any data as the zoneIds might not even change, just texture names on the map.
So you'd need something reliable like event_crafting_interact, event_bank_opened etc. to check that you are at a crafting table or at a bank (and here you'd need to strip those which are your personal assistant bank calls which is not detectable via API functions afaik in the same event).

SSomethign would be needed to "trigger" your collection of data and this is, what in my opinion, would make it need a lot of code and "circumstances" to know and remember about, to track all the data properly.

Or maybe you could track the OnMouseEnter handler of the map pins, somehow get the coordinates of the pin as this happens. Then you'd only need to collec the pins you need by moving the mouse over it.
Or sirinsidiator knows a way maybe how to loop over all pins on the current map (or city's map) and track information from it. But even here: Maybe the coordinates and names of that pin are not exposed properly and you cannot read it from the Pin's manager/ZO_WorldMap or ZO_WorldMapContainer ...
  Reply With Quote