For this intro I’m using John Mets sequence DFPTR from If you have questions on this sequence please ask them there.
Sequences["DFPTR"] = {
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 reset=combat Obliterate, Frost Strike",
'/castsequence reset=combat Obliterate, Frost Strike, Frost Strike, Obliterate, howling blast',
"/castsequence reset=combat Obliteration",
"/cast [combat] remorseless winter",
"/cast [combat] empower rune weapon",
PostMacro = [[
/targetenemy [noharm][dead]
/cast [combat] Anti-Magic Shell
/use [combat] 12
/use [combat] 13
/use [combat] 14
/script UIErrorsFrame:Hide();
]],
}
Stage 1: Remove uneeded lines
GS-E has global options for lines the below list. These items can be safely deleted
- /script UIErrorsFrame:Hide();
- /console Sound_EnableSFX 0
- /stopmacro [@playertarget, noexists]
- /console Sound_EnableSFX 1
- /run UIErrorsFrame:Clear()
- /use [combat] 12
- /use [combat] 13
- /use [combat] 14
Stage 2: Check code errors
Look for obvious copy past problems. Each { should have a closing } same with [[, " and '. The exception is a ’ inside a " eg: “Draik’s Stuff” is ok.
Stage 3: Evaluate Step Function
While this will work its 9 lines that can be replaced with one.
StepFunction = [[
limit = limit or 1
if step == limit then
limit = limit % #macros + 1
step = 1
else
step = step % #macros + 1
end
]],
can be replaced with
StepFunction = GSStaticPriority,
Stage 4: Add GS-E required strings
GS-E needs the following lines as a minimum
specID = 251,
author = "John Mets",
helpTxt = " Talents I revised are 3 1 3 3 1 2 1",
The specID can be either the specID for your class or it can be your classID. You can find out your specID and classID in game by entering /gs showspec
or they are available online.
Stage 4: Add GS-E optional strings
icon = 234251,
lang = "enUS",
These two are optional. You dont have to specify an icon but you can do so via either iconID or texture name.
The lang tag is to say this particular sequence is in another locale than english. German is deDE for example. If your sequence is not in enUS people will either need to be playing with your same client locale or install the GS-SequenceTranslator. It is expected that all sequences shared here will be enUS.
Your end result will look like:
Sequences["DFPTR"] = {
specID = 251,
author = "John Mets",
helpTxt = " Talents I revised are 3 1 3 3 1 2 1",
lang="enUS",
StepFunction = GSStaticPriority,
PreMacro = [[
/cast [combat] Pillar of Frost
]],
"/castsequence reset=combat Obliterate, Frost Strike",
'/castsequence reset=combat Obliterate, Frost Strike, Frost Strike, Obliterate, howling blast',
"/castsequence reset=combat Obliteration",
"/cast [combat] remorseless winter",
"/cast [combat] empower rune weapon",
PostMacro = [[
/targetenemy [noharm][dead]
/cast [combat] Anti-Magic Shell
]],
}