- Code: Select all
/script if UnitAffectingCombat("player") then CastSpellByName("Vanish") else CastSpellByName("Stealth") end
Should work as a Stealth/Vanish button, though I don't have a rogue to test it.
I feel like the things you're trying to accomplish in this thread will be easier to do with SuperMacro. Equipping items, using potions, easy buff checking, etc... much easier to setup in Supermacro. Not to mention removing the character limit.