Originally Posted by bimmian
Is there a way to use petfollow/petstay in a castsequence macro? I want one button to toggle stay/follow, but in a cast sequence it doesn't work. I am currently just using a modifier for it, but having one button would be more convenient.
|
Not sure if it's been mentioned in this thread yet or not but Cogwheel has written a great mod to handle just these types of macro requests. It's called
MacroSequence and you can grab it from
wowi.
In order to solve your problem you'd create the following sequence in Sequences.lua adding it to the already definite table MacroSequence.sequences under the examples:
HunterPetToggle = { "/petstay", "/petfollow", }
Once you've created the sequence it's just a matter of setting a keybinding for it. This can be accomplished in two different ways. You can simply create a stock wow macro containing "/click HunterPetToggle" or you can use the SetBindingClick() API function:
/run SetBindingClick("CTRL-2"), "HunterPetToggle") SaveBindings(GetCurrentBindingSet())
Once you're comfortable using this addon the sky is literally the limit. Not only can you create complex chain sequences but you can also get around the wow macro 225 char limit.