This site makes extensive use of JavaScript.
Please
enable JavaScript
in your browser.
Live
PTR
Beta
Classic
Show / Hide Helm or Cloak Macro
Post Reply
Return to board index
Post by
Somers
I'm looking for a macro to hide the helm/cloak if it's being shown and another to show the helm/cloak if it's not.
Note: I've already seen the toggle macro
/run ShowHelm(not ShowingHelm())
I'm not looking for a toggle.
I want the "show" macro to show the helm if it's hidden and do nothing when the helm/cloak is already being shown and vise versa the "hide" macro should hide the helm/cloak if it's being shown and do nothing when it's already being hidden.
Anyone have any ideas?
Post by
Groovin
Try these:
/run if(ShowingHelm()) then ShowHelm(0) else ShowHelm(1) end
/run if(ShowingCloak()) then ShowCloak(0) else ShowCloak(1) end
They work for me; I have them both keybound to buttons on my right bar.
Post by
Somers
Try these:
/run if(ShowingHelm()) then ShowHelm(0) else ShowHelm(1) end
/run if(ShowingCloak()) then ShowCloak(0) else ShowCloak(1) end
Nope, still only a toggle for on and off. Just a longer version of the one I already posted, but thanks for trying.
Edit: Thanks to your suggestion I was able to tweak your code and found a working variant:
Helm On:
/run if(not ShowingHelm(1)) then ShowHelm(1) end
Helm Off:
/run if(ShowingHelm(1)) then ShowHelm(0) end
Substitute Cloak for Helm to make the cloak macros!
Post by
Neffi
Show:
/run ShowHelm(true)
Hide:
/run ShowHelm(false)
Don't use 1/0. Though these work for some API calls, this is not the common Lua designation. In Lua, 0 is
true
since it's a valid number value. It only works to hide the helm because this particular API was improperly implemented, and down the road these edge-case boolean situations might get "fixed". Use true/false and you can be sure it'll always work.
Post by
WhiteTiger62
None of these worked. The option used to be under Interface on Game Menu. What was it removed?
Post by
ghostintheruins
This is a very old thread, but to answer your question, the options to hide cloaks and helms has been removed. You have to visit a transmogrifier, but hiding an eligible piece of gear is free of charge.
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.
© 2021 Fanbyte