Category: Miscellaneous
Addon Information
Download Latest Version.
To add favorites please register for a free account. If you already have one you need to login. How do I install this? (FAQ)
Cogwheel's Portal Bug Reports Feature Requests
Author:
Version:
1.5
Date:
10-26-2008 03:23 AM
Size:
3.08 Kb
Downloads:
133,897
Favorites:
90
MD5:
Pictures
MacroSequence   Popular! (More than 5000 hits)
********** IMPORTANT ***********
If you are upgrading from a previous version, you must not overwrite Sequences.lua or you will wipe out any sequences you've created. I suggest extracting only MacroSequence.lua from the zip file or copying Sequences.lua out of the MacroSequence folder and then copying it back once you've installed the new version.

The next major version will add a GUI and will no longer use Sequences.lua to store the macros you create. However, it will be able to import anything in your Sequences.lua.
*******************************

Have you ever wanted to sequence arbitrary macro commands instead of just spells and items? Now's your chance! MacroSequence reproduces most of /castsequence's functionality but instead of individual spells or items, each element in the sequence can be an entire macro. There are only two missing behaviors of /castsequence: reset on target change (impossible to do with current state headers) and holding position if an action fails (something many people don't like about /castsequence anyway).

In addition to its sequencing, the macros can be of unlimited length. This makes MacroSequence a contender as an extended macro addon.

To create sequences, you need to edit a table in Sequences.lua, though I've tried to make this very simple. Here is the documentation comment at the beginning of that file:

Code:
Each entry in this table defines a single macro sequence akin to the
/castsequence command. Take the following macro, for example:

  /castsequence reset=alt/10 Immolate, Corruption, Curse of Agony

This can be represented as follows:

  WarlockStarter = {
    reset = {
      alt = true,
      seconds = 10
    },
    
    "/cast Immolate",
    "/cast Corruption",
    "/cast Curse of Agony"
  },

The easiest way to trigger a sequence is to /click it in a macro. The button's
name is the same as the sequence (so be sure to choose a unique name). For the
example above, the /click macro would be:

  /click WarlockStarter

Alternatively, you can set a key binding to the button with a one-time command
like:

  /run SetBindingClick("CTRL-5", "WarlockStarter") SaveBindings(GetCurrentBindingSet())

The first time you click the button, it will run the first command in the
sequence. Each subsequent click will advance to the next one until it reaches
the end, in which case it will reset to the beginning. Like the /castsequence
command, the sequence will also reset if you die.
  
The reset entry is optional, but every sequence must have a list of macros. Each
item in the list can be an entire macro of unlimited size (meaning this addon
can also be used for extended macros). Use Lua's long string syntax to make
editing easier (be sure to align it with the left column or they will not be
seen as slash commands):

  MageSequence = {
    [[
/say Hello
/wave
    ]],
    
    [[
/use Talisman of Ephemeral Power
/cast Arcane Power
/cast Presence of Mind
/cast Pyroblast
    ]]
  }

Alternatively, you can use one-line strings with \n to separate the lines.

The reset entry can contain any combination of the following items:

alt - boolean
  Reset the sequence when you run it while holding alt.
ctrl - boolean
  Reset the sequence when you run it while holding ctrl.
shift - boolean
  Reset the sequence when you run it while holding shift.
combat - boolean
  Reset the sequence when you enter or leave combat.
seconds - number
  If specified, the sequence will reset after the given amount of time. If the
  sequence is advanced before the time is up, the timer will be restarted. A
  time of 0 is the same as not specifying a time.
cycle - number
  Instead of returning to the beginning when you click past the end, you can use
  cycle to repeat some number of macros at the end of the sequence. For example,
  if you have 6 macros and a cycle of 3, it will use them in the order 1, 2, 3,
  4, 5, 6, 4, 5, 6, 4... Any other reset condition (including the implied death
  reset) will return the sequence to 1.
  Change Log - MacroSequence
v1.5
- Updated for 3.0

v1.1
- Added cycle feature

v1.0.1
- The "sequence has no macros" error message now correctly shows the name of the sequence with no macros

v1.0
- Initial Release
  Comments - MacroSequence
Post A Reply Comment Options
Old 08-09-2008, 03:08 PM  
WickedCitizen
A Defias Bandit

Forum posts: 2
File comments: 6
Uploads: 0
Nevermind, I figured it out. Thanks for the addon.
WickedCitizen is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-08-2008, 06:20 PM  
WickedCitizen
A Defias Bandit

Forum posts: 2
File comments: 6
Uploads: 0
Quote:
Originally posted by Cogwheel
Could the two recent posters please check whether the previous couple posts are relevant?
It randomly started to work earlier (after the initial error) but wouldn't reset to line 1... but what can I do to make it start over with the beginning of the macro once the last line completes? I basically want it to be this:

Code:
/castsequence Flame Shock, Stormstrike, Windfury Totem, Grace of Air Totem, Earth Shock, Stormstrike, Windfury Totem, Flame Shock, Grace of Air Totem, Earth Shock, Stormstrike, Windfury Totem, Grace of Air Totem, Flame Shock, Stormstrike, Windfury Totem, Earth Shock, Grace of Air Totem
But naturally that's way over current in-game macro character limit. I'm just trying to make a one-button macro for my complete rotation in a quest for ultimate laziness.

Can you help me out?
WickedCitizen is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-07-2008, 05:18 PM  
Cogwheel
Sans Poisson
 
Cogwheel's Avatar
Premium Member
Interface Author - Click to view interfaces

Forum posts: 212
File comments: 132
Uploads: 22
Could the two recent posters please check whether the previous couple posts are relevant?
Cogwheel is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-06-2008, 04:25 AM  
WickedCitizen
A Defias Bandit

Forum posts: 2
File comments: 6
Uploads: 0
I tried the following sequence:

Code:
MacroSequence = {}

MacroSequence.sequences = {
Dowork = {
combat = true,
cycle = 1
},
"/cast Flame Shock",
"/cast Stormstrike",
"/cast Windfury Totem",
"/cast Grace of Air Totem",
"/cast Earth Shock",
"/cast Stormstrike",
"/cast Windfury Totem",
"/cast Flame Shock",
"/cast Grace of Air Totem",
"/cast Earth Shock",
"/cast Stormstrike",
"/cast Windfury Totem",
"/cast Grace of Air Totem",
"/cast Flame Shock",
"/cast Stormstrike",
"/cast Windfury Totem",
"/cast Earth Shock",
"/cast Grace of Air Totem"
},
}
And then made a in-game macro:

Code:
/click Dowork
Nothing happens.. Where'd I go wrong?

Last edited by WickedCitizen : 08-06-2008 at 04:30 AM.
WickedCitizen is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-06-2008, 12:23 AM  
ff760725
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Quote:
MacroSequence.sequences = {
Enh = {
reset = {
Ctrl = true,
combat = true,
seconds = 5
},
"/cast Stormstrike",
"/cast Earth Shock",
"/cast Windfury Totem",
"/cast Grace of Air Totem",
"/cast Flame Shock",
"/cast Stormstrike",
"/cast Water Shield",
"/cast Windfury Totem",
"/cast Grace of Air Totem",
"/cast Earth Shock",
"/cast Stormstrike",
"/cast Flame Shock",
"/cast Windfury Totem",
"/cast Grace of Air Totem",
"/cast Earth Shock",
"/cast Stormstrike",
"/cast Water Shield",
"/cast Windfury Totem",
"/cast Grace of Air Totem",
"/cast Flame Shock"
},
/click Enh
Not working...
ff760725 is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 07-16-2008, 11:33 AM  
Staxx
A Kobold Labourer

Forum posts: 1
File comments: 4
Uploads: 0
Ah yes, it is indeed only the first time you use it from a keybinding - All of mine work fine after you hit ignore. Scared me there for a second Thank you, and I will keep my ear to the ground on this issue.
Staxx is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 07-16-2008, 11:27 AM  
Cogwheel
Sans Poisson
 
Cogwheel's Avatar
Premium Member
Interface Author - Click to view interfaces

Forum posts: 212
File comments: 132
Uploads: 22
This is actually a Blizzard-side bug. Tekkub came up with a minimal test case that showed /click macros cause an action blocked error the first time you use them, but only from a keybinding (if you click the macro with your mouse it works fine). Last I heard, if you click Ignore, it should work fine from then on. Unfortunately, there's nothing I can do about this but wait for a fix (or if anyone finds a workaround, i'm all ears!)
Cogwheel is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 07-16-2008, 11:24 AM  
Lord of Lunacy
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Yeah, I've been getting the same thing today - action protected by the Blizzard UI. I did a little testing / troubleshooting ... I disabled every addon except for this one and still received the error. I copied and pasted my macro coding into the text chat boxes to test it to see if any of it was causing the errors ... it all worked perfectly ... which leads me to the conclusion that they changed something in the patch which is causing this addon to have issues.
Lord of Lunacy is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 07-16-2008, 11:16 AM  
Staxx
A Kobold Labourer

