Go to Page... |
Compatibility: | Shadows of Argus (7.3.0) Tomb of Sargeras (7.2.0) |
Updated: | 08-31-17 04:23 AM |
Created: | 10-29-14 03:51 AM |
Downloads: | 278,025 |
Favorites: | 125 |
MD5: |
This is a small addon that allows you create a sequence of macros to be executed at the push of a button.
Like a /castsequence macro, it cycles through a series of commands when the button is pushed. However, unlike castsequence, it uses macro text for the commands instead of spells, and it advances every time the button is pushed instead of stopping when it can't cast something.
This means if a spell is on cooldown and you push the button it will continue to the next item in the list with each press until it reaches the end and starts over.
When you first install the addon you will need to rename "ExampleSequences.lua" to "Sequences.lua" and open the file in a text editor to add your own sequences.
The Sequences file contains a couple examples to get you started with writing your own sequences, I'll post its entirety here.
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 ]], }
![]() |
Comment Options |
semlar |
View Public Profile |
Send a private message to semlar |
Find More Posts by semlar |
Add semlar to Your Buddy List |
![]() |
|
A Kobold Labourer
Forum posts: 0
File comments: 1
Uploads: 0
|
Step Function Assistance
I have been studying writing a good Frost DK 2H step rotation based on the advice found here as far as priority goes:
-Plague Leech if Blood Plague has 4 seconds or less left -Blood Tap if your target is at or below 35%, Soul Reaper is off cooldown but you have no runes and do have blood tap charges -Plague Leech if the above applies but you have no blood tap charges (and PL is available) -Soul Reaper if target is at or below 35% -Howling Blast on FF proc -Death Strike on Dark Succor proc -Oubreak if Blood Plague isn't up -Plague Strike if Outbreak is unglyphed and on CD -Blood Tap if you have 11 Blood Tap charges (as to not overcap) -Howling Blast to apply Necrotic Plague if you have it -Blood Tap when Killing Machine procs but you have no runes for Obliterate -Plague Leech if above applies but Blood Tap is unavailable but PL is -Obliterate on KM proc -FS on KM proc if Obliterate has more than 4 sec CD (as to not waste KM proc) -FS when runic power is about te be capped (80+) -Obliterate if nothing else available -FS if nothing else available but RP is over 55 to keep RP for Outbreak if needed -Blood Tap if nothing else availble -Plague Leech if nothing else available i am not sure how detailed a step function can be and if you can build in GCD's. I have been playing WOW since vanilla all through Cata then took a break till now. I just finished leveling my DK too 100 (main spec is blood) but like the DPS / OT function as well. The mechanics of the game have changed fundamentally since I last played and am looking for a catch up......thanks for any assistance !! ![]() |
![]() |
![]() |
FuzzyButt |
View Public Profile |
Send a private message to FuzzyButt |
Find More Posts by FuzzyButt |
Add FuzzyButt to Your Buddy List |
![]() |
||
|
Re: Re: Re: Re: Re: Re: Frost DK 2H Help
I could support adding #showtooltip <spell> to the macros to show something specific, but I would have a hard time making it accurately display what castsequence is currently doing. I'm not entirely sure how it will behave, but you can try changing line 6 in Core.lua from Lua Code:
Lua Code:
Last edited by semlar : 01-25-15 at 10:00 PM.
|
|
![]() |
![]() |
semlar |
View Public Profile |
Send a private message to semlar |
Find More Posts by semlar |
Add semlar to Your Buddy List |
![]() |
|||
|
Re: Re: Re: Re: Re: Frost DK 2H Help
|
||
![]() |
![]() |
kaiden |
View Public Profile |
Send a private message to kaiden |
Find More Posts by kaiden |
Add kaiden to Your Buddy List |
![]() |
||
A Kobold Labourer
Forum posts: 0
File comments: 5
Uploads: 0
|
Re: Re: Re: Re: Re: Re: Re: Frost DK 2H Help
|
|
![]() |
![]() |
jesusjuice |
View Public Profile |
Send a private message to jesusjuice |
Find More Posts by jesusjuice |
Add jesusjuice to Your Buddy List |
![]() |
|
|
Re: Re: Re: Re: Re: Re: Frost DK 2H Help
Remove everything after the } that's closing your Frost sequence, this is all you need..
Lua Code:
|
![]() |
![]() |
semlar |
View Public Profile |
Send a private message to semlar |
Find More Posts by semlar |
Add semlar to Your Buddy List |
![]() |
||
A Kobold Labourer
Forum posts: 0
File comments: 5
Uploads: 0
|
Re: Re: Re: Re: Re: Frost DK 2H Help
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 ]], } Sequences["Frost"] = { PreMacro = [[ /targetenemy [noharm][dead] ]], '/cast !Obliterate', '/cast Howling Blast', '/cast Plague Strike', '/cast Soul Reaper', '/cast Obliterate', '/cast Empower Rune Weapon', '/cast Anti-Magic Shell', '/cast Frost Strike', '/cast Dark Simulacrum', } ]], -- Macro 2 [[ /run print("Executing macro 2!") /cast SpellName2 ]], -- Macro 3 [[ /run print("Executing macro 3!") /cast SpellName3 ]], ]], ]], -- Macro 2 [[ /run print("Executing macro 2!") /cast SpellName2 ]], -- Macro 3 [[ /run print("Executing macro 3!") /cast SpellName3 ]], } |
|
![]() |
![]() |
jesusjuice |
View Public Profile |
Send a private message to jesusjuice |
Find More Posts by jesusjuice |
Add jesusjuice to Your Buddy List |
![]() |
||
|
Re: Re: Re: Re: Frost DK 2H Help
|
|
![]() |
![]() |
semlar |
View Public Profile |
Send a private message to semlar |
Find More Posts by semlar |
Add semlar to Your Buddy List |
![]() |
||||
|
Re: Re: Re: Frost DK 2H Help
As far as my script: Code:
Sequences['Monk.WWST'] = { 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 ]], '/castsequence reset=10 [combat,nochanneling] Fists of Fury,Tigereye Brew', '/castsequence reset=10 [combat,nochanneling] Chi Wave,Tiger Palm,Rising Sun Kick,Blackout Kick,Jab,Blackout Kick,Jab,Blackout Kick', '/cast [combat,nochanneling] Touch of Karma', '/cast [combat,nochanneling] Jab', '/cast [combat,nochanneling] Energizing Brew', PostMacro = [[ /cast [combat,nochanneling] Serenity /cast [combat,nochanneling] Invoke Xuen, the White Tiger /cast [combat,nochanneling] Touch of Death /use [combat,nochanneling] 13 /use [combat,nochanneling] 14 ]], } Am I thinking about this right? |
|||
![]() |
![]() |
kaiden |
View Public Profile |
Send a private message to kaiden |
Find More Posts by kaiden |
Add kaiden to Your Buddy List |
![]() |
|
|
Re: Re: Re: Re: Frost DK 2H Help
Try downloading the version I just uploaded, if there's a syntax error it should print it to the chat.
|
![]() |
![]() |
semlar |
View Public Profile |
Send a private message to semlar |
Find More Posts by semlar |
Add semlar to Your Buddy List |
![]() |
||||
A Kobold Labourer
Forum posts: 0
File comments: 5
Uploads: 0
|
Re: Re: Re: Frost DK 2H Help
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 ]], } Sequences["Frost"] = { PreMacro = [[ /targetenemy [noharm][dead] ]], '/cast !Obliterate', '/cast Howling Blast', '/cast Plague Strike', '/cast Soul Reaper', '/cast Obliterate', '/cast Empower Rune Weapon', '/cast Anti-Magic Shell', '/cast Frost Strike', '/cast Dark Simulacrum', } ]], -- Macro 2 [[ /run print("Executing macro 2!") /cast SpellName2 ]], -- Macro 3 [[ /run print("Executing macro 3!") /cast SpellName3 ]], } |
|||
![]() |
![]() |
jesusjuice |
View Public Profile |
Send a private message to jesusjuice |
Find More Posts by jesusjuice |
Add jesusjuice to Your Buddy List |
![]() |
|||
|
Re: Re: Frost DK 2H Help
There's nothing syntactically wrong with what's here, so the problem is somewhere else. |
||
![]() |
![]() |
semlar |
View Public Profile |
Send a private message to semlar |
Find More Posts by semlar |
Add semlar to Your Buddy List |
![]() |
|||
A Kobold Labourer
Forum posts: 0
File comments: 5
Uploads: 0
|
Re: Re: Frost DK 2H Help
Would it work then? |
||
![]() |
![]() |
jesusjuice |
View Public Profile |
Send a private message to jesusjuice |
Find More Posts by jesusjuice |
Add jesusjuice to Your Buddy List |
![]() |
||
|
Re: Frost DK 2H Help
![]() also fix your /startattack at the bottom.
Last edited by kaiden : 01-25-15 at 08:05 PM.
|
|
![]() |
![]() |
kaiden |
View Public Profile |
Send a private message to kaiden |
Find More Posts by kaiden |
Add kaiden to Your Buddy List |
![]() |
|
|
Is there any way I can get the first icon to not be the Red ? mark??
|
![]() |
![]() |
kaiden |
View Public Profile |
Send a private message to kaiden |
Find More Posts by kaiden |
Add kaiden to Your Buddy List |
![]() |