Just like the tittle says how do you run multiple GS macro’s with only one lua file?
say I want a Fury single target GS macro on my bar and a fury warrior multi-target GS macro how would I do that?
Just like the tittle says how do you run multiple GS macro’s with only one lua file?
say I want a Fury single target GS macro on my bar and a fury warrior multi-target GS macro how would I do that?
As long as you name each sequence file different you just add under your last one with a space to separate
Here is what my lua file looks like
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['BeastST'] = {
StepFunction = [[
limit = limit or 1
if step == limit then
limit = limit % #macros + 1
step = 1
else
step = step % #macros + 1
end
]],
PreMacro = [[
/cast [nopet,nodead]Call Pet 1;[@pet,dead]Revive Pet
/targetenemy [noharm][dead]
/cast [target=focus, exists, nodead],[target=pet, exists, nodead] Misdirection
/startattack
/petattack [@target,harm]
]],
'/cast Bestial Wrath',
'/cast Dire Beast',
'/cast Kill Command',
'/cast A Murder of Crows',
'/cast Glaive Toss',
'/castsequence [nochanneling] cobra shot, cobra shot',
'/cast Kill Command',
'/cast Arcane Shot',
'/cast Cobra Shot',
'/cast Kill Command',
--'/cast A Murder of Crows',
--'/cast Dire Beast',
--'/cast Glaive Toss',
--'/cast Cobra Shot',
--'/cast Arcane Shot',
PostMacro = [[
/startattack
/petattack
/cast kill command
/use [combat]13
/use [combat]14
]],
}
Sequences['BMsingleTar'] = {
PreMacro = [[
/targetenemy [noharm][dead]
/startattack
/petattack [@target,harm]
/petautocastoff [group] Growl
/petautocaston [nogroup] Growl
]],
'/cast [target=focus, exists, nodead],[target=pet, exists, nodead] Misdirection',
'/cast [nochanneling][combat] Bestial Wrath',
'/cast [nochanneling] !Kill Command',
'/cast !Kill Shot',
'/castsequence [nochanneling] A Murder of Crows',
'/cast [nochanneling] Dire Beast',
'/cast Glaive Toss',
'/cast [nochanneling] Intimidation',
'/castsequence [nochanneling] reset=target Arcane Shot,!Mend Pet,Cobra Shot,!Kill Command,!Mend Pet,Cobra Shot,Arcane Shot,Cobra Shot,!Mend Pet,Cobra Shot,!Kill Command,!Mend Pet,Arcane Shot,Cobra Shot',
'/cast !Kill Shot',
PostMacro = [[
/startattack
/petattack
/use [combat]13
/use [combat]14
]],
}
Sequences['BMaoe'] = {
PreMacro = [[
/use [nopet,nomod]Call Pet 1;[@pet,dead]Revive Pet
/targetenemy [noharm][dead]
/startattack
/petattack [@target,harm]
]],
'/cast [target=focus, exists, nodead],[target=pet, exists, nodead] Misdirection',
'/cast !Kill Shot',
'/cast [nochanneling,combat] Bestial Wrath',
'/cast [nochanneling] !Kill Command',
'/cast Barrage',
'/cast [nochanneling] Multi-Shot',
'/cast [nochanneling] Cobra Shot',
'/castsequence [nochanneling] cobra shot, cobra shot, focus fire',
PostMacro = [[
/script UIErrorsFrame:Hide();
/console Sound_EnableSFX 1
]],
}
Sequences['BMSTgt'] = {
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]
/petattack
/startattack
/petautocastoff [group] Growl
/petautocaston [nogroup] Growl
/cast [target=focus, exists, nodead],[target=pet, exists, nodead] Misdirection
]],
'/cast Kill Command',
'/cast Kill Command',
'/cast Glaive Toss',
'/cast Glaive Toss',
'/cast Cobra Shot',
'/cast Dire Beast',
'/cast Dire Beast',
'/cast A Murder of Crows',
'/cast A Murder of Crows',
'/cast Bestial Wrath',
'/cast Bestial Wrath',
'/cast Cobra Shot',
'/cast Arcane Shot',
'/cast Cobra Shot',
'/cast Cobra Shot',
'/cast Arcane Shot',
'/cast Kill Shot',
'/cast Kill Shot',
'/cast Cobra Shot',
PostMacro = [[
/startattack
/petattack
/use [combat]13
/use [combat]14
]],
}
Sequences['BMsingle'] = {
PreMacro = [[
/cast [nopet,nodead]Call Pet 1;[@pet,dead]Heart of the Phoenix
/targetenemy [noharm][dead]
/petattack [@target,harm]
/cast [target=focus, exists, nodead],[target=pet, exists, nodead] Misdirection
/petautocastoff [group] Growl
/petautocaston [nogroup] Growl
/console Sound_EnableSFX 0
]],
'/cast Barrage',
'/cast [nochanneling]Kill Command',
'/cast [nochanneling]Arcane Shot',
'/cast [nochanneling]Kill Shot',
'/cast [nochanneling,combat]Bestial Wrath',
'/castsequence [nochanneling]Cobra Shot,Cobra Shot',
PostMacro = [[
/startattack
/cast Barrage
/use [combat]13
/use [combat]14
/script UIErrorsFrame:Clear()
/console Sound_EnableSFX 1
]],
}
Sequences['BMsinglePvP'] = {
PreMacro = [[
/cast [nopet,nodead]Call Pet 1;[@pet,dead]Heart of the Phoenix
/targetenemy [noharm][dead]
/petattack [@target,harm]
/petautocaston Growl
/console Sound_EnableSFX 0
]],
'/cast A Murder of Crows',
'/cast Glaive Toss',
'/cast Dire Beast',
'/castsequence [nochanneling]Cobra Shot,Cobra Shot,Cobra Shot',
'/cast Arcane Shot',
'/cast Bestial Wrath',
PostMacro = [[
/startattack
/cast Kill Command
/use [combat]14
/script UIErrorsFrame:Clear()
/console Sound_EnableSFX 1
]],
}
Sequences['HbmsT'] = {
StepFunction = [[
limit = limit or 1
if step == limit then
limit = limit % #macros + 1
step = 1
else
step = step % #macros + 1
end
]],
PreMacro = [[
/click [nopet] WhistleFrame
/use[nopet,nodead]Call Magria;[@Magria,dead]Revive Pet;[@Magria,dead]Heart of the Phoenix
/targetenemy [noharm][dead]
/petattack [@target,harm]
/cast [target=focus, exists, nodead],[target=pet, exists, nodead] Misdirection
/petautocastoff [group] Growl
/petautocaston [nogroup] Growl
]],
'/castsequence [nochanneling] reset=20 !Barrage',
'/cast [nochanneling] !A Murder of Crows',
'/castsequence [nochanneling] reset=60 !Bestial Wrath',
'/castsequence [nochanneling] reset=20 !Barrage',
'/castsequence [nochanneling] reset=combat !Kill Command,Focusing Shot,Focusing Shot',
'/castsequence [nochanneling] reset=6 !Kill Command',
'/castsequence [nochanneling] reset=combat !Kill Command,Kill Shot,Focusing Shot,Focusing Shot,Kill Shot',
'/cast [nochanneling] !Kill Command',
'/cast [nochanneling] !Kill Command',
'/cast [nochanneling] Arcane Shot',
'/cast [nochanneling] Focusing Shot',
'/cast [nochanneling] !Kill Command',
"/cast [nochanneling] !Focus Fire",
'/cast [nochanneling] Focusing Shot',
PostMacro = [[
/startattack
/use [combat]14
/cast !Dire Beast
/petattack
/script UIErrorsFrame:Clear()
]],
}
Sequences['HbmAoE'] = {
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 [nochanneling],[target=focus, exists, nodead],[target=pet, exists, nodead] Misdirection
]],
'/castsequence [nochanneling] reset=20 Barrage',
'/cast [nochanneling] !Kill Command',
'/castsequence [nochanneling] reset=20 Barrage',
'/castsequence [nochanneling] reset=target !kill Shot,Focusing Shot,Focusing Shot',
'/cast [nochanneling] Multi-Shot',
'/cast [nochanneling] !Kill Command',
'/cast [nochanneling] Multi-Shot',
"/cast [nochanneling] !Focus Fire",
'/cast [nochanneling] Kill Shot',
'/cast [nochanneling] Multi-Shot',
'/cast [nochanneling] Focusing Shot',
'/cast [nochanneling] !Kill Shot',
"/cast [nochanneling] !Focus Fire",
'/cast [nochanneling] !Kill Command',
PostMacro = [[
/startattack
/petattack
/use 13
/use 14
]],
}
Sequences['Beast'] = {
PreMacro = [[
/cast [nopet,nodead]Call Pet 1;[@pet,dead]Heart of the Phoenix
/targetenemy [noharm][dead]
/petattack [@target,harm]
/console Sound_EnableSFX 0
]],
'/cast Barrage',
'/cast Kill Command',
'/cast [nochanneling]Kill Command',
'/cast [nochanneling]Cobra Shot',
'/cast [nochanneling]Arcane Shot',
'/cast [nochanneling,combat]Bestial Wrath',
'/castsequence [nochanneling]Cobra Shot,Cobra Shot',
PostMacro = [[
/startattack
/cast [combat]Blood Fury
/cast Barrage
/use [combat]Draenic Agility Potion
/script UIErrorsFrame:Clear()
/console Sound_EnableSFX 1
]],
}
Sequences['BMCrowST'] = {
StepFunction = [[
order = newtable(7, 4, 5, 1, 5, 3, 2, 2, 6, 1,5)
newstep = (newstep and (newstep % #order + 1)) or 2
step = order[newstep]
]],
PreMacro = [[
/cast [nopet,nodead]Call Pet 1;[@pet,dead]Heart of the Phoenix
/targetenemy [noharm][dead]
/petattack [@target,harm]
/console Sound_EnableSFX 0
]],
PostMacro = [[
/startattack
/use [combat]13
/use [combat]14
/script UIErrorsFrame:Clear()
/console Sound_EnableSFX 1
]],
-- Macro1
[[
/cast [nochanneling] Kill Command
]],
-- Macro2
[[
/cast [nochanneling] Cobra Shot
]],
-- Macro3
[[
/cast [nochanneling, mod] Barrage; [nochanneling] Arcane Shot
]],
-- Macro4
[[
/cast [nochanneling] A Murder of Crows
]],
-- Macro5
[[
/cast [nochanneling] Kill Shot
]],
-- Macro6
[[
/cast [nochanneling] !Focus Fire
]],
-- Macro7
[[
/cast [nochanneling] Bestial Wrath
]],
-- Macro8
[[
/cast [nochanneling] Dire Beast
]],
-- Macro9
[[
]],
}
Sequences['BMCrowAOE'] = {
StepFunction = [[
order = newtable(7, 4, 3, 1, 5, 8, 2, 2, 8, 8, 6, 1, 5, 3)
newstep = (newstep and (newstep % #order + 1)) or 2
step = order[newstep]
]],
PreMacro = [[
/targetenemy [noharm][dead]
/petattack [@target,harm]
/cast [target=focus, exists, nodead],[target=pet, exists, nodead] Misdirection
]],
PostMacro = [[
/startattack
/use [combat]13
/use [combat]14
]],
-- Macro1
[[
/cast [nochanneling] Kill Command
]],
-- Macro2
[[
/cast [nochanneling] Cobra Shot
]],
-- Macro3
[[
/cast Barrage
]],
-- Macro4
[[
/cast [nochanneling] A Murder of Crows
]],
-- Macro5
[[
/cast [nochanneling] Kill Shot
]],
-- Macro6
[[
/cast [nochanneling] !Focus Fire
]],
-- Macro7
[[
/cast [nochanneling] Bestial Wrath
]],
-- Macro8
[[
/cast [nochanneling] Multi-Shot
]],
-- Macro9
[[
]],
}
Sequences['BMST'] = {
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 [target=focus, exists, nodead],[target=pet, exists, nodead] Misdirection
/cast [mod,nochanneling]Multi-Shot
/cast [nopet,nodead]Call Pet 5;[@pet,dead]Heart of the Phoenix
/console Sound_EnableSFX 0
]],
[[/castsequence [nochanneling]Kill Shot]],
[[/castsequence [nochanneling]Kill Command]],
[[/castsequence [nochanneling,talent:5/1]A Murder of Crows;[nochanneling,talent:5/2]Kill Command;[nochanneling,talent:5/3]Kill Command]],
[[/castsequence [talent:6/1] Glaive Toss;[talent:6/3]Barrage]],
[[/castsequence [nochanneling]Dire Beast,Focus Fire]],
[[/castsequence [nochanneling]Cobra Shot]],
PostMacro = [[
/startattack
/cast [nochanneling][combat]Bestial Wrath
/cast [combat,pet:Spirit Beast,@player]Spirit Mend
/cast [combat,pet,@player]Roar of Sacrifice
/script UIErrorsFrame:Clear()
/console Sound_EnableSFX 1
]],
}
Sequences['BMsTar'] = {
PreMacro = [[
/cast [nopet,nodead]Call Pet 1;[@pet,dead]Revive Pet
/targetenemy [noharm][dead]
/startattack
/cast [target=focus, exists, nodead],[target=pet, exists, nodead] Misdirection
/petattack [@target,harm]
/console Sound_EnableSFX 0
]],
'/cast [nochanneling] Bestial Wrath',
'/cast Barrage',
'/cast Barrage',
'/cast [nochanneling] !Kill Command',
'/cast !Kill Shot',
'/castsequence [nochanneling] cobra shot, cobra shot',
'/cast [nochanneling] A Murder of Crows',
'/cast [nochanneling] Dire Beast',
'/cast [nochanneling] focus fire',
'/cast Barrage',
'/cast [nochanneling] !Kill Command',
'/cast [nochanneling] Intimidation',
'/castsequence [nochanneling] reset=target Arcane Shot,Cobra Shot,!Kill Command,Cobra Shot,Arcane Shot,Cobra Shot,Cobra Shot,!Kill Command,Cobra Shot',
'/cast [nochanneling] A Murder of Crows',
'/cast !Kill Shot',
PostMacro = [[
/startattack
/petattack
/use [combat]13
/use [combat]14
/script UIErrorsFrame:Clear()
/console Sound_EnableSFX 1
]],
}
Sequences['BMulti'] = {
PreMacro = [[
/use [nopet,nomod]Call Pet 1;[@pet,dead]Revive Pet
/targetenemy [noharm][dead]
/startattack
/petattack [@target,harm]
]],
'/cast [target=focus, exists, nodead],[target=pet, exists, nodead] Misdirection',
'/cast !Kill Shot',
'/cast [nochanneling,combat] Bestial Wrath',
'/cast [nochanneling] !Kill Command',
'/castsequence [nochanneling] cobra shot, cobra shot, focus fire',
'/cast Barrage',
'/cast [nochanneling] Multi-Shot',
'/cast [nochanneling] Cobra Shot',
PostMacro = [[
/script UIErrorsFrame:Hide();
/console Sound_EnableSFX 1
]],
}
Sequences['bmhst'] = {
PreMacro = [[
/use [nopet,nomod]Call Pet 1;[@pet,dead] Revive Pet
/cast [@focus,help][help][@pet,exists] Misdirection
/targetenemy [noharm][dead]
/cast [combat] Bestial Wrath
]],
'/cast [nochanneling] A Murder of Crows',
--'/cast [nochanneling] Dire Beast',
'/castsequence [nochanneling] Barrage',
'/castsequence [nochanneling] Barrage',
'/cast [nochanneling] Kill Command',
'/cast [nochanneling] Kill Command',
'/cast [nochanneling] Cobra Shot',
'/cast [nochanneling] Cobra Shot',
--'/cast [nochanneling] Dire Beast',
--'/cast [nochanneling] Dire Beast',
'/cast [nochanneling] Arcane Shot',
'/cast [nochanneling] Focus Fire',
'/cast [nochanneling] Focus Fire',
'/cast Barrage',
'/cast [nochanneling] Cobra Shot',
'/cast [nochanneling] Kill Command',
'/cast [nochanneling] Kill Shot',
'/cast [nochanneling] Kill Shot',
PostMacro = [[
/startattack
/petattack
/use [combat]13
/use [combat]14
/cast [combat] Kill Shot
]],
}
Sequences['bmhaoe'] = {
PreMacro = [[
/use [nopet,nomod]Call Pet 1;[@pet,dead]Revive Pet
/cast [@focus,help][help][@pet,exists] Misdirection
/targetenemy [noharm][dead]
/cast [combat] Bestial Wrath
]],
'/cast [nochanneling] Multi-Shot',
'/cast [nochanneling] Dire Beast',
'/castsequence [nochanneling] reset=20 Barrage',
'/castsequence [nochanneling] reset=20 Barrage',
'/cast [nochanneling] Kill Command',
'/cast [nochanneling] Multi-Shot',
'/castsequence [nochanneling] reset=20 Barrage',
'/castsequence [nochanneling] reset=10 Cobra Shot, Cobra Shot',
'/cast [nochanneling] Multi-Shot',
'/cast [nochanneling] Kill Command',
'/cast [nochanneling] Multi-Shot',
'/cast [nochanneling] Kill Shot',
'/cast [nochanneling] Cobra Shot',
'/cast [nochanneling] Cobra Shot',
PostMacro = [[
/startattack
/petattack
/use [combat]13
/use [combat]14
]],
}
Sequences["TenserExample"] = {
-- 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 of the
-- body macro and starts over
StepFunction = [[
limit = limit or 1
if step == limit then
limit = limit % #macros + 1
step = 1
else
step = step % #macros + 1
end
]],
PreMacro = [[
/run print("-- PreMacro Script --")
/run print("these lines will not")
/run print("be stepped through.")
]],
'/run print"body macro 1"',
'/run print"body macro 2"',
'/run print"body macro 3"',
'/run print"body macro 4"',
'/run print"body macro 5"',
'/run print"body macro 6"',
'/run print"body macro 7"',
'/run print"body macro 8"',
'/run print"body macro 9"',
PostMacro = [[
/run print("-- PostMacro Script --")
/run print("these lines will not")
/run print("be stepped through.")
]],
}
Sequences['ABeast'] = {
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]
/startattack
/cast [target=focus, exists, nodead],[target=pet, exists, nodead] Misdirection
/petattack [@target,harm]
]],
'/castsequence [nochanneling] reset=60 Bestial Wrath',
'/cast [nochanneling] Kill Command',
'/cast [nochanneling] Kill Command',
'/castsequence [nochanneling] reset=20 Barrage',
'/cast [nochanneling] Cobra Shot',
'/cast A Murder of Crows',
'/castsequence [nochanneling] reset=30 Dire Beast',
'/cast [nochanneling] !Focus Fire',
'/cast [nochanneling] Cobra Shot',
'/cast !Kill Shot',
'/castsequence [nochanneling] reset=6 Kill Command,!Kill Shot',
'/castsequence [nochanneling] reset=3 Arcane Shot,Cobra Shot',
PostMacro = [[
/use [combat] Draenic Agility Potion
/use [combat]13
/use [combat]14
/startattack
/petattack [@target,harm]
/script UIErrorsFrame:Clear()
]],
}
Sequences['new'] = {
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]
/startattack
/cast [target=focus, exists, nodead],[target=pet, exists, nodead] Misdirection
/petattack [@target,harm]
]],
'/castsequence [nochanneling] reset=combat Bestial Wrath',
'/cast [nochanneling] kill command',
'/castsequence kill shot,kill shot',
'/cast [nochanneling] a murder of crows',
'/cast [nochanneling] barrage',
'/cast [nochanneling] dire beast',
'/cast [nochanneling] kill command',
'/cast [nochanneling] !cobra shot',
'/cast [nochanneling] !focus fire',
'/castsequence [nochanneling] reset=30 arcane shot',
PostMacro = [[
/use [combat]13
/use [combat]14
/startattack
/script UIErrorsFrame:Clear()
]],
}
Sequences['Beef'] = {
PreMacro = [[
/use [@pet,dead] Heart of the Phoenix
/use [@pet,dead] Revive Pet
/click [nopet] WhistleFrame
/stopmacro [channeling:Barrage]
/use [combat] Draenic Agility Potion
/targetenemy [noharm][dead]
/startattack
/cast [nochanneling,target=focus,exists,nodead],[nochanneling,target=pet,exists,nodead] Misdirection
/petattack [@target,harm]
]],
StepFunction = [[
limit = limit or 1
if step == limit then
limit = limit % #macros + 1
step = 1
else
step = step % #macros + 1
end
]],
'/cast [nochanneling] !Kill Shot',
'/cast [nochanneling] !Kill Shot',
'/cast !Barrage',
'/castsequence [nochanneling] reset=combat !Kill Command,Cobra Shot',
'/cast !A Murder of Crows',
'/cast !Barrage',
'/castsequence [nochanneling] reset=6 !Kill Command,Barrage',
'/cast [nochanneling]!Kill Command',
'/cast [nochanneling]Cobra Shot',
'/cast !Dire Beast',
'/cast [nochanneling]!Bestial Wrath',
'/cast [nochanneling]!Kill Command',
"/cast [nochanneling]!Focus Fire",
'/cast [nochanneling]!Kill Command',
'/cast [nochanneling]Arcane Shot',
'/cast [nochanneling]!Cobra Shot',
'/cast [nochanneling]!Kill Command',
"/cast [nochanneling]!Focus Fire",
'/cast [nochanneling]!Kill Command',
'/cast !Barrage',
'/cast [nochanneling]!Cobra Shot',
PostMacro = [[
/use [combat]14
/use [combat]13
--/use 11
--/use 12
/cast !A Murder of Crows
/cast !Dire Beast
/startattack
/petattack
]],
}
Sequences['BeefAoE'] = {
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',
'/cast [nochanneling] !Kill Command',
'/castsequence [nochanneling] reset=20 Barrage',
'/castsequence [nochanneling] reset=target Cobra Shot,Cobra Shot',
'/cast [nochanneling] Multi-Shot',
'/cast [nochanneling] !Kill Command',
'/cast [nochanneling] Multi-Shot',
'/cast [nochanneling] Kill Shot',
'/cast [nochanneling] Multi-Shot',
'/cast [nochanneling] Cobra Shot',
'/cast [nochanneling] !Kill Shot',
PostMacro = [[
/startattack
/petattack
/script UIErrorsFrame:Clear()
]],
}
Sequences['fokka'] = {
StepFunction = [[
limit = limit or 1
if step == limit then
limit = limit % #macros + 1
step = 1
else
step = step % #macros + 1
end
]],
PreMacro = [[
/cast [nopet,nodead]Call Pet 1;[@pet,dead]Heart of the Phoenix
/targetenemy [noharm][dead]
/cast [nochanneling,target=focus,exists,nodead],[nochanneling,target=pet,exists,nodead] Misdirection
/console Sound_EnableSFX 0
]],
'/castsequence [nochanneling] reset=20 Barrage',
'/castsequence [nochanneling] reset=combat !Kill Command,!Kill Shot',
'/castsequence [nochanneling] reset=20 Barrage',
'/cast [nochanneling] !Kill Command',
'/cast [nochanneling] Cobra Shot',
'/cast [nochanneling] !Dire Beast',
'/cast [nochanneling] !Bestial Wrath',
'/cast [nochanneling] Arcane Shot',
'/cast [nochanneling] !Kill Command',
'/cast [nochanneling] Arcane Shot',
'/cast [nochanneling] !Kill Command',
'/cast [nochanneling] Arcane Shot',
PostMacro = [[
/startattack
/use [combat]13
/use [combat]14
/petattack
/cast [combat,pet:Spirit Beast,@player]Spirit Mend
/cast [combat,pet,@player]Roar of Sacrifice
/script UIErrorsFrame:Clear()
/console Sound_EnableSFX 1
]],
}
Sequences['BMpwnage'] = {
PreMacro = [[
/use [@pet,dead] Heart of the Phoenix
/use [@pet,dead] Revive Pet
/click [nopet] WhistleFrame
/cancelaura Trap Launcher
/stopmacro [channeling:Cobra Shot]
/stopmacro [channeling:Barrage]
/console Sound_EnableSFX 0
]],
'/cast !Kill Shot',
'/cast !Kill Shot',
'/cast [nochanneling,target=focus,exists,nodead],[nochanneling,target=pet,exists,nodead] Misdirection',
'/cast !Dire Beast',
'/cast Tranquilizing Shot',
'/cast [combat] Bestial Wrath',
'/cast !Kill Command',
'/cast !Barrage',
'/cast !Kill Shot',
'/cast !Kill Shot',
'/cast [combat] Bestial Wrath',
'/cast !Kill Command',
'/cast !Barrage',
'/cast !Kill Shot',
'/cast !Kill Shot',
'/cast [combat] Bestial Wrath',
'/cast !Kill Command',
'/cast !Barrage',
'/cast !Kill Shot',
'/cast !Kill Shot',
'/cast [combat] Bestial Wrath',
'/cast !Kill Command',
'/cast !Barrage',
'/cast !Kill Shot',
'/cast !Kill Shot',
'/cast Cobra Shot',
'/cast Cobra Shot',
'/cast !Kill Shot',
'/cast !Kill Shot',
PostMacro = [[
/targetenemy [noharm][dead]
/cast [@sidis]Spirit Mend
/petattack [@target,harm]
/petattack
/cast A Murder of Crows
/use [combat] 12
/use [combat] 13
/use [combat] 14
/script UIErrorsFrame:Hide();
/console Sound_EnableSFX 1
]],
}
Sequences['Milling'] = {
StepFunction = [[
order = newtable(1,2,3,4,5,6,7)
newstep = (newstep and (newstep % #order + 1)) or 2
step = order[newstep]
]],
PreMacro = [[
/console Sound_EnableSFX 0
/use Milling
]],
'/use Starflower',
'/use Gorgrond Flytrap',
'/use Nagrand Arrowbloom',
'/use Talador Orchid',
'/use Frostweed',
'/use Fireweed',
'/use Snow Lily',
PostMacro = [[
/script UIErrorsFrame:Clear()
/console Sound_EnableSFX 1
]],
}
Sequences['FirstAid'] = {
PreMacro = [[
/stopmacro [channeling:Antispetic Bandage]
/console Sound_EnableSFX 0
]],
'/cast Healthstone',
'/cast Exhilaration',
'/cast [@sidis] Spirit Mend',
'/cast [@sidis] Gift of the Naaru',
'/use Healing Tonic',
'/cast Antiseptic Bandage',
PostMacro = [[
/startattack
/startattack
/script UIErrorsFrame:Hide();
/console Sound_EnableSFX 1
]],
}
Sequences['Beef2'] = {
StepFunction = [[
limit = limit or 1
if step == limit then
limit = limit % #macros + 1
step = 1
else
step = step % #macros + 1
end
]],
PreMacro = [[
/use [@pet,dead] Heart of the Phoenix
/use [@pet,dead] Revive Pet
/click [nopet] WhistleFrame
/stopmacro [channeling:Barrage]
/use [combat] Draenic Agility Potion
/targetenemy [noharm][dead]
/startattack
/cast [nochanneling,target=focus,exists,nodead],[nochanneling,target=pet,exists,nodead] Misdirection
/targetenemy [noharm][dead]
/petattack [@target,harm]
]],
'/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',
--'/cast [nochanneling] Arcane Shot',
PostMacro = [[
/startattack
/petattack
/cast [combat] Dire Beast
/script UIErrorsFrame:Clear()
]],
}
Sequences['Beef3'] = {
StepFunction = [[
limit = limit or 1
if step == limit then
limit = limit % #macros + 1
step = 1
else
step = step % #macros + 1
end
]],
PreMacro = [[
/use [@pet,dead] Heart of the Phoenix
/use [@pet,dead] Revive Pet
/click [nopet] WhistleFrame
/stopmacro [channeling:Barrage]
/use [combat] Draenic Agility Potion
/targetenemy [noharm][dead]
/startattack
/cast [nochanneling,target=focus,exists,nodead],[nochanneling,target=pet,exists,nodead] Misdirection
/targetenemy [noharm][dead]
/petattack [@target,harm]
]],
'/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
/script UIErrorsFrame:Clear()
]],
}
Sequences['MMBeef'] = {
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 Rapid Fire
]],
'/castsequence [nochanneling] reset=20 !Barrage,!Barrage,!Barrage',
'/cast [nochanneling] !A Murder of Crows',
'/castsequence [nochanneling] reset=20 !Barrage,!Barrage,!Barrage',
'/castsequence [nochanneling] reset=combat Focusing Shot,Focusing Shot,Focusing Shot',
'/cast [nochanneling] !Kill Shot',
'/cast [nochanneling] !Chimaera Shot',
'/cast [nochanneling] Aimed Shot',
'/cast [nochanneling] Aimed Shot',
'/cast [nochanneling] !Kill Shot',
'/cast [nochanneling] !Chimaera Shot',
'/cast [nochanneling] Aimed Shot',
'/cast [nochanneling] Aimed Shot',
'/cast [nochanneling] !Kill Shot',
PostMacro = [[
/startattack
/use [combat]14
/script UIErrorsFrame:Clear()
/console Sound_EnableSFX 1
]],
}
Sequences['MMBeefAOE'] = {
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 Rapid Fire
]],
'/castsequence [nochanneling] reset=20 !Barrage,!Barrage,!Barrage',
'/cast [nochanneling] !A Murder of Crows',
'/castsequence [nochanneling] reset=20 !Barrage,!Barrage,!Barrage',
'/castsequence [nochanneling] reset=combat Focusing Shot,Focusing Shot,Focusing Shot',
'/cast [nochanneling] Multi-Shot',
'/cast [nochanneling] !Chimaera Shot',
'/cast [nochanneling] !Kill Shot',
'/cast [nochanneling] Multi-Shot',
'/cast [nochanneling] !Chimaera Shot',
'/cast [nochanneling] !Kill Shot',
'/cast [nochanneling] Multi-Shot',
'/cast [nochanneling] !Chimaera Shot',
'/cast [nochanneling] !Kill Shot',
PostMacro = [[
/startattack
/use [combat]14
/script UIErrorsFrame:Clear()
/console Sound_EnableSFX 1
]],
}
Although you may have answered his question, which leads to MY question as it is somewhat relevant. Say I want a series of GS macros for each of my toons.
Like I play from time to time:
Assassin Rogue
MM Hunter
Blood DK
etc etc.
Do I have to make a SEPARATE sequence.lua file for each of my class toons or I can gather all the macros I like to use and put it in order like this one shown above (which clearly is for hunter only) but whatever class I decide to play? Any help is greatly appreciated.
as long as each sequence has a different name there is no problem mixing different classes