On event specific to channel - 02/10/04 05:28 PM
What I have done is create a sound manager that allows the user to have diffrent sound play for diffrent events on diffrent channels ( sound complex) basicaly so that if someone watching one channel and an even happens on another they are made aware by a sound playing.
My Problem is this The below event will not work when I use echo to see what happening I see that the splay command has the correct settings but the ($readini($scriptdirsettings,[%ac],chop) == on) shows %ac and not the channel.
Here is the Echo Reply: if ($readini($scriptdirsettings,[%ac],chop) == on) /splay C:\RGC4.0\sounds\3hellos.wav
on *:OP:#: {
set %ac $chan
if ($readini($scriptdirsettings,[%ac],chop) == on) { /splay $readini($scriptdirsettings.ini,%ac,opsd) }
else { return }
}
Thanks in advance for anyhelp anyone can provide.
My Problem is this The below event will not work when I use echo to see what happening I see that the splay command has the correct settings but the ($readini($scriptdirsettings,[%ac],chop) == on) shows %ac and not the channel.
Here is the Echo Reply: if ($readini($scriptdirsettings,[%ac],chop) == on) /splay C:\RGC4.0\sounds\3hellos.wav
on *:OP:#: {
set %ac $chan
if ($readini($scriptdirsettings,[%ac],chop) == on) { /splay $readini($scriptdirsettings.ini,%ac,opsd) }
else { return }
}
Thanks in advance for anyhelp anyone can provide.