View Single Post
Old 05/27/08, 12:40 AM   #37 (permalink)
sag_ich_nicht
Von Kaiser
 
sag_ich_nicht's Avatar
 
Human Paladin
 
Gul'dan (EU)
Originally Posted by Chlor View Post
#showtoolip <Spell>
/console Sound_EnableSFX 0
/run UIErrorsFrame:Hide()
/cast <Spell>
/run UIErrorsFrame:Clear()
/run UIErrorsFrame:Show()
/console Sound_EnableSFX 1
(I'm sure this could be shortened to two or three lines but it works for me and I have the spare macro space)

This disables error message sounds, then hides the error frame, then (attempts to) cast the spell. Once done, it clears the error frame and un-hides it then turns error sounds back on.
This is unnecessary, the frame is only rendered after the macro is run, thus this:
#showtoolip <Spell>
/console Sound_EnableSFX 0
/cast <Spell>
/run UIErrorsFrame:Clear()
/console Sound_EnableSFX 1
works just as well and improves FPS should you spam it.
 
User is offline.
Reply With Quote