1. #1

    Trying to make a seemingly easy Weakaura, Need some help

    I have been trying to find a way to unsheath my weapon when I go into stealth on my rogue and figured a macro would do it and I found this one...

    /run if IsStealthed() ~= (GetSheathState() == 1) then ToggleSheath() end
    /cast Stealth

    It works but I use the classbar with a keybind because it's convenient. So I decided a weakaura might be better because of the custom code maybe it's possible for it to detect when the stealth aura is and is not activate then run ToggleSheath.

    I found a weakaura that seemed to have done this but didn't work for me. I tried messing with it and got it semi working but it only ran the animation didn't actually unsheath my weapons.

    I have zero knowledge on codding so I have trial and erroring my way the past hour with only semi or temporary success.

    If there is a way to get this to work the last thing I'd want to make this perfect (at least for myself) would be to sheath when out of combat which I figure should be possible since you can make weakauras that detect your combat state.

  2. #2
    Warchief shade3891's Avatar
    Join Date
    Oct 2008
    Location
    Boat to the Dragon Ilses
    Posts
    2,193
    Weakaura's can dectect your state but not press buttons.

    /run if IsStealthed() ~= (GetSheathState() == 1) then ToggleSheath() end
    /cast [nocombat,stance:0] stealth
    I'm running this macro, won't unstealth you if you multi press/click it.

    --


    Maybe something like this could work as custom trigger. At work atm can't test it now.

    Code:
    function(self, event, ...)
    	if IsStealthed() ~= (GetSheathState() == 1) then ToggleSheath()
    end
    Last edited by shade3891; 2022-08-09 at 09:21 AM.

  3. #3
    Tried replying last time and it said it was pending moderator approval or something don't know if this will show or not.

    Couldn't get it work and after messing around and trying to simplify it and most I have accomplished is so far is random unsheathing and other times it plays the unsheathe animation randomly but doesn't actually unsheathe the weapons.

    EDIT: Okay so I kinda got it working I did this...

    Type: Custom
    Event Type: Event
    Event(s): UPDATE_STEALTH (I was meaning to mess with this but something happend so it's semi working anyways)
    Custom Trigger:

    function(self, event, ...)
    if IsStealthed() ~= false then ToggleSheath()
    end
    end

    Now for whatever reason when I stealth it actually draws the weapon, the problem is it randomly puts them back away while in stealth. But every type I turn on stealth with weapons sheathed they will unsheathe.

    EDIT 2: So I changed the timer to Custom and did this for Custom Untrigger...

    function(self, event, ...)
    if IsStealthed() ~= true then ToggleSheath()
    end
    end

    Just the changed false to true dunno if this was needed to begin with but it sheaths when not in stealth and unsheathes when I enter stealth. So unless there is a better way for me to handle this the next issue I'm exploring is how to trigger it when I'm out of combat since your weapons will still be drawn out of combat meaning I just need to the sheath command to run again.
    Last edited by Domilexiste; 2022-08-12 at 02:15 PM.

  4. #4
    I'm glad you got it working but I decided to give it a shot and give you what I consider a fairly simple/clean implementation.

    It uses the trigger tab to check for the stealth buff and the actual sheath toggling happens in the actions tab.

    Please take a look if you're curious.

    Code:
    !WA:2!fsvZUTTrqylOdfGOW1vhmAt6bIyaxhuGGe3GKEXPX0qQjbksUKu1PfOGAj3HKBm5Ul2DPTLp0dc9qpRhbDON6j9i0NacJ(e4hb)e0zjfkccSr5foZYV5VV9ByNb9k7r7r)JVwjQmfmoOgpjC4Rh1xDX40uny6i)gktlliZcHlmrPcvjXejJmSsiIoJtkzjrMCfOZff0zxPZjuX5)CBWF1gRi8KCH6ybJBIpQ)OW((s37oHTEDKBLuPnIslIjskXa(Wza3CnPcpLyyjNWOMCVdrxfjXWeC9Z81gIYS7cQiQn6PXTVLpNL6(dGjihiM8adMU9EO7bh4(extoWDCXNqrwwb0IyVh6aCQJJtCkJZ057w)ztR362ZYV9)NfpmjgN5gflldu6n3vT28pvvAyePeMUGuPiivc6759KN)DpT2j(vaPWKFTUkUzYpwbPSl8doU)WHZ1sOO41uTZ)95GQu8ZRIo6WGWOGWd9d9QWQgBPzq53KAhpZmj4Bl1(lPqmgsiEG6v9hE8GjdxuXx3xoYp3YPNbHT(VvqH)Ad5dU7RTsbnsHeYu5U3nOciJKmlkTqiu5l0qrARQWBCy4436Lk4g5wduSlD)XkcfthXnmCjoH(qM9c(EBxVZvOBmj50muUYPEfccDqSHuGuW2(LvfgMJhYojBx)To(jfeT2A5PzxcwJ52IeGoF5AD67A1PDxQAQHLp8myRhNi4PSmNfeoZQ3e8NvV5G)giAiWOaEMj)tQ3XJl4WvuKqTiIS0RsdyOu9CluB6QFHxjHXhuFagq9lQ)(6xwFi(U3hFICN7M6KkiHPXA0vE)BfvRHVfmDPTbyn7eihikeQ30fFuVhxgyPZ8g2Fq4sJi5mSzrqFrNP)6dyu5wbMgjN7eUUrap)CHIEIIiNFYAJvPkuiHeaE309M2n7b2JSdACWr(97psnB9)n2VIrxn68h)(Zft(LKtPxH7Ui(XY2oB1hmh9Cx1EDCut32PtNUlr5mqB2Y)9pDfJ3oGyKo3GAgqXjf)uB)FApT)tF0JF0(9o7FE3)(

  5. #5
    Thanks it's definitely a cleaner way than what I did. I'm still trying to figure a way to get combat status to work with it because I found a weakaura someone set for just that without stealth for TBC and it works along side what I have for retail. I figure there is probably a way to put it altogether.

    I plan to expand on this with whatever is possible really because after reading some events on wowpedia's api event page I noticed a lot more can be done for this. Example would be combat and swimming (because swimming will sheathe when you move and I know there is events for player moving and when stopped) as I found events on there that may work if I figure out how to correctly type them.

    Then maybe a more complicated setup for crimson vial while stealthed as it also sheathes your weapon.

    End goal is to accomplish this and upload it for others because I noticed people have asked about this on different sites but nobody had a way to do it or just said use the keybind. Well now it can be done and weakaura has made it easy so I'll keep messing around see what I can get working.

Posting Permissions

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