supress disable audio for macro to cast spell

supress disable audio for macro to cast spell

by i214chess » Mon Nov 06, 2017 7:11 pm

Any tips on how to disable error sound for specific macro? Combat log will display (and I also hear error sound): `You fail to cast Fireball: No target.`. I bind hotkey to mouse scroll wheel up.

Here is a video, do you hear the clicking? the other casting noise too? https://streamable.com/3kkou

Code: Select all
/console Sound_EnableSFX 0
/script if GetUnitName("target")==nil then TargetNearestEnemy() end
/cast Fireball
/console Sound_EnableSFX 1
/script UIErrorsFrame:Clear();


---
UPDATE: http://www.evernote.com/l/AM8aGOXoH45OYqwDG7UrfR17SydQofnGyG0/
i214chess
Grunt
Grunt
 

Return to Addons & macros

cron