Ok, my first try at contributing something.
And I can take no credit for the script further down, since it was made by the author of Outfitter on my request (I'm a script nubbie and couldn't figure it out). You can find his webiste here: Wobbleworks Outfitter Downloads
This idea came about as a hunter in my guild asked me if there was a way to strip naked when feigning death (thus getting out of combat).
I tried using the built in stuff in Outfitter but couldn't get i working. However the following will explain how this is achieved. Mind you that it won't work everytime on boss fights, but in the end it will save some gold.
First of all download the addon Outfitter.
It is available in several places here is the curse.com link: Outfitter at Curse.com
Second open up your character window and you will see a small button in the top right corner. Click it
Now click the arrow to the far right of "Birthday Suit" and choose script --> Custom
Copy and paste the following script into the new window that opens:
Code:
-- UNIT_SPELLCAST_SENT
-- Spell = "String"
if event == "UNIT_SPELLCAST_SENT"
and arg1 == "player"
and arg2 == setting.Spell then
equip = true
end
In the same window there is a tab on the bottom left which reads "Settings", click that and you can type in any spell you want to trigger "Birthday Suit". In my case it is Vanish as I am a rogue.
What will happen now is that you will unequipt all items/clothes whenever Vanish is triggered, for a hunter it could be for Feign Death.
IF YOU DO NOT leave combat when triggering the spell your weapons will still be unequipped.
Now the script can be used for any spell, should you want to change weapons when changing stance or anything else.
I know there are a lot of addons who do these things, but I have never seen one do it this smooth.
Hope some of you can use this and enjoy.
----
I see from rereading this, that my point about you actually being able to save some gold on wipes is kinda lost in there. That is mainly why I sought this out.