Advertisement
Guest User

Untitled

a guest
Jun 29th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.91 KB | None | 0 0
  1.  
  2. ; Alias que cuenta leches
  3. alias leches {
  4.   ; Se puede indicar el numero maximo con $1, si no, cuenta hasta 100
  5.   ; Tiempo de espera con $2, si no cada segundo cuenta 1 leche
  6.   ; Si se indica "on" o "off" como argumento, se activa o desactiva la cuenta infinita
  7.   ; Tambien se puede indicar el tiempo con $2, que si no se indica será de 1 segundo
  8.   if ( $2 isnum ) var %tiempo = $2
  9.   else var %tiempo = 1
  10.   if ( $1 == on ) cuentaleche %tiempo #
  11.   elseif ( $1 == off ) .timerleches off
  12.   else {
  13.     if ( $1 isnum ) var %max = $1
  14.     else var %max = 100
  15.     echo -a Contando hasta %max
  16.     var %i = 0
  17.     while ( %i < %max ) {
  18.       inc %leches
  19.       .timer 1 $calc(%i * %tiempo) msg # %leches leches
  20.       inc %i
  21.     }
  22.   }
  23. }
  24.  
  25. alias -l cuentaleche {
  26.   ; Se pasa como parametro el tiempo de espera y el target (canal o privado)
  27.   inc %leches
  28.   msg # %leches leches
  29.   .timerleches 1 $1 cuentaleche $1
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement