Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 3.10 KB | None | 0 0
  1. #asciitxt off
  2.  
  3. on *:input:*: {
  4.   if ($left($1,1) = /) return
  5.   if ($left($1,1) = @) return
  6.   %txtsc = $1-
  7.   %txtsc = $replace(%txtsc,a,ä,b,ß,c,ç,e,è,g,g,h,}{,i,¡,j,j,l,£,n,ñ,o,ø,p,þ,r,®,s,§c,t,T,u,û,y,ÿ)
  8.   /say  %txtsc  | unset %txtsc | halt
  9. }
  10. #asciitxt end
  11. menu * {
  12.   -
  13.   Ascii Text %kelsh $+
  14.   .On:set %kelsh On | enable #asciitxt
  15.   .Off:set %kelsh Off | disable #asciitxt
  16. }
  17.  
  18. alias rb {
  19.   var %input $replacex($iif($1 == -i, $2-, $1-), $chr(32), $chr(160)), %x 1
  20.   while (%x <= $len(%input)) {
  21.     var %output $+(%output,$replacex($mid(%input, %x, 1),$mid(%input, %x, 1), $+(,$padnum($rand(2,15), 15),$mid(%input, %x, 1))))
  22.     inc %x
  23.   }
  24.   $iif($1 == -i, return %output, say %output)
  25. }
  26.  
  27.  
  28. on *:ban:#:{  if $banmask iswm $address($me,5) { set %exeptlist off | cs unban $chan | .timer 1 2 cs invite $chan | .timer 1 3 j $chan } { halt } }
  29.  
  30. alias copynick {
  31.   if ($1 == off) { unset %copynick | unset %copychannel | echo STOPPED COPYING } { halt }
  32.   set %copynick $1
  33.   set %copychannel $2
  34.   describe $2 copies $1
  35. }
  36.  
  37. alias rnick {
  38.   var %a = B C D F G H J K L M N P Q R S T V W X Y Z
  39.   var %b = a e i o u
  40.   var %c = b c d f g h j k l m n p q r s t v w x y z
  41.   var %d = a e i o u
  42.   var %e = b c d f g h j k l m n p q r s t v w x y z
  43.   var %f = a e i o u
  44.   var %g = $gettok(%b,$rand(1,$numtok(%b,32)),32)
  45.   var %h = $gettok(%d,$rand(1,$numtok(%d,32)),32)
  46.   var %i = $gettok(%f,$rand(1,$numtok(%f,32)),32)
  47.   var %j = $gettok(%a,$rand(1,$numtok(%a,32)),32)
  48.   var %k = $gettok(%c,$rand(1,$numtok(%c,32)),32)
  49.   var %l = $gettok(%e,$rand(1,$numtok(%e,32)),32)
  50.   /nick %j $+ %g $+ %k $+ %h $+ %l $+ %i
  51. }
  52.  
  53.  
  54. on *:TEXT:*:#: {
  55.   if ( %copynick == $nick ) && ($chan == %copychannel) { msg $chan $1- } { halt }
  56.  
  57. }
  58. alias rb {
  59.   var %input $replacex($iif($1 == -i, $2-, $1-), $chr(32), $chr(160)), %x 1
  60.   while (%x <= $len(%input)) {
  61.     var %output $+(%output,$replacex($mid(%input, %x, 1),$mid(%input, %x, 1), $+(,$padnum($rand(2,15), 15),$mid(%input, %x, 1))))
  62.     inc %x
  63.   }
  64.   $iif($1 == -i, return %output, say %output)
  65. }
  66. alias dr msg $active $drunk(70,$1-)
  67. alias -l drunk {
  68.   var %sob = $1
  69.   var %text = $2-
  70.   var %mes = $calc(($len(%text) * ((100 - %sob) / 100)))
  71.   var %loop = 1
  72.   while (%loop <= %mes) {
  73.     var %pos = $rand(1,$len(%text))
  74.     var %char = $mid(%text,%pos,1)
  75.     if (%char isalnum) {
  76.       var %type = $rand(1,3)
  77.       ;Type 1 = repeated letters (test = tesssttt)
  78.       if (%type == 1) var %text = $left(%text,%pos) $+ $str($mid(%text,%pos,1),2) $+ $right(%text,- $+ %pos)
  79.       ;Type 2 = replaced/mistyped letters (test = fast)
  80.       elseif (%type == 2) {
  81.         if ($istok(a e i o u,%char,32)) var %rnd = $randtok(a e i o u,32)
  82.         else var %rnd = $rand(a,z)
  83.         var %text = $left(%text,$calc(%pos - 1)) $+ %rnd $+ $right(%text,- $+ %pos)
  84.       }
  85.       ;Type 3 = opposite case (A = a, b = B)
  86.       elseif (%type == 3) var %text = $left(%text,$calc(%pos - 1)) $+ $iif($upper(%char) === %char,$lower(%char),$upper(%char)) $+ $right(%text,- $+ %pos)
  87.     }
  88.     inc %loop
  89.   }
  90.   return %text
  91. }
  92. alias -l randtok return $gettok($1,$rand(1,$numtok($1,$2)),$2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement