KaasScript

By shadow-Majestic on Jul 26, 2009

A simple but fun script, try it out :D

    alias kaas {
      set %kaas 0
      unset %kaas2
      while (%kaas < $len($1-)) {
        inc %kaas
        if ($right($left($1-, %kaas), 1) == $chr(32)) {
          set %randkaas $rand(1,15)
          set %kaas2 %kaas2 $+ $chr(3) $+ %randkaas $+ ,  $+ %randkaas $+ _
        }
        if ($right($left($1-, %kaas), 1) != $chr(32)) {
          set %kaas2 %kaas2 $+ $chr(3) $+ $r(1,15) $+ , $+ $r(1,15) $+ $right($left($1-, %kaas), 1)
        }
      }
      say %kaas2
    }

Comments

Sign in to comment.
_Daniel_   -  Jul 26, 2009

Nice code dude, but you can make it shortly with regsubex:

 alias kaas { msg # $regsubex($1-, /(.)/g, $+($chr(3),$r(1,15),$chr(44),$r(1,15),\t,$chr(3))) }

just do: "/kaas " in a channel

 Respond  
shadow-Majestic   -  Jul 26, 2009

colorises your text :D
just do: "/kaas " in a channel

 Respond  
zNigel-   -  Jul 26, 2009

A tiny tutorial about what it does is always appreciated.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.