For those of you that like to use one button for their mounting in Northrend. If the area is an area that you are not allowed to fly in, it will mount you on your ground mount. If the area allows flying, you will be put on your flying mount! Passed on from a friend.
/script if (((GetZoneText()=="Dalaran") and (GetSubZoneText() ~="Krasus' Landing")) or (GetZoneText()=="Wintergrasp") or not IsFlyableArea()) then CallCompanion("MOUNT",1) else CallCompanion("MOUNT",3) end
/dismount [mounted]
("MOUNT",1) is for your ground mount. The value 1 is equal to the number of your mount in the pets tab from left to right, up to down. ("MOUNT",3) is your flying mount!