Macro Command to remove error text and sound?
Hey there.. can anyone remember the text for removing the error text as well as the sound "i can't cast that that" type stuff you can put in a macro?
|
Is that something different than the option in System/Sound "Error Speech"?
|
Is this what you're looking for?
Code:
/run sfx=GetCVar("Sound_EnableSFX"); |
thanks guys!
|
I've known this for a while and find it funny that Blizzard never actually finished registering these commands.
ChatFrame.lua:2320 Code:
-- easier method to turn on/off errors for macros |
Ugh, registering/unregistering the event is the awful way to do it. :p
|
I agree with Seerah. Disable the sound for error text from within the games system settings. An addon that allows you to choose which error texts you wish to remove may be a better option for you.
http://www.curse.com/addons/wow/errorfilter (It is hosted here, but not updated... so I linked to the updated version on Curse) |
Quote:
In my custom dev addon, I completed their registration by linking them in the hash table with /erron and /erroff. Code:
hash_SlashCmdList["/ERROFF"]=SlashCmdList.UI_ERRORS_OFF; Note: Trying to register SLASH_<Tag># globals after FrameXML loads wouldn't work as they are processed into the hash file and the entries of SlashCmdList are moved into its metatable. The code I posted just provides the missing action of pushing pointers of the functions into the hash table and associating them with their slash commands. Also note the index needs to be uppercase as Blizzard code transforms typed commands to uppercase in order to perform case-insensitive lookups. |
All times are GMT -6. The time now is 07:08 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI