View Single Post
03/03/16, 11:14 PM   #2
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
Try this:
Lua Code:
  1. local zoneIndex, poiIndex = GetCurrentSubZonePOIIndices()
  2. if poiIndex then
  3.     local normalizedX, normalizedZ, poiType, iconPath = GetPOIMapInfo(zoneIndex, poiIndex)
  4.     if iconPath:find("poi_city") then
  5.         -- in a city
  6.     end
  7. end

Should work in any language.