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,009
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 04-25-15, 10:17 AM  
jaddes
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
worked thanks i have done this in option not worked then i try it in encode section and worked thanks
Report comment to moderator  
Reply With Quote
Unread 04-25-15, 06:15 AM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Originally Posted by jaddes
i try to set up this macro i have try to save in utf-8 without bom not worked in game same result
what language to use in notepad ++ i think i have changed it to user language
The language doesn't matter, that's for syntax highlighting (coloring the code), what's important is the encoding.

You're trying to use characters that don't exist in the normal ascii range so they need to be expressed using UTF-8.

Make sure you're editing the right file and not some other copy of it, and check that it looks right after changing the encoding, editing and saving it.
Report comment to moderator  
Reply With Quote
Unread 04-25-15, 05:05 AM  
jaddes
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
i try to set up this macro i have try to save in utf-8 without bom not worked in game same result
what language to use in notepad ++ i think i have changed it to user language ;
Code:
Sequences['FURYS'] = {
PreMacro = [[
/targetenemy [noharm][dead]
/startattack
]],
'/cast Charge',
'/cast Ivresse de la victoire',
'/cast Execution',
'/cast Sanguinaire',
'/cast Frappe sauvage',
'/cast Sanguinaire',
'/cast Coup déchaîné',
'/cast Frappe sauvage',
'/cast Sanguinaire',
'/cast Coup déchaîné',
PostMacro = [[
/startattack
/cast [combat] Eclair de tempête
/cast [combat] Rage de berserker
/cast [combat] Témérité
]],
}
Last edited by jaddes : 04-25-15 at 05:19 AM.
Report comment to moderator  
Reply With Quote
Unread 04-25-15, 04:47 AM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

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

Originally Posted by jaddes
seem GS do not let macro use ACCENT for foreing language i use french for my wow belgian and some spell use accent in it and let spell in english in macro do not work and all spell with accent do not work
is it a big change to include accent in GS ?
You need to use a text editor that supports UTF-8 encoding (like notepad++), then when you go to edit the file just make sure the encoding is set to UTF-8 (without BOM).
Report comment to moderator  
Reply With Quote
Unread 04-25-15, 04:44 AM  
jaddes
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
accent

seem GS do not let macro use ACCENT for foreing language i use french for my wow belgian and some spell use accent in it and let spell in english in macro do not work and all spell with accent do not work
is it a big change to include accent in GS ?
edit i try the solution of encoding utf-! without bom seem nothing happen accent spell still not launch
Last edited by jaddes : 04-25-15 at 05:02 AM.
Report comment to moderator  
Reply With Quote
Unread 04-20-15, 06:13 PM  
KneazlesKeeper
A Kobold Labourer
 
KneazlesKeeper's Avatar

Forum posts: 0
File comments: 21
Uploads: 0
Re: Gnome Sequencer help please

Originally Posted by Twisted0
Hello,
I had Gnome Sequencer and it use to work.. Then all the sudden it stopped. Like just before 6.1.. I have deleted it and re downloaded it like 2 times and still does not work... idk what is going on.. I did notice the new one i downloaded has Core,error handler,Gnome Sequencer and the Sequences lua..now
Maybe all the files from before did not get deleted or something tho idk how to check that.. please help
Sounds like there is an issue with one of your macros. If one macro is just a little bit off it breaks the entire addon. Usually it it is caused when copying and pasting macros from some websites that reformats the beginning and ending Quotation marks and appositives, in a line of code.

It is a pain in the neck, but you will need to remove all of your macros, and add them one at a time, log in and out of the game checking to see if they work until you isolate the offending macro(s). Then you may have to manually retype all of the Quotation marks and appositives, in the offending macro(s) to fix the issues with it.
Report comment to moderator  
Reply With Quote
Unread 04-13-15, 09:58 PM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Re: Spanish language.

Originally Posted by edrian
hello, nice work, i wish you can help me. sorry about my english. im spanish,, and there we use words with "accents" like Martillo de cólera in english (Avenging wrath)
I have a problem with sequences, when a skill use this the gnome ignore it. can i fix it?
tnkx alot.
You need to use a text editor that supports UTF-8 encoding (like notepad++), then when you go to edit the file just make sure the encoding is set to UTF-8 (without BOM).
Report comment to moderator  
Reply With Quote
Unread 04-13-15, 03:44 PM  
Kru
A Kobold Labourer

Forum posts: 0
File comments: 14
Uploads: 0
Re: any takers

Originally Posted by bobthe
The only Gnome Sequencer macros I can find look something like this:

'/castsequence [nopet:Greater Fire Elemental] reset=target/2 Searing Totem,Flame Shock',
'/castsequence reset=target Flame Shock,Healing Stream Totem,Healing Stream Totem',
'/cast Feral Spirit',
'/cast Stormstrike',
'/cast Lava Lash',
'/cast Unleash ELements',
'/cast Frost Shock',

^ That is not a priority macro. That is a button spamming macro. That goes from one spell to the next, checking to see if it’s cast-able. If so it casts; if not it goes to the next one. So if it passed up your #1 priority spell (in this case Feral Spirit) you need to run threw the whole macro again and hope the GCD isn’t active when it is it’s turn to be cast.

My question is, has anyone anywhere discovered how to code a TRUE priority macro? I know there has to be someone out there who can figure it out! :3
True priority macros are automated and are against the rules.
Report comment to moderator  
Reply With Quote
Unread 04-11-15, 06:36 AM  
edrian
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Spanish language.

hello, nice work, i wish you can help me. sorry about my english. im spanish,, and there we use words with "accents" like Martillo de cólera in english (Avenging wrath)
I have a problem with sequences, when a skill use this the gnome ignore it. can i fix it?
tnkx alot.
Report comment to moderator  
Reply With Quote
Unread 04-10-15, 04:03 PM  
Twisted0
A Kobold Labourer

Forum posts: 1
File comments: 2
Uploads: 0
Gnome Sequencer help please

Hello,
I had Gnome Sequencer and it use to work.. Then all the sudden it stopped. Like just before 6.1.. I have deleted it and re downloaded it like 2 times and still does not work... idk what is going on.. I did notice the new one i downloaded has Core,error handler,Gnome Sequencer and the Sequences lua..now
Maybe all the files from before did not get deleted or something tho idk how to check that.. please help
Report comment to moderator  
Reply With Quote
Unread 04-06-15, 06:19 PM  
bobthe
A Kobold Labourer

Forum posts: 1
File comments: 7
Uploads: 0
any takers

The only Gnome Sequencer macros I can find look something like this:

'/castsequence [nopet:Greater Fire Elemental] reset=target/2 Searing Totem,Flame Shock',
'/castsequence reset=target Flame Shock,Healing Stream Totem,Healing Stream Totem',
'/cast Feral Spirit',
'/cast Stormstrike',
'/cast Lava Lash',
'/cast Unleash ELements',
'/cast Frost Shock',

^ That is not a priority macro. That is a button spamming macro. That goes from one spell to the next, checking to see if it’s cast-able. If so it casts; if not it goes to the next one. So if it passed up your #1 priority spell (in this case Feral Spirit) you need to run threw the whole macro again and hope the GCD isn’t active when it is it’s turn to be cast.

My question is, has anyone anywhere discovered how to code a TRUE priority macro? I know there has to be someone out there who can figure it out! :3
Report comment to moderator  
Reply With Quote
Unread 04-06-15, 02:54 PM  
demonstorm
A Kobold Labourer

Forum posts: 0
File comments: 26
Uploads: 0
Cant get Gnomesequencer to work

A Friend of mine swears by this program and suggested I try it so followed the many directions on the internet and downloaded it and extracted it to addons then copy and pasted some premade sequences.lua files and dropped them in the folder and went in to wow to set the macro up and when I use the macro name ..example ['RET'] minus the quotations and brackets. Like shown in many videos wow cant seem to find the macro ? I am I missing something ?

any help would be great
Report comment to moderator  
Reply With Quote
Unread 04-02-15, 07:30 PM  
Tinkerten Iktomi
Premium Member
 
Tinkerten Iktomi's Avatar
Premium Member

Forum posts: 5
File comments: 8
Uploads: 0
Question Re: Re: Re: CastSequence

Just to report back on what I found

a) toggle spell\abilities still required an '!' in front of the spell name or it will cycle on and off.

b) /castsequence will cast each spell in the order they a listed, regardless of any rest value.
so this
Code:
--- Shadow
Sequences['Shadow'] = {
	'/castsequence reset=target Shadow Word: Pain,Vampiric Touch,Mind Flay',
}
is equal to this
Code:
--- Shadow
Sequences['Shadow'] = {
	'/cast Shadow Word: Pain',
	'/cast Vampiric Touch',
	'/cast Mind Flay',
}
just two macro lines less, which might be useful in a ordered step sequence limited to about 9 macro lines, as stated by Starcub in his ordered step configuration, about 8 pages back.

and finally and this is likely know but what the hay!

c) if any spell but an instant is used in a castsequence then the whole castsequence will take that amount of time to cast
Code:
Sequences[Heal] = {
	/castsequence Heal, Flash Heal, Binding Heal
}
takes 5.35 seconds { 2.43 + 1.46 + 1.46} to cycle back to the first spell
__________________
Tinktern Iktomi
Level 100 Mage
Last edited by Tinkerten Iktomi : 04-02-15 at 07:33 PM.
Report comment to moderator  
Reply With Quote
Unread 04-02-15, 04:48 PM  
Tinkerten Iktomi
Premium Member
 
Tinkerten Iktomi's Avatar
Premium Member

Forum posts: 5
File comments: 8
Uploads: 0
Re: Re: CastSequence

Originally Posted by semlar
/castsequence doesn't support running lua like that, if you want to determine how it behaves inside of GS your best bet is probably to create a sequence with a single entry and see what it ends up casting on a target dummy.
Lua Code:
  1. Sequences["SequenceTest"] = {
  2.     [[
  3. /run print(GetTime(), "Executing castsequence test!")
  4. /castsequence spell1, spell2, spell3
  5.     ]],
  6. }
I was afraid of that, thanks for the quick reply
__________________
Tinktern Iktomi
Level 100 Mage
Report comment to moderator  
Reply With Quote
Unread 04-02-15, 10:12 AM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

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

Originally Posted by Tinkerten Iktomi
I'm trying to work out the results of using /castsequence inside of GS, I'm looking for something like

Code:
/run print("-- Macro Script --")
specifically the output to the chat window.

what I'm looking for is kind of like
Code:
/castsequence "-- Macro A --","-- Macro B--","-- Macro C --"
/castsequence doesn't support running lua like that, if you want to determine how it behaves inside of GS your best bet is probably to create a sequence with a single entry and see what it ends up casting on a target dummy.
Lua Code:
  1. Sequences["SequenceTest"] = {
  2.     [[
  3. /run print(GetTime(), "Executing castsequence test!")
  4. /castsequence spell1, spell2, spell3
  5.     ]],
  6. }
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: