Advertisement
Wikked

Request System

Oct 30th, 2014
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 5.89 KB | None | 0 0
  1. alias sc_topic1 {
  2.   topic $1 1,1..8,8..4,4..0,7 $1 $chr(124) Current DJ: %sc.dj. [ $+ [ $1 ] ]  $chr(124) $1 4,4..0,0..12,12..
  3. }
  4.  
  5. alias sc_topicoff {
  6.   topic $1 1,1..8,8..4,4..0,7 $1 $chr(124) Current DJ: RequestSystem OFF  $chr(124) $1  4,4..0,0..12,12..
  7. }
  8.  
  9. on *:text:!setdj*:#: {
  10.   if ($me isop #) {
  11.     if ($regex($nick(#,$nick).pnick,/(!|~|&|@)/)) && ($2 ison #) {
  12.       timerdehop 1 1 mode # -hv %sc.dj. [ $+ [ $chan ] ] %sc.dj. [ $+ [ $chan ] ]
  13.       timervop 1 1 mode # +v %sc.dj. [ $+ [ $chan ] ]
  14.       timerup 1 1 msg chanserv up # %sc.dj. [ $+ [ $chan ] ]
  15.       timersetdj1 1 1 msg # $nick $+ , %sc.dj is now ready and wil be taken over by $2 :) | msg #gbc %sc.dj is now ready and wil be taken over by $2 $+ !
  16.       timersetdj2 1 1  set %sc.dj. [ $+ [ $chan ] ] $2
  17.       timertopic 1 2 sc_topic1 $chan
  18.       timermode1 1 2 mode # -qaoh $2 $2 $2 $2
  19.       timermode2 1 2 mode # +h $2
  20.       timermsg1 1 2 msg # $nick $+ , $2 has been set as DJ on # $+ !
  21.       timermsg2 1 2 msg #gbc  $2 has been set as DJ on $chan $+ !
  22.     }
  23.     elseif ($regex($nick(#,$nick).pnick,/(!|~|&|@)/)) && ($2 !ison #) { msg # $nick $+ , $2 is not on # }
  24.     else { msg # $nick $+ , 4ErroR You don't have rights on # $+ ! }
  25.   }
  26.   else {
  27.     notice $nick $me has no rights, $me needs atleast @ (ops) to function!
  28.     notice $nick If you give $me ~ (owner) , $+ $me could fully function.
  29.   }
  30. }
  31.  
  32. on *:text:!unsetdj*:#: {
  33.   if ($me isop #) {
  34.     if ($regex($nick(#,$nick).pnick,/(!|~|&|@)/)) && ($2 ishop #) {
  35.       set %sc.dj. [ $+ [ $chan ] ] Non-Stop DJ
  36.       timertopic 1 1 sc_topic1 $chan
  37.       timermode 1 1 mode # -hv $2 $2
  38.       ;timervop 1 1 mode # +v $2
  39.       timerup 1 1 msg chanserv up # $2
  40.       timermsg 1 1 msg # $nick $+ , $2 is no longer DJ on # $+ !
  41.       timermsg 1 1 msg #gbc $nick $+ , $2 is no longer DJ on # $+ !
  42.     }
  43.     elseif ($regex($nick(#,$nick).pnick,/(!|~|&|@)/)) && (!$2) {
  44.       msg # %sc.dj. [ $+ [ $chan ] ] is no longer DJ on # $+ !
  45.       msg #gbc %sc.dj. [ $+ [ $chan ] ] is no longer DJ on # $+ !
  46.       timermode 1 1 mode # -hv %sc.dj. [ $+ [ $chan ] ] %sc.dj. [ $+ [ $chan ] ]
  47.       ;timervop 1 1 mode # +v %sc.dj. [ $+ [ $chan ] ]
  48.       timerup 1 1 msg chanserv up # %sc.dj. [ $+ [ $chan ] ]
  49.       timerset 1 2 set %sc.dj. [ $+ [ $chan ] ] Non-Stop DJ
  50.       timertopic 1 2 sc_topic1 $chan
  51.       ;timermsg 1 2 msg %irc.chan,#gbc $2 is nu afgesteld als DJ op %irc.chan $+ !
  52.     }
  53.     elseif ($regex($nick(#,$nick).pnick,/(!|~|&|@)/)) && ($2 !ison #) { msg # $nick $+ , $2 is not on # $+ ! }
  54.     else { msg # $nick $+ , You dont have rights on # $+ ! }
  55.   }
  56.   else {
  57.     notice $nick $me has no rights, $me needs atleast @ (ops) to function!
  58.     notice $nick If you give $me ~ (owner) , $+ $me could fully function.
  59.   }
  60. }
  61. on *:text:!request *:#:{ if ($readini(channels.ini,$chan,request) == on) {
  62.     if (%verzoekflood. [ $+ [ $nick ] ] $+ ) {
  63.       notice $nick Please 1 request per 3 minutes :)
  64.       msg #gbc $nick flood with 4!request $2-  
  65.       halt
  66.     }
  67.     if (!%verzoekflood. [ $+ [ $nick ] ] $+ ) {
  68.       inc -u180 %verzoekflood. [ $+ [ $nick ] ] {
  69.         if (!$2) {
  70.           msg # $nick $+ , Syntax is: !request  <artist - song>
  71.           halt
  72.         }
  73.         if (%sc.dj. [ $+ [ $chan ] ] == Non-Stop DJ) {
  74.           msg # $nick $+ , Currently playing %sc.dj. [ $+ [ $chan ] ] $+ !
  75.           halt
  76.         }
  77.         if (%sc.dj. [ $+ [ $chan ] ] !ison #) {
  78.           msg # $nick $+ , Sorry %sc.dj. [ $+ [ $chan ] ] is not on # rightnow :(
  79.           halt
  80.         }
  81.         if ($regex($nick($chan,%sc.dj. [ $+ [ $chan ] ] $+ ).pnick,/(!|~|&|@|%)/)) {
  82.           msg # DJ %sc.dj. [ $+ [ $chan ] ] $+ , spin that shit around and turn that request from 4 $nick 1
  83.           msg %sc.dj. [ $+ [ $chan ] ] 4[ReQuest] $2- $+  Requested by 11,1 $+ $nick $+  at 4 $+ $asctime(HH:nn:ss)
  84.           msg #gbc 4[ReQuest] $2- $+  has been requested by 11,1 $+ $nick $+  at 4 $+ $asctime(HH:nn:ss)
  85.           notice $nick Your request 11,1 $2-  is deliverd at %sc.dj. [ $+ [ $chan ] ]
  86.           halt
  87.         }
  88.         else {
  89.           msg # $nick $+ , $2 is not a DJ on #  
  90.         }
  91.       }
  92.     }
  93.   }
  94. }
  95.  
  96. on *:text:!resetverzoek*:#:{
  97.   if ($nick isop #) {
  98.     if (!$2) {
  99.       unset %verzoekflood. [ $+ [ $nick ] ]
  100.       notice $nick Flood resetted
  101.       halt
  102.     }
  103.     if ($2) && (!%verzoekflood. [ $+ [ $2 ] ] $+ ) {
  104.       notice $nick $2 can still do requests
  105.       halt
  106.     }
  107.     if ($2) && (%verzoekflood. [ $+ [ $2 ] ] $+ ) {
  108.       unset %verzoekflood. [ $+ [ $2 ] ]
  109.       notice $nick $2 Flood resetted
  110.       notice $2 $nick has resetted your floodprotection
  111.       halt
  112.     }
  113.   }
  114.   else {
  115.     msg # Sorry $nick $+ , you can't reset floodprotection.
  116.     halt
  117.   }
  118. }
  119.  
  120. on *:text:!requestsystem*:#: {
  121.   if ($me isop #) {
  122.     if ($regex($nick(#,$nick).pnick,/(!|~|&|@)/)) {
  123.       if ($2 == on || $2 == off) {
  124.         /writeini channels.ini $chan request $2
  125.         /msg # RequestSystem for $chan is: $2
  126.         if ($2 == on) {
  127.           /msg # Now use !setdj nickname to set a DJ. Use !unsetdj to set NONStop .
  128.           /msg # Users now can request by !request artist - titel.
  129.           set %sc.dj. [ $+ [ $chan ] ] Non-Stop DJ
  130.           sc_topic1 $chan
  131.         }
  132.         if ($2 == off) {
  133.           mode # +v %sc.dj. [ $+ [ $chan ] ]
  134.           /msg chanserv up # %sc.dj. [ $+ [ $chan ] ]
  135.           msg # %sc.dj. [ $+ [ $chan ] ] is set off as DJ on # $+ !
  136.           unset %sc.dj. [ $+ [ $chan ] ]
  137.           sc_topicoff $chan
  138.         }
  139.       }
  140.       else { notice $nick Use: !request <on/off>  }
  141.     }
  142.     else { notice $nick Access Denied }
  143.   }
  144.   else {
  145.     notice $nick Request will work if $me has atleast @ (ops)!
  146.   }
  147. }
  148.  
  149. on *:join:#: {
  150.   if ($me isop #) {
  151.     if ($nick == %sc.dj. [ $+ [ $chan ] ] $+ ) {
  152.       timermode 1 3 mode # -qohv $nick $nick $nick $nick
  153.       timermode2 1 3 mode # +h $nick
  154.     }
  155.     else {
  156.       halt
  157.     }
  158.   }
  159. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement