Page 1 of 1

Quick Help with a macro

PostPosted: Wed Sep 23, 2015 5:12 pm
by Franjean
So, I'm at work and mulling over some possible macros for my warrior. I'm thinking I'd like a macro that changes stances, actionbars and equipment. Here's what I have so far.

Code: Select all
/cast Battle Stance;
/script CURRENT_ACTIONBAR_PAGE = 1;
/script ChangeActionBarPage();
/itemrack equip 1


Questions:

1. Will this work as written?
2. Is there a way to exclude the last line using IsShiftKeyDown()? Maybe putting /script IsShiftKeyDown() end; before it?

My thought process here; I really like using the fewest buttons as possible, but want the macros to be intelligant (not button mashing, but me using modifiers to decide what gets cast). So rather than writing macros based on Stance (GetShapeshiftFormInfo(1)) AND then setting modifiers in each one, I can have 3 that change stances/actionbars and build the macros with just the modifier options.

SIDE NOTE QUESTIONS:
1. Is there a way for a macro to check what I already have equipped (live server macro would be [equipped:Fishing Pole] for example)?
2. Is there a way for the macro to show what would be cast? SuperMacros doesn't seem to be doing it.

Re: Quick Help with a macro

PostPosted: Thu Sep 24, 2015 7:48 am
by LYQ
if you want to check wether shift was pressed before using itemrack to do something you need to dig into the chat command handler from itemrack itself, and look which function it calls with the comment you mentioned and call the function with the parameter 1 directly in your macro

Re: Quick Help with a macro

PostPosted: Fri Sep 25, 2015 9:56 pm
by Franjean
I realized that because I was using Bongos that it wouldn't change my action bar as expected. Turns out, the main bar already does that, so I don't really need this macro at all.

Is there any check for an equipped weapon type? Or any addon that shows what would be cast on the bar (right now in SuperMacro, it only shows the first spell, regardless if it would cast.

Thanks for all your help