Advertisement
makimaki

FireFM

Aug 20th, 2010
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.38 KB | None | 0 0
  1. Alias fire { sockclose FireFM | SockOpen firefm www.soundzunlimited.net 80 | .timerFM 1 30 fire }
  2. on 1:SockOpen:firefm:{
  3.   sockwrite -nt $sockname GET /makimaki/data.php HTTP/1.1
  4.   sockwrite $sockname Host: www.soundzunlimited.net $+ $crlf $+ $crlf
  5. }
  6. on 1:SockRead:firefm:{
  7.   var %a | sockread %a
  8.   tokenize 32 %a
  9.   if (DJ isin $1-) && (%fire != $5-)  {
  10.     ;echo -ti2 %base $me : * Now Playing $remove($5-,:FireFM </marquee>)
  11.     rwrite privmsg #afterhours * Now Playing $remove($5-,:FireFM </marquee>) - Tune in Http://Www.FireFmz.Tk FireFM Where the music is hotter!!!
  12.     set %fire $5-
  13.   }
  14. }
  15. alias FireFM {  /me Now Playing $remove(%fire,:FireFM </marquee>) - Tune in Http://Www.FireFmz.Tk FireFM Where the music is hotter!!!  }
  16. alias radio {
  17.   if ($1 == START) { sockclose radio | sockopen radio 72.20.32.21 6667 | fire }
  18.   elseif ($1 == CLOSE) { sockclose radio }
  19.   elseif ($1 == MSG) { rwrite PRIVMSG $2 : $3- }
  20.   elseif ($1 == JOIN || $1 == PART) { rwrite $1 # }
  21.   elseif ($1 == HOP) { rwrite PART $+(#,$crlf,JOIN) # }
  22. }
  23. alias rwrite { sockwrite -n radio $1- }
  24. on *:sockopen:radio:{
  25.   rwrite USER FireFM * * $+(:,FLASH1)
  26.   rwrite account 0000070639 dc4005be1aa1ec2a9ffaac9055fbd5ac PY
  27.   rwrite JOIN #Afterhours
  28. }
  29. on *:sockread:radio:{
  30.   if ($sockerr) { return }
  31.   sockread %sd | if (!%sd) { return } | tokenize 32 %sd
  32.   if ($1 == PING) { sockwrite -tn radio PONG $2- }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement