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-18-14, 06:07 AM  
impala63rag
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Help downloading and installing addon plz?

I am not sure how to download this add-on. why I try to it opens up my photo viewer. It doesn't give me the opportunity to open with winzip. Once that is figured out can someone also explain the process on how to install the add-on into my folder and copy a macro into it so that it is usable plz?
Report comment to moderator  
Reply With Quote
Unread 12-17-14, 11:47 AM  
Zarwiin
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
i don't understand anything

hi, im sorry i don't understand anything, i tried, really, i copy pasted some macro that i found, i don't even have an error message, just nothing this is what i want :

Sequences['Ret'] = {
PreMacro = [[
/targetenemy [noharm][dead]
]],
'/cast Jugement',
'/cast Frappe du croisé',
'/cast Exorcisme',
'/cast !Couroux vengeur',
'/cast !Comdamnation à mort',
"/cast Verdict du templier" ,
'/cast Marteau du couroux',
PostMacro = [[
/use [combat]13
/use [combat]14
]],
}


and

Sequences['Unholy'] = {
PreMacro = [[
/targetenemy [noharm][dead]
]],
'/cast !Voile mortel',
'/use [combat]13',
'/use [combat]14',
'/cast Poussée de fièvre',
'/cast Frappe de peste',
'/cast [combat]Furoncle sanglant',
'/cast Frappe purulente',
'/cast Sombre transformation',
'/cast Parasite de peste',
'/cast Frappe purulente',
'/cast Voile mortel',
'/cast Faucheur d'âme',
'/cast [combat] Invocation d'une gargouille',
'/cast Frappe purulente',
'/cast !Voile mortel',
}
these two macro actually don't work, there is no link between the game and my notepad i think, please help :'( ( sorry for my bad english im french xd )
Report comment to moderator  
Reply With Quote
Unread 12-15-14, 11:57 PM  
Kru
A Kobold Labourer

Forum posts: 0
File comments: 14
Uploads: 0
Re: Problem

Originally Posted by BeeRizzzle
The GnomeExample2 macro works, but when I copy any other macro's in it they don't work. However I noticed the example macro uses " where the other macros I copy use ' ... does this make a difference and how do I fix it?
replace the ' with " in your code and see if it fixes.
Report comment to moderator  
Reply With Quote
Unread 12-15-14, 08:03 PM  
BeeRizzzle
A Kobold Labourer

Forum posts: 0
File comments: 6
Uploads: 0
Problem

The GnomeExample2 macro works, but when I copy any other macro's in it they don't work. However I noticed the example macro uses " where the other macros I copy use ' ... does this make a difference and how do I fix it?
Report comment to moderator  
Reply With Quote
Unread 12-14-14, 10:50 PM  
Grimstout
A Kobold Labourer
 
Grimstout's Avatar

Forum posts: 0
File comments: 6
Uploads: 0
Re: Re: Re: Re: Re: Re: Re: Re: Re: I must be missing something

Originally Posted by Grimstout
Originally Posted by semlar
Originally Posted by Grimstout
Comes back as:
Dump: Frost
Frost=nil
empty result
Assuming it isn't throwing any lua errors, you either aren't loading the addon or aren't naming the file properly.

It will output an error to your chat when you log in if the addon is loading and can't load the sequences file, so it sounds like you aren't loading the addon.
I noticed that GnomeSequencer was in a folder within itself so made it one folder not two folders deep. That did not change anything. Then I had to take out all other sequences for macros and only left one named "Frost". Restarted WoW and bang it worked. But as soon as I added a second one it stopped working again.
Okay. I am an Id10t. Thank you to everyone who was helping me and being patient with my ignorance. I was placing all the macros within the {} not spacing each out with its own. Sorry for being a pain in the arse. Semlar you have a Great addon here.

**May I post a link in my twitch.tv channel to your addon Semlar?**
Last edited by Grimstout : 12-14-14 at 10:52 PM.
Report comment to moderator  
Reply With Quote
Unread 12-14-14, 10:43 AM  
Grimstout
A Kobold Labourer
 
Grimstout's Avatar

Forum posts: 0
File comments: 6
Uploads: 0
Re: Re: Re: Re: Re: Re: Re: Re: I must be missing something

Originally Posted by semlar
Originally Posted by Grimstout
Comes back as:
Dump: Frost
Frost=nil
empty result
Assuming it isn't throwing any lua errors, you either aren't loading the addon or aren't naming the file properly.

It will output an error to your chat when you log in if the addon is loading and can't load the sequences file, so it sounds like you aren't loading the addon.
I noticed that GnomeSequencer was in a folder within itself so made it one folder not two folders deep. That did not change anything. Then I had to take out all other sequences for macros and only left one named "Frost". Restarted WoW and bang it worked. But as soon as I added a second one it stopped working again.
Report comment to moderator  
Reply With Quote
Unread 12-14-14, 09:11 AM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Re: Showtooltip issue

Originally Posted by Turok13
I have a small problem with #showtooltip though, I want it to only display Mutilate as tooltip and not cycle through all the spells
Unfortunately that isn't really possible with the way the addon currently functions, but I'll try and make it honor #showtooltip in the next release.
Report comment to moderator  
Reply With Quote
Unread 12-14-14, 12:28 AM  
Turok13
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Showtooltip issue

Hi

Firstly, thanks for the awesome addon!!

I have a small problem with #showtooltip though, I want it to only display Mutilate as tooltip and not cycle through all the spells, here's my macro:

Sequences['AssCPB'] = {
PreMacro = [[
#showtooltip Mutilate
/startattack
/targetlastenemy [target=target,noexists]
/cast [target=targettarget,help,exists] Tricks of the Trade
]],
[[/cast Mutilate]],
[[/cast Dispatch]],
PostMacro = [[
/use [combat]13
/use [combat]14
/script UIErrorsFrame:Clear()
]],
}

Macro runs 100% but for some reason it doesn't want to show #showtooltip Mutilate it still scrolls through the spells.

Any ideas how to fix this?
Report comment to moderator  
Reply With Quote
Unread 12-13-14, 09:54 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: Re: Re: Re: Re: I must be missing something

Originally Posted by Grimstout
Comes back as:
Dump: Frost
Frost=nil
empty result
Assuming it isn't throwing any lua errors, you either aren't loading the addon or aren't naming the file properly.

It will output an error to your chat when you log in if the addon is loading and can't load the sequences file, so it sounds like you aren't loading the addon.
Report comment to moderator  
Reply With Quote
Unread 12-13-14, 09:46 PM  
Grimstout
A Kobold Labourer
 
Grimstout's Avatar

Forum posts: 0
File comments: 6
Uploads: 0
Re: Re: Re: Re: Re: Re: I must be missing something

Originally Posted by semlar
Originally Posted by Grimstout
Okay so checked for the double lua and that is not it. Made sure of the case sensitivity and addon is enabled. I also uninstalled the addon and downloaded the addon again just to make sure. I went step by step. Is there another addon that may be causing this problem?
Type "/dump Frost" in-game, if it returns an empty result then the addon isn't loading, otherwise it is, and should start casting your spells if you type "/click Frost".

Comes back as:
Dump: Frost
Frost=nil
empty result
Report comment to moderator  
Reply With Quote
Unread 12-13-14, 08:45 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: Re: Re: I must be missing something

Originally Posted by Grimstout
Okay so checked for the double lua and that is not it. Made sure of the case sensitivity and addon is enabled. I also uninstalled the addon and downloaded the addon again just to make sure. I went step by step. Is there another addon that may be causing this problem?
Type "/dump Frost" in-game, if it returns an empty result then the addon isn't loading, otherwise it is, and should start casting your spells if you type "/click Frost".
Report comment to moderator  
Reply With Quote
Unread 12-13-14, 06:25 PM  
Grimstout
A Kobold Labourer
 
Grimstout's Avatar

Forum posts: 0
File comments: 6
Uploads: 0
Re: Re: Re: Re: I must be missing something

Originally Posted by Kru
make sure you don't have sequences.lua.lua

also the macro name is case sensitive I'm pretty sure so the macro will be Frost not frost

check your addons in game make sure GS is turned on
Okay so checked for the double lua and that is not it. Made sure of the case sensitivity and addon is enabled. I also uninstalled the addon and downloaded the addon again just to make sure. I went step by step. Is there another addon that may be causing this problem? Here is a list of addons that I am currently using with various toons:
!!Zoom!!
!BugGrabber
!Swatter
Ace3
AceGUI-3.0-SharedMediaWidgets
ACP
Altoholic -All the plugins that come with Altoholic
Auc-Advanced - All the plugins that come with Auc-Advanced
Auctionator
AutoRepair
BagBrother
Bagnon
Bartender4
BeanCounter
Blizzard_ -All the typical Blizzard addons that come with game-
BugSack
Carbonite -All plugins that come with Carbonite
DataStore -All plugins that come with DataStore
DBM -Every plugin needed for DBM
Enchantrix
Enchantrix-Barker
Gatherer
Gatherer_HUD
GatherMate2
GatherMate2_Data
Genie
GnomeSequencer
HealBot
Informant
LibSharedMedia-3.0
MoveAnything
PitBull4 -All the plugins that come with Pitbull4
Postal
Prat-3.0
SatrinaBuffFrame
SBFOptions
SellJunk
SilverDragon
Skinner
Stubby
TitanPanel
WIM
XPerl -All the plugins that come with XPerl
Report comment to moderator  
Reply With Quote
Unread 12-13-14, 01:45 PM  
Kru
A Kobold Labourer

Forum posts: 0
File comments: 14
Uploads: 0
Re: Re: Re: I must be missing something

Originally Posted by Grimstout
Originally Posted by semlar
Originally Posted by Grimstout
So I downloaded and renamed the ExampleSequencer.lua to Sequencer.lua, then created some macros and nothing comes up when I create the macro in game.
The file should be called Sequences.lua not Sequencer.lua
Sorry misspelled the word, it is Sequences.lua.
make sure you don't have sequences.lua.lua

also the macro name is case sensitive I'm pretty sure so the macro will be Frost not frost

check your addons in game make sure GS is turned on
Last edited by Kru : 12-13-14 at 01:46 PM.
Report comment to moderator  
Reply With Quote
Unread 12-13-14, 11:17 AM  
Grimstout
A Kobold Labourer
 
Grimstout's Avatar

Forum posts: 0
File comments: 6
Uploads: 0
Re: Re: I must be missing something

Originally Posted by semlar
Originally Posted by Grimstout
So I downloaded and renamed the ExampleSequencer.lua to Sequencer.lua, then created some macros and nothing comes up when I create the macro in game.
The file should be called Sequences.lua not Sequencer.lua
Sorry misspelled the word, it is Sequences.lua.
Report comment to moderator  
Reply With Quote
Unread 12-13-14, 09:33 AM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Re: I must be missing something

Originally Posted by Grimstout
So I downloaded and renamed the ExampleSequencer.lua to Sequencer.lua, then created some macros and nothing comes up when I create the macro in game.
The file should be called Sequences.lua not Sequencer.lua
Last edited by semlar : 12-13-14 at 09:34 AM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: