mIRC Home    About    Download    Register    News    Help

Print Thread
#94697 18/08/04 02:45 PM
Joined: Mar 2004
Posts: 150
D
Darkmnm Offline OP
Vogon poet
OP Offline
Vogon poet
D
Joined: Mar 2004
Posts: 150
Can someone please tell me what is wrong in this code. What is supposed to happen is when someone sends me a file it's supposed to play Incoming File Transfer. This does work but it seems to play the sound twice in a row.

Example:
When a file is sent to me i hear In-Incoming File Transfer.
The In part is the wav the first time the Incoming Transfer part is the wav cutting off the wav the first time it is played because it was triggered again to play.

#94698 18/08/04 04:51 PM
C
CtrlAltDel
CtrlAltDel
C
Quote:
Can someone please tell me what is wrong in this code.


um .. what code?

#94699 18/08/04 11:23 PM
Joined: Mar 2004
Posts: 150
D
Darkmnm Offline OP
Vogon poet
OP Offline
Vogon poet
D
Joined: Mar 2004
Posts: 150
Sorry, Wasn't thinking at all when I typed this post.
Code:
ctcp *:DCC:*:{  
  splay $scriptdirsounds/incoming.wav
}

#94700 18/08/04 11:28 PM
T
theRat
theRat
T
ctcp *:DCC *:*:{
splay $scriptdirsounds/incoming.wav
}


I don't think anyone sends you just "DCC". So maybe we need to catch "DCC *"

#94701 19/08/04 07:58 AM
I
Iori
Iori
I
To trigger only for sends
Code:
ctcp *:DCC [color:blue]send[/color]:*:{ 
  splay $scriptdirsounds/incoming.wav 
}


Link Copied to Clipboard