The following command will always print the name and ID of the main zone you are in, except for edge cases like swimming in open ocean, where it should report the continent instead:
/run local c,i,m=C_Map.GetMapInfo i=c(C_Map.GetBestMapForUnit("player")) m=i.mapID while i.mapType>3 do i=c(m) m=i.mapID end print("You are in "..i.name.." ("..m..")")
|