Macro help

Sorry, I recently returned from a long hiatus, and feel sort of noobish for asking but searching hasn’t found the explanation I seek.

Whats up with the macro changes? I used to use a variety of priority based cast sequence macros similar to this in 5.0:


    #show Avenger's Shield
    /castsequence reset=0.3 1,2,3,4,Judgment
    /castsequence reset=0.3 1,2,3,Consecration
    /castsequence reset=0.3 1,2,Avenger's Shield
    /castsequence reset=0.3 1,Crusader Strike
    /castsequence reset=0.3 Hammer of Wrath

These macros no longer function as written, is there a way to rewrite these so that they would continue to work. I do not want a strict 1-2-3-4 linear progression macro. I’d also like to avoid an addon requirement. This macro worked wonderfully as it would line skip if an item was on cooldown (it also casts from the bottom up)

Scripts such as this are disabled now. The only real way to get a priority type system is with the Gnome Sequencer addon or highly complicated swap bar macro. The priority above is off anyway. Try this with the gnome sequencer addon.

Sequences['Prot'] = {
StepFunction = [[
	limit = limit or 1
	if step == limit then
		limit = limit % #macros + 1
		step = 1
	else
		step = step % #macros + 1
	end
]],
PreMacro = [[
/console Sound_EnableSFX 0
/targetenemy [noharm][dead]
]],
	'/castsequence Sacred Shield,Judgment,Judgment,Judgment,Judgment',
	'/cast [nomod] Crusader Strike',
	'/cast [mod] Hammer of the Righteous',	
	'/cast Holy Wrath',
	"/cast Avenger's Shield",
	'/cast [@player] Holy Prism',
	'/cast Hammer of Wrath',
	'/cast Consecration',
PostMacro = [[
/cast Shield of the Righteous
/cast Divine Protection
/startattack
/script UIErrorsFrame:Hide();
/console Sound_EnableSFX 1
]],
}

[quote quote=19278]Sorry, I recently returned from a long hiatus, and feel sort of noobish for asking but searching hasn’t found the explanation I seek.

Whats up with the macro changes? I used to use a variety of priority based cast sequence macros similar to this in 5.0:


    #show Avenger's Shield
    /castsequence reset=0.3 1,2,3,4,Judgment
    /castsequence reset=0.3 1,2,3,Consecration
    /castsequence reset=0.3 1,2,Avenger's Shield
    /castsequence reset=0.3 1,Crusader Strike
    /castsequence reset=0.3 Hammer of Wrath

These macros no longer function as written, is there a way to rewrite these so that they would continue to work. I do not want a strict 1-2-3-4 linear progression macro. I’d also like to avoid an addon requirement. This macro worked wonderfully as it would line skip if an item was on cooldown (it also casts from the bottom up)

[/quote]

There are TWO ways to ‘macro’ now…

  1. Macro Toolkit - using /swapactionbar method --> see example
  2. Gnome Sequencer - using Gnome Sequencer Addon --> see example

There is also a discussion on which method gives more control / dps here…

Thanks for the help guys. I ended up going with gnome sequencer with this set up:

Sequences['ProtPST'] = {
StepFunction = [[
	limit = limit or 1
	if step == limit then
		limit = limit % #macros + 1
		step = 1
	else
		step = step % #macros + 1
	end
]],
PreMacro = [[
/console Sound_EnableSFX 0
/targetenemy [noharm][dead]
]],
	'/castsequence !Seal of Truth, null',
	'/castsequence Sacred Shield,Judgment,Judgment,Judgment,Judgment',
	'/cast Crusader Strike',	
	'/cast Holy Wrath',
	"/cast Avenger's Shield",
	'/cast [@player] Holy Prism',
	'/cast Hammer of Wrath',
	'/cast Consecration',
PostMacro = [[
/cast Shield of the Righteous
/cast Divine Protection
/startattack
/script UIErrorsFrame:Hide();
/console Sound_EnableSFX 1
]],
}

And this:

Sequences['ProtPAOE'] = {
StepFunction = [[
	limit = limit or 1
	if step == limit then
		limit = limit % #macros + 1
		step = 1
	else
		step = step % #macros + 1
	end
]],
PreMacro = [[
/console Sound_EnableSFX 0
/targetenemy [noharm][dead]
]],
	'/castsequence !Seal of Righteousness, null',
	'/castsequence Sacred Shield,Judgment,Judgment,Judgment,Judgment',
	'/cast Hammer of the Righteous',	
	'/cast Holy Wrath',
	"/cast Avenger's Shield",
	'/cast [@player] Holy Prism',
	'/cast Hammer of Wrath',
	'/cast Consecration',
PostMacro = [[
/cast Shield of the Righteous
/cast Divine Protection
/startattack
/script UIErrorsFrame:Hide();
/console Sound_EnableSFX 1
]],
}

I decided to forgo the use of mod keys for aoe and use it as a seperate key for 2 reasons:

  1. I use a gaming mouse and the mod keys only seem to work with KB presses (not even button bound key presses)
  2. I added the additional seal switch lines, and it functions simply.