View Single Post
01-31-22, 05:04 PM   #4
Kanegasi
A Molten Giant
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 666
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..")")
  Reply With Quote