What I'd like is to turn maul off for a duration of a fight, if I want. So that for some fight I could just maul to my heart's content, but for another I could choose to do it if I wanted. The problem here is that there's no capslock type of system. I can't just press a button and have it 'held' without programmable keyboards. What to do?
Well, if you're sarf from EJ, you hack the bastard instead and you write a macro that rewrites another macro. Which is a brilliant idea. I had to modify his initial crack at it and mine's not nearly as elegant, but it does work.
/run if not InCombatLockdown() then local i=GetMacroIndexByName ("Ma") local mt=GetMacroBody(i) local a=strlen(mt) local v="/cast Mangle" if a < 15 then mt=v.."\n/cast !Maul" else mt=v end local n,t,_,l=GetMacroInfo(i) EditMacro(i,n,t,mt,l,1) end
With the other macro called 'Ma' being this:
/cast mangle
What this does is the following:
checks to see whether you're in combat. (you can't modify macros in combat).
Gets the macro that's called 'Ma'. This looks for a macro called Ma and grabs info about it. It's important that you have this macro already.
gets the length of that macro
if the length is smaller than the extended version, make the macro's text be:
/cast Mangle
/cast !Maul
Otherwise, make it be:
/cast Mangle
Then edit the macro 'Ma' to say whatever you said above.
Connect With Us