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,840
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-15-14, 04:26 AM  
braymo16
A Kobold Labourer

Forum posts: 0
File comments: 12
Uploads: 0
Re: Re: Re: Re: Re: gnome sequencer

Originally Posted by Divega
Originally Posted by braymo16
Originally Posted by semlar
Originally Posted by Divega
You have double quotes where single quotes need to be.

"/cast Templar's Verdict" ,

=

'/cast Templar's Verdict',
Double quotes are correct here because the apostrophe would end the string started by a single quote.

The file looks fine, so I'm guessing it's either installed to the wrong place or the macro has the wrong name, or there might be multiple macros with the same name which would cause problems.

i changed the name and tried it but it didnt overwite and i also tried with diferent name and changed it back to "/cast Templar's Verdict" , but it still wont overwrite
Ok, so I learned a few things.

I think you might be confused on something though, when you create the macro you leave it empty and the addon will automatically put

#showtooltip
/click MacroName(<<<this is whatever you named your macro in-game and it has to match the sequences file)

Also, not sure if it's case sensitive but in your sequences file you have the sequence named 'Ret' and by the looks of the macro you created it's named 'ret'

Try changing the macro name in-game to Ret with a capital R.

i have changed the name in game all this time but now i tried typeing in that stuff but it still doesnt work
Report comment to moderator  
Reply With Quote
Unread 11-15-14, 04:23 AM  
braymo16
A Kobold Labourer

Forum posts: 0
File comments: 12
Uploads: 0
C:\Program Files (x86)\World of Warcraft\Interface\AddOns

thats where i extracted it too.. but isnt that where its supposed to go
Report comment to moderator  
Reply With Quote
Unread 11-15-14, 04:22 AM  
Divega
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
Re: Re: Re: Re: gnome sequencer

Originally Posted by braymo16
Originally Posted by semlar
Originally Posted by Divega
You have double quotes where single quotes need to be.

"/cast Templar's Verdict" ,

=

'/cast Templar's Verdict',
Double quotes are correct here because the apostrophe would end the string started by a single quote.

The file looks fine, so I'm guessing it's either installed to the wrong place or the macro has the wrong name, or there might be multiple macros with the same name which would cause problems.

i changed the name and tried it but it didnt overwite and i also tried with diferent name and changed it back to "/cast Templar's Verdict" , but it still wont overwrite
Ok, so I learned a few things.

I think you might be confused on something though, when you create the macro you leave it empty and the addon will automatically put

#showtooltip
/click MacroName(<<<this is whatever you named your macro in-game and it has to match the sequences file)

Also, not sure if it's case sensitive but in your sequences file you have the sequence named 'Ret' and by the looks of the macro you created it's named 'ret'

Try changing the macro name in-game to Ret with a capital R.
Report comment to moderator  
Reply With Quote
Unread 11-15-14, 04:09 AM  
braymo16
A Kobold Labourer

Forum posts: 0
File comments: 12
Uploads: 0
the addon is enbled i checked that too
Report comment to moderator  
Reply With Quote
Unread 11-15-14, 04:08 AM  
braymo16
A Kobold Labourer

Forum posts: 0
File comments: 12
Uploads: 0
okso i checke dmy addons and there were a lot of out of date ones so i disabled them and then tried it but i didnt get any lua erors so that means i put it in the wrong place.. but i put it in my addons folder thouygh
Report comment to moderator  
Reply With Quote
Unread 11-15-14, 04:04 AM  
braymo16
A Kobold Labourer

Forum posts: 0
File comments: 12
Uploads: 0
Originally Posted by semlar
Originally Posted by braymo16
i dont know where to find the lua errors in interface... do u mean in game?
Hit escape in-game, click the interface button and then click the Help section at the bottom.

If you enable lua errors, it will throw an error if you try to use single-quotes around templar's verdict and it's loading the file, because that's not valid lua.

So if it's NOT throwing an error after you do that then it's definitely not in the right place or the addon isn't enabled.
it is on but there are a lot of errors in my ui so idk if thats the problem or not
Report comment to moderator  
Reply With Quote
Unread 11-15-14, 04:00 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 braymo16
i dont know where to find the lua errors in interface... do u mean in game?
Hit escape in-game, click the interface button and then click the Help section at the bottom.

If you enable lua errors, it will throw an error if you try to use single-quotes around templar's verdict and it's loading the file, because that's not valid lua.

So if it's NOT throwing an error after you do that then it's definitely not in the right place or the addon isn't enabled.
Last edited by semlar : 11-15-14 at 04:00 AM.
Report comment to moderator  
Reply With Quote
Unread 11-15-14, 03:57 AM  
braymo16
A Kobold Labourer

Forum posts: 0
File comments: 12
Uploads: 0
Originally Posted by semlar
Originally Posted by braymo16
its also in the right place
It would be throwing a lua error if you had it in the right place and you tried to replace those double quotes with single quotes, so either you don't have lua errors enabled under the interface > help menu or you don't have it in the right place and enabled.
i dont know where to find the lua errors in interface... do u mean in game?
Report comment to moderator  
Reply With Quote
Unread 11-15-14, 03:49 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 braymo16
its also in the right place
It would be throwing a lua error if you had it in the right place and you tried to replace those double quotes with single quotes, so either you don't have lua errors enabled under the interface > help menu or you don't have it in the right place and enabled.
Report comment to moderator  
Reply With Quote
Unread 11-15-14, 03:41 AM  
braymo16
A Kobold Labourer

Forum posts: 0
File comments: 12
Uploads: 0
its also in the right place
Report comment to moderator  
Reply With Quote
Unread 11-15-14, 03:40 AM  
braymo16
A Kobold Labourer

Forum posts: 0
File comments: 12
Uploads: 0
Re: Re: Re: gnome sequencer

Originally Posted by semlar
Originally Posted by Divega
You have double quotes where single quotes need to be.

"/cast Templar's Verdict" ,

=

'/cast Templar's Verdict',
Double quotes are correct here because the apostrophe would end the string started by a single quote.

The file looks fine, so I'm guessing it's either installed to the wrong place or the macro has the wrong name, or there might be multiple macros with the same name which would cause problems.

i changed the name and tried it but it didnt overwite and i also tried with diferent name and changed it back to "/cast Templar's Verdict" , but it still wont overwrite
Report comment to moderator  
Reply With Quote
Unread 11-15-14, 03:35 AM  
braymo16
A Kobold Labourer

Forum posts: 0
File comments: 12
Uploads: 0
Re: Re: gnome sequencer

You have double quotes where single quotes need to be.

"/cast Templar's Verdict" ,

=

'/cast Templar's Verdict',[/quote]

ok so i changed it as u said but it still doesn't overwrite it by saying
#showtooltip
/click ret
Report comment to moderator  
Reply With Quote
Unread 11-15-14, 03:29 AM  
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1060
File comments: 187
Uploads: 25
Re: Re: gnome sequencer

Originally Posted by Divega
You have double quotes where single quotes need to be.

"/cast Templar's Verdict" ,

=

'/cast Templar's Verdict',
Double quotes are correct here because the apostrophe would end the string started by a single quote.

The file looks fine, so I'm guessing it's either installed to the wrong place or the macro has the wrong name, or there might be multiple macros with the same name which would cause problems.
Report comment to moderator  
Reply With Quote
Unread 11-15-14, 03:12 AM  
Divega
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
Re: gnome sequencer

Well i'm a tard >.<
Last edited by Divega : 11-15-14 at 04:16 AM.
Report comment to moderator  
Reply With Quote
Unread 11-15-14, 02:53 AM  
braymo16
A Kobold Labourer

Forum posts: 0
File comments: 12
Uploads: 0
gnome sequencer

i have this in my folder after i changed the name of the file, i have read the other posts and checked what i was doing wrong and i watched a video but when i go to make the macro in game it doesn't seem to overwrite anything by having it show up as
#showtooltip
/click ret

here is my file

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['Ret'] = {
PreMacro = [[
/targetenemy [noharm][dead]
]],
'/cast Judgment',
'/cast Crusader Strike',
'/cast Exorcism',
'/cast !Avenging Wrath',
'/cast !Execution Sentence',
"/cast Templar's Verdict" ,
'/cast Hammer of Wrath',
PostMacro = [[
/use [combat]13
/use [combat]14
]],
}

Sequences['RetAOE'] = {
PreMacro = [[
/targetenemy [noharm][dead]
]],
'/cast Judgment',
'/cast Hammer of the Righteous',
'/cast Exorcism',
'/cast !Avenging Wrath',
'/cast !Execution Sentence',
"/cast Templar's Verdict" ,
'/cast Hammer of Wrath',
PostMacro = [[
/use [combat]13
/use [combat]14
]],
}



please help
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: