Gnome Sequencer not working @(((

Hi ive read all the guides, watched all the vids here and still no luck!

Im downloading the file, copying the file in it, adding the ones I have copy and pasted from these forums, saved the files, copied and pasted the whole Gnome Sequencer in to my addons file, but I just cant get it to work.

Now the Gnome Sequencer is showing in my addons list, just when I make the blank macro and hit the button, nothing happens…

Help please, as its driving me bonkers!

most likely theres something wrong with the macro youre pasting. if your copying it without the code format ’ is wrong.

Also, I have seen… for Mac users anyway, that text edit messes up the formatting. For windows users they suggest using Notepad++ … But for mac users, there is a free app on the app store called “TextWrangler.” It’s great and works perfect. I had your same issue when I first started and it all came down to the program/application I was using to open the .lua file.

Hope that Helps!

Send me a link to your sequence file or zip your entire gnome sequence folder and send it to me I will look at it.

BTW saving with Shift Apple T will save text files on a mac as plain text w/o the need for text wrangler.

You did not say if you were on OS X or Windows, but the most common problem I see in windows is that people name the file Sequences.lua.lua because the actual file extension is hidden by default on Windows installations. Try naming it simply Sequences and not Sequences.lua and see if that fixes it (or show extensions of known file types and see if you have it names sequesnces.lua.lua and deleting a .lua)

Im on windows 7 Ultimate. ill post my file here. thanks guys. I use Notepad ++ also. I had already tried renaming it to just Sequences as it shows as Sequences.lua.lua in notpad ++.

Failed to load Sequences.lua or contains no macros, create the file from ExampleSequences.lua and restart the game.Is what I get everytime I load the game.

local _, Sequences = … – Don’t touch this


– Rename this file to Sequences.lua before you get started, it uses a different file name so as not to overwrite your existing file with a future update.
– Every entry in the Sequences table defines a single sequence of macros which behave similarly to /castsequence.
– Sequence names must be unique and contain no more than 16 characters.
– To use a macro sequence, create a blank macro in-game with the same name you picked for the sequence here and it will overwrite it.


– Here’s a large demonstration sequence documenting the format:
Sequences[“GnomeExample1”] = {
– StepFunction optionally defines how the step is incremented when pressing the button.
– This example increments the step in the following order: 1 12 123 1234 etc. until it reaches the end and starts over
– DO NOT DEFINE A STEP FUNCTION UNLESS YOU THINK YOU KNOW WHAT YOU’RE DOING
StepFunction = [[
limit = limit or 1
if step == limit then
limit = limit % #macros + 1
step = 1
else
step = step % #macros + 1
end
]],

-- PreMacro is optional macro text that you want executed before every single button press.
-- This is if you want to add something like /startattack or /stopcasting before all of the macros in the sequence.
PreMacro = [[

/run print("-- PreMacro Script --")
/startattack
]],

-- PostMacro is optional macro text that you want executed after every single button press.
-- I don't know what you would need this for, but it's here anyway.
PostMacro = [[

/run print("-- PostMacro Script --")
]],

-- Macro 1
[[

/run print(“Executing macro 1!”)
/cast SpellName1
]],

-- Macro 2
[[

/run print(“Executing macro 2!”)
/cast SpellName2
]],

-- Macro 3
[[

/run print(“Executing macro 3!”)
/cast SpellName3
]],
}


– Here is a short example which is what most sequences will look like
Sequences[“GnomeExample2”] = {
– Macro 1
[[
/run print(“Executing macro 1!”)
/cast SpellName1
]],

-- Macro 2
[[

/run print(“Executing macro 2!”)
/cast SpellName2
]],

-- Macro 3
[[

/run print(“Executing macro 3!”)
/cast SpellName3
]],
}
Sequences[“Ret”] = {
PreMacro = [[
/targetenemy [noharm][dead]
]],
‘/cast Judgment’,
‘/cast Crusader Strike’,
‘/cast Exorcism’,
‘/cast !Avenging Wrath’,
‘/cast !Execution Sentence’,
“/cast Templar’s Verdict” ,
‘/cast Hammer of Wrath’,
PostMacro = [[
/use [combat]13
/use [combat]14
]],
}

Sequences[“RetAOE”] = {
PreMacro = [[
/targetenemy [noharm][dead]
]],
‘/cast Judgment’,
‘/cast Hammer of the Righteous’,
‘/cast Exorcism’,
‘/cast !Avenging Wrath’,
‘/cast !Execution Sentence’,
“/cast Templar’s Verdict” ,
‘/cast Hammer of Wrath’,
PostMacro = [[
/use [combat]13
/use [combat]14
]],
}

nevermind, for some reason today it all worked >.>

Really appreciate all the help you guys gave anyhow.

Hello all,

I am having the same problem that Tony was having. I’ve loaded the full GS folder into my ‘addons’ folder–renamed the Example file to Sequences.lua–copy and pasted a macro for a ‘BloodDK’ into the file using notepad++ and then created a new macro in-game using the exact same name BloodDK.

GnomeSequencer shows up in-game in my addons.

When I hit ‘save’ on the macro nothing happens. No error and no population of anything into the macro text field such as #showtooltip BloodDK. It just remains blank. What am I missing? Im pulling my hair out!

Thanks

1 Like

The sequence file must be names Sequences.lua the addon will ignore any other file names when looking for sequences.

I make the same offer. Send me your sequences file or your entire folder and I will look at it, but it is likely that the sequences file is simply misnamed.

Guys i have the exact same issue with GS. I rename it to Sequences.lua. It shows up in game under my add on list. When I make the new macro, it remains blank. I get no message populated in the macro box. This is what im trying to run.

local _, Sequences = … – Don’t touch this

Sequences[‘H1?] = {
‘/cast A Murder of Crows’,
‘/cast Bestial Wrath’,
‘/cast Kill Shot’,
‘/cast Glaive Toss’,
‘/cast Kill Command’,
‘/cast Arcane Shot’,
‘/cast Dire Beast’,
‘/cast Blood Fury’,
‘/cast Cobra Shot’,
‘/startattack’,
}
Sequences[‘H2?] = {
‘/cast A Murder of Crows’,
‘/cast Cobra Shot’,
‘/cast Kill Shot’,
‘/cast Glaive Toss’,
‘/cast Multi-Shot’,
‘/cast Bestial Wrath’,
‘/cast Dire Beast’,
‘/startattack’,
}
Sequences[‘P1?] = {
‘/cast Judgment’,
‘/cast Crusader Strike’,
‘/cast Exorcism’,
‘/cast Hammer of Wrath’,
‘/cast ‘,
‘/cast ‘,
‘/cast ‘,
‘/startattack’,
}
Sequences[‘P2?] = {
‘/cast Judgment’,
‘/cast Hammer of the Righteous’,
‘/cast Exorcism’,
‘/cast Hammer of Wrath’,
‘/cast Divine Storm’,
‘/cast ‘,
‘/cast ‘,
‘/startattack’,
}
Sequences[‘PT1?] = {
‘/cast Judgment’,
‘/cast Hammer of the Righteous’,
‘/cast Consecration’,
‘/cast Hammer of Wrath’,
‘/cast Holy Wrath’,
‘/cast Sacred Shield’,
‘/cast Shield of the Righteous’,
‘/startattack’,
}
Sequences[‘DKTANK’] = {
‘/cast Icy Touch’,
‘/cast Bone Shield’,
‘/cast Death Strike’,
‘/cast Blood Boil’,
‘/cast Death Coil’,
‘/cast Anti-Magic Shell’,
‘/cast Vampiric Blood’,
‘/cast Outbreak’,
‘/cast Blood Fury’,
‘/startattack’,
}
Sequences[‘DKFROST’] = {
‘/cast Howling Blast’,
‘/cast Frost Strike’,
‘/cast Outbreak’,
‘/cast Pillar of Frost’,
‘/cast Anti-Magic Shell’,
‘/cast Death and Decay’,
‘/cast Plague Strike’,
‘/cast Blood Fury’,
‘/startattack’,
}

[quote quote=19655]Guys i have the exact same issue with GS. I rename it to Sequences.lua. It shows up in game under my add on list. When I make the new macro, it remains blank. I get no message populated in the macro box. This is what im trying to run.

local _, Sequences = … — Don’t touch this
[/quote]

Once again (It has been said 2 times already by me in this 10 post thread), if you are on Windows the default is to not be able to see your file extensions for known file types. Either disable this “feature” or rename the file Sequences.

If that doesn’t fix it send me your file it means you have another issue.

Do NOT post your sequences in this thread. Formatting is one of the problems encountered and cannot be seen when you post a sequence here. If you have a Working GS install and are having problems with a specific sequence post it in the relevant class forum.

I’m having this same issue when I start up wow. I get an error message saying, “Gnome Sequencer: Failed to load Sequences.lua or contains no macros, create the file from ExampleSequences.lua and restart the game.” How do i send you the file so you can check it?

Also of note the File is names Sequences.lua

My Sequencer has also stopped working. I was able to make macro’s just fine up till today. I made no changes to the working Secuences.lua but atm cannot make any macros with any of the code I put in.

A, Ryan send me your GnomeSequencer folders to me. PM me or contact me in game for my email address.

I am also having an issue with a new GS macro setup, May I send mine to you with whats going on?

I have replied to your PM, however your question is a common one:

See issue #8 in Common Issues with Gnome Sequencer Files The forums stylize single quotation marks thus when you copy and paste any macro from the forums it will paste in the wrong single quote and they must be replaced with standard single quotes

Robert you are a True Master of finding out our mistakes I have been a follower of WLM for a few years now and just joined today to see if I could get my Mage’s GS working aging by adding my comment and sending you the PM, He is back doing the LazzyMacro dance :slight_smile:

Thank you very much

Hello

I also just installed this addon and I cant get it to work I have unistalled it and reinstalled it. I am using macros from this site for my ret pally. I put the macros into the addon and do everthing that gnome says to do and when I go into the game I go to make a macro and puts nothing into the box???

plz help im going crazy

Tyler have you read Common Mistakes in Gnome Sequencer Files? Ret Pally makes me think it is issue #2, #7 or #8.

you need to edit sequences.lua with notepad ++ or it will not work you can download notepad++ for free when you have it downloaded right click on your sequences.lua and edit with notepad++ then drop your macros in and save them it will work now

Would you be willing to please take a look at mine?

local _, Sequences = ... -- Don't touch this

----
-- Rename this file to Sequences.lua before you get started, it uses a different file name so as not to overwrite your existing file with a future update.
-- Every entry in the Sequences table defines a single sequence of macros which behave similarly to /castsequence.
-- Sequence names must be unique and contain no more than 16 characters.
-- To use a macro sequence, create a blank macro in-game with the same name you picked for the sequence here and it will overwrite it.
----

----
-- Here's a large demonstration sequence documenting the format:
Sequences["GnomeExample1"] = {
	-- StepFunction optionally defines how the step is incremented when pressing the button.
	-- This example increments the step in the following order: 1 12 123 1234 etc. until it reaches the end and starts over
	-- DO NOT DEFINE A STEP FUNCTION UNLESS YOU THINK YOU KNOW WHAT YOU'RE DOING
	StepFunction = [[
		limit = limit or 1
		if step == limit then
			limit = limit % #macros + 1
			step = 1
		else
			step = step % #macros + 1
		end
	]],
	
	-- PreMacro is optional macro text that you want executed before every single button press.
	-- This is if you want to add something like /startattack or /stopcasting before all of the macros in the sequence.
	PreMacro = [[
/run print("-- PreMacro Script --")
/startattack	
	]],
	
	-- PostMacro is optional macro text that you want executed after every single button press.
	-- I don't know what you would need this for, but it's here anyway.
	PostMacro = [[
/run print("-- PostMacro Script --")
	]],
	
	-- Macro 1
	[[
/run print("Executing macro 1!")
/cast SpellName1
	]],
	
	-- Macro 2
	[[
/run print("Executing macro 2!")
/cast SpellName2
	]],
	
	-- Macro 3
	[[
/run print("Executing macro 3!")
/cast SpellName3
	]],
}

----
-- Here is a short example which is what most sequences will look like
Sequences["GnomeExample2"] = {	
	-- Macro 1
	[[
/run print("Executing macro 1!")
/cast SpellName1
	]],
	
	-- Macro 2
	[[
/run print("Executing macro 2!")
/cast SpellName2
	]],
	
	-- Macro 3
	[[
/run print("Executing macro 3!")
/cast SpellName3
	]],
}

--Shadow Priest--

--Glyphs: Mind Blast, Psychic Horror, Reflective Shield (which I sometimes swap for Weakend Soul)  Talents: 2-1-1-2-1-1-1 --

Sequences['ShadowST'] = {
StepFunction = [[
	limit = limit or 1
	if step == limit then
		limit = limit % #macros + 1
		step = 1
	else
		step = step % #macros + 1
	end
]],
PreMacro = [[
/targetenemy [noharm][dead]
/console Sound_EnableSFX 0
/cast [noform] !Shadowform
]],	
	'/cast [target=player]Power Word: Shield',
	'/use  13',
	'/cast Mind Blast',
	'/cast Devouring Plague',
	'/cast !Cascade',
	'/cast Mind Spike',
	'/cast Shadow Word: Death',
	'/cast Shadowfiend',
PostMacro = [[
/startattack
/cast Fear Ward
/script UIErrorsFrame:Hide();
/console Sound_EnableSFX 1
]],
}

Sequences['ShadowAOE'] = {
PreMacro = [[
/stopmacro [channeling:Mind Sear]
/console Sound_EnableSFX 0
/targetenemy [noharm][dead]
/cast [noform] !Shadowform
]],
    '/cast [target=player]Power Word: Shield',
    '/cast !Cascade',
    '/cast Shadowfiend',
    '/cast Fade',
    '/castsequence [nochanneling] reset=target Mind Sear',
PostMacro = [[
/startattack
/script UIErrorsFrame:Hide();
/console Sound_EnableSFX 1
]],
}

--Holy Priest--

--Glyphs: Prayer of mending, Deep Wells and whatever of your choice. DO NOT pick Circle of Healing. You will OOM Fast!  Talents 3132312 --

Sequences['HHeal'] = {
PreMacro = [[
/targetenemy [noharm][dead]
]],
	'/cast [target=mouseover] Prayer of Mending',
	'/cast [@target] Power Word: Solace',
	'/cast Cascade',
	"/cast !Circle of Healing",
	'/castsequence [target=mouseover,help]reset=target Renew,Heal,Heal',
PostMacro = [[
/startattack
/use [combat]13
/script UIErrorsFrame:Hide();
]],
}

Sequences['FHeal'] = {
PreMacro = [[
/targetenemy [noharm][dead]
]],
	'/cast [@target] Power Word: Solace',
	'/castsequence [target=mouseover,help] Flash Heal,Flash Heal,Flash Heal',
PostMacro = [[
/startattack
/use [combat]13
/script UIErrorsFrame:Hide();
]],
}

Sequences['AHeal'] = {
PreMacro = [[
/targetenemy [noharm][dead]
]],
	"/cast !Circle of Healing",
	'/cast [@target] Power Word: Solace',
	'/cast Cascade',
	'/castsequence [target=mouseover,help] reset=5 Prayer of Healing,Prayer of Healing,Prayer of Healing',
PostMacro = [[
/startattack
/use [combat]13
/script UIErrorsFrame:Hide();
]],
}

Sequences['HolyDPS'] = {
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 [nochanneling,@targettarget] reset=target/15 Power Word: Shield',
	'/castsequence [nochanneling,@target] reset=180 Shadowfiend',
	'/castsequence [nochanneling,@target]reset=target/18 Shadow Word: Pain, Power Word: Solace, Smite, Smite, Smite, Smite, Smite, Smite, Smite, Smite',
	'/cast [nochanneling] Power Word: Solace',
	'/cast [nochanneling] Smite',
	
	
PostMacro = [[
/use [nochanneling]13
/use [nochanneling]14
/script UIErrorsFrame:Hide();
/console Sound_EnableSFX 1
]],
}

--Disc Priest--

--Talents: 2322212 (Sometimes switching Mindbender to Power Word: Solace) Major Glyphs: Reflective Shield, Inquisitor, Smite (still switching between Smite and Penance, when i know I have to move a lot. Like in PvP situations Penance is better imo.)--

Sequences["ATONE"] = {
StepFunction = [[
limit = limit or 1
if step == limit then
limit = limit % #macros + 1
step = 1
else
step = step % #macros + 1
end
]],
PreMacro = [[
/console Sound_EnableErrorSpeech 0
/console Sound_EnableSFX 0
/stopmacro [channeling:Penance]
/targetenemy [noexists][noharm][dead]
]],
"/castsequence [nochanneling]reset=15/target !Shadow Word: Pain, !Holy Fire, Smite, Smite, Smite, Smite, Smite, Smite, Smite, Holy Nova",
"/castsequence [nochanneling]reset=target/combat !Holy Fire",
"/castsequence [nochanneling]reset=target/combat !Penance",
"/castsequence [nochanneling]reset=target/combat !Holy Fire, !Shadow Word: Pain",
-- "/castsequence [nochanneling]reset=18/target !Shadow Word: Pain",
"/castsequence [nochanneling]reset=target/combat !Smite",
"/castsequence [nochanneling],[nochanneling,@focus,exists,help],[nochanneling,@target,exists,help],[nochanneling,@targettarget,exists,help]reset=target/combat !Cascade",
"/castsequence [nochanneling,@player,mod]reset=target/combat !Cascade",
"/castsequence [nochanneling,@target,exists,harm],[nochanneling,@targettarget,exists,harm]reset=target/combat !Shadowfiend",
"/castsequence [nochanneling]reset=target/combat !Fade",
"/castsequence [nochanneling]reset=target/combat !Penance",
"/castsequence [nochanneling],[nochanneling,@focus,exists,help],[nochanneling,@target,exists,help],[nochanneling,@targettarget,exists,help]reset=target/combat !Power Word: Shield",
"/castsequence [nochanneling,@player,exists,help]reset=target/combat !Power Word: Shield",
"/castsequence [nochanneling]reset=target/combat !Holy Nova",
PostMacro = [[
/castsequence [nochanneling] !Archangel
/use [combat] !13
/use [combat] !14
-- /startattack
/castsequence [nochanneling,@player] !Power Word: Shield
/castsequence [nochanneling] !Holy Fire
/castsequence [nochanneling] !Shadowfiend
/script UIErrorsFrame:Hide();
/console Sound_EnableSFX 1
/console Sound_EnableSFX 1
/console Sound_EnableErrorSpeech 1
]],
}

-- Priest Discipline - Single Target -or- Tank Healing (Medium to High danger urgency.)--

Sequences["TankHealing"] = {
StepFunction = [[
limit = limit or 1
if step == limit then
limit = limit % #macros + 1
step = 1
else
step = step % #macros + 1
end
]],
PreMacro = [[
/console Sound_EnableErrorSpeech 0
/console Sound_EnableSFX 0
/stopmacro [channeling:Penance]
-- /target mouseover
-- /target Vivianne
/targetplayer [help][nodead]
]],
-- "/castsequence [nochanneling,@target,nodead]reset=10/target !Flash Heal, !Heal, !Flash Heal, Flash Heal, !Flash Heal, Flash Heal",
"/castsequence [nochanneling,@target,nodead]reset=10/target !Flash Heal, !Prayer of Mending, !Flash Heal, Flash Heal, !Flash Heal, Flash Heal",
-- "/castsequence [nochanneling]reset=target/combat !Flash Heal, !Prayer of Mending, !Flash Heal",
"/castsequence [nochanneling,@target,nodead]reset=9/target !Penance",
-- "/castsequence [nochanneling,@targettarget,nodead,harm]reset=target/combat !Holy Fire",
"/castsequence [nochanneling,@target,nodead]reset=target/combat !Power Word: Shield",
-- "/castsequence [nochanneling,@targettarget,nodead]reset=target/combat !Power Word: Shield",
"/castsequence [nochanneling,@target,nodead,talent:6/1]reset=target/combat !Cascade;[nochanneling,@target,nodead,talent:6/2]reset=target/combat !Divine Star;[nochanneling,@target,nodead,talent:6/3]reset=target/combat !Halo",
"/castsequence [nochanneling,@targettarget,combat,harm]reset=target/combat !Shadowfiend",
"/castsequence [nochanneling,mod]reset=target/combat !Fade",
"/castsequence [nochanneling,mod]reset=target/combat !Pain Suppression",
PostMacro = [[
/castsequence [nochanneling] !Archangel
/use [combat] !13
/use [combat] !14
-- /startattack
/script UIErrorsFrame:Hide();
/console Sound_EnableSFX 1
/console Sound_EnableErrorSpeech 1
]],
}

-- -- Priest Discipline - Focus Heal (Does not cast Flash Heal, used when no IMMEDIATE danger is present.) --

Sequences["FocusHealing"] = {
StepFunction = [[
limit = limit or 1
if step == limit then
limit = limit % #macros + 1
step = 1
else
step = step % #macros + 1
end
]],
PreMacro = [[

/console Sound_EnableErrorSpeech 0
-- /target Mouseover
]],
"/castsequence [nochanneling]reset=target/combat Heal,Heal,Heal,Heal,Heal",
"/castsequence [nochanneling,@target]reset=9 Penance",
"/castsequence [nochanneling,combat] !Shadowfiend",
"/castsequence [nochanneling,@target] !Power Word: Shield",
"/castsequence [nochanneling,@target] !Cascade",
-- 	"/castsequence [nochanneling,@target]reset=target/combat Divine Star",
"/castsequence [nochanneling] !Fade", 
PostMacro = [[
/castsequence [nochanneling] !Archangel
/use [combat]13
/use [combat]14
-- /startattack
/script UIErrorsFrame:Hide();
/console Sound_EnableSFX 1
/console Sound_EnableErrorSpeech 1
]],
}

-- -- Priest Discipline - Stationary AoE Healing-- 

Sequences["AOEHealing"] = {
StepFunction = [[
limit = limit or 1
if step == limit then
limit = limit % #macros + 1
step = 1
else
step = step % #macros + 1
end
]],
PreMacro = [[
/console Sound_EnableErrorSpeech 0
/console Sound_EnableSFX 0
/stopmacro [channeling:Penance]
-- /target mouseover
/castsequence [nochanneling]reset=120/combat !Power Infusion
]],
-- "/castsequence [nochanneling,@target]reset=target/combat !Prayer of Healing, Heal, !Prayer of Healing, Prayer of Healing, !Prayer of Healing",
"/castsequence [nochanneling,@target]reset=target/combat !Prayer of Healing, !Prayer of Mending, !Prayer of Healing, Prayer of Healing, !Prayer of Healing",
"/castsequence [nochanneling,@target]reset=9/target !Penance",
"/castsequence [nochanneling,@targettarget]reset=target/combat !Power Word: Shield",
-- "/castsequence [nochanneling,@player]reset=target/combat !Power Word: Shield",
"/castsequence [nochanneling,@target,nodead,talent:6/1]reset=target/combat !Cascade;[nochanneling,@target,nodead,talent:6/2]reset=target/combat !Divine Star;[nochanneling,@target,nodead,talent:6/3]reset=target/combat !Halo",
"/castsequence [nochanneling,@targettarget,combat,harm]reset=target/combat !Shadowfiend",
"/castsequence [nochanneling]reset=target/combat !Fade",
PostMacro = [[
/castsequence [nochanneling] !Archangel
/use [combat] !13
/use [combat] !14
-- /startattack
/script UIErrorsFrame:Hide();
/console Sound_EnableSFX 1
/console Sound_EnableErrorSpeech 1
]],
}

--Arcane Mage--

--Talents: Ice Flows Flameglow Ice Ward Cauterize Supernova Incanter’s Flow  Glyphs: Glyph of Arcane Explosion Glyph of Cone of Cold Glpyh of Arcane Power--

Sequences['Conserve'] = {
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]
]],
    '/cast [nochanneling] Arcane Missiles',
    '/cast [nochanneling] Supernova',
	'/castsequence [nochanneling] Arcane Blast,Arcane Blast,Arcane Blast,Arcane Blast,Arcane Barrage',
	
PostMacro = [[
/cast Presence of Mind
/cast Ice Ward
/startattack
/use [combat]13
/use [combat]14
/script UIErrorsFrame:Hide();
/console Sound_EnableSFX 1
]],
}
Sequences['Burn'] = {
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]
]],
    '/cast [nochanneling] Arcane Missiles',
    '/cast [nochanneling] Supernova',
	'/cast [nochanneling] Arcane Blast',
	
PostMacro = [[
/cast Presence of Mind
/cast Arcane Power
/cast Ice Ward
/startattack
/use [combat]13
/use [combat]14
/script UIErrorsFrame:Hide();
/console Sound_EnableSFX 1
]],
}
Sequences['Aoe'] = {
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]
]],
    '/cast [nochanneling] Arcane Missiles',
    '/cast [nochanneling] Supernova',
    '/cast [nochanneling] Cone of Cold',
	'/castsequence [nochanneling] Arcane Explosion,Arcane Explosion,Arcane Explosion,Arcane Explosion,Arcane Barrage',
	
PostMacro = [[
/cast Presence of Mind
/cast Ice Ward
/startattack
/use [combat]13
/use [combat]14
/script UIErrorsFrame:Hide();
/console Sound_EnableSFX 1
]],
}

--Fire Mage--

--2,3,3,2,1,1 major glyphs 1. ignite 2. inferno blast 3. regenerative ice--

Sequences['Fire'] = { 
PreMacro = [[
/targetenemy [noharm][dead]
]],	
	'/cast Fireball',
	'/cast Scorch',
	'/cast Living bomb',
	'/cast Pyroblast',
	'/cast Inferno Blast',
	'/cast Frostjaw',
	'/cast Mirror Image',
	
PostMacro = [[
/startattack
/use [combat]13
/use [combat]14
/cast [combat]Ice Barrier
/cast [combat]Blazing Speed
/cast [combat]Combustion

]],
}

--Frost Mage--

--3322231 --

Sequences['MageFrost'] = {
PreMacro = [[
/targetenemy [noharm][dead]
/console Sound_EnableSFX 0
]],
[[/cast [@focus]Ice Ward]],
[[/cast Ice Barrier]],
[[/castsequence reset=combat Frostbolt,Frostbolt,Frostbolt,Ice lance,Ice Lance]],
[[/castsequence reset=20 Ice Lance,Ice Lance,Frostfire Bolt]],
[[/cast Ice Nova]],
[[/cast Frozen Orb]],
[[/cast Comet Storm]],
[[/cast Icy Veins]],
PostMacro = [[
/use [combat]13
/use [combat]14
/startattack
/run UIErrorsFrame:Hide()
/console Sound_EnableSFX 1
]],
}

--Blood DK--

--Talents: 2313112 ; I use Runic Corruption Major: Outbreak*, Regenerative Magic, Raise Ally* Minor: Resilient Grip, Path of Frost --

Sequences['BloodDK'] = {
StepFunction = [[
		limit = limit or 1
		if step == limit then
			limit = limit % #macros + 1
			step = 1
		else
			step = step % #macros + 1
		end
	]],
    PreMacro = [[
/Cast Bone Shield
/Cast [combat] Anti-Magic Shell
/Cast [combat] Vampiric Blood
/Cast [combat] Dancing Rune Weapon
    ]],
    "/cast Death Strike",
    "/castsequence reset=combat Plague Leech, Outbreak, Rune Tap",
    "/castsequence reset=combat Outbreak, Death Coil, Death Coil, Death Coil, Outbreak",
    '/castsequence reset=combat Blood Boil, Blood Boil, Soul Reaper, Death Strike',
    '/castsequence reset=combat Blood Boil, Blood Boil, Blood Boil, Blood Boil, Soul Reaper, Death Strike',
	'/cast [talent:4/1] nullBlood Tab',
    PostMacro = [[
/cast [talent:4/1] nullBlood Tap
/TargetEnemy [noharm][dead]
/Use [combat] 13
/Use [combat] 14
/script UIErrorsFrame:Hide();
    ]],
}

--Frost DK--

--Plague Leech – Lichborne – Death’s Advance – Runic Corruption – Death Pact – Gorefiend’s Grasp – Necrotic Plague Major Glyphs Glyph of Blood Boil – Glyph of Icebound Fortitude – Glyph of Raise Ally Minor Glyphs Glyph of Tranquil Grip – Glyph of Army of the Dead – Glyph of Path of Frost--

Sequences["FDK"] = {
StepFunction = [[
		limit = limit or 1
		if step == limit then
			limit = limit % #macros + 1
			step = 1
		else
			step = step % #macros + 1
		end
	]],
    PreMacro = [[
/cast [combat] Pillar of Frost
    ]],
    "/castsequence Obliterate",
    '/castsequence Obliterate',
    '/castsequence Howling Blast,Howling Blast,Howling Blast',
    '/castsequence Frost Strike',
    '/castsequence Plague Leech',
    PostMacro = [[
/targetenemy [noharm][dead]
/script UIErrorsFrame:Hide();
    ]],
}

Sequences["FDK35Percent"] = {
StepFunction = [[
		limit = limit or 1
		if step == limit then
			limit = limit % #macros + 1
			step = 1
		else
			step = step % #macros + 1
		end
	]],
    PreMacro = [[
/cast [combat] Pillar of Frost
    ]],
    '/castsequence Soul Reaper',
    '/castsequence Obliterate',
    "/castsequence Obliterate",
    '/castsequence Howling Blast,Howling Blast,Howling Blast',
    '/castsequence Soul Reaper',
    '/castsequence Frost Strike',
    '/castsequence Frost Strike',
    '/castsequence Soul Reaper',
    '/castsequence Plague Leech',
    PostMacro = [[
/targetenemy [noharm][dead]
/script UIErrorsFrame:Hide();
    ]],
}

--Feral Druid--

--Talents: Feline Swiftness, Ysera’s Gift, Typhoon, Incarnation: King of the Jungle, Mighty Bash, Nature’s Vigil, Bloodtalons Glyphs: Ferocious Bite, Savage Roar--

--make sure you have shred ( the actual spell not the macro) on same button when in stealth so it shreds & jumps straight to the macro.--

Sequences['Shred'] = {
PreMacro = [[
/console Sound_EnableSFX 0
/targetenemy [noharm][dead]reset=target
/use [nostealth,nocombat]Prowl
/castsequence [stealth,nocombat]Rake
    ]],
	'/castsequence reset=target Rake,Shred,Shred,Shred,Rip,Rake,Shred,Shred,Shred,Shred,Rake,Ferocious Bite,Shred,Shred,Shred,Shred,Ferocious Bite,Shred',
	'/castsequence [combat] Thrash,Thrash,Maul,Maul,Thrash,Shred,Shred,Shred,Tiger’s Fury,Berserk',
PostMacro = [[
/startattack
/use [combat]Tiger’s Fury
/console Sound_EnableSFX 1
    ]],
}

Sequences['Feral25'] = {
PreMacro = [[
/console Sound_EnableSFX 0
/targetenemy [noharm][dead]reset=target
    ]],
    '/castsequence reset=target Rake,Shred,Shred,Shred,Shred,Ferocious Bite,Shred,Shred,Shred,Shred,Rake,Ferocious Bite,Shred,Shred,Shred,Shred,Ferocious Bite,Shred,Shred,Shred',
    '/cast Shred',
PostMacro = [[
/use [combat]Tiger’s Fury
/script UIErrorsFrame:Clear()
/startattack
/console Sound_EnableSFX 1
    ]],
}

Sequences['Swipe'] = {
PreMacro = [[
/console Sound_EnableSFX 0
/targetenemy [noharm][dead]reset=target
    ]],
	'/castsequence reset=combat Thrash, Thrash, Maul, Maul, Thrash,Ferocious Bite',
	'/cast Swipe',
PostMacro = [[
/use [combat]Tiger’s Fury
/script UIErrorsFrame:Clear()
/startattack
/console Sound_EnableSFX 1
    ]],
}

--Feral Druid PVP--

--Talents: 3132323--

Sequences['FeralOpener'] = {
PreMacro = [[
/targetenemy [noharm][dead]
]],
'/cast Incarnation: King of the Jungle',
'/castsequence reset=target Rake',
'/cast Shred',
'/castsequence reset=10 Shred, Shred, Shred, Ferocious Bite',
PostMacro = [[
/cast Berserk
/use Draenic Agility Potion
/cast Tiger's Fury
/run UIErrorsFrame:Clear()
]],
}
Sequences['Shredwayz'] = {
PreMacro = [[
/targetenemy [noharm][dead]
/use [noform:2]Cat Form
/cast [nostealth,nocombat] Prowl
/cast [stealth] rake
]],
'/castsequence [combat,nostealth]reset=target Rake,Shred,Shred,Rip,Rake,Shred,Shred,Ferocious Bite,Rake,Shred,Shred,Rip,Rake,Shred,Shred,Savage Roar',
PostMacro = [[
/use [combat,nostealth]Tiger's Fury
/cast Wild Charge
/startattack [combat,nostealth]
/script UIErrorsFrame:Hide();
]],
}

--Guardial Druid--

--Talents: 3,1,3,1,3,2,2 Major Glyphs: Barkskin, Fae Silence, Maul Minor Glyphs: Aquatic Form, Travel, Grace--

Sequences['GuardianST'] = {
StepFunction = [[
	limit = limit or 1
	if step == limit then
		limit = limit % #macros + 1
		step = 1
	else
		step = step % #macros + 1
	end
]],
PreMacro = [[
/targetenemy [noharm][dead]
/cast [combat] Wild Charge
/cast [combat] Berserk
/cast [combat] Barkskin
]],
	'/castsequence reset=combat Mangle,Lacerate,Mangle,Lacerate,Mangle,Lacerate',
	'/castsequence reset=combat Mangle,Thrash,Maul,Lacerate,Lacerate,Lacerate,Mangle,Thrash,Maul',
	'/cast [nochanneling] Mangle',
	'/cast [nochanneling] Lacerate',
	'/cast [nochanneling] Pulverize',
	'/cast [nochanneling] Maul',
	'/cast [nochanneling] Thrash',
	'/cast [nochanneling] Pulverize',
	'/cast [nochanneling] Barkskin',
	'/cast [nochanneling] Mangle',
[[/console autounshift 0
/cast [@player,combat]Healing Touch
/console autounshift 1]],
PostMacro = [[
/startattack
/cast Savage Defense
/use [combat]13
/use [combat]14
]],
}

Sequences['GuardianAOE'] = {
StepFunction = [[
	limit = limit or 1
	if step == limit then
		limit = limit % #macros + 1
		step = 1
	else
		step = step % #macros + 1
	end
]],	
PreMacro = [[
/targetenemy [noharm][dead]
/cast [combat] Wild Charge
/cast [combat] Berserk
/cast [combat] Barkskin
]],
	'/castsequence [nochanneling] reset=combat Mangle,Thrash,Thrash,Mangle,Maul,Maul',
	'/cast Mangle',
	'/cast Thrash',
	'/cast Maul',
	'/cast Mangle',
	'/cast Thrash',
	'/cast Maul', 
	'/cast Savage Defense',
	'/cast Frenzied Regeneration',
[[/console autounshift 0
/cast [@player,combat]Healing Touch
/console autounshift 1]],
PostMacro = [[
/startattack
/cast Savage Defense
/cast 
/use [combat]13
/use [combat]14
]],
}

--Beast Master Hunter--

--Talents: 3,1,2,2,1,3,3 Major Glyphs: Deterrence, Liberation, Animal Bond Minor Glyphs: Aspect of the Cheetah, Aspect of the Pack, Play Dead--

Sequences['BeastST'] = {
StepFunction = [[
	limit = limit or 1
	if step == limit then
		limit = limit % #macros + 1
		step = 1
	else
		step = step % #macros + 1
	end
]],
PreMacro = [[
/targetenemy [noharm][dead]
]],
	
	'/castsequence [nochanneling] reset=20 !Barrage,!Barrage,!Barrage',
	'/cast [nochanneling] !A Murder of Crows',
	'/castsequence [nochanneling] reset=20 !Barrage,!Barrage,!Barrage',        
	'/castsequence [nochanneling] reset=combat Cobra Shot,Cobra Shot,Cobra Shot',
	'/cast [nochanneling] Bestial Wrath',
	'/cast [nochanneling] Kill Command',
	'/cast [nochanneling] Kill Shot',
	'/cast [nochanneling] Dire Beast',
	'/cast [nochanneling] Focus Fire',
	'/cast [nochanneling] Concussive Shot',
	'/cast [nochanneling] Bestial Wrath',
	'/cast [nochanneling] Kill Command',
	'/cast [nochanneling] Kill Shot',
	'/cast [nochanneling] Dire Beast',
	'/cast [nochanneling] Focus Fire',	
PostMacro = [[
/startattack
/petattack
/cast [combat] Dire Beast
/use [combat]14
/script UIErrorsFrame:Clear()
]],
}

Sequences['BeastAOE'] = {
StepFunction = [[
	limit = limit or 1
	if step == limit then
		limit = limit % #macros + 1
		step = 1
	else
		step = step % #macros + 1
	end
]],
PreMacro = [[
/targetenemy [noharm][dead]
]],
	'/castsequence [nochanneling] reset=20 !Barrage,!Barrage,!Barrage',
	'/cast [nochanneling] !A Murder of Crows',
	'/castsequence [nochanneling] reset=20 !Barrage,!Barrage,!Barrage',        
	'/castsequence [nochanneling] reset=combat Cobra Shot,Cobra Shot,Cobra Shot',
	'/cast [nochanneling] Multi-Shot',
	'/cast [nochanneling] !Kill Command',	
	'/cast [nochanneling] Multi-Shot',
	'/cast [nochanneling] Multi-Shot',
	'/cast [nochanneling] !Kill Command',	
	'/cast [nochanneling] Multi-Shot',
	'/cast [nochanneling] !Kill Shot',	
PostMacro = [[
/startattack
/petattack
/cast [combat] Dire Beast
/use [combat]14
/script UIErrorsFrame:Clear()
]],
}

--Marksman Hunter--

--Talents : ? 1 2 3 3 ? 3 Major Glyphs : Chimaera Shot, Disengage, Deterrence--

SSequences[‘MarksPre’] = {
 StepFunction = [[
	limit = limit or 1
	if step == limit then
		limit = limit % #macros + 1
		step = 1
	else
		step = step % #macros + 1
	end
]],
PreMacro = [[
/targetenemy [noharm][dead]
/cast Rapid Fire
]],
    '/castsequence [nochanneling] reset=45 !Powershot',
    '/castsequence [nochanneling] reset=45 !Powershot',
    '/cast [nochanneling] Aimed Shot',
    '/cast [nochanneling] !Chimaera Shot',
    '/cast [nochanneling] Steady Shot',
    '/castsequence [nochanneling] Kill Shot,Steady Shot,Steady Shot, Aimed Shot',
    '/cast [nochanneling] !Chimaera Shot',
    '/cast [nochanneling] Aimed Shot',
    '/cast [nochanneling] Steady Shot',
    '/cast [nochanneling] !Chimaera Shot',
    '/cast [nochanneling] !Chimaera Shot',
    '/cast [nochanneling] !Kill Shot',
PostMacro = [[
/startattack
/petattack
/script UIErrorsFrame:Clear()
]],
}

Sequences[‘MarksThrill’] = {
 StepFunction = [[
	limit = limit or 1
	if step == limit then
		limit = limit % #macros + 1
		step = 1
	else
		step = step % #macros + 1
	end
]],
PreMacro = [[
/targetenemy [noharm][dead]
/cast Rapid Fire
]],
],
    '/cast [nochanneling] !A Murder of Crows',
    '/cast [nochanneling] !Chimaera Shot',
    '/cast [nochanneling] Aimed Shot',
    '/cast [nochanneling] Steady Shot',
    '/cast [nochanneling] Aimed Shot',
    '/cast [nochanneling] !Chimaera Shot',
    '/cast [nochanneling] Aimed Shot',
    '/cast [nochanneling] !Kill Shot',
    '/cast [nochanneling] Steady Shot',
    '/cast [nochanneling] !Chimaera Shot',
PostMacro = [[
/startattack
/petattack
/script UIErrorsFrame:Clear()
]],
}

Sequences[‘MarksAOE’] = {
 StepFunction = [[
	limit = limit or 1
	if step == limit then
		limit = limit % #macros + 1
		step = 1
	else
		step = step % #macros + 1
	end
]],
PreMacro = [[
/targetenemy [noharm][dead]
/cast Rapid Fire
]],
    '/castsequence [nochanneling] reset=45 !Powershot',
    '/cast [nochanneling] Multi-Shot',
    '/castsequence [nochanneling] reset=45 !Powershot',
    '/castsequence [nochanneling] reset=5 Multi-Shot,Steady Shot,Steady Shot',
    '/cast [nochanneling] Multi-Shot',
    '/cast [nochanneling] Multi-Shot',
    '/cast [nochanneling] !Kill Shot',
    '/cast [nochanneling] Multi-Shot',
PostMacro = [[
/startattack
/petattack
/script UIErrorsFrame:Clear()
]],
}

--Brewmaster--

--Talents: 2,3,1,3,1,2,2 Glyphs:Expel Harm, Keg Smash, Zen Med--

Sequences['BrewST'] = {
StepFunction = [[
	limit = limit or 1
	if step == limit then
		limit = limit % #macros + 1
		step = 1
	else
		step = step % #macros + 1
	end
]], 
PreMacro = [[
/targetenemy [noharm][dead]
]],
	'/castsequence reset=8 !Keg Smash,Jab,Jab,Jab',
	'/castsequence reset=19 !Tiger Palm',
	'/cast [nochanneling] Blackout Kick',
	'/cast [nochanneling] Chi Explosion',
	'/cast [nochanneling] Jab',
	'/cast [nochanneling] Keg Smash',
	'/cast [nochanneling] Leg Sweep',
	'/castsequence reset=30 !Guard',
	'/castsequence reset=15 !Expel Harm',
	'/castsequence reset=8 !Elusive Brew',
	'/cast [nochanneling] !Touch of Death',
PostMacro = [[
/startattack
/use [combat]13
/use [combat]14
]],
}

Sequences['BrewAoE'] = { 
StepFunction = [[
	limit = limit or 1
	if step == limit then
		limit = limit % #macros + 1
		step = 1
	else
		step = step % #macros + 1
	end
]],
PreMacro = [[
/targetenemy [noharm][dead]
]],
	'/castsequence reset=combat !Keg Smash,Leg Sweep',
	'/cast [nochanneling] !Keg Smash',
	'/cast [nochanneling] Spinning Crane Kick',
	'/cast [nochanneling] Jab',
	'/cast [nochanneling] Breath of Fire',
	'/castsequence [nochanneling] reset=combat Jab,Jab,Tiger Palm',
	'/cast [nochanneling] Chi Explosion',
	'/cast [nochanneling] Jab',
	'/cast [nochanneling] Purifying Brew',
	"/cast [nochanneling] Elusive Brew",	
	'/cast [nochanneling] Guard',
	'/cast [nochanneling] Expel Harm',
	'/cast [nochanneling] !Touch of Death',
PostMacro = [[
/startattack
/use [combat] 13
/use [combat] 14
]],
}

Sequences['BrewEscP'] = { 
StepFunction = [[
	limit = limit or 1
	if step == limit then
		limit = limit % #macros + 1
		step = 1
	else
		step = step % #macros + 1
	end
]],
PreMacro = [[
/target Navient
]],
	'/castsequence reset=combat Every Man For Himself,Roll,Tiger’s Lust',
	'/cast [nochanneling] Roll',
	'/cast [nochanneling] Roll',
	'/cast [nochanneling] Tiger’s Lust',
	'/cast [nochanneling] Detox',
	'/cast [nochanneling] Roll',
	'/cast [nochanneling] Roll',	
	'/cast [nochanneling] Guard',
	'/cast [nochanneling] Expel Harm',
PostMacro = [[
/startattack
/use [combat] 13
/use [combat] 14
]],
}

--Windwalker--

--Talents: 3.1.2.3.3.2.3--

Sequences['WindST'] = {
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]
/cast [mod:alt] Tigereye Brew
]],
	'/castsequence [nochanneling] Jab,Jab,!Tiger Palm',
	'/castsequence [nochanneling] Jab,Jab,Rising Sun Kick',
	"/castsequence [nochanneling] Jab,Jab,Jab,!Fists of Fury",
	'/cast [nochanneling] Chi Wave',	
	'/castsequence [nochanneling] Jab,Jab',
	'/cast [nochanneling] !Blackout Kick',
	'/castsequence [nochanneling] Expel Harm,Jab',	
	'/cast [nochanneling] !Touch of Death',
PostMacro = [[
/use [combat] 13
/use [combat] 14
/use [combat] Energizing Brew
/startattack
/cast [mod:alt] Invoke Xuen, the White Tiger
/cast [mod:alt] Serenity
/script UIErrorsFrame:Hide();
/console Sound_EnableSFX 1
]],
}

Sequences['WindAOE'] = {
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]
/cast [mod:alt] Tigereye Brew
]],
	'/castsequence [nochanneling] Storm, Earth, and Fire',
	'/castsequence [nochanneling] Spinning Crane Kick,Spinning Crane Kick,!Tiger Palm',
	'/castsequence [nochanneling] Spinning Crane Kick,Spinning Crane Kick,Rising Sun Kick',
	"/castsequence [nochanneling] Spinning Crane Kick,Spinning Crane Kick,Spinning Crane Kick,!Fists of Fury",
	'/castsequence [nochanneling] Spinning Crane Kick,Spinning Crane Kick,Spinning Crane Kick,!Touch of Death',
PostMacro = [[
/use [combat] 13
/use [combat] 14
/use [combat] Energizing Brew
/startattack
/cast [mod:alt] Serenity
/script UIErrorsFrame:Hide();
/console Sound_EnableSFX 1
]],
}

--ProtectionPally--

--Talents 1/1/3/2/(1 is best for burst 2 for lazy mode either works)/2/2 Glyphs Concercrator/Final wrath/Divine protection, sac for utility, or Focused shield for single target boss dps but a loss on aoe fights.--

Sequences["ProtPalST"] = {
StepFunction = [[
	limit = limit or 1
	if step == limit then
		limit = limit % #macros + 1
		step = 1
	else
		step = step % #macros + 1
	end
]],
PreMacro = [[
/targetenemy [noharm][dead]
]],
        "/cast Avenger's Shield",
        "/cast Holy Wrath",	
        "/cast Crusader Strike",	
	"/castsequence Sacred Shield,Judgment,Judgment,Judgment",
	"/cast Hammer of Wrath",
	"/cast Consecration",
PostMacro = [[
/castsequence Seraphim, Shield of the Righteous, Shield of the Righteous, Shield of the Righteous
/cast Avenger's Shield
/cast Consecration
/cast divine protection
/startattack
]],
}

Sequences["ProtPalAOE"] = {
StepFunction = [[
	limit = limit or 1
	if step == limit then
		limit = limit % #macros + 1
		step = 1
	else
		step = step % #macros + 1
	end
]],
PreMacro = [[
/targetenemy [noharm][dead]
]],
        "/cast Avenger's Shield]",
        "/cast Holy Wrath",	
        "/cast Hammer of the Righteous",	
	"/castsequence Sacred Shield,Judgment,Judgment,Judgment",
	"/cast Hammer of Wrath",
	"/cast Consecration",
PostMacro = [[
/castsequence Seraphim, Shield of the Righteous, Shield of the Righteous, Shield of the Righteous
/cast Avenger's Shield
/cast Consecration
/cast divine protection
/startattack
]],
}

--Retribution Pally--

--Talents 1/1/3/2/(1 is best for burst 2 for lazy mode either works)/2/2 Glyphs Concercrator/Final wrath/Divine protection, sac for utility, or Focused shield for single target boss dps but a loss on aoe fights.--

Sequences['Ret'] = {
StepFunction = [[
		limit = limit or 1
		if step == limit then
			limit = limit % #macros + 1
			step = 1
		else
			step = step % #macros + 1
		end
	]],
PreMacro = [[
/targetenemy [noharm][dead]
]],
'/cast !Avenging Wrath',
'/cast Seraphim',
'/cast !Execution Sentence',
'/cast Hammer of Wrath',
"/castsequence [nochanneling] reset=10 Templar's Verdict",
'/cast Judgment',
'/cast Crusader Strike',
'/cast Exorcism',

PostMacro = [[
/use [combat]13
/use [combat]14
]],
}

Sequences['RetAOE'] = {
StepFunction = [[
		limit = limit or 1
		if step == limit then
			limit = limit % #macros + 1
			step = 1
		else
			step = step % #macros + 1
		end
	]],
PreMacro = [[
/targetenemy [noharm][dead]
]],
'/cast !Avenging Wrath',
'/cast Seraphim',
'/cast !Execution Sentence',
'/cast !Divine Storm',
'/cast Hammer of Wrath',
'/cast Judgment',
'/cast Hammer of the Righteous',
'/cast Exorcism',
PostMacro = [[
/use [combat]13
/use [combat]14
]],
}

--Sub Rogue--

--build= 2,2,1,2,2,3,2 glyphs=energy, deadly momentum, hemorrhaging veins--

Sequences["SUBRG1T"] = {
StepFunction = [[
stepa = "2345144444678778867878787857887785787878794"

limit = string.len(stepa) or 1
if stepc == nil then
	stepc = 1
end
if stepc >= limit then
	stepc = 1
else
	stepc = stepc + 1
end
	step = tonumber(strsub (stepa, stepc, stepc))
]],
	-- Macro 1
[[
/cast Shadow Dance
]],
	-- Macro 2
[[
/cast Garrote
]],
	-- Macro 3
[[
/cast Shadow Reflection
]],
	-- Macro 4
[[
/cast Ambush
]],
	-- Macro 5
[[
/cast Rupture
]],
	-- Macro 6
[[
/cast Eviscerate
]],
	-- Macro 7
[[
/cast Backstab
]],
	-- Macro 8
[[
/cast Hemorrhage
]],
    -- Macro 9
[[
/cast Vanish
]],
PreMacro = [[
/targetenemy [noharm][dead]
/cast [nocombat,nostealth] Stealth
/cast Premeditation
/cast [stealth,nocombat] Shadowstep
/cast [stealth] Ambush
/cast [stealth] Ambush
]],
PostMacro = [[
/cast Slice and Dice	
/script UIErrorsFrame:Hide();
]],
}

--Affliction--

--Glyph of Health Funnel--

Sequences["AffHaunt"] = {
PreMacro = [[
/targetenemy [noharm][dead]
/console Sound_EnableSFX 0
]],
	"/castsequence [nochanneling] reset=target Agony,Corruption,Unstable Affliction,Drain Soul,Drain Soul,Unstable Affliction,Corruption,Agony,Drain Soul,Drain Soul",
	"/castsequence [nochanneling] reset=target Health Funnel,Haunt",
	'/cast [nochanneling, combat] Dark Soul: Misery',
PostMacro = [[
/startattack
/petattack
/use [combat]13
/use [combat]14
/script UIErrorsFrame:Clear()
/console Sound_EnableSFX 1
]],
}

--Destruction--

Sequences['DestroS'] = {
PreMacro = [[
#showtooltip Immolate
/targetenemy [noharm][dead]
/petautocastoff [group] Threatening Presence
/petautocaston [nogroup] Threatening Presence
/cast [combat] Dark Soul: Instability
    ]],
       "/cast Shadowburn",
       '/castsequence reset=target Immolate,Incinerate,Incinerate,Incinerate,Incinerate,Incinerate,Incinerate',
       "/cast Shadowburn",
       '/cast Conflagrate',
       '/cast [nochanneling] Chaos Bolt',
       "/cast Shadowburn",
PostMacro = [[
/startattack
/petattack [@target,harm]
    ]],
}

Sequences['DestroA'] = {
PreMacro = [[
#showtooltip Fire and Brimstone
/targetenemy [noharm][dead]
/petautocastoff [group] Threatening Presence
/petautocaston [nogroup] Threatening Presence
    ]],
       "/cast !Fire and Brimstone",
       '/castsequence Immolate, Incinerate,Incinerate,Incinerate,Incinerate,Incinerate,Incinerate,Incinerate,Incinerate,Incinerate,Incinerate,Incinerate,Incinerate',
       '/cast Conflagrate',
PostMacro = [[
/startattack
/petattack [@target,harm]
    ]],
}