fabisch

masshighlight

Dec 19th, 2011
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.23 KB | None | 0 0
  1. alias masshighlight {
  2.   var %mass.chan $iif($1,$1,$active)
  3.   var %i = 1,%j = 1,%k = 1
  4.   while %i <= $nick(%mass.chan,0) {
  5.     if ( $len(%masshighlight. [ $+ [ %j ] ]) >= 250 ) { inc %j }
  6.     set %masshighlight. [ $+ [ %j ] ] [ [ %masshighlight. [ $+ [ %j ] ] ] ] $nick(%mass.chan,%i)
  7.     inc %i
  8.   }
  9.   if ( %j >= 4 ) {
  10.     set %masshighlight.q $?!="Highlighting all users in this channel would require %j messages. Do you want to continue?"
  11.     if ( %masshighlight.q == $false ) { halt }
  12.   }
  13.   while %k <= %j {
  14.     msg %mass.chan %masshighlight. [ $+ [ %k ] ]
  15.     inc %k
  16.   }
  17.   unset %mass.chan
  18.   unset %masshighlight.*
  19. }
  20.  
  21.  
  22. alias massslap {
  23.   var %mass.chan $iif($1,$1,$active)
  24.   var %i = 1,%j = 1,%k = 1
  25.   while %i <= $nick(%mass.chan,0) {
  26.     if ( $len(%massslap. [ $+ [ %j ] ]) >= 250 ) { inc %j }
  27.     set %massslap. [ $+ [ %j ] ] [ [ %massslap. [ $+ [ %j ] ] ] ] $nick(%mass.chan,%i)
  28.     inc %i
  29.   }
  30.   if ( %j >= 4 ) {
  31.     set %massslap.q $?!="Slapping all users in this channel would require %j messages. Do you want to continue?"
  32.     if ( %massslap.q == $false ) { halt }
  33.   }
  34.   while %k <= %j {
  35.     me slaps %massslap. [ $+ [ %k ] ] around with a large trout
  36.     inc %k
  37.   }
  38.   unset %mass.chan
  39.   unset %massslap.*
  40. }
Advertisement
Add Comment
Please, Sign In to add comment