1. #6461
    Mechagnome
    7+ Year Old Account
    Join Date
    Nov 2014
    Location
    Somewhere in the mountains, idk.
    Posts
    634
    Quote Originally Posted by Nathanyel View Post
    *snip*
    Absolute legend, I didn't expect anyone to reply, let alone so thoroughly. What a guy

    I appreciate your time, friend
    Anything worth doing is worth over-doing. Moderation's for cowards.

  2. #6462
    Quote Originally Posted by Kanegasi View Post
    Code:
    #showtooltip
    /stopcasting [channeling:Fists of Fury]
    /cast Fists of Fury
    Thank you!

  3. #6463
    Is it possible to run different commands based on modifiers? I.e. ctrl+click runs a different command vs. a single click?

    - - - Updated - - -

    Quote Originally Posted by yuze View Post
    Is it possible to run different commands based on modifiers? I.e. ctrl+click runs a different command vs. a single click?
    Also, is there a macro to open the alchemy profession window?

  4. #6464
    Quote Originally Posted by yuze View Post
    Is it possible to run different commands based on modifiers? I.e. ctrl+click runs a different command vs. a single click?
    While the answer is generally yes, it depends on what you mean by "commands".

    a) If you just want different spells/abilities, use:
    #showtooltip
    /cast [mod:ctrl] Spell1; Spell2
    (replace Spell1 and Spell2 with the actual spells you want to use)
    Spell1 is cast when you're pressing Ctrl while clicking the button or pressing the keybind, and Spell2 in all other cases. Instead of "ctrl" you can also use "shift" or "alt".
    The options in the brackets are called macro conditionals.

    b) If you mean slash commands, like emotes or e.g. /startattack, it's similar, those can also have conditionals:
    /startattack [mod:ctrl]
    /wave [nomod:ctrl]
    When pressing Ctrl, attack your target, without, just wave at them.
    Separate lines since these are different commands, and so each has its own bracket. If you omitted the bracket of /wave, you would wave even as you start attacking

    For more on macro conditionals, see this Wowpedia page

    c) If you mean actual script commands, you can use the function SecureCmdOptionParse to emulate the conditionals, but there are also specific functions to query the state of modifier keys.

    Also, is there a macro to open the alchemy profession window?
    Sure:
    #showtooltip
    /cast Alchemy
    This is a toggle, however, using it while the profession window is already open, closes it.
    Last edited by Nathanyel; 2021-03-09 at 01:45 PM.
    But your duty to Azeroth is not yet complete. More is demanded of you... a price the living cannot pay.

  5. #6465
    hey guys

    im trying to cast Power Infusion on a certain player and with an alt modifier on myself. i tried a lot with different macros but nothing seems to work really

    /cast [@PlayerName][mod:alt,@player] Power Infusion; Power Infusion

    /target PlayerName
    /cast Power Infusion
    /targetlasttarget
    /cast [mod:alt,@player] Power Infusion

    any way to rewrite one of these macros to make it work?

  6. #6466
    Quote Originally Posted by Huf View Post
    hey guys

    im trying to cast Power Infusion on a certain player and with an alt modifier on myself. i tried a lot with different macros but nothing seems to work really

    /cast [@PlayerName][mod:alt,@player] Power Infusion; Power Infusion

    /target PlayerName
    /cast Power Infusion
    /targetlasttarget
    /cast [mod:alt,@player] Power Infusion

    any way to rewrite one of these macros to make it work?
    Macro lines are executed in sequence, left-to-right then top-to-bottom, stopping and running with the first valid part it finds. In a single line, macros actually stop. In multiple lines, the first action that causes a global cooldown is what stops the rest. Modifiers have to be listed first, otherwise the macro won't reach them.

    You also need to include the server name if the intended target is not on your exact server. Let's say you're on US Gundrak and you're in a guild with this intended target, but they're on US Dreadmaul. These two servers are part of a connected group of five, allowing you two to be in the same guild, but you're still on different servers. You need to use Playername-Dreadmaul to target them specifically in macros.

    #showtooltip
    /cast [mod:alt,@player][@PlayerName][] Power Infusion

    #showtooltip
    /cast [mod:alt,@player] Power Infusion
    /stopmacro [mod:alt]
    /target PlayerName
    /cast Power Infusion
    /targetlasttarget
    Last edited by Kanegasi; 2021-05-23 at 04:22 PM.
    Originally Posted by Zarhym (Blue Tracker)
    this thread is a waste of internet

  7. #6467

  8. #6468
    Looking to combine two macros into one and adding a shift modifier to the focus portion. (Had to remove the adress sign from my macros due to mmo champion thinking it is a link...)
    Code:
    /cast [mouseover,exists,harm,nodead] [] Death Grip
    Code:
    /cast [focus] Death Grip

  9. #6469
    Immortal Nnyco's Avatar
    10+ Year Old Account
    Join Date
    Oct 2011
    Location
    Haomarush
    Posts
    7,841
    Quote Originally Posted by WeylandCorp View Post
    Looking to combine two macros into one and adding a shift modifier to the focus portion. (Had to remove the adress sign from my macros due to mmo champion thinking it is a link...)
    Code:
    /cast [mouseover,exists,harm,nodead] [] Death Grip
    Code:
    /cast [focus] Death Grip
    Code:
     /cast [mod:shift,focus] Death Grip; [mouseover,exists,harm,nodead] [] Death Grip
    Originally Posted by Blizzard Entertainment
    Crabs have been removed from the game... because if I see another one I’m just going to totally lose it. *sobbing* I’m sorry, I just can’t right now... I just... OK just give me a minute, I’ll be OK..

  10. #6470
    Quote Originally Posted by Nnyco View Post
    Code:
     /cast [mod:shift,focus] Death Grip; [mouseover,exists,harm,nodead] [] Death Grip
    Thanks! Appreciate it.

  11. #6471
    Note: the exists can be dropped, it is implied by harm and nodead.
    But your duty to Azeroth is not yet complete. More is demanded of you... a price the living cannot pay.

  12. #6472
    Quote Originally Posted by WeylandCorp View Post
    Looking to combine two macros into one and adding a shift modifier to the focus portion. (Had to remove the adress sign from my macros due to mmo champion thinking it is a link...)
    Code:
    /cast [mouseover,exists,harm,nodead] [] Death Grip
    Code:
    /cast [focus] Death Grip
    Quote Originally Posted by Nnyco View Post
    Code:
     /cast [mod:shift,focus] Death Grip; [mouseover,exists,harm,nodead] [] Death Grip
    #showtooltip
    /cast [mod:shift,@focus][@mouseover,harm,nodead][] Death Grip
    Originally Posted by Zarhym (Blue Tracker)
    this thread is a waste of internet

  13. #6473
    Bit of an odd request but is it possible to make a macro that targets party2 but if party2 doesn't exist it targets partypet1? (For arena. I play with a hunter in 2s and with non pet classers in 3s)

  14. #6474
    /cast [@party2,exists][@party1pet] spell_name

    Should work

  15. #6475
    I just want to target them though not cast a spell on them. Thanks for your help. Appreciate it.

  16. #6476
    /target [@party2,exists][@party1pet]

    You could try this. I'm not sure I don't use /target very often.

  17. #6477
    Hey all!
    I used to have a macro that would clear focus if a modifier key was held for a set amount of time. Simple press of a mod wouldnt clear it. I cannot find this conditional anywhere to recreate it. Anyone out there happen to know what it would be?
    Science the shit out of it!

  18. #6478
    Quote Originally Posted by Qlix View Post
    Hey all!
    I used to have a macro that would clear focus if a modifier key was held for a set amount of time.
    Hmm, I don't think that's possible.

    edit: nope, definitely not possible, as you cannot delay either a call to ClearFocus() or a click on a SecureActionButton.
    Last edited by Nathanyel; 2021-08-01 at 08:38 PM.
    But your duty to Azeroth is not yet complete. More is demanded of you... a price the living cannot pay.

  19. #6479
    The druid talent Mighty Bash has some very annoying targeting behavior. Basically if you click it, let's say from the spell book it auto targets / auto attacks the nearest mob. This royally screws up my stealth/charge/bash macro. (Attacking a random nearby mob when I'm trying to re stealth).

    Is there a way to macro or turn off the auto attack /auto target behavior of Mighty Bash?


    Edit: Can't post my macro since it somehow counts as link.

  20. #6480
    Quote Originally Posted by WeylandCorp View Post
    The druid talent Mighty Bash has some very annoying targeting behavior. Basically if you click it, let's say from the spell book it auto targets / auto attacks the nearest mob. This royally screws up my stealth/charge/bash macro. (Attacking a random nearby mob when I'm trying to re stealth).

    Is there a way to macro or turn off the auto attack /auto target behavior of Mighty Bash?


    Edit: Can't post my macro since it somehow counts as link.
    The @ symbols in the macro trigger the new member link protection for some reason, possibly some poorly coded email recognition. Replace them with some other character with a note that they're supposed to be @ symbols.

    As for the autotarget part, every class has one or two spells that work like that. These are remnants from Blizzard's QoL changes over the years because players used to macro everything with /startattack in the past, which has this functionality. I'm assuming you can force ignore this with [@target] and making sure there's no [] at the end like most macros (shortcut for "always true" that casts the spell as if it wasn't a macro).
    Originally Posted by Zarhym (Blue Tracker)
    this thread is a waste of internet

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •