mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2004
Posts: 80
C
Babel fish
OP Offline
Babel fish
C
Joined: Dec 2004
Posts: 80
ok this is my script:

on 1:TEXT:!getfile *:#:dcc send $nick $2-

but i want to know how to make a script that triggers when someone finished receiving the file i sended

please help me!


practice makes perfect... smile
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
/help on filesent

Joined: Sep 2004
Posts: 40
U
Ameglian cow
Offline
Ameglian cow
U
Joined: Sep 2004
Posts: 40
on 1:FILESENT:*.txt,*.ini:/echo Sent $filename to $nick $address

This triggers when a dcc send succeeds in sending a .txt or .ini file to a user. $filename refers to the filename that was transmitted.

From the Help file /help on filesent

us3rX

Last edited by us3rX; 26/03/05 03:05 AM.
Joined: Dec 2004
Posts: 80
C
Babel fish
OP Offline
Babel fish
C
Joined: Dec 2004
Posts: 80
ok thanks
but can i make it a message?

Last edited by CyborAccess; 26/03/05 04:03 AM.

practice makes perfect... smile
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
You sure can. smile

Joined: Dec 2004
Posts: 80
C
Babel fish
OP Offline
Babel fish
C
Joined: Dec 2004
Posts: 80
so the script now is:

on 1:FILESENT:*.txt,*.ini:/echo Sent $filename to $nick
/echo Sending completed

but y didnt it work?
do i change the "/echo" to "/msg $chan" to make it a message?


practice makes perfect... smile
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Well that's because $chan is $null in On Filesent. I assumed you meant "msg $nick".

What you could do is:

Code:
on 1:FILESENT:*.txt,*.ini: {
  if ($comchan($nick,0)) {
    var %x = $comchan($nick,0)
    while (%x) {
      msg $comchan($nick,%x) $nick has successfully received $nopath($filename)
      dec %x
    }
  }
}


That'd message in all channels you and $nick are in.

Or this.. Change N to a channel number you're both in.
Code:
on 1:FILESENT:*.txt,*.ini: {
  if ($comchan($nick,0)) {
    msg $comchan($nick,[color:red]N[/color]) $nick has successfully received $nopath($filename)
  }
}


Or possibly this to message a random channel you and $nick are both in after file completion.

Code:
on 1:FILESENT:*.txt,*.ini: {
  if ($comchan($nick,0)) {
    msg $comchan($nick,$rand($comchan($nick,0),1)) $nick has successfully received $nopath($filename)
  }
}


Hope this helps.

All the best,

-Andy.

Joined: Dec 2004
Posts: 80
C
Babel fish
OP Offline
Babel fish
C
Joined: Dec 2004
Posts: 80
it did work!!!!!
can u do it like:

on 1:filesent:#:{
/msg $chan file has been sented
}

?i tryed it didnt work,isnt there other way?help!


practice makes perfect... smile
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
msg $chan WONT work.
msg $nick WILL work.

$chan doesn't exist in the On Filesent event.

Joined: Dec 2004
Posts: 80
C
Babel fish
OP Offline
Babel fish
C
Joined: Dec 2004
Posts: 80
so what can i do to make a message appear when the file is sented?


practice makes perfect... smile
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
msg $nick You have successfully received $nopath($filename) from me.

?

Joined: Dec 2004
Posts: 80
C
Babel fish
OP Offline
Babel fish
C
Joined: Dec 2004
Posts: 80
so its like this?

on 1:filesent:#:{
/msg $nick Sending completed
}


practice makes perfect... smile
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
No you've got a # there. I said $chan/# wont work in the On Filesent event.

Code:
on 1:FILESENT:*.*: {
  msg $nick ..
}

Joined: Dec 2004
Posts: 80
C
Babel fish
OP Offline
Babel fish
C
Joined: Dec 2004
Posts: 80
it MUST be $nick?
cant i make it a message that pops up in the channel when the file is sent? cuz i saw this be4,when i sented the file,the guy recevied the file and the messgae pops up...


practice makes perfect... smile
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
try


on *:FILESENT:*:{
msg $iif($comchan($nick,1),$v1,$nick) blah blah blah $nopath($filename) blah blah blah
}

You cant just send to $chan or # as you have been told BECUASE there is no value in them sicne a filesent has no refrence to what channel you may or maynot have requested it in (you leecher!)


Link Copied to Clipboard