mIRC Home    About    Download    Register    News    Help

Print Thread
#94697 18/08/04 02:45 PM
Joined: Mar 2004
Posts: 155
D
Darkmnm Offline OP
Vogon poet
OP Offline
Vogon poet
D
Joined: Mar 2004
Posts: 155
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
Joined: Jun 2003
Posts: 994
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Jun 2003
Posts: 994
Quote:
Can someone please tell me what is wrong in this code.


um .. what code?


I refuse to engage in a battle of wits with an unarmed person. wink
#94699 18/08/04 11:23 PM
Joined: Mar 2004
Posts: 155
D
Darkmnm Offline OP
Vogon poet
OP Offline
Vogon poet
D
Joined: Mar 2004
Posts: 155
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
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
ctcp *:DCC *:*:{
splay $scriptdirsounds/incoming.wav
}


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


Code:
//if ( khaled isgod ) echo yes | else echo no
#94701 19/08/04 07:58 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
To trigger only for sends
Code:
ctcp *:DCC [color:blue]send[/color]:*:{ 
  splay $scriptdirsounds/incoming.wav 
}


Link Copied to Clipboard