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:224,349
Favorites:137
MD5:
7.2.0

GnomeSequencer  Updated this week!  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 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-10-15, 12:54 PM  
Cholerabob
A Murloc Raider

Forum posts: 4
File comments: 27
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-07-15, 02:30 PM  
Lichbane
A Deviate Faerie Dragon
 
Lichbane's Avatar

Forum posts: 14
File comments: 77
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-04-15, 11:06 AM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1004
File comments: 182
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-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-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 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 01-28-15, 11:09 PM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1004
File comments: 182
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-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, 12:16 PM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1004
File comments: 182
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-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-25-15, 09:57 PM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1004
File comments: 182
Uploads: 25
Re: Re: Re: Re: Re: Re: Frost DK 2H Help

Originally Posted by kaiden
So then If i put Touch of Karma above the cast sequence since that's on a cooldown it should be fine? I ask because my Xuen idea didn't pan out.
It pretty much just looks for /use or /cast in the macro text to set the spell icon, regardless of what it's actually going to cast.

I could support adding #showtooltip <spell> to the macros to show something specific, but I would have a hard time making it accurately display what castsequence is currently doing.

I'm not entirely sure how it will behave, but you can try changing line 6 in Core.lua from
Lua Code:
  1. local CastCmds = { use = true, cast = true, spell = true }
to
Lua Code:
  1. local CastCmds = { use = true, cast = true, spell = true, castsequence = true }
Last edited by semlar : 01-25-15 at 10:00 PM.
Report comment to moderator  
Reply With Quote
Unread 01-25-15, 09:48 PM  
kaiden
A Murloc Raider
 
kaiden's Avatar

Forum posts: 6
File comments: 39
Uploads: 0
Re: Re: Re: Re: Re: Frost DK 2H Help

Originally Posted by semlar
Originally Posted by kaiden
It begins picking up Icons the instant I start casting. It's just frustrating to have the Red ? before then. I know it's just because it doesn't have a spell yet that i can tap in on. So i was thinking if I say put in Invoke Xuen, the White Tiger at the top and remove the combat in front of it, it should always have an icon.
It's incapable of knowing what spell a castsequence is going to cast so it can't show an icon for it.
So then If i put Touch of Karma above the cast sequence since that's on a cooldown it should be fine? I ask because my Xuen idea didn't pan out.
Report comment to moderator  
Reply With Quote
Unread 01-25-15, 09:42 PM  
jesusjuice
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
Re: Re: Re: Re: Re: Re: Re: Frost DK 2H Help

Originally Posted by semlar
Remove everything after the } that's closing your Frost sequence, this is all you need..
Lua Code:
  1. local _, Sequences = ... -- Don't touch this
  2.  
  3. Sequences["Frost"] = {
  4. PreMacro = [[
  5. /targetenemy [noharm][dead]
  6. ]],
  7. '/cast !Obliterate',
  8. '/cast Howling Blast',
  9. '/cast Plague Strike',
  10. '/cast Soul Reaper',
  11. '/cast Obliterate',
  12. '/cast Empower Rune Weapon',
  13. '/cast Anti-Magic Shell',
  14. '/cast Frost Strike',
  15. '/cast Dark Simulacrum',
  16. }
That did it. Thank you!
Report comment to moderator  
Reply With Quote
Unread 01-25-15, 09:26 PM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1004
File comments: 182
Uploads: 25
Re: Re: Re: Re: Re: Re: Frost DK 2H Help

Remove everything after the } that's closing your Frost sequence, this is all you need..
Lua Code:
  1. local _, Sequences = ... -- Don't touch this
  2.  
  3. Sequences["Frost"] = {
  4. PreMacro = [[
  5. /targetenemy [noharm][dead]
  6. ]],
  7. '/cast !Obliterate',
  8. '/cast Howling Blast',
  9. '/cast Plague Strike',
  10. '/cast Soul Reaper',
  11. '/cast Obliterate',
  12. '/cast Empower Rune Weapon',
  13. '/cast Anti-Magic Shell',
  14. '/cast Frost Strike',
  15. '/cast Dark Simulacrum',
  16. }
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: