View Single Post
11/08/16, 09:30 AM   #1
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,578
[outdated] static poi and location id's

I was wondering if we could have a way to identify points of interest (e.g. cities) and locations (e.g. guild stalls) on the map which won't change between updates.

It would also be great if we could have access to the map locations from any map like with POIs. Currently we need to navigate to the specific map in order to be able to use GetMapLocation*.

e.g.
Lua Code:
  1. poiId = GetPOIId(zoneIndex, poiIndex)
  2. zoneIndex, poiIndex = GetPOIKeys(poiId)
  3. locationId = GetLocationId(locationIndex)
  4. GetMapLocationIconById(locationId)
  5. GetMapLocationTooltipHeaderById(locationId)
  6. ...