Jump to content

My Script Sounds


JOhnson

Recommended Posts

:oops: I dont know how to asking this ... but I will try ... iv a basic away / back in my script which is in popups menu bar

Set Away
.On:/away $$ 
.Off:/away

 

now iv got sounds in my script for most things i.e join / leave / kick / Op but iv added two more to the little sound snippet away / back ... but for some reason they wont work ... can someone let me know where im going wrong please ... as always nais tuke = thank you for any help or an arrow to point me in the right direction and please dont make it to hard for me to understand :D

 

 

menu channel {
  -
  Sounds
  .On:enable #Sounds
  .Off:disable #Sounds
}

#Sounds on
on *:Op:*:{ splay Op.wav }
on *:Join:*:{ splay join.wav }
on *:Part:*:{ splay leave.wav }
on *:kick:*:{ splay kick.wav }
on *:away:*:{ splay away.wav }
on *:back:*:{ splay back.wav }

Link to comment
Share on other sites

Do you have them in the same directory as the script or mIRC.exe? You're better off specifying exactly where they are so that there are no mistakes. If, for example, the script is called sounds.mrc and the sounds are in the same location use:

splay $scriptdirjoin.wav

The last time I used $scriptdir and $mircdir you didn't need a back slash (\) but it's straight-forward if you do need to add it.

Link to comment
Share on other sites

:oops: I dont know how to asking this ... but I will try ... iv a basic away / back in my script which is in popups menu bar
Set Away
.On:/away $$ 
.Off:/away

 

now iv got sounds in my script for most things i.e join / leave / kick / Op but iv added two more to the little sound snippet away / back ... but for some reason they wont work ... can someone let me know where im going wrong please ... as always nais tuke = thank you for any help or an arrow to point me in the right direction and please dont make it to hard for me to understand :D

 

 

menu channel {
  -
  Sounds
  .On:enable #Sounds
  .Off:disable #Sounds
}

#Sounds on
on *:Op:*:{ splay Op.wav }
on *:Join:*:{ splay join.wav }
on *:Part:*:{ splay leave.wav }
on *:kick:*:{ splay kick.wav }
on *:away:*:{ splay away.wav }
on *:back:*:{ splay back.wav }

 

If I'm not mistaken I think you can pick up on aways from using raw numeric events. It's been a long time, and I forgot what those numerics are right now, but my advice is to use the following code to get the numerics when someone goes away, or comes back...

 

Edit: the numerics are 306 for away, and 305 for unaway...

raw *:*: {
  if ($numeric == 306) splay away.wav
  elseif ($numeric == 305) splay back.wav
}

 

Link to comment
Share on other sites

:oops: the code you see is in remote and an old friend of the forum helped me with this code .... takaharu_ if I tried your code where do I put it ? remote or alias ? and nais tuke for your help ..... Warrior124 ... is that code to be put into remote ? and again nais tuke to you and all fella for your help ... im off to try then both out :D ... if the codes work I will ask you later why the op / join / leave / and kick works :P and the away and back dont :P

 

 

 raw *:*: {
  if ($numeric == 306) splay away.wav
  elseif ($numeric == 305) splay back.wav
}

Link to comment
Share on other sites

You'd have it exactly where you currently have it:

menu channel {
  -
  Sounds
  .On:enable #Sounds
  .Off:disable #Sounds
}

alias soundscript { echo -a The sounds script is in: $scriptdir }

#Sounds on
on *:Op:*:{ splay $scriptdirOp.wav }
on *:Join:*:{ splay $scriptdirjoin.wav }
on *:Part:*:{ splay $scriptdirleave.wav }
on *:kick:*:{ splay $scriptdirkick.wav }
on *:away:*:{ splay $scriptdiraway.wav }
on *:back:*:{ splay $scriptdirback.wav }
#Sounds end

With the above code you can find out where the script is located so you can put the sounds in the same directory. Just type /soundscript and it will tell you the folder where it's located. If you would prefer to put the sounds in a sub folder just add the folder in between as thus: $scriptdirsounds\Op.wav

 

So, type /soundscript into your status window, navigate to the displayed folder, copy the sounds to that folder then see if the script works.

Edited by takaharu_
Link to comment
Share on other sites

takaharu_ 1st of all thank you for your help ... iv looked at your snippet and added it to the sound.mrc I have in remote ... iv also got a folder in my mirc main directory called sounds and in that folder is all the wav sounds ... iv tryed it out now none of the other sounds work so iv gone back to the other snippet that I had in remote before .... I cant understand why the other sounds i.e Op/ Join/Leave/kick work but the "away and back" dont work ? Im confused and im wondering if its the "away snippet" that is the problem even though it sets the script away and back ? .... also Warrior124 iv tried your snippet out and all and that doesnt work for me but again thank you for your help as well :D

Link to comment
Share on other sites

Try this...

 

menu channel {
  -
  Sounds
  .On:enable #Sounds
  .Off:disable #Sounds
}

#Sounds on
on *:Op:*:{ splay $shortfn($findfile($nofile($mircexe),Op.wav,1)) }
on *:Join:*:{ splay $shortfn($findfile($nofile($mircexe),join.wav,1)) }
on *:Part:*:{ splay $shortfn($findfile($nofile($mircexe),leave.wav,1)) }
on *:kick:*:{ splay $shortfn($findfile($nofile($mircexe),kick.wav,1)) }
raw *:*: {
  if ($numeric == 306) || ($numeric == 822) splay $shortfn($findfile($nofile($mircexe),away.wav,1))
  elseif ($numeric == 305) || ($numeric == 821) splay $shortfn($findfile($nofile($mircexe),back.wav,1))
}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...