Elitist Jerks
Register
Blogs
Forums


Go Back   Elitist Jerks » Public Discussion » Public Discussion

Reply
 
LinkBack Thread Tools
Old 10/09/08, 3:25 PM   #451
Belenos
Piston Honda
 
Dwarf Priest
 
Azuremyst
You can set variables via scripts, but you can't use variables in protected commands like /target. If you have a macro you'd like to shrink down, I would post it here or on the WoW UI forum, and people could help you do what you want to do within the 255 limit. Or a small addon could be written to do what you want.

Author of CasterWeaponSwapper: suggestions welcome by forum PM or to wikwocket@gmail.com.

Offline
Reply With Quote
Old 10/09/08, 4:49 PM   #452
Maeltne
Piston Honda
 
Tauren Druid
 
Suramar
Well here goes (note: these macros obviously have not been tested), any help getting these below the 255 character limit would be appreciated.

#show [mod:shift] Regrowth; [mod:alt] Renew; [mod:ctrl] Swiftmend; [nomod] Lifebloom
/use 13
/use 14
/cast [btn:1, mod:shift, help] [btn:1, mod:shift, target=mouseover] Regrowth; [btn:1, mod:alt, help] [btn:1, mod:alt, target=mouseover] Renew; [btn:1, mod:ctrl, help] [btn:1, mod:ctrl, target=mouseover] Swiftmend; [btn:1, help] [btn:1, target=mouseover] Lifebloom
/cast [btn:2, mod:shift, target=focus] Regrowth; [btn:2, mod:alt, target=focus] Renew; [btn:2, mod:ctrl, target=focus] Swiftmend; [btn:2, nomod, target=focus] Lifebloom
/cleartarget [btn:3]
/cast [btn:4/5] Nature's Swiftness
/cast [btn:4, mod, help] [btn:4, mod, target=mouseover] Healing Touch;[btn:4, nomod, help] [btn:4, nomod, target=mouseover] Regrowth
/cast [btn:5, mod, target=focus] Healing Touch;[btn:5, nomod, target=focus] Regrowth
/script UIErrorsFrame:Clear()

If I push this macro with the left mouse button it will cast Regrowth, Renew, Swiftmend, and Lifebloom depending on which modifier (shift, alt, crtl, none) is held, on my target if it exists, or the target I am hovering over.

If I push it with the right mouse button, it will do the same except on my focus target.

If I push it with the middle mouse button it will clear the target.

With button 4, and any/no modifier it will Nature's swiftness Healing Touch/Regrowth my target/mouseover

With button 5, and any/no modifier it will Nature's swiftness Healing Touch/Regrowth my focus.


Another is:

#show [mod:shift] Regrowth; [mod:alt] Renew; [mod:ctrl] Swiftmend; [nomod] Lifebloom
/use 13
/use 14
/cast [btn:1, mod:shift, target=NAME1] Regrowth; [btn:1, mod:alt, target=NAME1] Renew; [btn:1, mod:ctrl, target=NAME1] Swiftmend; [btn:1, nomod, target=NAME1] Lifebloom
/cast [btn:2, mod:shift, target=NAME2] Regrowth; [btn:2, mod:alt, target=NAME2] Renew; [btn:2, mod:ctrl, target=NAME2] Swiftmend; [btn:2, nomod, target=NAME2] Lifebloom
/cast [btn:3, mod:shift, target=NAME3] Regrowth; [btn:3, mod:alt, target=NAME3] Renew; [btn:3, mod:ctrl, target=NAME3] Swiftmend; [btn:3, nomod, target=NAME3] Lifebloom
/cast [btn:4, mod:shift, target=NAME4] Regrowth; [btn:4, mod:alt, target=NAME4] Renew; [btn:4, mod:ctrl, target=NAME4] Swiftmend; [btn:4, nomod, target=NAME4] Lifebloom
/cast [btn:5] Nature's Swiftness
/cast [btn:5, mod:shift. target=NAME1] Healing Touch; [btn:5, mod:alt. target=NAME2] Healing Touch; [btn:5, mod:ctrl. target=NAME3] Healing Touch; [btn:5, nomod. target=NAME4] Healing Touch;
/script UIErrorsFrame:Clear()

This will allow me to assign 4 players to this macro and then heal them based on the button I press the macro with casting Regrowth, Renew, Swiftmend, Lifebloom on them depending on the modifier. The with button may be used with a modifier as a panic heal.

I could split them up with lots of /clicks but (1) I don't like that and (2) I'm not quite certain how to pass along all the modifier and button info.

Offline
Reply With Quote
Old 10/09/08, 5:35 PM   #453
chase
Piston Honda
 
Dwarf Priest
 
Malygos
For your first macro, I would just split it up into 4 macros.
One for regrowth (keybind to shift+btn1)
One for renew (keybind to alt+btn1)
...
etc

I can understand not wanting multiple macros on an action bar, but there are many ways around that. (bindpad being my favorite)

Without all the modifiers the macros also become very simple.

The last one ... If it is for party member healing you could use [target=party1] (full list of unit id's here) Although, you can certainly target by name.

Offline
Reply With Quote
Old 10/09/08, 5:39 PM   #454
hozzer
Von Kaiser
 
Gnome Death Knight
 
Gilneas
I can't help but notice that you've got a lot of mouseover options in a macro that looks like it is meant to be clicked. I don't understand how this would work, if it does.

Offline
Reply With Quote
Old 10/10/08, 8:34 AM   #455
sarf
Great Tiger
 
sarf's Avatar
 
Fars
Human Paladin
 
No WoW Account (EU)
From what I can see, there is no restriction on macro length when you build your own buttons. For obvious reasons, that requires you to make an addon - I have attached an example to help out with this.

There should be addons that do this for you in a better way, mine is a pretty brute-force proposition with no per-character macros (that can be easily added, though).

Maximum length of a macro in this fashion seems to be in the neighborhood of 3700 (I think) characters. Limit yourself to 3000 and use the branching macro trick described in the WoW Wiki if you need more.

To add your own macros, edit the YourCustomMacros.lua file - I have commented out two test macros.

Hope this helps.

EDIT:
Updated to less buggy 1.1 version.
Attached Files
File Type: zip SarfMacros-1.1.zip (2.5 KB, 48 views)

Last edited by sarf : 10/10/08 at 4:25 PM.

"Let me be clear... I am prepared to claim any level of incompetence, no matter how absurd, in order to avoid culpability." SMBC #2387

Sweden Offline
Reply With Quote
Old 10/10/08, 8:56 AM   #456
 Carpone
Inconceivable.
 
Carpone's Avatar
 
Korshay
Tauren Druid
 
No WoW Account
Switching between a resto and balance build, I'd like to have a single keybinding that activates the appropriate talented form. Is there a way to determine within a macro if a given skill/spell is known? Alternately, is there a way to activate a form based on the stance number? Both Tree of Life and Moonkin Form are stance:5.

Offline
Reply With Quote
Old 10/10/08, 12:17 PM   #457
sarf
Great Tiger
 
sarf's Avatar
 
Fars
Human Paladin
 
No WoW Account (EU)
Originally Posted by Carpone View Post
Switching between a resto and balance build, I'd like to have a single keybinding that activates the appropriate talented form. Is there a way to determine within a macro if a given skill/spell is known? Alternately, is there a way to activate a form based on the stance number? Both Tree of Life and Moonkin Form are stance:5.
For the first question - probably not. You should get an addon similar to I Have Macro Lol that changes the macro contents when you re-talent (not hard to code, but probably not out there).

The answer is yes to your second question, if I understand it correctly. stance:5 can be used as a conditional in a macro, and hence can be used to do a specific action/spell in a specific form/stance.

EDIT:
Attached a lua file with a very rough version that should nonetheless work. It is based on you not getting beyond tier 7 in more than one tree. Check it out if you want a base for a real addon.
Attached Files
File Type: lua SwapMacroOnTalent.lua (1.8 KB, 78 views)

Last edited by sarf : 10/10/08 at 12:44 PM.

"Let me be clear... I am prepared to claim any level of incompetence, no matter how absurd, in order to avoid culpability." SMBC #2387

Sweden Offline
Reply With Quote
Old 10/10/08, 4:32 PM   #458
Maeltne
Piston Honda
 
Tauren Druid
 
Suramar
Well my first night as resto on M'uru turned into a bomb. My macros failed me and I couldn't get into a rhythm with clique. But I don't think I did terrible for my first night ever as resto (dyed in the wool, pre 1.8 feral signing in).

But all is not lost, I think I have the solution! But to do it I need for [] options to work in /castsequence. Is this the case?

Task: Keep full hots up on 2 targets

Solution:
Focus one, and target the other. Spam the following macro

/castsequence reset=3 lifebloom, [target=focus] lifebloom, rejuvenation, [target=focus] rejuvenation, lifebloom, [target=focus] lifebloom, regrowth, lifebloom, [target=focus] lifebloom, [target=focus] regrowth

No it isn't ... /sigh.

*goes off to think*

Hmmm maybe the following?

On button 1 action bar X

/castsequence [target=name1] reset=3 lifebloom, rejuvenation, lifebloom, regrowth, lifebloom
/changeactionbar Y

On button 1 action bar Y

/castsequence [target=name2] reset=3 lifebloom, rejuvenation, lifebloom, regrowth, lifebloom
/changeactionbar X

The problem come in on the very last sequence. It should go:
name1 regrowth, name1 lifebloom, name2 lifebloom, name2 regrowth

but instead it goes
name1 regorwth, name2 lifebloom, name1 lifebloom, name2 regrowth

This little swap takes this little sequence from requireing 0% haste to ~8.3% haste :/.

Last edited by Maeltne : 10/10/08 at 7:10 PM.

Offline
Reply With Quote
Old 10/11/08, 4:07 AM   #459
chase
Piston Honda
 
Dwarf Priest
 
Malygos
Originally Posted by hozzer View Post
I can't help but notice that you've got a lot of mouseover options in a macro that looks like it is meant to be clicked. I don't understand how this would work, if it does.
The modifier works with keybinds as well. If you have 'B' bound to a macro, and the macro has a shift modifier doing shift+'B' will trigger the modifier in the macro. (assuming you do not have shift+b bound to another action button)

Offline
Reply With Quote
Old 10/12/08, 10:20 AM   #460
 Carpone
Inconceivable.
 
Carpone's Avatar
 
Korshay
Tauren Druid
 
No WoW Account
Originally Posted by sarf View Post
The answer is yes to your second question, if I understand it correctly. stance:5 can be used as a conditional in a macro, and hence can be used to do a specific action/spell in a specific form/stance..
I'm aware of [stance], but was hoping there was some syntax that allowed it to be used as a shortcut form to cast a form (ie, "/cast stance:5" instead of "/cast Moonkin Form").

Offline
Reply With Quote
Old 10/12/08, 12:44 PM   #461
Sooru
Glass Joe
 
Orc Death Knight
 
Zenedar (EU)
Originally Posted by Carpone
Switching between a resto and balance build, I'd like to have a single keybinding that activates the appropriate talented form.
If I understood correctly what you are after, the following should work. Makes you moonkin when you're specced balance and tree when specced resto. I'm in the same situation too, regularly switching between resto and balance and have my talented form bound to one key. I have the ! in front of the form names so I can hit it again to clear roots and snares without breaking the form.

/cast !Tree of Life
/cast !Moonkin Form

Finland Offline
Reply With Quote
Old 10/12/08, 2:34 PM   #462
Rilias
Von Kaiser
 
Night Elf Rogue
 
Arthas (EU)
You could try
/click ShapeshiftButton5
works for me with stealth (and using 1 not 5 of course) but even if it works it smells of workaround.

Offline
Reply With Quote
Old 10/14/08, 8:05 PM   #463
Sakue
Glass Joe
 
Gnome Mage
 
Echo Isles
Hey there

I'm looking for a macro that will spam frostbolt (when i press it) but when Brain Freeze procs it will shoot a fireball, then return to frostbolts?

Is it possible?

Thanks alot!

Sakue

Offline
Reply With Quote
Old 10/14/08, 10:44 PM   #464
Nethris
Piston Honda
 
Night Elf Druid
 
Scilla
Originally Posted by Sakue View Post
Hey there

I'm looking for a macro that will spam frostbolt (when i press it) but when Brain Freeze procs it will shoot a fireball, then return to frostbolts?

Is it possible?

Thanks alot!

Sakue
Nope, can't check your buffs when deciding what spell to cast in a macro - you're going to have to react and do this yourself. Even if macros could do this, it would probably show up right after you start your next cast, too late for your client to cast a different spell, as you're already in a GCD.

Offline
Reply With Quote
Old 10/15/08, 8:36 AM   #465
Pharmacon
Von Kaiser
 
Undead Rogue
 
Scilla
Before the patch I had two macros that where /userandom and a list of either all my ground mounts or all my flying mounts. With the change to the mounts, not only did that stop working but I couldn't get a /cast Mount to work, /use Mount to work (even tried /mount Mount). Did this macro die on me? Because I enjoy the random Mount.

Offline
Reply With Quote
Reply

Go Back   Elitist Jerks » Public Discussion » Public Discussion

Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Warlock] 5 v 5 Macro help Cronjob Player vs. Player 13 09/08/07 6:38 AM
Need help with a macro. Iol User Interface and AddOns 5 08/10/07 3:36 PM
Macro Fun KGBAgent185 Public Discussion 16 11/05/05 1:24 PM