mIRC Home    About    Download    Register    News    Help

Print Thread
#68437 18/01/04 09:15 PM
Joined: Jan 2004
Posts: 6
F
flugger Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
F
Joined: Jan 2004
Posts: 6
HOw would I write a small script that would allow users to type !trigger and it would DCC send the current mp3 that I am listening to to that user ?

#68438 18/01/04 10:10 PM
Joined: Dec 2003
Posts: 199
K
Vogon poet
Offline
Vogon poet
K
Joined: Dec 2003
Posts: 199
on *:TEXT:!get*:#:{ /dcc send $nick C:\DIR\ $+ %mp3 $+ .mp3 }
Make sure %mp3 is set to something like:
Eminem - Bully
-Kriminal
-irc.CreativeIRC.net-
-Channels: @#IRChat, @#Mp3, @#Fire, @#Scripting, @#Acer-
-Nick: Mew-


Want to Link Servers? PM Me
- EliteIRC.dyndns.org -
#68439 18/01/04 11:01 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Code:
on *:text:[color:blue]!trigger[/color]:*:{  
  if $insong.fname { dcc send $nick $ifmatch }  
}

#68440 19/01/04 08:24 AM
Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
Don't forget to support long filenames:
Code:
on *:text:[color:blue]!trigger[/color]:*:{  
  if ($insong.fname) { dcc send $nick $+(",$ifmatch,") }  
  [color:green]; ..or $shortfn($ifmatch)[/color]
}


* cold edits his posts 24/7
#68441 19/01/04 03:51 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
It does, '/dcc send' works fine with long filenames.

#68442 19/01/04 04:18 PM
Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
Edit: LOL, I'm confusing things, forget what I said about long filenames, they'd be an issue in a different situation than this one.. you're right. :tongue:

Last edited by cold; 19/01/04 04:20 PM.

* cold edits his posts 24/7

Link Copied to Clipboard