Code:
#showtooltip
/cast [noform]Moonkin Form;[stance5,indoors]Cat Form;[stance5,outdoors]Travel Form
Will go to Moonkin Form (anywhere) if you don't have a form (caster)
If you are in Moonkin Form + Indoors it will go to Cat Form
If you are in Moonkin Form + Outdoors it will cast Travel Form (PTR+WoD use the unified travel forms system)
If you are in Cat Form the macro will unshift you first and the next press will take you in Moonkin Form.
If you are in any mode of the Travel Form the macro will unshift you first and the next press will take you in Moonkin Form.
the above "cons" of the macro might affect negatively your dps if you are using the macro in raids so I made another one as well
Code:
#showtooltip
/use [noform][form:1][form:2][form:3]Moonkin Form;[form:5,indoors]Cat Form;[form:5,outdoors]Travel Form
Same as above but it allows you to enter Moonkin form immediately from any form (or no form).
Only difference of the 2 macros is that the first allows Cat Form <-> Travel Form immediately if you change environments but loses a global when going to Moonkin form from those affecting DPS. The second allows for instant Moonkin Form but you can't do the Cat Form <-> Travel Form as it introduces a Moonkin form cast in between. Still dynamic as far as environments go, just with extra cast in between to prevent lost globals in raids.