manish

Codifier Alias By manish

Nov 2nd, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.90 KB | None | 0 0
  1. ############################################################
  2. ##     Codifier - Codify Letters  ##
  3. ##       By: manish               ##
  4. ##       irc.lunarirc.net   #LunarIRC #LunarGames   User - manish  
  5.   Follow my blog : https://manishsnippets.blogspot.com ##
  6. ############################################################
  7. alias codify {
  8.   var %text = $upper($1)
  9.   var %lets = /\ |3 ( |) 3 |= (_- |-| % _| |< |_ |\/| |\| 0 |0 0\/ |& $ =|= |_| \/ |/\/ >< '/ -/_ ! -)_
  10.   var %char = A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 1 2
  11.   var %i = 1
  12.   unset %contain
  13.  
  14.   while ( %i <= $len(%text) ) {
  15.     if ( $istok(%char,$mid(%text,%i,1),32) ) {
  16.       set %contain %contain $replace($gettok(%lets,$findtok(%char,$mid(%text,%i,1),32),32),%,$chr(124))
  17.     }
  18.     else {
  19.       set %contain %contain $mid(%text,%i,1)
  20.     }
  21.     inc %i
  22.   }
  23.   var %toret = %contain
  24.   unset %contain
  25.   return %toret
  26. }
Add Comment
Please, Sign In to add comment