Advertisement
westor

Random Color Text for Borreltje

Nov 13th, 2014
358
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.89 KB | None | 0 0
  1. ON !*:TEXT:!*:#: {
  2.   tokenize 32 $strip($1-,burci)
  3.   if ($1 == !feli) {
  4.     if (!$2) { .msg $chan [ $+ $nick $+ ]: Error, Not enough parameters, try again and enter the nickname! | return }
  5.     if ($2 !ison $chan) { .msg $chan [ $+ $nick $+ ]: Error, Cannot find, the $qt($2) nickname is NOT on the channel! | return }
  6.     .msg $chan $rmsg(¸.·'´¯¯`'·.¸ $nick feliciteert $2 ¸.·'´¯¯`'·.¸)
  7.   }
  8.   if ($1 == !felimsg) {
  9.     if (!$2) { .msg $chan [ $+ $nick $+ ]: Error, Not enough parameters, try again and enter the nickname! | return }
  10.     .msg $chan $rmsg($2-)
  11.   }
  12. }
  13.  
  14. alias rmsg {
  15.   if (!$1-) { return }
  16.   var %t = $len($1-)
  17.   var %i = 1
  18.   while (%i <= %t) {
  19.     var %col = 7 6 8 9 10 13 12 3 4
  20.     var %g = $mid($1-,%i,1)
  21.     var %c =  $+ $gettok(%col,$rand(1,$numtok(%col,32)),32) $+  $+ %g $+ 
  22.     var %msg = %msg $+ %c
  23.     inc %i
  24.   }
  25.   return %msg
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement