View Single Post
08-08-18, 05:58 PM   #3
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,877
As posted in that other forum.
To walk up the maps from where you are to the continent you're on:
Lua Code:
  1. local thisMapType = 0
  2. local mapID = C_Map.GetBestMapForUnit("player")
  3. while thisMapType ~= 2 do
  4.     local mapDetails = C_Map.GetMapInfo(mapID)
  5.     local thisMapID = mapDetails.MapID
  6.     local thisMapName = mapDetails.name
  7.     thisMapType = mapDetails.mapType
  8.     local thisMapParent = mapDetails.parentMapID
  9.     mapID = thisMapParent
  10.     print(type(thisMapType), thisMapType, thisMapName)
  11. end
mapTypes
Code:
0 = "Cosmic"
1 = "World"
2 = "Continent"
3 = "Zone"
4 = "Dungeon"
5 = "Micro"
6 = "Orphan"
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote