Ichigo69

uptopic script

Jan 6th, 2013
351
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.52 KB | None | 0 0
  1. /uptopic {
  2.   var %string = $strip($channel($active).topic)
  3.   if ($stripped != 0) { echo -a [topic] no changes necessary; return }
  4.   var %color = $rand(2,15)
  5.   var %len = $len(%string)
  6.   var %count = 1
  7.   var %out =  $+ %color
  8.   while (%len) {
  9.     if (%color == 16) { %color = 2 }
  10.     if ($mid(%string,%count,1) == $chr(124)) {
  11.       inc %color
  12.       %out = $+(%out,,%color,|)
  13.     }
  14.     else {
  15.       %out = $+(%out,$mid(%string,%count,1),$chr(32))
  16.     }
  17.     inc %count
  18.     dec %len
  19.   }
  20.   /topic $active %out
  21. }
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment