|
Joined: Dec 2004
Posts: 80
Babel fish
|
OP
Babel fish
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...
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
|
|
|
|
Joined: Sep 2004
Posts: 40
Ameglian cow
|
Ameglian cow
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
Babel fish
|
OP
Babel fish
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...
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
You sure can.
|
|
|
|
Joined: Dec 2004
Posts: 80
Babel fish
|
OP
Babel fish
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...
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
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:
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.
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.
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
Babel fish
|
OP
Babel fish
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...
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
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
Babel fish
|
OP
Babel fish
Joined: Dec 2004
Posts: 80 |
so what can i do to make a message appear when the file is sented?
practice makes perfect...
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
msg $nick You have successfully received $nopath($filename) from me.
?
|
|
|
|
Joined: Dec 2004
Posts: 80
Babel fish
|
OP
Babel fish
Joined: Dec 2004
Posts: 80 |
so its like this?
on 1:filesent:#:{ /msg $nick Sending completed }
practice makes perfect...
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
No you've got a # there. I said $chan/ # wont work in the On Filesent event.
on 1:FILESENT:*.*: {
msg $nick ..
}
|
|
|
|
Joined: Dec 2004
Posts: 80
Babel fish
|
OP
Babel fish
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...
|
|
|
|
Joined: Sep 2003
Posts: 4,230
Hoopy frood
|
Hoopy frood
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!)
|
|
|
|
|