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:277,784
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 02-07-16, 07:59 AM  
nwaters80
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Warrior Macro

Originally Posted by Wikwire
Nm figured it out!
I am also trying this macro, however when I edit the note document, then make a blank Macro using the name Fury the macro button does nothing. How did you fix this?

I renamed the Note file "Sequences.lua"

Deleted the current text all the way up to

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

Sequences[“Fury”] = {

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]
/console Sound_EnableSFX 0
]],
[[/cast charge]],
[[/cast Enraged Regeneration]],
[[/cast Dragon Roar]],
[[/cast Execute]],
[[/cast Execute]],
[[/cast Bloodthirst]],
[[/cast Wild Strike]],
[[/cast Bloodthirst]],
[[/cast Raging Blow]],
[[/cast Wild Strike]],
[[/cast Bloodthirst]],
[[/cast Raging Blow]],
[[/cast Execute]],
[[/cast Execute]],
PostMacro = [[
/startattack
/cast charge
/cast reset=45[combat]Siegebreaker,
/cast Dragon Roar
/cast Execute
/cast Execute
/cast Avatar
/cast Recklessness
/cast Berserker Rage
/cast Siegebreaker
/cast Hamstring
/cast Dragon Roar
/cast Execute
/cast Execute
/console Sound_EnableSFX 1
]],
}

Then created a new blank macro Icon with the name "Fury"

But I click on it and it does nothing.

When I load WoW GnomeSequencer gives me an erro "syntax error on line 3 of sequencer.lua: unexpected symbol near "?".

Any help?
Last edited by nwaters80 : 02-07-16 at 08:21 AM.
Report comment to moderator  
Reply With Quote
Unread 02-04-16, 08:29 PM  
Wikwire
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Nm figured it out!
Report comment to moderator  
Reply With Quote
Unread 02-04-16, 08:07 PM  
Wikwire
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
New here, need help[

So this is my first time using GS here is what I have, I've named my in game macor to FURY and Furyaoe and nothing happens when I push either button:

Sequences[“Fury”] = {

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]
/console Sound_EnableSFX 0
]],
[[/cast charge]],
[[/cast Impending Victory]],
[[/cast Dragon Roar]],
[[/cast Execute]],
[[/cast Execute]],
[[/cast Bloodthirst]],
[[/cast Wild Strike]],
[[/cast Bloodthirst]],
[[/cast Raging Blow]],
[[/cast Wild Strike]],
[[/cast Bloodthirst]],
[[/cast Raging Blow]],
[[/cast Execute]],
[[/cast Execute]],
PostMacro = [[
/startattack
/cast charge
/cast reset=45[combat]Siegebreaker,
/cast Dragon Roar
/cast Execute
/cast Execute
/cast Avatar
/cast Recklessness
/cast Berserker Rage
/cast Siegebreaker
/cast Hamstring
/cast Dragon Roar
/cast Execute
/cast Execute
/console Sound_EnableSFX 1
]],
}

Sequences[“Furyaoe”] = {
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]
/console Sound_EnableSFX 0
]],
[[/cast Bloodthirst]],
[[/cast Whirlwind]],
[[/cast Raging Blow]],
[[/cast Whirlwind]],
[[/cast Execute]],
[[/cast Wild Strike]],
[[/cast reset=30 [combat] Impending Victory]],
[[/cast Bloodthirst]],
[[/cast Whirlwind]],
[[/cast Raging Blow]],
[[/cast Whirlwind]],
[[/cast Raging Blow]],
[[/cast Bloodthirst]],
[[/cast Wild Strike]],
[[/cast Whirlwind]],
PostMacro = [[
/startattack
/cast Avatar
/cast [combat] Blade Storm
/cast [combat] Berserker Rage
/console Sound_EnableSFX 1
]],
}
Report comment to moderator  
Reply With Quote
Unread 01-20-16, 11:44 AM  
jess0073
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Question Gnomesequencer

Hello, I write you to know how to use your addon " GnomeSequencer "? I am French and I understood well that the maccro has to be in French...
But I does not understand(include) why it does not work? Mon Pc with Windows 10 and I does not understand either... Why, when I download I have 4 files and in video which it 3.

I post you this below the maccro which I found and to modify in French;
Sequences['wfpvpt'] =

{StepFunction =
[[= limite ou 1
si l'étape == limite,
= limite% #macros + 1
pas = 1
autre
step = étape #macros% + 1

fin]],

PreMacro = [[
/cast Avatar
/cast Témérité
/
]],
"/cast Eclair de tempête",
'/cast Charge',
'/castsequence reset=5 éxecution, Briseur de siège, Sanguinaire, Frappe sauvage, coup déchaîné',
'/cast éxecution',
'/cast Briseur de siège',
'/cast Sanguinaire',
'/cast Frappe Sauvage',
'/cast Coup déchaîné',
"/cast !Brise_genou",
'/cast Ivresse de la victoire',
'/cast Volée de coups',

PostMacro = [[
/use 13
/use 14
/cast Rage de berserker
]],
}
Report comment to moderator  
Reply With Quote
Unread 01-20-16, 10:18 AM  
jess0073
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Question Gnomesequencer

Bonjour, je vous écris pour savoir comment fonctionne votre addon "GnomeSequencer" ? je suis français et j'ai bien compris que la maccro doit être en français...
Mais je ne comprend pas pourquoi ça ne marche pas ? Mon Pc à windows 10 et je ne comprend pas non plus... Pourquoi, quand je télécharge j'ai 4 fichiers contrairement au vidéo qui en on 3.

Je vous poste ci dessous la maccro que j'ai trouvé et modifier en français ;

Sequences['wfpvpt'] =

{StepFunction =
[[= limite ou 1
si l'étape == limite,
= limite% #macros + 1
pas = 1
autre
step = étape #macros% + 1

fin]],

PreMacro = [[
/cast Avatar
/cast Témérité
/
]],
"/cast Eclair de tempête",
'/cast Charge',
'/castsequence reset=5 éxecution, Briseur de siège, Sanguinaire, Frappe sauvage, coup déchaîné',
'/cast éxecution',
'/cast Briseur de siège',
'/cast Sanguinaire',
'/cast Frappe Sauvage',
'/cast Coup déchaîné',
"/cast !Brise_genou",
'/cast Ivresse de la victoire',
'/cast Volée de coups',

PostMacro = [[
/use 13
/use 14
/cast Rage de berserker
]],
}
Report comment to moderator  
Reply With Quote
Unread 12-28-15, 09:34 PM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Re: Re: Having Trouble with Addon

Originally Posted by Aesh
You forget to put code before macros.

Code:
StepFunction = [[
        limit = limit or 1
        if step == limit then
            limit = limit % #macros + 1
            step = 1
        else
            step = step % #macros + 1
        end
    ]],
The step function is not required, you only need to add one if you want to change how it behaves.
Report comment to moderator  
Reply With Quote
Unread 12-28-15, 02:18 PM  
Aesh
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 11
File comments: 56
Uploads: 5
Re: Having Trouble with Addon

Originally Posted by Unravel758
Hello, I'm having trouble getting this addon to work. These are the steps that I've done and I've still been unable to get this addon to work.

- Downloaded addon into OS and opened it
-Copy/Transferred file to my Addon file in WoW
-Copied file ExampleGnomeSequences and renamed it Sequences.lua
-Opened Sequences.lua and left the line "local _, Sequences = ... -- Don't touch this" alone
-after I did this I wanted to see if I copied the addon over correctly so I opened up WoW and turned off all addons except GnomeSequencer which was showing up in my addon files.
-I tried making a macro 'GnomeExample1' to see if the addon was working correctly and the addon would not show up after created - the macro box would be blank after typing in GnomeExample1
-I tried putting in the name of the following macro for a Beast Master Hunter GS code:

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

Sequences['BM1'] = {
PreMacro = [[
/cast [@focus,help][help][@pet,exists] Misdirection
]],
PostMacro = [[
/use [combat]13
/use [combat]14
/script UIErrorsFrame:Clear()
]],

-- Macro1
[[
/cast [nochanneling] Kill Command
]],
-- Macro2
[[
/cast [nochanneling] Kill Shot
]],
-- Macro3
[[
/cast [nochanneling] Glaive Toss
]],
-- Macro4
[[
/cast [nochanneling] Cobra Shot
]],
-- Macro5
[[
/cast [nochanneling] Arcane Shot
]],
-- Macro6
[[
/cast [nochanneling] !Focus Fire
]],
-- Macro7
[[
/cast [nochanneling] Bestial Wrath
]],
-- Macro8
[[
]],
}

-typed in BM1 for addon name and the macro window still is blank after hitting 'okay' button.

Please help me if you see a problem with my setup or if you can give me advice.
You forget to put code before macros.

Code:
StepFunction = [[
        limit = limit or 1
        if step == limit then
            limit = limit % #macros + 1
            step = 1
        else
            step = step % #macros + 1
        end
    ]],
This one should work. Offcourse you need to paste it in Sequences.lua :

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

Sequences['BM1'] = {

StepFunction = [[
        limit = limit or 1
        if step == limit then
            limit = limit % #macros + 1
            step = 1
        else
            step = step % #macros + 1
        end
    ]],

PreMacro = [[
/cast [@focus,help][help][@pet,exists] Misdirection
]],
PostMacro = [[
/use [combat]13
/use [combat]14
/script UIErrorsFrame:Clear()
]],

-- Macro1
[[
/cast [nochanneling] Kill Command
]],
-- Macro2
[[
/cast [nochanneling] Kill Shot
]],
-- Macro3
[[
/cast [nochanneling] Glaive Toss
]],
-- Macro4
[[
/cast [nochanneling] Cobra Shot
]],
-- Macro5
[[
/cast [nochanneling] Arcane Shot
]],
-- Macro6
[[
/cast [nochanneling] !Focus Fire
]],
-- Macro7
[[
/cast [nochanneling] Bestial Wrath
]],
}
Report comment to moderator  
Reply With Quote
Unread 12-28-15, 04:54 AM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Re: Having Trouble with Addon

Originally Posted by Unravel758
Hello, I'm having trouble getting this addon to work. These are the steps that I've done and I've still been unable to get this addon to work.
If GnomeSequencer is being loaded and it isn't working it will print any errors it encounters to the chat, you might have to scroll up to view them but they should be there.

There's nothing wrong with what you have written, so it's an issue with how you installed it. Either your sequences file isn't named correctly or you're editing some other copy of the file.

Windows hides file extensions by default, so if you only saw "ExampleSequences" as the original file name instead of "ExampleSequences.lua", then you should have only removed "Example" from the file name, not added ".lua" to the end of it, otherwise it's probably now called "Sequences.lua.lua".
Report comment to moderator  
Reply With Quote
Unread 12-27-15, 10:53 PM  
Unravel758
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Having Trouble with Addon

Hello, I'm having trouble getting this addon to work. These are the steps that I've done and I've still been unable to get this addon to work.

- Downloaded addon into OS and opened it
-Copy/Transferred file to my Addon file in WoW
-Copied file ExampleGnomeSequences and renamed it Sequences.lua
-Opened Sequences.lua and left the line "local _, Sequences = ... -- Don't touch this" alone
-after I did this I wanted to see if I copied the addon over correctly so I opened up WoW and turned off all addons except GnomeSequencer which was showing up in my addon files.
-I tried making a macro 'GnomeExample1' to see if the addon was working correctly and the addon would not show up after created - the macro box would be blank after typing in GnomeExample1
-I tried putting in the name of the following macro for a Beast Master Hunter GS code:

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

Sequences['BM1'] = {
PreMacro = [[
/cast [@focus,help][help][@pet,exists] Misdirection
]],
PostMacro = [[
/use [combat]13
/use [combat]14
/script UIErrorsFrame:Clear()
]],

-- Macro1
[[
/cast [nochanneling] Kill Command
]],
-- Macro2
[[
/cast [nochanneling] Kill Shot
]],
-- Macro3
[[
/cast [nochanneling] Glaive Toss
]],
-- Macro4
[[
/cast [nochanneling] Cobra Shot
]],
-- Macro5
[[
/cast [nochanneling] Arcane Shot
]],
-- Macro6
[[
/cast [nochanneling] !Focus Fire
]],
-- Macro7
[[
/cast [nochanneling] Bestial Wrath
]],
-- Macro8
[[
]],
}

-typed in BM1 for addon name and the macro window still is blank after hitting 'okay' button.

Please help me if you see a problem with my setup or if you can give me advice.
Report comment to moderator  
Reply With Quote
Unread 12-27-15, 06:49 PM  
Addonic
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
Re: Re: Re: Re: ElvUI + Gnomesequencer

Originally Posted by semlar
Originally Posted by Addonic
Hello, yes, i got it bound to my side bottoms on my razor mouse.
You can try remapping the button on the mouse (in the razer software or whatever) to a keyboard key so it isn't treated as a mouse click, other than that I'm not sure if there's a setting in elvui that might help.
Thx for the help. After your last replay i figured it out. And now after i see how stupid i was the way i set it up

Once again, thanks for the help.
Report comment to moderator  
Reply With Quote
Unread 12-27-15, 06:41 PM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Re: Re: Re: ElvUI + Gnomesequencer

Originally Posted by Addonic
Hello, yes, i got it bound to my side bottoms on my razor mouse.
You can try remapping the button on the mouse (in the razer software or whatever) to a keyboard key so it isn't treated as a mouse click, other than that I'm not sure if there's a setting in elvui that might help.
Report comment to moderator  
Reply With Quote
Unread 12-27-15, 06:03 PM  
Addonic
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
Re: Re: ElvUI + Gnomesequencer

Originally Posted by semlar
Originally Posted by Addonic
Hello, i got a little problem and whant to see if it's only me or a common problem.

Lets say that we are in a raid and the boss fight starts. My rotation works perfect and gnomesequencer does it's job, and very good on my hunter btw.

But now to my little problem. while gnomesequencer is working and i move the mouse pointer over to any frame of elvui "raid frame,player fram,map then my rotation stops. Moves the mouse pointer auto of elvui's frames and gnomesequencer starts again with it's rotation.

Any one got an soulution for this. If i use wow internal ui there's no problem.
There's nothing in GnomeSequencer that would cause this directly; if you have your macro bound to a mouse button it's possible that a mouse-enabled frame could intercept the clicks and prevent them from going through.

Do you have it bound to the mouse?
Hello, yes, i got it bound to my side bottoms on my razor mouse.
Report comment to moderator  
Reply With Quote
Unread 12-27-15, 02:40 AM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Re: ElvUI + Gnomesequencer

Originally Posted by Addonic
Hello, i got a little problem and whant to see if it's only me or a common problem.

Lets say that we are in a raid and the boss fight starts. My rotation works perfect and gnomesequencer does it's job, and very good on my hunter btw.

But now to my little problem. while gnomesequencer is working and i move the mouse pointer over to any frame of elvui "raid frame,player fram,map then my rotation stops. Moves the mouse pointer auto of elvui's frames and gnomesequencer starts again with it's rotation.

Any one got an soulution for this. If i use wow internal ui there's no problem.
There's nothing in GnomeSequencer that would cause this directly; if you have your macro bound to a mouse button it's possible that a mouse-enabled frame could intercept the clicks and prevent them from going through.

Do you have it bound to the mouse?
Report comment to moderator  
Reply With Quote
Unread 12-27-15, 02:19 AM  
Addonic
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
ElvUI + Gnomesequencer

Hello, i got a little problem and whant to see if it's only me or a common problem.

Lets say that we are in a raid and the boss fight starts. My rotation works perfect and gnomesequencer does it's job, and very good on my hunter btw.

But now to my little problem. while gnomesequencer is working and i move the mouse pointer over to any frame of elvui "raid frame,player fram,map then my rotation stops. Moves the mouse pointer auto of elvui's frames and gnomesequencer starts again with it's rotation.

Any one got an soulution for this. If i use wow internal ui there's no problem.
Report comment to moderator  
Reply With Quote
Unread 12-04-15, 03:53 AM  
Buffmeplx
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
great Addon!!

I love it! thanks for making it !
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: