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 |
![]() |
|
A Kobold Labourer
Forum posts: 0
File comments: 4
Uploads: 0
|
Might Help You Guys!
Okay. So. i just Read All 8 Pages of these comments. And. I finally Figured it out... when none of it worked. I did everything step by step, extremely carefully. Extremely...
When i Re-Downloaded the Original Files. I looked at them Closely. Pic Provided. http://prntscr.com/597f6e I circled the problem in red. This file came like this on my system. May be different for others. Im running Windows 8.1. When you rename the file to "Sequences.lua" You break it. I fought this for almost 3 hours now. Almost Gave up. Rename it simply "Sequences" (No Quotes of Course). http://prntscr.com/597fnn Working like a charm now. LOVIN IT!
Last edited by Beall : 11-23-14 at 12:49 AM.
|
![]() |
![]() |
Beall |
View Public Profile |
Send a private message to Beall |
Find More Posts by Beall |
Add Beall to Your Buddy List |
Artemisha |
View Public Profile |
Send a private message to Artemisha |
Find More Posts by Artemisha |
Add Artemisha to Your Buddy List |
fogyreef |
View Public Profile |
Send a private message to fogyreef |
Find More Posts by fogyreef |
Add fogyreef to Your Buddy List |
Wifeaggrosux |
View Public Profile |
Send a private message to Wifeaggrosux |
Find More Posts by Wifeaggrosux |
Add Wifeaggrosux to Your Buddy List |
![]() |
|
A Defias Bandit
Forum posts: 3
File comments: 12
Uploads: 0
|
Ok,
I highly recommend downloading Notepad++ as it's syntax highlighting caught the errors I had in the file that my experienced but worn out mind couldn't. It's back to working for me. Lesson learned: If it suddenly stopped working for you, chances are the problem lies between the keyboard and the chair. Triple check the syntax, and if you have to, re-download the original file and start over with a very basic macro, then expand on it. ![]() |
![]() |
![]() |
fogyreef |
View Public Profile |
Send a private message to fogyreef |
Find More Posts by fogyreef |
Add fogyreef to Your Buddy List |
![]() |
|
A Kobold Labourer
Forum posts: 0
File comments: 2
Uploads: 0
|
Hi!
Great Add-on for us - the lazies! ![]() But i hope you can help by clarifying two questions: 1st) Is there a line or action limit for the Sequence.lu file. It seems i can have up to 3 Sequences (around ~50 lines), once I add anything else to the file, none of the macros work (the in-game macro appears black/empty) 2nd) Can you or some other enthusiast provide additional information for the step function - perhaps a working example? |
![]() |
![]() |
Laak |
View Public Profile |
Send a private message to Laak |
Find More Posts by Laak |
Add Laak to Your Buddy List |
![]() |
|
A Kobold Labourer
Forum posts: 0
File comments: 1
Uploads: 0
|
Help
I managed to get the addon to work as intended when I installed my ret macros but for some reason after few days when I tried to get my prot macros in there it just won't show up when I type the name I set it under. Not sure what's causing this.
|
![]() |
![]() |
913 |
View Public Profile |
Send a private message to 913 |
Find More Posts by 913 |
Add 913 to Your Buddy List |
![]() |
|
A Kobold Labourer
Forum posts: 0
File comments: 1
Uploads: 0
|
cast syntax help
Below is my sequences file and I cannot get Avenger's Shield to fire off. Can someone assist?
Sequences["PROT"] = { PreMacro = [[ /targetenemy [noharm][dead] /castsequence reset=2 Seal of Insight,null ]], [[/cast Hammer of Wrath]], [[/cast !Avenger's Shield]], [[/cast Shield of the Righteous]], [[/cast Crusader Strike]], [[/cast Judgment]], [[/cast Exorcism]], [[/cast Consecration]], [[/cast Divine Protection]], [[/cast Holy Wrath]], PostMacro = [[ ]], }
Last edited by crisdan : 11-16-14 at 02:45 PM.
|
![]() |
![]() |
crisdan |
View Public Profile |
Send a private message to crisdan |
Find More Posts by crisdan |
Add crisdan to Your Buddy List |
![]() |
||
A Kobold Labourer
Forum posts: 0
File comments: 1
Uploads: 0
|
same problem
Last edited by tenrub : 11-15-14 at 09:50 PM.
|
|
![]() |
![]() |
tenrub |
View Public Profile |
Send a private message to tenrub |
Find More Posts by tenrub |
Add tenrub to Your Buddy List |
![]() |
|
A Kobold Labourer
Forum posts: 0
File comments: 1
Uploads: 0
|
If statements
Code:
Sequences['BMSingle'] = { PreMacro = [[ /targetenemy [noharm][dead] /startattack /petattack [@target,harm] ]], '/cast A Murder of Crows', '/cast Dire Beast', '/cast Kill Command', '/cast Bestial Wrath', '/cast Blood Fury', step = step or 1 if step = 1 then '/cast Arcane Shot' step = step + 1 elseif step = 2 then '/cast Arcane Shot' step = step + 1 elseif step = 3 then '/cast Cobra Shot' step = step + 1 elseif step = 4 then '/cast Cobra Shot' step = 1 end ]], '/use 13', '/use 14', } |
![]() |
![]() |
dubzie |
View Public Profile |
Send a private message to dubzie |
Find More Posts by dubzie |
Add dubzie to Your Buddy List |
![]() |
|
A Defias Bandit
Forum posts: 3
File comments: 12
Uploads: 0
|
Waiting for maint to test some fixes.
In the meantime, Semlar, can you include the formatting requirements in the sequences.lua, such as spaces in names, spaces between sequences, etc? Anything formatting-related that would break the addon. Also, Divega mentioned this works only for melee, inferring that casting is interrupted. Assuming everything works as normal wouldn't /stopmacro [channeling] in the premacro be the solution? Edit: Also, check your single quotes to make sure your copy/paste from various websites doesn't reformat them to a different style of single quotes. First one I grabbed did just that. At this point I'm too tired to swear that's a thing, but in the blur that was the first day of the expansion I seem to recall someone mentioning it as a thing. ![]() Edit2: After logging in, when creating the blank macro it doesn't auto-fill the macro. Names match, no spaces , etc.
Last edited by fogyreef : 11-15-14 at 10:46 AM.
|
![]() |
![]() |
fogyreef |
View Public Profile |
Send a private message to fogyreef |
Find More Posts by fogyreef |
Add fogyreef to Your Buddy List |
![]() |
|||
A Kobold Labourer
Forum posts: 1
File comments: 3
Uploads: 0
|
Edit: ok I found the culprit. It is Macrotoolkit, once I disable that it also created the macro with the German client. Thank you for your work on this Addon, keep it up!
Last edited by Tobag : 11-15-14 at 05:47 AM.
|
||
![]() |
![]() |
Tobag |
View Public Profile |
Send a private message to Tobag |
Find More Posts by Tobag |
Add Tobag to Your Buddy List |
![]() |
||
|
If you don't have a text editor capable of changing the character encoding and you want to use characters outside the normal ascii range then you should download notepad++ or something similar to edit the file in UTF-8 mode.
Last edited by semlar : 11-15-14 at 05:05 AM.
|
|
![]() |
![]() |
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: 1
File comments: 3
Uploads: 0
|
Language
double post, pls delete
![]()
Last edited by Tobag : 11-15-14 at 05:38 AM.
|
![]() |
![]() |
Tobag |
View Public Profile |
Send a private message to Tobag |
Find More Posts by Tobag |
Add Tobag to Your Buddy List |
![]() |
|
A Kobold Labourer
Forum posts: 1
File comments: 3
Uploads: 0
|
This addon only seems to work with an English client.
I could not get it to work on a German client, it fails at the Marco overwriting point. When you name your macro like you named your sequence it will not fill in the macro! Once i switched my client to English it worked. Would be nice if it worked not only in English pls ![]() |
![]() |
![]() |
Tobag |
View Public Profile |
Send a private message to Tobag |
Find More Posts by Tobag |
Add Tobag to Your Buddy List |
![]() |