Macro Efficiency
I've made a macro below that uses either my ground or flying mount depending on the area and it took just about the entire 255 characters so I was wondering if anyone knew any tips or tricks to condense it so I could learn for future cases.
My code: Lua Code:
|
My mount macro consists of this..
Lua Code:
|
Wow I didn't know you could do it that way, that's interesting.
|
Quote:
Code:
/userandom [nomod:alt,flyable] mount1, mount2 |
semlar gave you the best way but if you still wanted to see your original method shrunk a bit for educational purposes:
Code:
/run local f,p=IsFlyableArea(),"MOUNT" |
Thanks Vrul, that is helpful, declaring both variables at once makes much more sense.
|
One of the things that annoys me the most, is not having the appropriate mount at the press of a button, so I made this macro to limit that problem as much as possible.
This is that superawesome macro - weighing in at 248 characters. Code:
/cast [swimming,mod:shift,nomounted][swimming,noflyable,nomounted] Sea Turtle;[swimming,mod:alt] Abyssal Seahorse;[flyable,nomod,nomounted] [swimming,flyable,nomod]Icebound Frostbrood Vanquisher; [nomounted] Mechano-Hog; If you are swimming, and can fly - pushing it will cast the flying mount If you are swimming, and can fly - shift-clicking will cast the sea turtle, and alt will cast the seahorse if you are swimming and can't fly, pushing it will cast the sea turtle (and alt will cast the seahorse) if you aren't swimming, and can fly - it will cast the flying mount if you aren't swimming, can fly, and hit any modifier key, it will cast the ground mount if you aren't swimming and can't fly, it will cast the ground mount if you are mounted, it will dismount you. The "#show Smoke Bomb" part is just to get rid of the question mark when mounted, that can be substituted for any other icon, or even removed. |
All times are GMT -6. The time now is 01:54 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI