#var rightofpath {%replace(@scpath,\,|)}
#var rightofpath %ReverseList(@rightofpath)
#var rightofpath %pop(rightofpath)
#load {@sppath/version.set};#unload {@sppath/version.set}
#trigger {$soundpack &client last version: &remoteversion} {
#gagline all;
#if {%IfWord(@client,vip,"|")} {#var remoteclientversion @remoteversion;#alarm 2 {checkclientversion}} {#var remotesoundsversion @remoteversion;#alarm 4 {checksoundsversion}}}
#alias checksoundsversion {
#math soundscondition {@remotesoundsversion - @SoundsVersion};
#if {@soundscondition>0} {#say {attention! Sound Updates found! Current version: @SoundsVersion. New Version: @remotesoundsversion};#play {@sppath/general/misc/spsave.wav} @vol};
#if {@soundscondition>0 or @clientcondition>0} {#say {Hint: To update the soundpack, navigate to %replace(@scpath,@rightofpath,) folder, run the file named updator.bat, and wait until the installation process completes. This will download and apply all available updates automatically.}}}
#alias checkclientversion {
#math clientcondition {@remoteclientversion - @clientversion};
#if {@clientcondition>0} {#say {attention! soundpack script Updates found! Current version: @clientversion. New Version: @remoteclientversion}; #play {@sppath/general/misc/spannouncement.wav} @vol}}
#alias checkforupdates {#if {@updatechecking=1} {#say {I'm Checking for updates already, Please hold on} VoiceOnly;#play {@sppath/general/misc/boop.wav} @vol} {
#say {Checking for updates, this will take a few seconds.} VoiceOnly;
#var updatechecking 1;
~@sp-version;
#alarm 5 {#if {@soundscondition<1 and @clientcondition<1} {#say {No updates found!};#play {@sppath/general/misc/logoutold.wav} @vol; #unvar updatechecking} {#unvar updatechecking}}}}