WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   How to know map phase (https://www.wowinterface.com/forums/showthread.php?t=56887)

maqjav 12-12-18 08:37 AM

How to know map phase
 
Hello.

Since the beggining of BFA and the new map API, I can't tell which version of a map I'm seeing. For example, in Silithus there is the old map version and the Legion version, but both of them share the same MAPID. I cannot find any function that will help me to know in which phase I'm at the moment.

Thanks!

Nimhfree 12-14-18 09:45 PM

The way I detect the "phase" of the map is I check for a buff given by Zidormi. If you have the buff you are time traveling back to the old "phase". Note there are a few zones that have Zidormi, but I have found that I cannot do the same trick in Dustwallow Marsh since no buff seems to be applied.

maqjav 12-15-18 01:38 AM

Quote:

Originally Posted by Nimhfree (Post 331032)
The way I detect the "phase" of the map is I check for a buff given by Zidormi. If you have the buff you are time traveling back to the old "phase". Note there are a few zones that have Zidormi, but I have found that I cannot do the same trick in Dustwallow Marsh since no buff seems to be applied.

That's a smart solution. Does it apply the same way for alts? I mean, if you are playing with a level 60 at Silithus, I guess that you won't be able to see Zidormi, right?

I cannot believe that Blizzard didn't think of a solution for this simple and more often common problem.

Talyrius 12-18-18 10:47 AM

The map phase can be ascertained by evaluating the mapArtID:
Lua Code:
  1. local mapArtID = C_Map.GetMapArtID(mapID)

If you're unfamiliar with mapIDs and how they're obtained, this should help.

maqjav 12-23-18 01:27 AM

That's exactly what I was looking for! Thank you!


All times are GMT -6. The time now is 07:12 AM.

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