Help with a macro

Re: Help with a macro

by FlashyBR » Wed Sep 16, 2015 3:30 pm

Coreborn wrote:There is a better way than using macros for castsequenses.
http://wow.curseforge.com/addons/project-254/


Hmm, seens pretty nice, im already using autoattack addon that automatically use the attacks and heals, but it don't do the seal swap :x

Ill test this later, thx for the tip :D
FlashyBR
Grunt
Grunt
 

Re: Help with a macro

by FlashyBR » Wed Sep 16, 2015 6:24 pm

LYQ wrote:yeah sure that would work

try that

/run AttackTarget() if ind == nil then ind=1 end if (ind==1) then CastSpellByName("Seal of Righteousness") ind=ind+1 elseif (ind==2) then CastSpellByName("Judgement") ind=ind+1 elseif (ind==3) then CastSpellByName("Seal of the Crusader") ind=1 end

I corrected another error you were making
there is a difference between "elseif" and "else if"

eg.

if something then
-- it's something
elseif somethingelse then
-- it's somethingelse, it can not be something
else
-- it's something completely other
-- if not something or somethingelse this code will always run
if somethingelseelse then
-- it's not something, not somethingelse but it's somethingelseelse :D
end
end
if you get what I mean with that (wanna be-)simple example.

liong story short: you were using "else if" but you meant "elseif"
:D



Your macro is working perfectly, thanks alot :D


Only one thing, have some syntax to negate ? Because i need to check if the char is already attacking, because in the macro when it end the last action, if i need to use again Judgement it execute the startAttack and the char stop attacking the target, so i need something like this:

Code: Select all
If !/not attacking then startAttack(); end ...the rest of the code...
FlashyBR
Grunt
Grunt
 

Re: Help with a macro

by LYQ » Wed Sep 16, 2015 6:41 pm

you can add this to your macro, while 1 being the number of the "Attack" (autohit) Spell in your actionbars.
(more info on the numbers http://wowwiki.wikia.com/wiki/ActionSlot eg here)
/run if not IsCurrentAction(1) then UseAction(1) end
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: Help with a macro

by FlashyBR » Wed Sep 16, 2015 6:50 pm

LYQ wrote:you can add this to your macro, while 1 being the number of the "Attack" (autohit) Spell in your actionbars.
(more info on the numbers http://wowwiki.wikia.com/wiki/ActionSlot eg here)
/run if not IsCurrentAction(1) then UseAction(1) end



Hmm, ok, now im using the addon coreborn suggested, but was good to know anyway for future macros, thanks alot :D
FlashyBR
Grunt
Grunt
 

Previous

Return to Addons & macros