Thread Tools Display Modes
12-19-12, 10:08 AM   #1
bsmorgan
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Mar 2005
Posts: 219
Detecting Underground Maps

There are some underground maps in various zones that return the same values for GetCurrentMapContinent() and GetCurrentMapZone() as the zone they are located in. Is there a way to tell if the current map is the actual zone map or one of these other maps?
  Reply With Quote
12-19-12, 10:15 AM   #2
Voyager
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 22
Check the 4th and 5th result of GetMapInfo().
  Reply With Quote
12-19-12, 12:55 PM   #3
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
IsMicroDungeon is the fourth return value from GetMapInfo.

Lua Code:
  1. local _, _, _, isMicroDungeon = GetMapInfo()
  2. if isMicroDungeon then
  3.   -- it's a micro dungeon
  4. end

Last edited by semlar : 12-19-12 at 12:57 PM.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Detecting Underground Maps

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off