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,025
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 11-23-14, 12:46 AM  
Beall
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
Might Help You Guys!

Okay. So. i just Read All 8 Pages of these comments. And. I finally Figured it out... when none of it worked. I did everything step by step, extremely carefully. Extremely...

When i Re-Downloaded the Original Files. I looked at them Closely. Pic Provided.

http://prntscr.com/597f6e

I circled the problem in red. This file came like this on my system. May be different for others. Im running Windows 8.1.

When you rename the file to "Sequences.lua" You break it. I fought this for almost 3 hours now. Almost Gave up. Rename it simply "Sequences" (No Quotes of Course).

http://prntscr.com/597fnn

Working like a charm now. LOVIN IT!
Last edited by Beall : 11-23-14 at 12:49 AM.
Report comment to moderator  
Reply With Quote
Unread 11-21-14, 12:04 PM  
Artemisha
A Kobold Labourer
 
Artemisha's Avatar

Forum posts: 0
File comments: 1
Uploads: 0
Re: Confusion

Hi guys, this is the macro i use for feral druid.
i also use Razer Synapse
my problem is the macro cant cast the cast sequence can someone tell my wath wrong?
local _, Sequences = ... -- Don't touch this
Sequences[‘FeralST’] = {
PreMacro = [[
/targetenemy [noharm][dead]
/cast [nostealth,nocombat] Prowl
]],
‘/castsequence reset=10 Rake,Savage Roar,Shred,Shred,Shred,Rip,Rake,Shred,Shred,Ferocious Bite’,
‘/use [stealth]Rake’,
‘/use [combat]reset=60 Faerie Fire’,
‘/use [combat]reset=15 Rejuvenation’,
[[/cast Tiger’s Fury]],
‘/cast Berserk’,
[[/console autounshift 0
/cast [@player,combat] Healing Touch
/console autounshift 1]],
PostMacro = [[
/startattack
/use [combat]13
/use [combat]14
]],
}
----
-- 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.
-- Every entry in the Sequences table defines a single sequence of macros which behave similarly to /castsequence.
-- Sequence names must be unique and contain no more than 16 characters.
-- 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.
----

----
-- Here's a large demonstration sequence documenting the format:
Sequences["GnomeExample1"] = {
-- StepFunction optionally defines how the step is incremented when pressing the button.
-- This example increments the step in the following order: 1 12 123 1234 etc. until it reaches the end and starts over
-- DO NOT DEFINE A STEP FUNCTION UNLESS YOU THINK YOU KNOW WHAT YOU'RE DOING
StepFunction = [[
limit = limit or 1
if step == limit then
limit = limit % #macros + 1
step = 1
else
step = step % #macros + 1
end
]],

-- PreMacro is optional macro text that you want executed before every single button press.
-- This is if you want to add something like /startattack or /stopcasting before all of the macros in the sequence.
PreMacro = [[
/run print("-- PreMacro Script --")
/startattack
]],

-- PostMacro is optional macro text that you want executed after every single button press.
-- I don't know what you would need this for, but it's here anyway.
PostMacro = [[
/run print("-- PostMacro Script --")
]],

-- Macro 1
[[
/run print("Executing macro 1!")
/cast SpellName1
]],

-- Macro 2
[[
/run print("Executing macro 2!")
/cast SpellName2
]],

-- Macro 3
[[
/run print("Executing macro 3!")
/cast SpellName3
]],
}

----
-- Here is a short example which is what most sequences will look like
Sequences["GnomeExample2"] = {
-- Macro 1
[[
/run print("Executing macro 1!")
/cast SpellName1
]],

-- Macro 2
[[
/run print("Executing macro 2!")
/cast SpellName2
]],

-- Macro 3
[[
/run print("Executing macro 3!")
/cast SpellName3
]],
}
Report comment to moderator  
Reply With Quote
Unread 11-17-14, 04:07 PM  
fogyreef
A Defias Bandit

Forum posts: 3
File comments: 12
Uploads: 0
Any reason this isn't casting Drain Soul? My lock does the rest, but never casts Drain Soul.

Code:
Sequences['WLockAffAOE'] = {
PreMacro = [[
/stopmacro [channeling]
/dismount
/tar Chains of Woe
/tar Ascendant
/startattack
/targetenemy
]],
	--'/castsequence reset=combat [nopet] summon observer,null',
	--'/castsequence reset=combat [nopet] summon Felhunter,null',
	--'/castsequence reset=combat [nopet] summon Voidwalker,null',
        --more spells here
	'/cast Drain Soul',	
PostMacro = [[
/use [combat]13
/use [combat]14
]],
}
Report comment to moderator  
Reply With Quote
Unread 11-17-14, 07:52 AM  
Wifeaggrosux
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Re: Haaaalp!!!

Originally Posted by Wifeaggrosux
Sequencer was working spectacular for the two days i had it prior to release. Now it isn't. I did nothing to change the addon. Didn't change the macro icon either. It just stopped working since release. Tried reinstalling. Didnt Help. Disable all other addons. No luck ...any ideas? Vista 64 bit. This is my Sequenses.lua folder. Like i said worked great until release of WoD. Now im stuck. Anyone else having this nightmare?

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

----
-- 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.
-- Every entry in the Sequences table defines a single sequence of macros which behave similarly to /castsequence.
-- Sequence names must be unique and contain no more than 16 characters.
-- 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.
----

----
-- Here's a large demonstration sequence documenting the format:
Sequences["GnomeExample1"] = {
-- StepFunction optionally defines how the step is incremented when pressing the button.
-- This example increments the step in the following order: 1 12 123 1234 etc. until it reaches the end and starts over
-- DO NOT DEFINE A STEP FUNCTION UNLESS YOU THINK YOU KNOW WHAT YOU'RE DOING
StepFunction = [[
limit = limit or 1
if step == limit then
limit = limit % #macros + 1
step = 1
else
step = step % #macros + 1
end
]],

-- PreMacro is optional macro text that you want executed before every single button press.
-- This is if you want to add something like /startattack or /stopcasting before all of the macros in the sequence.
PreMacro = [[
/run print("-- PreMacro Script --")
/startattack
]],

-- PostMacro is optional macro text that you want executed after every single button press.
-- I don't know what you would need this for, but it's here anyway.
PostMacro = [[
/run print("-- PostMacro Script --")
]],

-- Macro 1
[[
/run print("Executing macro 1!")
/cast SpellName1
]],

-- Macro 2
[[
/run print("Executing macro 2!")
/cast SpellName2
]],

-- Macro 3
[[
/run print("Executing macro 3!")
/cast SpellName3
]],
}

----
-- Here is a short example which is what most sequences will look like
Sequences["GnomeExample2"] = {
-- Macro 1
[[
/run print("Executing macro 1!")
/cast SpellName1
]],

-- Macro 2
[[
/run print("Executing macro 2!")
/cast SpellName2
]],

-- Macro 3
[[
/run print("Executing macro 3!")
/cast SpellName3
]],
}

Sequences['Frost2h'] = {
'/startattack',
"/cast Death's Advance",
'/cast Soul Reaper',
'/cast Outbreak',
'/cast Plague Strike',
'/cast Howling Blast',
'/cast Obliterate',
'/cast Frost Strike',
'/cast Unholy Blight',
'/cast Pillar of Frost',
'/cast Empower Rune Weapon',
'/cast Anti-Magic Shell',
'/cast Dark Simulacrum',
'/cast Remorseless Winter',
}
OK. I kept re-installing add-on and checking on add-on tab on the character screen before logging into wow to make sure it actually was in there. After I uninstalled "macro toolkit" and "super duper macro" it finally showed up and my problems were solved. Hope this helps someone out.
Last edited by Wifeaggrosux : 11-17-14 at 08:28 AM.
Report comment to moderator  
Reply With Quote
Unread 11-16-14, 11:35 PM  
fogyreef
A Defias Bandit

Forum posts: 3
File comments: 12
Uploads: 0
Ok,

I highly recommend downloading Notepad++ as it's syntax highlighting caught the errors I had in the file that my experienced but worn out mind couldn't.

It's back to working for me. Lesson learned: If it suddenly stopped working for you, chances are the problem lies between the keyboard and the chair. Triple check the syntax, and if you have to, re-download the original file and start over with a very basic macro, then expand on it.

Report comment to moderator  
Reply With Quote
Unread 11-16-14, 04:29 PM  
Laak
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Hi!

Great Add-on for us - the lazies!

But i hope you can help by clarifying two questions:

1st) Is there a line or action limit for the Sequence.lu file. It seems i can have up to 3 Sequences (around ~50 lines), once I add anything else to the file, none of the macros work (the in-game macro appears black/empty)

2nd) Can you or some other enthusiast provide additional information for the step function - perhaps a working example?
Report comment to moderator  
Reply With Quote
Unread 11-16-14, 03:11 PM  
913
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Help

I managed to get the addon to work as intended when I installed my ret macros but for some reason after few days when I tried to get my prot macros in there it just won't show up when I type the name I set it under. Not sure what's causing this.
Report comment to moderator  
Reply With Quote
Unread 11-16-14, 02:44 PM  
crisdan
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
cast syntax help

Below is my sequences file and I cannot get Avenger's Shield to fire off. Can someone assist?

Sequences["PROT"] = {
PreMacro = [[
/targetenemy [noharm][dead]
/castsequence reset=2 Seal of Insight,null
]],
[[/cast Hammer of Wrath]],
[[/cast !Avenger's Shield]],
[[/cast Shield of the Righteous]],
[[/cast Crusader Strike]],
[[/cast Judgment]],
[[/cast Exorcism]],
[[/cast Consecration]],
[[/cast Divine Protection]],
[[/cast Holy Wrath]],
PostMacro = [[
]],
}
Last edited by crisdan : 11-16-14 at 02:45 PM.
Report comment to moderator  
Reply With Quote
Unread 11-15-14, 09:46 PM  
tenrub
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
same problem

Originally Posted by fogyreef
Waiting for maint to test some fixes.

In the meantime, Semlar, can you include the formatting requirements in the sequences.lua, such as spaces in names, spaces between sequences, etc? Anything formatting-related that would break the addon.

Also, Divega mentioned this works only for melee, inferring that casting is interrupted. Assuming everything works as normal wouldn't /stopmacro [channeling] in the premacro be the solution?

Edit: Also, check your single quotes to make sure your copy/paste from various websites doesn't reformat them to a different style of single quotes. First one I grabbed did just that. At this point I'm too tired to swear that's a thing, but in the blur that was the first day of the expansion I seem to recall someone mentioning it as a thing.

Edit2: After logging in, when creating the blank macro it doesn't auto-fill the macro. Names match, no spaces , etc.
I'm having the same problem. One second everything is working fine, then I log off and added some new one's to notepad and try to make the new macro's in-game and now all of them don't work anymore.
Last edited by tenrub : 11-15-14 at 09:50 PM.
Report comment to moderator  
Reply With Quote
Unread 11-15-14, 07:30 PM  
dubzie
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
If statements

Code:
Sequences['BMSingle'] = {
PreMacro = [[
/targetenemy [noharm][dead]
/startattack   
/petattack [@target,harm]
]],
'/cast A Murder of Crows',
'/cast Dire Beast',
'/cast Kill Command',
'/cast Bestial Wrath',
'/cast Blood Fury',
step = step or 1
	if step = 1 then
		'/cast Arcane Shot'
		step = step + 1
	elseif step = 2 then
		'/cast Arcane Shot'
		step = step + 1
	elseif step = 3 then
		'/cast Cobra Shot'
		step = step + 1
	elseif step = 4 then
		'/cast Cobra Shot'
		step = 1
	end

]],
'/use 13',
'/use 14',
}
I'd like to be able to do something like the above so i can make my macro spamable, anychance you could make this work or give me some tips on how to make it work.
Report comment to moderator  
Reply With Quote
Unread 11-15-14, 10:12 AM  
fogyreef
A Defias Bandit

Forum posts: 3
File comments: 12
Uploads: 0
Waiting for maint to test some fixes.

In the meantime, Semlar, can you include the formatting requirements in the sequences.lua, such as spaces in names, spaces between sequences, etc? Anything formatting-related that would break the addon.

Also, Divega mentioned this works only for melee, inferring that casting is interrupted. Assuming everything works as normal wouldn't /stopmacro [channeling] in the premacro be the solution?

Edit: Also, check your single quotes to make sure your copy/paste from various websites doesn't reformat them to a different style of single quotes. First one I grabbed did just that. At this point I'm too tired to swear that's a thing, but in the blur that was the first day of the expansion I seem to recall someone mentioning it as a thing.

Edit2: After logging in, when creating the blank macro it doesn't auto-fill the macro. Names match, no spaces , etc.
Last edited by fogyreef : 11-15-14 at 10:46 AM.
Report comment to moderator  
Reply With Quote
Unread 11-15-14, 05:37 AM  
Tobag
A Kobold Labourer

Forum posts: 1
File comments: 3
Uploads: 0
Originally Posted by semlar
Originally Posted by Tobag
This addon only seems to work with an English client.

I could not get it to work on a German client, it fails at the Marco overwriting point. When you name your macro like you named your sequence it will not fill in the macro!

Once i switched my client to English it worked. Would be nice if it worked not only in English pls
It does work with other languages. Chinese, German and French users are currently using this addon with their native languages, all you have to do is use an editor capable of editing using UTF-8 encoding.

If you don't have a text editor capable of changing the character encoding and you want to use characters outside the normal ascii range then you should download notepad++ or something similar to edit the file in UTF-8 mode.
I am actually using Notepad++ and the problem ist not that. It actually imports the German text when I switch my client to English and when I switch back to German I'm also able to use that macro. It is just the Macro creation part which seems borked....


Edit: ok I found the culprit. It is Macrotoolkit, once I disable that it also created the macro with the German client. Thank you for your work on this Addon, keep it up!
Last edited by Tobag : 11-15-14 at 05:47 AM.
Report comment to moderator  
Reply With Quote
Unread 11-15-14, 05:04 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 Tobag
This addon only seems to work with an English client.

I could not get it to work on a German client, it fails at the Marco overwriting point. When you name your macro like you named your sequence it will not fill in the macro!

Once i switched my client to English it worked. Would be nice if it worked not only in English pls
It does work with other languages. Chinese, German and French users are currently using this addon with their native languages, all you have to do is use an editor capable of editing using UTF-8 encoding.

If you don't have a text editor capable of changing the character encoding and you want to use characters outside the normal ascii range then you should download notepad++ or something similar to edit the file in UTF-8 mode.
Last edited by semlar : 11-15-14 at 05:05 AM.
Report comment to moderator  
Reply With Quote
Unread 11-15-14, 05:01 AM  
Tobag
A Kobold Labourer

Forum posts: 1
File comments: 3
Uploads: 0
Language

double post, pls delete
Last edited by Tobag : 11-15-14 at 05:38 AM.
Report comment to moderator  
Reply With Quote
Unread 11-15-14, 04:57 AM  
Tobag
A Kobold Labourer

Forum posts: 1
File comments: 3
Uploads: 0
This addon only seems to work with an English client.

I could not get it to work on a German client, it fails at the Marco overwriting point. When you name your macro like you named your sequence it will not fill in the macro!

Once i switched my client to English it worked. Would be nice if it worked not only in English pls
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: