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,010
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 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
Unread 08-07-15, 08:28 PM  
Zexiøn
A Kobold Labourer

Forum posts: 0
File comments: 39
Uploads: 0
Re: Re: Re: Re: Issue with a paladin spell

Originally Posted by semlar
Originally Posted by Zexiøn
Hi I tried what you said to do and using the "/cast Templar's Verdict" and [[/cast Templar's Verdict]] broke my sequence file. So I don't know what to do. I guess i just manually cast the spell.
Perhaps you're missing the comma after the line, but I can't say anything without seeing the error and your sequences file. It should be printing the lua error to the chat if it's failing to load.
Edit, I got it working thanks I did accidentally forgot the comma at the end of the line. Thanks for the help semlar and again awesome addon.
Last edited by Zexiøn : 08-07-15 at 09:12 PM.
Report comment to moderator  
Reply With Quote
Unread 08-07-15, 07:25 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: Issue with a paladin spell

Originally Posted by Zexiøn
Hi I tried what you said to do and using the "/cast Templar's Verdict" and [[/cast Templar's Verdict]] broke my sequence file. So I don't know what to do. I guess i just manually cast the spell.
Perhaps you're missing the comma after the line, but I can't say anything without seeing the error and your sequences file. It should be printing the lua error to the chat if it's failing to load.
Report comment to moderator  
Reply With Quote
Unread 08-07-15, 07:08 PM  
Zexiøn
A Kobold Labourer

Forum posts: 0
File comments: 39
Uploads: 0
Re: Re: Issue with a paladin spell

Hi I tried what you said to do and using the "/cast Templar's Verdict" and [[/cast Templar's Verdict]] broke my sequence file. So I don't know what to do. I guess i just manually cast the spell.

Originally Posted by semlar
Originally Posted by Zexiøn
Hello I would first like to say i love your addon, it has made my wow playing so much easier. Now on to my issue, I am trying to use a paladin single target sequence for a lvl 91 paladin, the problem iis that the sequence will not use Templar’s Verdict if used in the post macro, and if i put it in the main macro area like '/cast Templar’s Verdict', then it break the whole sequence file. I know it is just that spell cause i can use my AOE sequence with no problems and its almost the same except AOE spells.
Since it has an apostrophe in it, it needs to be written as "/cast Templar's Verdict" or [[/cast Templar's Verdict]], you can't use single-quotes around it because it will think the string ends at the apostrophe.

The other problem is you're using a slanted quote in your example, I'm not sure if you're using that same kind of apostrophe in the file, but that's not valid, make sure you use a normal straight quote like this: ' not ’
Report comment to moderator  
Reply With Quote
Unread 08-07-15, 06:55 PM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Re: Issue with a paladin spell

Originally Posted by Zexiøn
Hello I would first like to say i love your addon, it has made my wow playing so much easier. Now on to my issue, I am trying to use a paladin single target sequence for a lvl 91 paladin, the problem iis that the sequence will not use Templar’s Verdict if used in the post macro, and if i put it in the main macro area like '/cast Templar’s Verdict', then it break the whole sequence file. I know it is just that spell cause i can use my AOE sequence with no problems and its almost the same except AOE spells.
Since it has an apostrophe in it, it needs to be written as "/cast Templar's Verdict" or [[/cast Templar's Verdict]], you can't use single-quotes around it because it will think the string ends at the apostrophe.

The other problem is you're using a slanted quote in your example, I'm not sure if you're using that same kind of apostrophe in the file, but that's not valid, make sure you use a normal straight quote like this: ' not ’
Last edited by semlar : 08-07-15 at 06:57 PM.
Report comment to moderator  
Reply With Quote
Unread 08-07-15, 06:39 PM  
Zexiøn
A Kobold Labourer

Forum posts: 0
File comments: 39
Uploads: 0
Issue with a paladin spell

Hello I would first like to say i love your addon, it has made my wow playing so much easier. Now on to my issue, I am trying to use a paladin single target sequence for a lvl 91 paladin, the problem iis that the sequence will not use Templar’s Verdict if used in the post macro, and if i put it in the main macro area like '/cast Templar’s Verdict', then it break the whole sequence file. I know it is just that spell cause i can use my AOE sequence with no problems and its almost the same except AOE spells.
Report comment to moderator  
Reply With Quote
Unread 08-03-15, 12:05 PM  
woodgray
A Kobold Labourer

Forum posts: 0
File comments: 6
Uploads: 0
Reset macro

Is there away to reset GS

Meaning if you are on the third step(or any step) of a macro "xxxx" and want to reset it back to the first step?

Not looking for a conditional (though would be nice) just a simple reset
Report comment to moderator  
Reply With Quote
Unread 07-27-15, 11:25 AM  
woodgray
A Kobold Labourer

Forum posts: 0
File comments: 6
Uploads: 0
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 07-23-15, 11:15 AM  
Kittiez
A Kobold Labourer

Forum posts: 1
File comments: 5
Uploads: 0
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.
Report comment to moderator  
Reply With Quote
Unread 06-25-15, 06:34 AM  
bobthe
A Kobold Labourer

Forum posts: 1
File comments: 7
Uploads: 0
GS not Working quick fix

Go into GS Folder

Use notepad to open the file GnomeSequencer.toc
Change the first line ## Interface: 60100 to ## Interface 60200

Then click save and all should be ok
Report comment to moderator  
Reply With Quote
Unread 06-25-15, 01:56 AM  
Comicus
A Deviate Faerie Dragon

Forum posts: 14
File comments: 34
Uploads: 0
Working like a Charm

my brother, Dumicus, forgot to put my Sequences.lua file in the folder.

Duh !!!!

PS. MacroTooltip update is working
Last edited by Comicus : 06-25-15 at 01:58 AM.
Report comment to moderator  
Reply With Quote
Unread 06-24-15, 01:06 PM  
wobbert
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
GS doesnt work

Add on was working as intended last night. logged into game today and it doesn't work anymore. Went and made sure out of date addons were loaded, and they are. Prior to logging in i did do an update for macro tool kit. i thought perhaps this might be causing conflicting issues with GS, so i disabled macro tool kit and GS still wont work.
Report comment to moderator  
Reply With Quote
Unread 06-23-15, 11:30 PM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Re: GS stopped working after patch 6.2

Originally Posted by Comicus
Did Blizz do it again and made some changes to screw with GS..??

I also noted that MacroToolkit does not work, is it needed for GS?
Just check "load out of date addons" in your addons list, I haven't uploaded a new toc file for 6.2 so it's marked as out of date.
Report comment to moderator  
Reply With Quote
Unread 06-23-15, 10:49 PM  
Comicus
A Deviate Faerie Dragon

Forum posts: 14
File comments: 34
Uploads: 0
GS stopped working after patch 6.2

Did Blizz do it again and made some changes to screw with GS..??

I also noted that MacroToolkit does not work, is it needed for GS?
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: