Hello need help with adding new function to my old macros
Which basicly put focus on my target if I click on it with mouse button 1, If I click it with mouse button 2 it will show\hide skada. Now what I want to add is this command - /aa show and I want it to activate with middle mouse click (button 3). I though it will be simple asCode:/focus [btn:1] /stopmacro [nobtn:2] /skada toggle
But it doesn't work, anyone know how to make it work ?Code:/focus [btn:1] /stopmacro [nobtn:2] /skada toggle /stopmacro [nobtn:3] /aa show
To help you understand why the first /stopmacro is causing it to fail, here's basically what your second macro does depending on what mouse button is clicked:
Button 1: Line 1
Button 2: Line 2 and Line 3
Button 3: Line 2
As you can see, the reason your second macro is not working is because it doesn't even get past the 2nd line when you click it with the middle mouse button. Since it wasn't right clicked, the second line's conditional statement [nobtn:2] is true, causing the macro to stop running beyond this button and lines 4 and 5 to be ignored.
EDIT: Removed "fixed" macro because it didn't seem to work after all.
Last edited by Disconnected; 2014-06-20 at 08:10 PM.
Code:/focus [btn:1] /stopmacro [nobtn:2/3] //allows right and middle click /skada toggle /stopmacro [nobtn:3] //breaks on right click /skada toggle //de-toggles skada /aa show
When I tried to solve your problem, I couldn't think of a way to either execute skada or aa. Neither did banur, but he came up with the simplest and elegant solution:
Middle click toggles Skada two times, with effectively no change on Skada, thus middle click only shows aa.
No point mentioning these bats, I thought. The poor bastard will see them soon enough.
Have a problem with this macro again:
/use [mod:shift, @focus, harm, nodead][@mouseover, harm, nodead] Shadowstep
It works fine on 'harmful' targets, but Shadowstep can also be used on friendly targets.
Without the 'harm' part, the macro won't work on the current target.
What can I use instead of 'harm' to make the spell usable on both friendly targets and harmful targets.
As a frost mage, I'm looking for a single-button macro that will dismiss my water elemental if it is active, and summon it when it's not, without using any key-modifiers (i.e. SHIFT or CTRL or ALT; I try to avoid using modifiers). The current macro I'm using is:
#showtooltip Summon Water Elemental
/cast Summon Water Elemental
This works during the 1 minute cooldown after summoning the water elemental. However, after that time and the water elemental is active, it will dismiss and immediately summon it again. Is there something I can add?
Thanks in advance!
Adding '[nopet]' seems to work! Thank you for the suggestion.