$chr text converter

By Vox91 on May 20, 2008

Converts every text inserted to an $chr(x) sign ;)

usage:

/chrtxt [-l]

if -l is specified it will be send to the channel (Without the orginal input)
without you will get an echo with the converted text.

A spam script it is but funny though :P

alias chrtxt {
  var %length $len($iif($1 == -l, $2-, $1-)), %count 0, %end
  while (%count < %length) {
    inc %count
    if (%count == %length) {  %end = $addtok(%end, $chr(36) $+ chr $+ (  $+ $asc($mid($iif($1 == -l, $2-, $1-),%count,%count)) $+ ) $chr(32), 32) }
    else {
      %end = $addtok(%end, $chr(36) $+ chr $+ (  $+ $asc($mid($$iif($1 == -l, $2-, $1-),%count,%count)) $+ ) $chr(32) $chr(36) $+ $chr(43), 32)
    }
  }
  if ($1 == -l) { msg $chan //echo -a %end }
  else { echo -a Converting done ( $+ $1- $+ ): %end }
}

Comments

Sign in to comment.
Zeppelin382   -  Feb 10, 2009

that's pretty cool lol. Good job

 Respond  
SnoooP   -  May 23, 2008

xD yeah I agree

 Respond  
Jamiie   -  May 23, 2008

Same for me PunkTuReD, I like it.

 Respond  
PuNkTuReD   -  May 21, 2008

well i think this is great its gnna help me alot learning $chr commands

 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.