
Sub Main
...stuff
/call AudioHandler
/return
Sub AudioHandler
/if (!${EverQuest.Foreground}) {
/notify OptionsGeneralPage OGP_SoundRealismSlider newvalue 0
/notify OptionsGeneralPage OGP_MusicVolumeSlider newvalue 0
/notify OptionsGeneralPage OGP_SoundVolumeSlider newvalue 0
/if (${Window[OptionsGeneralPage].Child[OGP_EnvSoundsCheckbox].Checked}) /notify OptionsGeneralPage OGP_EnvSoundsCheckbox leftmouseup
/if (${Window[OptionsGeneralPage].Child[OGP_CombatMusicCheckbox].Checked}) /notify OptionsGeneralPage OGP_CombatMusicCheckbox leftmouseup
} else {
/notify OptionsGeneralPage OGP_SoundRealismSlider newvalue 10
/notify OptionsGeneralPage OGP_MusicVolumeSlider newvalue 10
/notify OptionsGeneralPage OGP_SoundVolumeSlider newvalue 10
/if (!${Window[OptionsGeneralPage].Child[OGP_EnvSoundsCheckbox].Checked}) /notify OptionsGeneralPage OGP_EnvSoundsCheckbox leftmouseup
/if (!${Window[OptionsGeneralPage].Child[OGP_CombatMusicCheckbox].Checked}) /notify OptionsGeneralPage OGP_CombatMusicCheckbox leftmouseup
}
/return
Sub Main
/call AudioHandler
/return
Sub AudioHandler
/notify optionswindow ogp_soundrealismslider newvalue 0
/notify optionswindow ogp_musicvolumeslider newvalue 0
/notify optionswindow ogp_soundvolumeslider newvalue 0
/if (${Window[optionswindow].Child[ogp_envsoundscheckbox].Checked}) /notify optionswindow ogp_envsoundscheckbox leftmouseup
/if (${Window[optionswindow].Child[ogp_combatmusiccheckbox].Checked}) /notify optionswindow ogp_combatmusiccheckbox leftmouseup
/return
Sub Main
/call AudioHandler
/return
Sub AudioHandler
/notify optionswindow ogp_soundrealismslider newvalue 10
/notify optionswindow ogp_musicvolumeslider newvalue 10
/notify optionswindow ogp_soundvolumeslider newvalue 10
/if (${Window[optionswindow].Child[ogp_envsoundscheckbox].Checked}) /notify optionswindow ogp_envsoundscheckbox leftmouseup
/if (${Window[optionswindow].Child[ogp_combatmusiccheckbox].Checked}) /notify optionswindow ogp_combatmusiccheckbox leftmouseup
/return