Quantcast
Download
(4 Kb)
Download
Updated: 04-17-17 07:03 PM
Pictures
File Info
Compatibility:
Tomb of Sargeras (7.2.0)
Updated:04-17-17 07:03 PM
Created:10-29-14 03:51 AM
Downloads:230,537
Favorites:139
MD5:
7.2.0

GnomeSequencer  Popular! (More than 5000 hits)

Version: 7.2.0.3
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)


Archived Files (9)
File Name
Version
Size
Author
Date
7.2.0.2
4kB
semlar
04-17-17 06:47 PM
7.2.0.3
4kB
semlar
04-17-17 06:45 PM
7.2.0.2
4kB
semlar
04-17-17 12:10 PM
7.2.0.1
4kB
semlar
04-10-17 09:54 PM
r5
4kB
semlar
02-24-15 06:56 AM
r4
4kB
semlar
01-25-15 08:20 PM
r3
3kB
semlar
10-31-14 01:52 AM
r2
3kB
semlar
10-30-14 10:29 PM
r1
3kB
semlar
10-29-14 03:51 AM


Post A Reply Comment Options
Unread 07-20-16, 09:56 PM  
sprimm1
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Re: Re: Legion update and GnomeSequencer

Originally Posted by semlar
Originally Posted by sprimm1
I tried the GnomeSequencer this evening since the Legion pre-patch. Every time I attack anything, I get a warning:

You are attempting to run a custom script.
Running scripts could compromise your
character causing the loss of items or gold.

Allow custom scripts?
yes / no

I am hesitant to hit the yes. I do not remember ever getting that message when I started using the program. Is this something that is no longer allowed by Blizzard? I don't want to compromised anything on my account, but I sure do want to use the GnomeSequencer. Please help!!!
They added a warning for the first time you type /run or /script into the chat to run custom lua. Scammers have been attempting to get people to type out lua scripts into their chat box that do various nefarious things.

I don't believe the addon itself is even capable of producing that dialog, but you probably have a /run or /script line in the macro you're trying to execute with it. Once accepted, it won't display the warning again.

You will get the warning from typing any script into the chat, even something as harmless as /run print("some text") which just prints some text to the chat. It's just a reminder that you should trust the source of the code that you're running before trying to run it.
Thank you for the fast response. I will go back and edit out the instances of script in the macros... Should fix it right up.
Last edited by sprimm1 : 07-20-16 at 09:57 PM.
Report comment to moderator  
Reply With Quote
Unread 07-20-16, 09:34 PM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1005
File comments: 184
Uploads: 25
Re: Legion update and GnomeSequencer

Originally Posted by sprimm1
I tried the GnomeSequencer this evening since the Legion pre-patch. Every time I attack anything, I get a warning:

You are attempting to run a custom script.
Running scripts could compromise your
character causing the loss of items or gold.

Allow custom scripts?
yes / no

I am hesitant to hit the yes. I do not remember ever getting that message when I started using the program. Is this something that is no longer allowed by Blizzard? I don't want to compromised anything on my account, but I sure do want to use the GnomeSequencer. Please help!!!
They added a warning for the first time you type /run or /script into the chat to run custom lua. Scammers have been attempting to get people to type out lua scripts into their chat box that do various nefarious things.

I don't believe the addon itself is even capable of producing that dialog, but you probably have a /run or /script line in the macro you're trying to execute with it. Once accepted, it won't display the warning again.

You will get the warning from typing any script into the chat, even something as harmless as /run print("some text") which just prints some text to the chat. It's just a reminder that you should trust the source of the code that you're running before trying to run it.
Last edited by semlar : 07-20-16 at 09:37 PM.
Report comment to moderator  
Reply With Quote
Unread 07-20-16, 09:13 PM  
sprimm1
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Exclamation Legion update and GnomeSequencer

I tried the GnomeSequencer this evening since the Legion pre-patch. Every time I attack anything, I get a warning:

You are attempting to run a custom script.
Running scripts could compromise your
character causing the loss of items or gold.

Allow custom scripts?
yes / no

I am hesitant to hit the yes. I do not remember ever getting that message when I started using the program. Is this something that is no longer allowed by Blizzard? I don't want to compromised anything on my account, but I sure do want to use the GnomeSequencer. Please help!!!
Report comment to moderator  
Reply With Quote
Unread 07-09-16, 04:09 PM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1005
File comments: 184
Uploads: 25
Re: Has Gnome Sequencer stopped working?

Originally Posted by xfusionpower
Hey everyone I don't know if it's just me but for some reason the GS stopped working for every toon after I added code, I've done it before and it worked but after adding the new code it doesn't work anymore. Could someone please look at my code and see if there is something that needs to be modified.
For future reference, it outputs to the chat exactly what the problem is in bright red when you have a syntax error in your file.



So if we go to line 557 in your file (ctrl+G in notepad++) we see you have a line break in the middle of your string. If you had this in a normal macro it would be attempting to say "Lightning Bolt, Lightning Bolt" every time you pressed it, but here it's invalid because strings with single-quotes around them can't span multiple lines.



All you have to do is delete the line break so everything is on one line.

Last edited by semlar : 07-09-16 at 04:20 PM.
Report comment to moderator  
Reply With Quote
Unread 07-09-16, 02:28 PM  
xfusionpower
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Has Gnome Sequencer stopped working?

Hey everyone I don't know if it's just me but for some reason the GS stopped working for every toon after I added code, I've done it before and it worked but after adding the new code it doesn't work anymore. Could someone please look at my code and see if there is something that needs to be modified.

Thank you very much,

xFusionPower

download link >> https://drive.google.com/open?id=0B8...VVkbXVXUDFDNDQ
Last edited by xfusionpower : 07-09-16 at 02:30 PM.
Report comment to moderator  
Reply With Quote
Unread 06-15-16, 05:52 PM  
MadMilitia
A Kobold Labourer

Forum posts: 1
File comments: 1
Uploads: 0
Question on multiple sequence files.

Can this be done? I have dozens of characters that have unique macros with player names and such that I hate opening this lone sequence file with over 10k lines in it.

Can I break this up into smaller sequence files?
Report comment to moderator  
Reply With Quote
Unread 06-15-16, 02:29 AM  
Kayng
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Re: Re: Future-proofing

Originally Posted by semlar
Originally Posted by MechaZao
I know this addon has not been updated in a very long time, but I have come to really rely on this, at least for a couple of my characters. Does anybody have any plans to possibly ensure that this addon will work in Legion? Either the original creator, or someone who is able to fix it to work again when Legion releases? (assuming that it will not).
The addon is actually quite simple in its current form and unless they go out of their way to break it, it will continue to function in legion.

That being said, I have no way to verify anything until they enable addons on the test realms and start inviting authors.
I can't get it to work in WoD, let alone Legion. Follwed your instructions to a T, and when I click the button, it might throw Avenger's Shield, then just stands there. No sequence. So it's pretty much useless as an addon. Perhaps you might explain what is going on.
Report comment to moderator  
Reply With Quote
Unread 05-13-16, 11:12 PM  
Bankrton
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Re: Re: Re: Future-proofing

Logged in to beta yesterday after the maintenance, copied my GS folder over from WOD, and it worked! Now just need new macros for those that know how to build them when they start getting in
Report comment to moderator  
Reply With Quote
Unread 05-11-16, 08:45 AM  
KneazlesKeeper
A Kobold Labourer
 
KneazlesKeeper's Avatar

Forum posts: 0
File comments: 21
Uploads: 0
Re: Re: Future-proofing

Originally Posted by semlar
Originally Posted by MechaZao
I know this addon has not been updated in a very long time, but I have come to really rely on this, at least for a couple of my characters. Does anybody have any plans to possibly ensure that this addon will work in Legion? Either the original creator, or someone who is able to fix it to work again when Legion releases? (assuming that it will not).
The addon is actually quite simple in its current form and unless they go out of their way to break it, it will continue to function in legion.

That being said, I have no way to verify anything until they enable addons on the test realms and start inviting authors.
It appears that beta is starting today, the servers are currently down for maintaince, but I was able to down load it and login to it.
Report comment to moderator  
Reply With Quote
Unread 03-30-16, 02:56 PM  
gnomeurbines
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Gnome Sequencer

Can someone help me please, I just started playing wow again after a 2 year break. This GS is new to me. I have figured out the basics of using it on one of my toons. my question is can it be utilized for multiple toons, if so, how? I tried to figure it out and ended up making it stop working so had to reinstal. Thank you in advance for any help.
Report comment to moderator  
Reply With Quote
Unread 03-12-16, 04:00 PM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1005
File comments: 184
Uploads: 25
Re: Future-proofing

Originally Posted by MechaZao
I know this addon has not been updated in a very long time, but I have come to really rely on this, at least for a couple of my characters. Does anybody have any plans to possibly ensure that this addon will work in Legion? Either the original creator, or someone who is able to fix it to work again when Legion releases? (assuming that it will not).
The addon is actually quite simple in its current form and unless they go out of their way to break it, it will continue to function in legion.

That being said, I have no way to verify anything until they enable addons on the test realms and start inviting authors.
Report comment to moderator  
Reply With Quote
Unread 03-12-16, 03:06 PM  
MechaZao
A Kobold Labourer

Forum posts: 0
File comments: 10
Uploads: 0
Future-proofing

I know this addon has not been updated in a very long time, but I have come to really rely on this, at least for a couple of my characters. Does anybody have any plans to possibly ensure that this addon will work in Legion? Either the original creator, or someone who is able to fix it to work again when Legion releases? (assuming that it will not).
Report comment to moderator  
Reply With Quote
Unread 03-04-16, 08:20 AM  
Vondreth
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
Re: Re: Gnome Sequencer broken

Originally Posted by Wandering
Originally Posted by Lockopulco
My game just did a small update and now GS will not work, cannot create new macros or use old ones

Oh dear.

HELP!!!
Same. Not working for me either.
Hi both of you,

Have you checked if "Load out of date AddOns" has been tagged On.!? If not, tag it and try again.
I just started WoW and GS still works fine for me. http://cdn-wow.mmoui.com/images/styl...ies/banana.gif
Report comment to moderator  
Reply With Quote
Unread 03-04-16, 12:31 AM  
Wandering
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Unhappy Re: Gnome Sequencer broken

Originally Posted by Lockopulco
My game just did a small update and now GS will not work, cannot create new macros or use old ones

Oh dear.

HELP!!!
Same. Not working for me either.
Report comment to moderator  
Reply With Quote
Unread 03-02-16, 04:03 PM  
Lockopulco
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Exclamation Gnome Sequencer broken

My game just did a small update and now GS will not work, cannot create new macros or use old ones

Oh dear.

HELP!!!
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: