1. #1
    Deleted

    Need help with a gear "use effect" Macro

    I need a macro to activate Nitro Boosts (gear slot #6 as it's on the belt now) normally but when I equip my Rocket Boots Xtreme Lite I want it to use them (gear slot #8) instead of Nitro Boosts.

    I've tried everything I can think of but nothing seems to work.

  2. #2
    High Overlord
    10+ Year Old Account
    Join Date
    Sep 2010
    Location
    Mile High
    Posts
    157
    Wouldn't something like
    #showtooltip
    /use 8
    /use 6

    Try to use boots and then go to belt if it can't since they share the same cooldown (I believe)?

  3. #3
    Deleted
    Usually, but they don't actualy share a cooldown so that just activates both at the same time.

    For the moment i'm improvising with an awkward modifier.

  4. #4
    See if this works:

    #showtooltip
    /use item:35581
    /stopmacro [worn:35581]
    /use 6

    Gershuun @ Borean Tundra US - Interface & Macros Moderator

  5. #5
    Deleted
    Pretty sure that [worn] doesn't take itemID as an argument.

  6. #6
    Deleted
    Naw, it tries to activate them both together.

    I don't think [worn] or [equipped] can be used with specific items, only item types.


    Thanks anyway

  7. #7
    Yeah then there's probably not a way without a modifier sorry.

    Gershuun @ Borean Tundra US - Interface & Macros Moderator

  8. #8
    Code:
    /run UseItemByName(Rocket Boots Xtreme Lite) if IsEquippedItem(Rocket Boots Xtreme Lite) else UseContainerItem(6) end
    I sat down and wrote some, I got absolutely no idea if this will work and it is the first time I write a script. xD
    But give it a try and let me know how it went. (:

  9. #9
    Quote Originally Posted by Lobsk View Post
    I sat down and wrote some, I got absolutely no idea if this will work and it is the first time I write a script. xD
    But give it a try and let me know how it went. (:
    I tried to test out your code with what I had available to me and was getting LUA errors, so I moved it around to say this: (to test on using 2 different trinkets)
    /run if IsEquippedItem("Medallion of the Alliance") then UseItemByName("Medallion of the Alliance") else UseContainerItem(17) end
    and got the big red box saying A macro script has been blocked from an action only available from the Blizzard UI.

    Gershuun @ Borean Tundra US - Interface & Macros Moderator

  10. #10
    Deleted
    I simply make a macro with /use 'shiftclick the item to add it's name here' for example when using the engineering gloves haste.

  11. #11
    Deleted
    PHP Code:
    local a =CreateFrame("Frame")
        
    a:SetScript("OnEvent", function(self)
            
    local index GetMacroIndexByName("Nitro")
            if 
    index == 0 then
                index 
    CreateMacro("Nitro"1""1)
            
    end
            local bootLink 
    GetInventoryItemLink("player", (GetInventorySlotInfo("FeetSlot")))
            
    local bootNamebootID = (GetItemInfo(bootLink)), tonumber(bootLink:match("|Hitem:(%d+):"))
            
    local beltName GetItemInfo(GetInventoryItemLink("player", (GetInventorySlotInfo("WaistSlot"))))
            
    local macrotext
            
    if bootID == 35581 then
                macrotext 
    "#showtooltip\n/castsequence reset=300 "..bootName..","..beltName
            
    else
                
    macrotext "#showtooltip\n/use "..beltName
            end
            EditMacro
    (indexnilnilmacrotext)
        
    end)
        
    a:RegisterEvent("PLAYER_ENTERING_WORLD")
        
    a:RegisterEvent("UNIT_INVENTORY_CHANGED"
    How to use. Un Tested. Report back with issues.

    Should create a macro called "Nitro" that either does a /castsequence if boots are equipped, otherwise simply uses the belt.

    EDIT: Tested, squashed two minor bugs.
    Last edited by lawomous; 2011-12-27 at 05:38 AM. Reason: pretty colors

  12. #12
    Ay ay ay, too bad it didn't work.
    Seems like Treeston made a nice little thing there. (:

  13. #13
    Deleted
    Thanks but this is overwriting and replacing existing macros, both in General AND character specific ones.

    I'll just stick with a shift modifier...

  14. #14
    Deleted
    All it takes is a single empty macro slot in your per character page.

  15. #15
    Deleted
    I have several free slots, but when I tried this it replaced my most recently made macro in the character tab. It also seemed to create a 2nd macro when I equipped the rocket boots, one simply used the belt and another that started a /castsequence... maybe I did something wrong.

    I gave it two attempts though, the 2nd time I tried to change the name & icon (i dont like using names on my macros, I usually just hit spacebar and click "ok" and it accepts a blank space as a name) but then this replaced my 1st and 2nd macros in the general tab.

  16. #16
    Deleted
    That's weird, it didn't do that for me when I tested it. Was the created macro named "Nitro"? Did you have any other macros named that?

    EDIT: Add the following line before the EditMacro line:
    Code:
    print(index, GetMacroInfo(index))
    This should print something into your chat frame every time you go through a loading screen or equip/unequip something. Report back with the values.
    Last edited by mmocba105e19de; 2010-11-29 at 11:33 AM.

Posting Permissions

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