Need Help With LUA Error

This is for Classic Wow not sure if that matters or not.

  • LUA error from a macro I made to mute Sound when I rode my mechanostrider since they have the worst sounds of anything in the game. The macro was very simple. Even if I reload UI every time I log on it happens again. Thank you for the help if you’re able to!

-Macro-
#showtooltip
/use Blue Mechanostrider
/run Sound_ToggleSound()

The issue I had when writing this macro script was when I was trying out different ways to write out the 3rd line [/run Sound_ToggleSound()]

I used some form of /run Sound_ToggleAmbientSound() or something like that with a few different iterations and then I finally got it down to what it currently is which I pasted above. I am now getting an LUA error every time I log in or log out to change characters. Is there any way to fix this?

-Error Message-

Message: Interface\GlueXML\OptionsPanelTemplates.lua:454: Usage: AudioOptionsSoundPanelAmbienceVolume:SetValue(value, [treatAsMouseEvent])
Time: Sat Apr 17 17:11:19 2021
Count: 1
Stack: Interface\GlueXML\OptionsPanelTemplates.lua:454: Usage: AudioOptionsSoundPanelAmbienceVolume:SetValue(value, [treatAsMouseEvent])
[C]: in function SetValue' Interface\GlueXML\OptionsPanelTemplates.lua:454: in function BlizzardOptionsPanel_SetupControl’
Interface\GlueXML\OptionsPanelTemplates.lua:380: in function <Interface\GlueXML\OptionsPanelTemplates.lua:337>

Locals: (*temporary) = AudioOptionsSoundPanelAmbienceVolume {
0 =
type = 3
tooltipText = “Adjusts the ambient sound volume.”
Thumb = AudioOptionsSoundPanelAmbienceVolumeThumb {
}
defaultValue = 0.600000
cvar = “Sound_AmbienceVolume”
event = “AMBIENCE_VOLUME”
}
(*temporary) = “0 (or 1)”

You could try the UI and Macro forum. Just edit your post and relocate there :slight_smile: