WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   Detecting Underground Maps (https://www.wowinterface.com/forums/showthread.php?t=45479)

bsmorgan 12-19-12 10:08 AM

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?

Voyager 12-19-12 10:15 AM

Check the 4th and 5th result of GetMapInfo().

semlar 12-19-12 12:55 PM

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


All times are GMT -6. The time now is 08:35 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI