What is wrong in this macro?

What is wrong in this macro?

by Greengrass » Wed Sep 02, 2015 12:34 pm

/run local x = IsShiftKeyDown(); if x == nil then CastSpellByName("Seal of Command(Rank 3)") else CastSpellByName("Seal of Command(Rank 1)"); end;


Is it possible to make this macro workable?
Greengrass
Sergeant
Sergeant
 

Re: What is wrong in this macro?

by Aunstic » Wed Sep 02, 2015 2:51 pm

You forgot a semi-colon after Seal of Command r3.
/run local x = IsShiftKeyDown;if(x == nil) then CastSpellByName("Seal of Command(Rank 3)"); else CastSpellByName("Seal of Command(Rank 1)");end;
Image
User avatar
Aunstic
Knight-Lieutenant
Knight-Lieutenant
 

Re: What is wrong in this macro?

by Geigerkind » Wed Sep 02, 2015 3:25 pm

Those shouldnt be required^^

Try this:

/run if (IsShiftKeyDown()) then CastSpellByName("Seal of Command(Rank 1)") else CastSpellByName("Seal of Command(Rank 3)") end

That should work
My Addons:
DPSMate - A combat analyzation tool (/viewtopic.php?f=63&t=38042)
Vanilla Consolidated Buff-Frames (/viewtopic.php?f=63&t=18189)
Modified Power Auras (/viewtopic.php?f=63&t=18251)
User avatar
Geigerkind
Senior Sergeant
Senior Sergeant
 


Return to Addons & macros