1. #1
    The Patient Deathwhisper's Avatar
    10+ Year Old Account
    Join Date
    Apr 2010
    Location
    Nowhere, Yet everywhere
    Posts
    277

    A /use macro that factors in range

    I'm a spammer....plain and simple

    So when I macro-d my engineering hands into my rogue's Sinister Strike I keep using it before I hit the mob

    Is there a macro command that wont activate my hand tinker unless I am in range to actually use the ability I macro'd it to?

    inb4: omglolnoobspammer l2p etc etc

  2. #2
    Legendary! llDemonll's Avatar
    15+ Year Old Account
    Join Date
    Apr 2008
    Location
    Washington
    Posts
    6,582

    Re: A /use macro that factors in range

    no such thing as conditional macro's afaik
    "I'm glad you play better than you read/post on forums." -Ninety
    BF3 Profile | Steam Profile | Assemble a Computer in 9.75 Steps! | Video Rendering Done Right

  3. #3

    Re: A /use macro that factors in range

    it doesnt work with /use but it does work with normal abilities, so i would just suggest macroing it in a cast sequence. The sequence won't go on until you have successfull "cast" sinister strike

    also: OP can't inb4

  4. #4
    Puts the "Super" in Supermod Venara's Avatar
    15+ Year Old Account
    Join Date
    Aug 2007
    Location
    Cork, Ireland
    Posts
    3,728

    Re: A /use macro that factors in range

    It would be useful to know why you don't want to fire them if you're not in melee range. If the reason is that you don't want them to fire before you are in combat and in melee range there is an easy way around it:

    /cast Sinister Strike
    /stopmacro [nocombat]
    /use Youritem

    Sadly this probably won't work in a raid environment. Also, there is no other way to do this because [nomelee] is not a valid condition such as [nocombat], [noharm], etc. Well, maybe there is if the following is possible.

    Quote Originally Posted by Bananengurke
    it doesnt work with /use but it does work with normal abilities, so i would just suggest macroing it in a cast sequence. The sequence won't go on until you have successfull "cast" sinister strike
    I'm not sure you can /cast the glove "enchant". If you can a castsequence macro is what you're looking for.
    For Moderation Concerns, please contact a Global:
    TzivaRadux SimcaElysiaZaelsinoxskarmaVenara

  5. #5

    Re: A /use macro that factors in range

    /cast and /use seem pretty interchangeable for the most part, so it would be my guess you can /cast anything you can /use and vice versa.
    Quote Originally Posted by DeadmanWalking View Post
    Your forgot to include the part where we blame casuals for everything because blizzard is catering to casuals when casuals got jack squat for new content the entire expansion, like new dungeons and scenarios.
    Quote Originally Posted by Reinaerd View Post
    T'is good to see there are still people valiantly putting the "Ass" in assumption.

  6. #6
    Puts the "Super" in Supermod Venara's Avatar
    15+ Year Old Account
    Join Date
    Aug 2007
    Location
    Cork, Ireland
    Posts
    3,728

    Re: A /use macro that factors in range

    Quote Originally Posted by ComputerNerd
    /cast and /use seem pretty interchangeable for the most part, so it would be my guess you can /cast anything you can /use and vice versa.
    That's correct for spells. You can cast almost every spell with /use as well but (as my research pointed out) you can NOT /cast *items*. Items are activated via /use - always. Since the Hyperspeed Accelerators are not a really a spell but a *use* effect on the item you can only activate it by *using* the item - just the same as you do with trinkets.
    For Moderation Concerns, please contact a Global:
    TzivaRadux SimcaElysiaZaelsinoxskarmaVenara

  7. #7

    Re: A /use macro that factors in range

    /cast and /use are completely interchangeable.

    For reference sake,

    /castsequence Sinister Strike,10

    Will, in sequence, use Sinister Strike, and then your glove enchant. But this macro's use would be very limited because it just doesn't work that well.

    Perhaps a scripter could give you a line of code from this API http://www.wowwiki.com/API_CheckInteractDistance and stop your macro from using the enchant if you're more than 10 yards away..?

    Gershuun @ Borean Tundra US - Interface & Macros Moderator

  8. #8
    Puts the "Super" in Supermod Venara's Avatar
    15+ Year Old Account
    Join Date
    Aug 2007
    Location
    Cork, Ireland
    Posts
    3,728

    Re: A /use macro that factors in range

    Quote Originally Posted by lawomous
    Perhaps a scripter could give you a line of code from this API http://www.wowwiki.com/API_CheckInteractDistance and stop your macro from using the enchant if you're more than 10 yards away..?
    You can't check range in macros. Addons only.
    For Moderation Concerns, please contact a Global:
    TzivaRadux SimcaElysiaZaelsinoxskarmaVenara

  9. #9

    Re: A /use macro that factors in range

    You can run LUA script in a macro; however I checked and StopMacro() is a protected function so I don't see a way to combine it with the CheckInteractDistance function.

    To answer to the OP's question, either:

    1) Stop hitting the button unless you're in range
    2) Choose a different enchant like AP or the Pyro Rocket
    3) The macro:

    #showtooltip
    /cast Sinister Strike
    /cast [combat]10

    Gershuun @ Borean Tundra US - Interface & Macros Moderator

Posting Permissions

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