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 01-27-15, 08:35 PM  
FuzzyButt
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Step Function Assistance

I have been studying writing a good Frost DK 2H step rotation based on the advice found here as far as priority goes:

-Plague Leech if Blood Plague has 4 seconds or less left
-Blood Tap if your target is at or below 35%, Soul Reaper is off cooldown but you have no runes and do have blood tap charges
-Plague Leech if the above applies but you have no blood tap charges (and PL is available)
-Soul Reaper if target is at or below 35%
-Howling Blast on FF proc
-Death Strike on Dark Succor proc
-Oubreak if Blood Plague isn't up
-Plague Strike if Outbreak is unglyphed and on CD
-Blood Tap if you have 11 Blood Tap charges (as to not overcap)
-Howling Blast to apply Necrotic Plague if you have it
-Blood Tap when Killing Machine procs but you have no runes for Obliterate
-Plague Leech if above applies but Blood Tap is unavailable but PL is
-Obliterate on KM proc
-FS on KM proc if Obliterate has more than 4 sec CD (as to not waste KM proc)
-FS when runic power is about te be capped (80+)
-Obliterate if nothing else available
-FS if nothing else available but RP is over 55 to keep RP for Outbreak if needed
-Blood Tap if nothing else availble
-Plague Leech if nothing else available

i am not sure how detailed a step function can be and if you can build in GCD's. I have been playing WOW since vanilla all through Cata then took a break till now. I just finished leveling my DK too 100 (main spec is blood) but like the DPS / OT function as well.

The mechanics of the game have changed fundamentally since I last played and am looking for a catch up......thanks for any assistance !!
Report comment to moderator  
Reply With Quote
Unread 01-28-15, 12:16 PM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Re: Step Function Assistance

Originally Posted by FuzzyButt
I have been studying writing a good Frost DK 2H step rotation based on the advice found here as far as priority goes:

-Plague Leech if Blood Plague has 4 seconds or less left
-Blood Tap if your target is at or below 35%, Soul Reaper is off cooldown but you have no runes and do have blood tap charges
-Plague Leech if the above applies but you have no blood tap charges (and PL is available)
-Soul Reaper if target is at or below 35%
-Howling Blast on FF proc
-Death Strike on Dark Succor proc
-Oubreak if Blood Plague isn't up
-Plague Strike if Outbreak is unglyphed and on CD
-Blood Tap if you have 11 Blood Tap charges (as to not overcap)
-Howling Blast to apply Necrotic Plague if you have it
-Blood Tap when Killing Machine procs but you have no runes for Obliterate
-Plague Leech if above applies but Blood Tap is unavailable but PL is
-Obliterate on KM proc
-FS on KM proc if Obliterate has more than 4 sec CD (as to not waste KM proc)
-FS when runic power is about te be capped (80+)
-Obliterate if nothing else available
-FS if nothing else available but RP is over 55 to keep RP for Outbreak if needed
-Blood Tap if nothing else availble
-Plague Leech if nothing else available
None of that is possible, addons can't make decisions about what to cast for you based on conditions like that.
Report comment to moderator  
Reply With Quote
Unread 01-28-15, 10:53 PM  
Westinator
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
German and other languages support

hi,

i love your addon but i have the problem, that i canīt use it with my german client. i switched the language to english now, because your addon doesnīt seem to support some german skill names with the letters ä,ö and ü. i now that french and russian guys have the same problem with their special letters. please help me to use it in german (if itīs possible)

thx in advance
Report comment to moderator  
Reply With Quote
Unread 01-28-15, 11:09 PM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Re: German and other languages support

Originally Posted by Westinator
hi,

i love your addon but i have the problem, that i canīt use it with my german client. i switched the language to english now, because your addon doesnīt seem to support some german skill names with the letters ä,ö and ü. i now that french and russian guys have the same problem with their special letters. please help me to use it in german (if itīs possible)

thx in advance
Use a text editor like notepad++ that supports utf-8 encoding when you save the file.
Report comment to moderator  
Reply With Quote
Unread 01-29-15, 12:27 AM  
Westinator
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Re: Re: German and other languages support

Originally Posted by semlar
Originally Posted by Westinator
hi,

i love your addon but i have the problem, that i canīt use it with my german client. i switched the language to english now, because your addon doesnīt seem to support some german skill names with the letters ä,ö and ü. i now that french and russian guys have the same problem with their special letters. please help me to use it in german (if itīs possible)

thx in advance
Use a text editor like notepad++ that supports utf-8 encoding when you save the file.
thx, it worked
Report comment to moderator  
Reply With Quote
Unread 02-03-15, 01:43 AM  
lee_terry_jr
A Murloc Raider

Forum posts: 5
File comments: 3
Uploads: 0
help

I am new to the game and not good at scripting but I managed to make this macro.
/castsequence reset=combat/target/10 Charge, Bloodthirst, Pummel
The problem is that when I use it as a macro it will wait till it uses 1 ability before moving on to the next and that isnt what I want. I want it to try to cast the ability then move to the next regardless if it was able to cast the first one or not and I had read that this can do that. However I can not seem to get it working and I am betting its because I wrote the script wrong. So I installed the GnomeSequencer Modified addon as well which looked like it was a bit easier to use but I was still unable to get it working any help would be appreciated.
Report comment to moderator  
Reply With Quote
Unread 02-04-15, 10:43 AM  
Thaize
A Kobold Labourer

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

Is there an easy way to contribute to the project? Source control, something? I'm working on and mostly done with porting the event handling from CastSequenceManager_OnEvent into gnome sequencer. This allows the managing the GnomeSequence step attribute in a way more consistant with macro behavior.

Are you working on anything like this, as I'd hate to duplicate effort?
Report comment to moderator  
Reply With Quote
Unread 02-04-15, 11:06 AM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

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

Originally Posted by Thaize
Is there an easy way to contribute to the project? Source control, something? I'm working on and mostly done with porting the event handling from CastSequenceManager_OnEvent into gnome sequencer. This allows the managing the GnomeSequence step attribute in a way more consistant with macro behavior.

Are you working on anything like this, as I'd hate to duplicate effort?
You can't respond to events in the restricted environment during combat (SetAttribute from unsecure code will be blocked), so duplicating /CastSequence's behavior isn't really possible.

However, I'm always open to new ideas and suggestions for the addon if anyone has something they want to share.
Report comment to moderator  
Reply With Quote
Unread 02-07-15, 02:30 PM  
Lichbane
A Deviate Faerie Dragon
 
Lichbane's Avatar

Forum posts: 16
File comments: 83
Uploads: 0
Edit: Never mind PEBKAC error.
Last edited by Lichbane : 02-07-15 at 02:34 PM.
Report comment to moderator  
Reply With Quote
Unread 02-10-15, 12:54 PM  
Cholerabob
A Murloc Raider

Forum posts: 4
File comments: 29
Uploads: 0
Trying to find the right delay on a Naga mouse doing a macro to spam the keyboard key, What are you guys using ? tired 14ms and 50ms , both work, but was wondering if slower is better. 14ms is freaking fast lol.
Report comment to moderator  
Reply With Quote
Unread 02-10-15, 06:22 PM  
KneazlesKeeper
A Kobold Labourer
 
KneazlesKeeper's Avatar

Forum posts: 0
File comments: 21
Uploads: 0
Originally Posted by Cholerabob
Trying to find the right delay on a Naga mouse doing a macro to spam the keyboard key, What are you guys using ? tired 14ms and 50ms , both work, but was wondering if slower is better. 14ms is freaking fast lol.
If you are asking how fast you should manually spam the key it depends on the size of the macro, and the individual skills' cool downs. however I have found a nice steady beat the best.

If you are asking about an delay for the Naga's auto shot function, please be advised you are risking your account by using it. The WoW ToU dose not allow any automation, and while the risk maybe small; I have known players who have had their accounts banned &/or suspended for using them.
Report comment to moderator  
Reply With Quote
Unread 02-18-15, 12:21 PM  
sumoldguy
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 16
File comments: 26
Uploads: 1
I so miss this... please update/fix

*cry*

please make it work again

** edit **

...was 'Tiger's Fury'

GS can't perform due to the ' mark added in name
Last edited by sumoldguy : 02-18-15 at 12:59 PM.
Report comment to moderator  
Reply With Quote
Unread 02-19-15, 06:05 PM  
KneazlesKeeper
A Kobold Labourer
 
KneazlesKeeper's Avatar

Forum posts: 0
File comments: 21
Uploads: 0
Re: I so miss this... please update/fix

Originally Posted by sumoldguy
*cry*

please make it work again

** edit **

...was 'Tiger's Fury'

GS can't perform due to the ' mark added in name
Try "/cast Tiger's Fury",

or [[/cast Tiger's Fury]],

Ether one should work I use the 2nd one with my Druid.
Last edited by KneazlesKeeper : 02-19-15 at 06:15 PM.
Report comment to moderator  
Reply With Quote
Unread 02-21-15, 01:17 PM  
sumoldguy
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 16
File comments: 26
Uploads: 1
is there a command to initialize the sequences.lua file without /realod ing the game?

like maybe a script run command?
Report comment to moderator  
Reply With Quote
Unread 02-21-15, 07:07 PM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Originally Posted by sumoldguy
is there a command to initialize the sequences.lua file without /realod ing the game?

like maybe a script run command?
I'm afraid there's no way to do this easily with the way it's currently designed.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: