Download
(4Kb)
Download
Updated: 08-31-17 04:23 AM
Pictures
File Info
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,394
Favorites:125
MD5:

GnomeSequencer  Popular! (More than 5000 hits)

Version: 7.3.0.1
by: semlar [More]

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.

Lua Code:
  1. local _, Sequences = ... -- Don't touch this
  2.  
  3. ----
  4. -- 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.
  5. -- Every entry in the Sequences table defines a single sequence of macros which behave similarly to /castsequence.
  6. -- Sequence names must be unique and contain no more than 16 characters.
  7. -- 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.
  8. ----
  9.  
  10. ----
  11. -- Here's a large demonstration sequence documenting the format:
  12. Sequences["GnomeExample1"] = {
  13.     -- StepFunction optionally defines how the step is incremented when pressing the button.
  14.     -- This example increments the step in the following order: 1 12 123 1234 etc. until it reaches the end and starts over
  15.     -- DO NOT DEFINE A STEP FUNCTION UNLESS YOU THINK YOU KNOW WHAT YOU'RE DOING
  16.     StepFunction = [[
  17.         limit = limit or 1
  18.         if step == limit then
  19.             limit = limit % #macros + 1
  20.             step = 1
  21.         else
  22.             step = step % #macros + 1
  23.         end
  24.     ]],
  25.    
  26.     -- PreMacro is optional macro text that you want executed before every single button press.
  27.     -- This is if you want to add something like /startattack or /stopcasting before all of the macros in the sequence.
  28.     PreMacro = [[
  29. /run print("-- PreMacro Script --")
  30. /startattack   
  31.     ]],
  32.    
  33.     -- PostMacro is optional macro text that you want executed after every single button press.
  34.     -- I don't know what you would need this for, but it's here anyway.
  35.     PostMacro = [[
  36. /run print("-- PostMacro Script --")
  37.     ]],
  38.    
  39.     -- Macro 1
  40.     [[
  41. /run print("Executing macro 1!")
  42. /cast SpellName1
  43.     ]],
  44.    
  45.     -- Macro 2
  46.     [[
  47. /run print("Executing macro 2!")
  48. /cast SpellName2
  49.     ]],
  50.    
  51.     -- Macro 3
  52.     [[
  53. /run print("Executing macro 3!")
  54. /cast SpellName3
  55.     ]],
  56. }
  57.  
  58. ----
  59. -- Here is a short example which is what most sequences will look like
  60. Sequences["GnomeExample2"] = {
  61.     -- Macro 1
  62.     [[
  63. /run print("Executing macro 1!")
  64. /cast SpellName1
  65.     ]],
  66.    
  67.     -- Macro 2
  68.     [[
  69. /run print("Executing macro 2!")
  70. /cast SpellName2
  71.     ]],
  72.    
  73.     -- Macro 3
  74.     [[
  75. /run print("Executing macro 3!")
  76. /cast SpellName3
  77.     ]],
  78. }



If you like one of my addons, feel free to support the cause!

7.2.0.3 - Attempt to avoid a potential infinite loop caused by changing the macro icon
7.2.0.2 - Attempt to set macro icon more aggressively
7.2.0.1 - Fix for icons clearing when zoning (it's unclear what's causing this)
r5 - toc bump for 6.1
r4 - Added a custom error handler and changed how macros are edited to improve support with other macro addons.
r3 - Resolved a minor infinite loop involving UnregisterEvent('UPDATE_MACROS') not taking effect until the next frame.
r2 - Added custom step functionality, pre and post macro text, and made the sequences file (hopefully) easier to understand and edit.
Optional Files (0)


Post A Reply Comment Options
Unread 11-08-14, 06:37 AM  
bobthe
A Kobold Labourer

Forum posts: 1
File comments: 7
Uploads: 0
Hi all
I have 3 files in my addons interface GnomesequencerM folder
Core
GnomeSequencerM
Sequences

