WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Macro Help (https://www.wowinterface.com/forums/forumdisplay.php?f=140)
-   -   Macro to open the map on a specific zone (https://www.wowinterface.com/forums/showthread.php?t=59819)

Rienwe 03-11-24 04:06 AM

Macro to open the map on a specific zone
 
I'd like a macro that open my map on Stormwind, is it possible?

EDIT: ok so I was able to find the infos. here is the macro:

/run if not WorldMapFrame:IsVisible() then ToggleWorldMap() end local t={84} mIdX=(mIdX or 0)%#t+1 WorldMapFrame:SetMapID(t[mIdX])

84 is the stormwind map, and to switch to other zones in a loop just add ",21, 47, 557" after 84 for example.

/run if not WorldMapFrame:IsVisible() then ToggleWorldMap() end local t={84,21, 47, 557} mIdX=(mIdX or 0)%#t+1 WorldMapFrame:SetMapID(t[mIdX])

here are the numbers for the zones:
https://wowpedia.fandom.com/wiki/UiMapID


All times are GMT -6. The time now is 09:09 PM.

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