Quick Help with a macro

Quick Help with a macro

by Franjean » Wed Sep 23, 2015 5:12 pm

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.
Franjean
Tester
 

Re: Quick Help with a macro

by LYQ » Thu Sep 24, 2015 7:48 am

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
LYQ / Virose
Talentsaver (viewtopic.php?f=63&t=15429) - Totemtimers Enhanced (viewtopic.php?f=63&t=24422)
NostalriusAcceptTrade (viewtopic.php?f=63&t=31729)
User avatar
LYQ
Sergeant Major
Sergeant Major
 

Re: Quick Help with a macro

by Franjean » Fri Sep 25, 2015 9:56 pm

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
Franjean
Tester
 


Return to Addons & macros

cron