Guest User

Untitled

a guest
Apr 23rd, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.21 KB | None | 0 0
  1. on *:text:*:#:{
  2.   if ($nick isop $chan) {
  3.     if ($1 == !add-r) {
  4.       set %rendname %rendname $2
  5.       msg $chan $nick is added to exams chosen
  6.     }
  7.     if ($1 == !add-s) {
  8.       set %setname %setname $2
  9.       msg $chan $nick is added to sure chosen in exams
  10.     }
  11.     if ($1 == !reset-r) {
  12.       unset %rendname
  13.     }
  14.     if ($1 == !reset-s) {
  15.       unset %setname
  16.     }
  17.     if ($1 == !mix) {
  18.       var %dnad %setname $mixnames(%rendname)
  19.       msg $chan nicks: %dnad
  20.       var %s1,%s2,%s3,%s4,%s5,%s6 , %i = 1
  21.       while (%i <= 48) {
  22.         set %s [ $+ [ $calc((%i % 6 + 1)) ] ] %s [ $+ [ $calc((%i % 6 + 1)) ] ]  $gettok(%dnad,%i,32)
  23.         inc %i
  24.       }
  25.       msg $chan Team1 : $gettok(%s1,1-5,32)
  26.       msg $chan Team2 : $gettok(%s2,1-5,32)
  27.       msg $chan Team3 : $gettok(%s3,1-5,32)
  28.       msg $chan Team4 : $gettok(%s4,1-5,32)
  29.       msg $chan Team5 : $gettok(%s5,1-5,32)
  30.       msg $chan Team6 : $gettok(%s6,1-5,32)
  31.     }
  32.   }
  33.   if ($1 == !names) { msg $chan %name }
  34. }
  35. alias mixnames {
  36.   set %names $1-
  37.   set %newareea $null
  38.   var %i = 1
  39.   while (%i <= 28) {
  40.     var %find = $gettok(%names,$r(1,$gettok(%names,0,32)),32)
  41.     set %newareea %newareea %find
  42.     set %names $remove(%names,%find)
  43.     inc %i
  44.   }
  45.   return %newareea
  46. }
Add Comment
Please, Sign In to add comment