_MM_IKKE

[mIRC] Colored mode

May 18th, 2012
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.92 KB | None | 0 0
  1. /*
  2. THIS SCRIPT HAS BEEN MADE BY [MM]IKKE
  3. DO NOT DELETE ANY OF THESE CREDITS
  4.  
  5. USAGE
  6. -----------
  7. 1. Copy-paste this to your remote tab (mIRC) in scripts editor.
  8. 2. Do "/set %colored 1" to enable colored mode.
  9. 3. Do "/set %colored 0" to disable colored mode.
  10. 4. Enjoy!
  11.  
  12. NOTE: This command will corrupt when a word starts with a number, or a standalone number, due to the way IRC color codes work. Refrain from using them with this mode.
  13. */
  14.  
  15. on *:INPUT:*: {
  16.   if (%colored == 1 && $left($1-,1) != $chr(47) && $active != Status Window) {
  17.     set %text.tmp $null
  18.     var %i = 1
  19.     while (%i <= $len($1-)) {
  20.       if ($mid($1-,%i,1) == $chr(32)) {
  21.         inc %i
  22.         set %text.tmp %text.tmp $+  $+ $rand(2,13) $mid($1-,%i,1)
  23.       }
  24.       else {
  25.         set %text.tmp %text.tmp $+  $+ $rand(2,13) $+ $mid($1-,%i,1)
  26.       }
  27.       inc %i
  28.     }
  29.     msg $active %text.tmp
  30.     unset %text.tmp
  31.     haltdef
  32.   }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment