WoW macro - how to check where you are?

You can create a macro to chosese between smimming and flying mounts:
/use [flyable] FlyMount
/use [swimming] SwimMount
/dismount [mounted]
But some mounts are allowed only in specific area. For example, Vashj'ir. If I'm out of Vashj'ir, then even if I'm swimming I want to mount a FlyMount, since it has some use (I can fly out of water). Is there a way to do it?
Best Answer
You could probably add a modifier to that macro:
/use [flyable] Invincible
/use [swimming][mod:alt] Sea turtle; Invincible
/dismount
This should mount sea turtle with no mod pressed while swimming and with alt pressed while swimming should mount Invincible. I am at work so I cannot test if it works but I don't see why it wouldn't work.
Pictures about "WoW macro - how to check where you are?"



How do you use macros in WoW?
You can select any icon from the icons present in the game. After selecting a name and an icon, you can drag the macro from the Macro Screen to your action bars to use it when you hit a keybind, like a normal spell. The next step is to write your macro!Are macros Bannable in WoW?
In other words: yes, this will indeed get you banned if you're caught, because you're relying on casting multiple spells with a single keypress, which cannot be done using the in-game macro system.How do I make a target macro?
With macros, these commands can be used from action buttons, and many of them can be used at once. Each unique command goes on its own line and is written exactly as it would be typed it in the chat box....Making a macroHOW TO CREATE GREAT MACROS - MY MACROS EXPLAINED! WORLD OF WARCRAFT MACRO GUIDE
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Karolina Grabowska, Karolina Grabowska, Donald Tong, Karolina Grabowska