Forum posts: 1
File comments: 4
Uploads: 0
Is there a problem with the MacroSequence Addon and yesterdays patch? I now get a message saying that MacroSequence is using an action protected by the Blizzard UI when I try to use any macros - Did they protect some function(s)?

I have one macro that does a :

Followjoebob = {
[[
/target joebob
/focus
]]
}

And it is saying that target is protected, tell me it isn't so.....

Last edited by Staxx : 07-16-2008 at 11:24 AM.
Staxx is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 07-07-2008, 07:23 AM  
jweick
A Defias Bandit

Forum posts: 2
File comments: 1
Uploads: 0
ok i have been struggling to get the following to work right. apperantly a focus kick macro will work if there is a /targetlasttarget and focus gouge will work if there is a /targetlastenemy but neither will work right on the oppisite. if there is a way to do this or to use you addon to get it to wrok i would love to know, thanks in advance


looking for help with a focus macro:

Working:

Kick focus~

/focus [button:2]
/focus [target=focus, noharm] [target=focus, dead] [modifier]
/stopmacro [target=focus, noexists]
/cast [target=focus] Kick
/targetlasttarget

Gouge Focus~

/focus [button:2]
/focus [target=focus, noharm] [target=focus, dead] [modifier]
/stopmacro [target=focus, noexists]
/cast [target=focus] Gouge
/targetlastenemy


Not working:

Kick focus~ fails to retarget main target if kick on focus fails

/focus [button:2]
/focus [target=focus, noharm] [target=focus, dead] [modifier]
/stopmacro [target=focus, noexists]
/cast [target=focus] Kick
/targetlastenemy

Gouge Focus~ if gouge fails, it requires a second click to return to main target

/focus [button:2]
/focus [target=focus, noharm] [target=focus, dead] [modifier]
/stopmacro [target=focus, noexists]
/cast [target=focus] Gouge
/targetlasttarget

So when i try to make a cast sequence out of them:

/focus [button:2]
/focus [target=focus, noharm] [target=focus, dead] [modifier]
/stopmacro [target=focus, noexists]
/castsequence [target=focus] Kick, Gouge
/targetlasttarget

or

/focus [button:2]
/focus [target=focus, noharm] [target=focus, dead] [modifier]
/stopmacro [target=focus, noexists]
/castsequence [target=focus] Kick, Gouge
/targetlastenemy

both macros will break if kick or gouge fail.

this is the closest i have come to getting it working:

/focus [button:2]
/focus [target=focus, noharm] [target=focus, dead] [modifier]
/stopmacro [target=focus, noexists]
/castsequence [target=focus] Kick, Gouge
/cleartarget
/targetenemy
/startattack


the only problem with /targetenemy is that sometimes you can get the wrong target back because its looking for nearest enemy same as tab targetting
jweick is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 06-04-2008, 09:44 PM  
cizimizi
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Hello there i'm having a bit of trouble with the addon
I'm trying to make my character equipt a shield, use shield bash and switch back to DW with the same button
this can easily be done but the problem is the weapon switching creates a global cooldown where it then skips the shield bash and just continues to switch weapons if i spamm the button

so i was trying to make a castsequence but i can't use a /equiptslot command in it

so i tried this addon by making something like this

MacroSequence = {}

MacroSequence.sequences = {

Bash = {
[[
/castsequence Ward of the Vale, Shield Bash"
]],
[[
/equiptslot 17 Splitting Hatchet of the Monkey"
]]


},
}


sad to say nothing happens when i use /click Bash

Last edited by cizimizi : 06-04-2008 at 09:45 PM.
cizimizi is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-18-2008, 06:00 PM  
Llivavin
A Black Drake

Forum posts: 89
File comments: 9
Uploads: 0
I got this timed out perfectly(well almost)
MacroSequence = {}

MacroSequence.sequences = {
Shots = {
reset = {
combat = true,
cycle = 1,
},
[[
"/cast Aimed Shot",
"/cast Arcane Shot",
"/cast Steady Shot",
"/cast Steady Shot",
"/cast Steady Shot",
"/cast Arcane Shot",
"/cast Steady Shot"
"/cast Steady Shot",
"/cast Steady Shot",
"/cast Arcane Shot",
"/cast Aimed Shot",
},
}

Last edited by Llivavin : 05-18-2008 at 06:03 PM.
Llivavin is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-09-2008, 10:16 PM  
Cogwheel
Sans Poisson
 
Cogwheel's Avatar
Premium Member
Interface Author - Click to view interfaces

Forum posts: 212
File comments: 132
Uploads: 22
Re: A little help please

Quote:
Originally posted by Kathand
shoult it look like
MacroSequence.sequences = {
Affliction = {
reset = {
shift = true,
combat = true,
cycle = 3
},
/cast Corruption,
/cast Curse of Agony,
/cast Siphon Life,
/cast Shadowbolt
},
Almost... You need to put quotes (") around all of the /cast commands (e.g. "/cast Corruption"). Also, cycle should be 1 to continue repeating the 1 shadow bolt spell at the end (be sure to spell the spells correctly).
Cogwheel is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 03-17-2008, 09:37 PM  
Kathand
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
A little help please

how would I turn

/castsequence reset=target Corruption(Rank 8), Curse of Agony(Rank 7), Siphon Life(Rank 6), Shadow Bolt(Rank 11), Shadow Bolt(Rank 11), Shadow Bolt(Rank 11), Shadow Bolt(Rank 11), Shadow Bolt(Rank 11)

into something usable by macro sequenses?

shoult it look like
MacroSequence.sequences = {
Affliction = {
reset = {
shift = true,
combat = true,
cycle = 3
},
/cast Corruption,
/cast Curse of Agony,
/cast Siphon Life,
/cast Shadowbolt
},
Kathand is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 03-13-2008, 11:14 PM  
Llivavin
A Black Drake

Forum posts: 89
File comments: 9
Uploads: 0
Is it possible

to have it check if Hunters mark is allready on the enemy or perhaps a way so that it only will go off once every 2 minutes unless you hit a button?

or no?
Llivavin is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Post A Reply



Category Jump:




The Network:
EQInterface | EQ2Interface | LoTROInterface | MMOInterface | War.MMOUI | WoWInterface | VGInterface | Allakhazam | Thottbot | Wowhead | Zam


©2009 MMOUI / ZAM Network
vBulletin - Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.