I broke my G-Sequencer. Please help.

Okay, I’m obviously a moron. Can someone please help me fix this?

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]
    ]],
}


what do you mean by fix it? do you get error messages when you load into wow?

where you have these tags eg. <!-- -->Affliction<!-- --> i just use – for comments, should be green in colour
hope this helps
mark

EDIT, REMOVE THE <! should be ok then

No, when I type in the name of the macro it doesn’t work.

Thanks, Mark. I did that and it still isn’t working. When I create a macro listed in the file, it doesn’t cast anything and the text that usually populates when you create a macro doesn’t appear.

ok mate I can see your issues just follow this video and you should be ok.