Below is what i have done in my Sequences file, but when i go in game and do /m to get macro screen up click new type HUNTER_DPS then click save nothing happens i know i should be getting some text on the link i am making so what is wrong please


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["HUNTER_DPS"] = {
PreMacro = [[
]],
'/cast A Murder of Crows',
'/cast Chimaera Shot',
'/cast Kill Shot',
'/cast Glaive Toss',
'/cast Aimed Shot',
'/cast Steady Shot',
'/cast Rapid Fire',
'/use crystal of Insanity',
PostMacro = [[
]],
}
Report comment to moderator  
Reply With Quote
Unread 11-07-14, 05:19 PM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Originally Posted by ceylina
I am needing to fire off two casts back to back in order to trigger the MM hunter talent steady focus.

Using just a straight sequence with two casts back to back doesn't fire off every time in sequence.

Is there a way to make a step so that it always does 1,1,2,3,4,5,6?
The addon can't temporarily disable the button to prevent it from moving forward, you will need to be careful about pushing it twice in a row.

You might be better off adding steady shot to the same key with a modifier so you can just hold shift when you want to cast it or something.

Originally Posted by Chris25
I use this addon and it is great. But i cant get crusader strike to work. I am german und the spell is called Krezfahrerstoß. I thik the ß makes problems but when i work normaly with makros there is nor problem. Can anybody help me?
You need to edit the file with utf-8 encoding in your editor, the character you're trying to use is not in the ASCII range.
Report comment to moderator  
Reply With Quote
Unread 11-07-14, 10:55 AM  
Chris25
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
I use this addon and it is great. But i cant get crusader strike to work. I am german und the spell is called Krezfahrerstoß. I thik the ß makes problems but when i work normaly with makros there is nor problem. Can anybody help me?

This is my file

Sequences['Retri'] = {
'/cast Hammer des Zorns',
'/cast Kreuzfahrerstoß',
'/cast Exorzismus',
'/cast Richturteil',
}

Everything works but '/cast Kreuzfahrerstoß
Report comment to moderator  
Reply With Quote
Unread 11-07-14, 10:22 AM  
ceylina
A Wyrmkin Dreamwalker

Forum posts: 50
File comments: 93
Uploads: 0
So far this is working out really well.

I am needing to fire off two casts back to back in order to trigger the MM hunter talent steady focus.

Using just a straight sequence with two casts back to back doesn't fire off every time in sequence.

Is there a way to make a step so that it always does 1,1,2,3,4,5,6?

For example, here is what I am using right now:

Code:
Sequences["MMDPS"] = {
	PreMacro = [[
/targetenemy [noharm][dead]
/petattack
	]],
	'/cast steady shot',
	'/cast steady shot',
	'/cast aimed shot',
	'/cast chimaera shot',
	'/cast powershot',
	'/cast a murder of crows',
	'/cast kill shot',
	PostMacro = [[
/cast [combat] Rapid Fire
	]],
}
I would prefer to have the macro fire this way:

Steady shot, steady shot, aimed shot, chimaera shot (on cooldown), powershot (on cooldown), a murder of crows (on cooldown), and kill shot (on cooldown).


Would using a castsequence work better than trying to figure out the step increment function option?
Report comment to moderator  
Reply With Quote
Unread 11-06-14, 09:28 PM  
bree
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
thank you very much

ty i saw where i had the quotes on the name, so i changed them and now all is great, ty ty
Report comment to moderator  
Reply With Quote
Unread 11-06-14, 09:20 PM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Re: still the same

Originally Posted by bree
I changed it to ...

Sequences ["Frost"] = {
[[/cast Obliterate]],
[[/cast Howling Blast]],
[[/cast Plague Strike]],
[[/cast Soul Reaper]],
[[/cast Obliterate]],
[[/cast Frost Strike]],
[[/cast [combat] Pillar of Frost]],
[[/cast [combat] Empower Rune Weapon]],
PostMacro = [[
/startattack
]],
}

it still will not work, any ideas? still get the same error..."Failed to load Sequences.lua or contains no macros, create the file from ExamplesSequences.lua and restart the game.
Turn lua errors on in the "help" menu in the interface and reload, it should be throwing an error if what you pasted here doesn't work.

Also make sure you kept the first line of the file intact, because that can't be removed.

Also, double-check that the file is actually called Sequences.lua.
Last edited by semlar : 11-06-14 at 09:21 PM.
Report comment to moderator  
Reply With Quote
Unread 11-06-14, 09:13 PM  
bree
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
still the same

I changed it to ...

Sequences ["Frost"] = {
[[/cast Obliterate]],
[[/cast Howling Blast]],
[[/cast Plague Strike]],
[[/cast Soul Reaper]],
[[/cast Obliterate]],
[[/cast Frost Strike]],
[[/cast [combat] Pillar of Frost]],
[[/cast [combat] Empower Rune Weapon]],
PostMacro = [[
/startattack
]],
}

it still will not work, any ideas? still get the same error..."Failed to load Sequences.lua or contains no macros, create the file from ExamplesSequences.lua and restart the game.
Last edited by bree : 11-06-14 at 09:17 PM.
Report comment to moderator  
Reply With Quote
Unread 11-06-14, 08:48 PM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Re: cant get macro to work :(

Originally Posted by bree
This is what I have, but it will not work. I went in game to macros and put the name "Frost" in but still doesn't work.

local _, Sequences = ... -- Don't touch this

Sequences['Frost'] = {
‘/cast Obliterate’,
‘/cast Howling Blast’,
‘/cast Plague Strike’,
‘/cast Soul Reaper’,
‘/cast Obliterate’,
‘/cast Frost Strike’,
‘/cast [combat] Pillar of Frost’,
‘/cast [combat] Empower Rune Weapon’,
PostMacro = [[
/startattack
]],
}

Any help to get it working would be great. When I log into wow I get the error...."Failed to load Sequences.lua or contains no macros, create the file from ExamplesSequences.lua and restart the game." I did rename the file to Sequences.lua. Thanks in advance for your help.
Those quote marks are potentially causing problems, you'll notice that they're slanted rather than straight quotes (' and " versus ‘ ’), it's probably something your editor is doing.

You can either replace the quotes with [[ and ]] like [[/cast Frost Strike]], etc. or switch to a text editor that doesn't use fancy quotes.
Report comment to moderator  
Reply With Quote
Unread 11-06-14, 08:34 PM  
bree
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Smile cant get macro to work :(

This is what I have, but it will not work. I went in game to macros and put the name "Frost" in but still doesn't work.

local _, Sequences = ... -- Don't touch this

Sequences['Frost'] = {
‘/cast Obliterate’,
‘/cast Howling Blast’,
‘/cast Plague Strike’,
‘/cast Soul Reaper’,
‘/cast Obliterate’,
‘/cast Frost Strike’,
‘/cast [combat] Pillar of Frost’,
‘/cast [combat] Empower Rune Weapon’,
PostMacro = [[
/startattack
]],
}

Any help to get it working would be great. When I log into wow I get the error...."Failed to load Sequences.lua or contains no macros, create the file from ExamplesSequences.lua and restart the game." I did rename the file to Sequences.lua. Thanks in advance for your help.
Report comment to moderator  
Reply With Quote
Unread 11-05-14, 11:22 AM  
infinityz
A Kobold Labourer

Forum posts: 0
File comments: 9
Uploads: 0
Re: Re: Re: Re: modifiers

Originally Posted by semlar
If you want it to always cast killshot when you hold down shift and steady shot when you hold down ctrl you would put that into the PreMacro section which gets executed before everything else does every time you push the button.
Lua Code:
  1. Sequences['Marks'] = {
  2. PreMacro = [[
  3. /cast [mod:shift] Kill Shot;[mod:ctrl] Steady Shot
  4. ]],
  5. '/cast Chimaera Shot',
  6. '/cast Glaive Toss',
  7. '/cast Aimed Shot',
  8. '/cast Steady Shot',
  9. '/cast Rapid Fire',
  10. PostMacro = [[
  11. /startattack
  12. /petattack
  13. ]],
  14. }
Cheers mate, this has made the trick :-)
Report comment to moderator  
Reply With Quote
Unread 11-05-14, 11:14 AM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Re: Re: Re: modifiers

Originally Posted by infinityz
Maybe I didn't put it in the right way:

Sequences['Marks'] = {
'/cast [mod:shift] Kill Shot;[mod:ctrl] Steady Shot'
'/cast Chimaera Shot',
'/cast Glaive Toss',
'/cast Aimed Shot',
'/cast Steady Shot',
'/cast Rapid Fire',
'/startattack',
'/petattack',
}

either shift and ctr do nothing when hit :-/
I don't know what you want it to do, so I'm not sure what to tell you.

The way you have it written it would cast kill shot or steady shot based on the modifier key you're holding down for the first cast in the sequence (you also have startattack and petattack on separate clicks which I assume you don't want either, and there's an example like 5 posts down on this page that shows how to write this).

If you want it to always cast killshot when you hold down shift and steady shot when you hold down ctrl you would put that into the PreMacro section which gets executed before everything else does every time you push the button.
Lua Code:
  1. Sequences['Marks'] = {
  2. PreMacro = [[
  3. /cast [mod:shift] Kill Shot;[mod:ctrl] Steady Shot
  4. ]],
  5. '/cast Chimaera Shot',
  6. '/cast Glaive Toss',
  7. '/cast Aimed Shot',
  8. '/cast Steady Shot',
  9. '/cast Rapid Fire',
  10. PostMacro = [[
  11. /startattack
  12. /petattack
  13. ]],
  14. }
Report comment to moderator  
Reply With Quote
Unread 11-05-14, 10:52 AM  
infinityz
A Kobold Labourer

Forum posts: 0
File comments: 9
Uploads: 0
Re: Re: modifiers

Originally Posted by semlar
Originally Posted by infinityz
do you think something like that:

/cast [mod:shift] Kill Shot;[mod:ctrl] Steady Shot

could work with your tool?
It should work, but it would only apply to the one macro in the sequence that it's in unless you put it into the "PreMacro" section.

It might not update the spell icon on the button though.
Maybe I didn't put it in the right way:

Sequences['Marks'] = {
'/cast [mod:shift] Kill Shot;[mod:ctrl] Steady Shot'
'/cast Chimaera Shot',
'/cast Glaive Toss',
'/cast Aimed Shot',
'/cast Steady Shot',
'/cast Rapid Fire',
'/startattack',
'/petattack',
}

either shift and ctr do nothing when hit :-/
Last edited by infinityz : 11-05-14 at 10:55 AM.
Report comment to moderator  
Reply With Quote
Unread 11-05-14, 10:38 AM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Re: modifiers

Originally Posted by infinityz
do you think something like that:

/cast [mod:shift] Kill Shot;[mod:ctrl] Steady Shot

could work with your tool?
It should work, but it would only apply to the one macro in the sequence that it's in unless you put it into the "PreMacro" section.

It might not update the spell icon on the button though.
Last edited by semlar : 11-05-14 at 10:40 AM.
Report comment to moderator  
Reply With Quote
Unread 11-05-14, 10:31 AM  
infinityz
A Kobold Labourer

Forum posts: 0
File comments: 9
Uploads: 0
modifiers

Hi,

do you think something like that:

/cast [mod:shift] Kill Shot;[mod:ctrl] Steady Shot

could work with your tool?

Thanks
Last edited by infinityz : 11-05-14 at 10:33 AM.
Report comment to moderator  
Reply With Quote
Unread 11-04-14, 07:01 PM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Originally Posted by dafino
One other question for you, Semlar. Is it possible to put conditionals in the /cast portion of the sequence? For instance, is it possible to use something like:

Code:
"/cast [nochanneling] Jab",
Yes, but the conditions will only apply to that macro in the sequence.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: