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,952
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 12-03-15, 04:45 PM  
elals29
A Wyrmkin Dreamwalker
 
elals29's Avatar

Forum posts: 57
File comments: 97
Uploads: 0
Re: help dl gnomesequencer

Originally Posted by wowjonmason
I tired everything to dl and seem not work and I think Im dumb to shit.. anyone will willing help me do with teamview and show me how do it right way, I'm rogue combat. I want one button for pvp.

I will tip...

Jon
Yeah I've never used this addon so I'm still trying to figure it out as well.
Report comment to moderator  
Reply With Quote
Unread 10-08-15, 07:02 PM  
wowjonmason
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
help dl gnomesequencer

I tired everything to dl and seem not work and I think Im dumb to shit.. anyone will willing help me do with teamview and show me how do it right way, Im rogue combat. I want one button for pvp.

I will tip...

Jon
Report comment to moderator  
Reply With Quote
Unread 10-05-15, 11:03 AM  
Dalikai
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Re: Re: GS and Step sequence

Originally Posted by semlar
Originally Posted by Dezoran
Am I right on thinking for every step there is a 1 second delay on a shot, I mean if I have to hit the button and it has to skip a shot then isn't that a delay in my shot rotation because I have to hit it a extra time to get the shot that is actually up and ready ?
I say this because I have ran 2 macros both with the same shot rotation one with GS the other with Macrotoolkit and out of 20 attempts on both macros Macrotoolkit came out a lot higher.
Could someone talk to the maker of GS and ask them ?
When you push the button it moves on to the next item in the list regardless of whether it successfully cast the spell or not.

If you just spam the key it will fail to cast anything, but continue to advance the steps, until the GCD has finished.
So how do you know when to hit the macro again? Do you wait for it to "light" up at the next step?
Report comment to moderator  
Reply With Quote
Unread 09-20-15, 10:06 PM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Re: Syntax Question

Originally Posted by techsgtchen
Why does Avenger's Shield require ["] instead of ['], such as the rest?

Example:
Code:
...	"/cast Avenger's Shield",
	'/cast Hammer of Wrath',
...
Because it has a quote in its name, lua will only read '/cast avenger' as a string, then throw a syntax error because the rest of the text is outside of the string.

I use brackets instead of quotes in all of my examples, which avoids the conflict altogether, but you can also use double quotes or single quotes as long as the string doesn't contain the type of quote that you're using.
Report comment to moderator  
Reply With Quote
Unread 09-20-15, 09:49 PM  
techsgtchen
A Theradrim Guardian
 
techsgtchen's Avatar

Forum posts: 68
File comments: 26
Uploads: 0
Question Syntax Question

Why does Avenger's Shield require ["] instead of ['], such as the rest?

Example:
Code:
...	"/cast Avenger's Shield",
	'/cast Hammer of Wrath',
...
Last edited by techsgtchen : 09-20-15 at 09:50 PM.
Report comment to moderator  
Reply With Quote
Unread 09-19-15, 03:29 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 techsgtchen
I am using Macro ToolKit as well. In case a conflict between the programs causes this error; Therefore I disabled it but GnomeSequencer still refused to append to the new PldnRetPvEST macro I create.
The only thing GS will put in the macro you created in-game is "/click PldnRetPvEST", if it didn't edit your macro then it should be putting a red error in your chat when you log in (you might have to scroll up to see it).

If there's no error then you may not actually have the addon enabled, make sure it's enabled in your addon list.
Report comment to moderator  
Reply With Quote
Unread 09-19-15, 02:50 PM  
techsgtchen
A Theradrim Guardian
 
techsgtchen's Avatar

Forum posts: 68
File comments: 26
Uploads: 0
Merry Meet!

Abundantly grateful for illumination, on what I am doing wrong, gifted me, am I.

PROBLEM:
  • While in the game, I created a Macro with one of the sequences name’s that I gave.
  • The macro fails to update with anything. It did at first last night but now it fails; That is it fails to ‘update’ the macro with whatever macro code Gnome Sequencer uses to pull my relevant sequence from the sequence.lua
  • The Macro persists with the ‘?’ as a graphic instead of something more relevant.

MY ACTIONS:
  • I downloaded and installed the [Gnome Sequencer] as the FAQ explained.
  • I renamed ExampleSequences.Lua file to Sequences.lua.
  • I pasted a few sequences that I found in Retribution and Protection forums. Specifically {Healme}'s and {Doom}’s, of WoWLazyMacros. I altered them slightly from how they explained the syntax.
  • To clarify, I went to the end of what 'was' ExampleSequences.lua where there is the '}' sign all by itself. I hit enter twice and then pasted the following code.
Code:
Sequences['PldnRetPvEST'] = {
StepFunction = [[
	limit = limit or 1
	if step == limit then
		limit = limit % #macros + 1
		step = 1
	else
		step = step % #macros + 1
	end
]],
PreMacro = [[
/console Sound_EnableSFX 0
/targetenemy [noharm][dead]
/cast [nostance: 1] Seal of Truth
    ]],
    '/cast Hammer of Wrath',
    '/cast Crusader Strike',
    '/cast Judgment',
    '/cast Exorcism',
    '/cast Execution Sentence',
    PostMacro = [[
/cast Templar's Verdict
/cast Avenging Wrath
/use 13
/use 14
/startattck
/script UIErrorsFrame:Hide();
/console Sound_EnableSFX 1
    ]],
}

Sequences['PldnRetPvEAE'] = {
StepFunction = [[
	limit = limit or 1
	if step == limit then
		limit = limit % #macros + 1
		step = 1
	else
		step = step % #macros + 1
	end
]],
PreMacro = [[
/console Sound_EnableSFX 0
/targetenemy [noharm][dead]
/cast [nostance: 2] Seal of Righteousness
    ]],
    '/cast Exorcism',
    '/cast Hammer of Wrath',
    '/cast Crusader Strike',
    '/cast Judgment',
    '/cast Divine Storm',
    '/cast Execution Sentence',
    PostMacro = [[
/cast Divine Storm
/cast Avenging Wrath
/use 13
/use 14
/startattck
/script UIErrorsFrame:Hide();
/console Sound_EnableSFX 1
    ]],
}

Sequences['PldnPrtPvEST'] = {
StepFunction = [[
	limit = limit or 1
	if step == limit then
		limit = limit % #macros + 1
		step = 1
	else
		step = step % #macros + 1
	end
]],
PreMacro = [[
/console Sound_EnableSFX 0
/targetenemy [noharm][dead]
]],
	'/cast Holy Wrath',
	'/cast Crusader Strike',	
	'/castsequence Judgment,Judgment,Judgment',
	'/cast Avenger's Shield',
	'/cast Hammer of Wrath',
	'/cast Consecration',
	'/cast Holy Prism',
PostMacro = [[
/cast [@player]Sacred Shield
/cast Shield of the Righteous
/cast Divine Protection
/startattack
/use 13
/use 14
/script UIErrorsFrame:Hide();
/console Sound_EnableSFX 1
]],
}

Sequences['PldnPrtPvEAE'] = {
StepFunction = [[
	limit = limit or 1
	if step == limit then
		limit = limit % #macros + 1
		step = 1
	else
		step = step % #macros + 1
	end
]],
PreMacro = [[
/console Sound_EnableSFX 0
/targetenemy [noharm][dead]
]],
	'/cast Holy Wrath',
	'/cast Hammer of the Righteous',	
	'/castsequence Judgment,Judgment,Judgment,Eternal Flame',
	'/cast Avenger's Shield',
	'/cast Hammer of Wrath',
	'/cast Consecration',
	'/cast [@player] Holy Prism',
PostMacro = [[
/cast Shield of the Righteous
/cast divine protection
/startattack
/use [combat]13
/use [combat]14
/script UIErrorsFrame:Hide();
/console Sound_EnableSFX 1
]],
}

Sequences['PBbblHrthstn'] = {
    '/cast Divine Shield', -- macro 1
    '/castsequence Garrison Hearthstone, Hearthstone, Admiral's Compass', -- macro 2
}
I am using Macro ToolKit as well. In case a conflict between the programs causes this error; Therefore I disabled it but GnomeSequencer still refused to append to the new PldnRetPvEST macro I create.

Thank you for sharing your time and Force; May you eternally ask the Goddess to alight your path.

Sincerely,
Report comment to moderator  
Reply With Quote
Unread 09-08-15, 09:17 PM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Re: GS and Step sequence

Originally Posted by Dezoran
Am I right on thinking for every step there is a 1 second delay on a shot, I mean if I have to hit the button and it has to skip a shot then isn't that a delay in my shot rotation because I have to hit it a extra time to get the shot that is actually up and ready ?
I say this because I have ran 2 macros both with the same shot rotation one with GS the other with Macrotoolkit and out of 20 attempts on both macros Macrotoolkit came out a lot higher.
Could someone talk to the maker of GS and ask them ?
When you push the button it moves on to the next item in the list regardless of whether it successfully cast the spell or not.

If you just spam the key it will fail to cast anything, but continue to advance the steps, until the GCD has finished.
Report comment to moderator  
Reply With Quote
Unread 09-08-15, 03:15 PM  
Dezoran
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
GS and Step sequence

Am I right on thinking for every step there is a 1 second delay on a shot, I mean if I have to hit the button and it has to skip a shot then isn't that a delay in my shot rotation because I have to hit it a extra time to get the shot that is actually up and ready ?
I say this because I have ran 2 macros both with the same shot rotation one with GS the other with Macrotoolkit and out of 20 attempts on both macros Macrotoolkit came out a lot higher.
Could someone talk to the maker of GS and ask them ?
Report comment to moderator  
Reply With Quote
Unread 09-02-15, 04:18 PM  
jkalb
A Kobold Labourer

Forum posts: 1
File comments: 2
Uploads: 0
Re: Frost DK Macro Question

Originally Posted by jkalb
I was wondering if there is a way to add more functionality to my macro. For example, since Plague Leech is the highest priority, is there a way that i can set it so the macro only uses it ONLY when I have 2 runes depleted? Also, cast Obliterate ONLY when Killing Machine is proc'd? I am basically trying to get the macro to do exactly what is suggested on Icy Veins. Here is a link to what I am talking about:

http://www.icy-veins.com/wow/frost-d...owns-abilities


This is the Gnome Macro that I have created:

Sequences['Frost2H'] = {
StepFunction = [[
limit = limit or 1
if step == limit then
limit = limit % #macros + 1
step = 1
else
step = step % #macros + 1
end
]],
PreMacro = [[
/console Sound_EnableSFX 0
/targetenemy [noharm][dead]
/cast [nostance: 1] Frost Presence
]],
'/cast Plague Leech',
'/cast Blood Tap',
'/cast Obliterate',
'/cast Howling Blast',
'/cast Plague Strike',
'/cast Frost Strike',
PostMacro = [[
/script UIErrorsFrame:Hide();
]],
}
it seems like the comments went completely off-topic immediately. can someone answer my question?
Report comment to moderator  
Reply With Quote
Unread 08-25-15, 02:47 PM  
jkalb
A Kobold Labourer

Forum posts: 1
File comments: 2
Uploads: 0
Frost DK Macro Question

I was wondering if there is a way to add more functionality to my macro. For example, since Plague Leech is the highest priority, is there a way that i can set it so the macro only uses it ONLY when I have 2 runes depleted? Also, cast Obliterate ONLY when Killing Machine is proc'd? I am basically trying to get the macro to do exactly what is suggested on Icy Veins. Here is a link to what I am talking about:

http://www.icy-veins.com/wow/frost-d...owns-abilities


This is the Gnome Macro that I have created:

Sequences['Frost2H'] = {
StepFunction = [[
limit = limit or 1
if step == limit then
limit = limit % #macros + 1
step = 1
else
step = step % #macros + 1
end
]],
PreMacro = [[
/console Sound_EnableSFX 0
/targetenemy [noharm][dead]
/cast [nostance: 1] Frost Presence
]],
'/cast Plague Leech',
'/cast Blood Tap',
'/cast Obliterate',
'/cast Howling Blast',
'/cast Plague Strike',
'/cast Frost Strike',
PostMacro = [[
/script UIErrorsFrame:Hide();
]],
}
Report comment to moderator  
Reply With Quote
Unread 08-25-15, 05:15 AM  
Vondreth
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
Originally Posted by woodgray
Originally Posted by Kittiez
I have a problem with /castsequence.
Every time it gets to the /castsequence line that i have, it only fires the first ability. It never continues to any of the others, no matter what i try. I tried putting different spells in the front and such, and it never ever continued past the first spell in the castsequence. It was as if i had only written 1 ability, and it just kept repeating that one spell.

It seems everyone uses the step script below as a catch all. It is not.
If you want your stuff to go 1 12 123 1234 use it.

If you dont and just want 1 2 3 4 take it out.


This is the culprit

StepFunction = [[
limit = limit or 1
if step == limit then
limit = limit % #macros + 1
step = 1
else
step = step % #macros + 1
end
]],
Report comment to moderator  
Reply With Quote
Unread 08-25-15, 04:55 AM  
Vondreth
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
Re: Directed to Selma or anybody who could solve this

Originally Posted by bobthe
Hi

To Selma are you doing an update to your Gnomesequencer or do we carry on with the change toc to 62000 from 61000

The other problem I have my hunter will auto attack another target in a raid once i have finished killing the previous 1

Sequences['HMST'] = {
...
PostMacro = [[
/use [combat]14
/petattack <<< Remove this line
]],
}

I cannot find a way to stop the macro auto attacking the next mob
Have you tried with removing /petattack and /startattack ?

Also, in the Interface of WoW, you have a option under Combat.
There you can add or remove a tag before "Attack on Assist" and "Stop Auto Attack".

I hope this helps a bit. If not... just keep an eye on the level of hitpoints left on your target. But that should be done always anyway.
Last edited by Vondreth : 08-25-15 at 04:57 AM.
Report comment to moderator  
Reply With Quote
Unread 08-15-15, 04:15 AM  
bobthe
A Kobold Labourer

Forum posts: 1
File comments: 7
Uploads: 0
Directed to Selma or anybody who could solve this

Hi

To Selma are you doing an update to your Gnomesequencer or do we carry on with the change toc to 62000 from 61000

The other problem I have my hunter will auto attack another target in a raid once i have finished killing the previous 1

Sequences['HMST'] = {
StepFunction = [[
limit = limit or 1
if step == limit then
limit = limit % #macros + 1
step = 1
else
step = step % #macros + 1
end
]],
PreMacro = [[
/petautocastoff [group] Growl
/petautocaston [nogroup] Growl
/targetenemy [noharm][dead]
/cast Rapid Fire
]],
'/castsequence [nochanneling] reset=20 !Barrage',
'/cast [nochanneling] !A Murder of Crows',
'/castsequence [nochanneling] reset=20 !Barrage',
'/cast [nochanneling] !Chimaera Shot',
'/castsequence [nochanneling] Kill Shot,Steady Shot,Steady Shot',
'/cast [nochanneling] !Chimaera Shot',
'/cast [nochanneling] Steady Shot',
'/cast [nochanneling] Aimed Shot',
'/cast [nochanneling] Aimed Shot',
'/cast [nochanneling] !Chimaera Shot',
'/cast [nochanneling] !Chimaera Shot',
'/cast [nochanneling] Aimed Shot',
'/cast [nochanneling] !Kill Shot',
'/cast [nochanneling] Arcane Shot',
PostMacro = [[
/use [combat]14
/petattack
]],
}

I cannot find a way to stop the macro auto attacking the next mob
Report comment to moderator  
Reply With Quote
Unread 08-13-15, 05:05 PM  
geoman
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
My lazy arcane mage for brainless questing

Sequences['Gnomer'] = {
PreMacro = [[
/targetenemy [noharm][dead]
]],
'/cast Ice Barrier',
'/cast Arcane Power',
'/cast Slow',
'/cast Arcane Blast',
'/cast Arcane Blast',
'/cast Arcane Blast',
'/cast Arcane Blast',
'/cast Arcane Missiles',
'/cast Arcane Missiles',
'/cast Supernova',
'/cast Supernova',
'/cast Arcane Barrage',
PostMacro = [[
/startattack
]],
}
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: