Advertisement
Guest User

Untitled

a guest
Jun 24th, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.13 KB | None | 0 0
  1. on *:text:!quotelist*:#:{ %quoteon 2>6Total de quotes na lista: $lines(sistema/quotes.txt) }
  2.  
  3. on *:text:!quotehelp*:#:{ %quoteon 2>6Quote help2< 6!quote 2mostra quote random; 6!quote nº 2mostra quote específica; 6!quoteadd 2adiciona nova quote; 6!quotelist 2mostra total de quotes na lista }
  4.  
  5. on *:text:!quoteadd*:#:{ %quoteon 2>6Quote adicionado com sucesso, $nick | write sistema/quotes.txt $2- | me 2<6nº  $lines(sistema/quotes.txt) }
  6.  
  7. on *:text:!quote*:#:{
  8.   if ($1 == !quote) {
  9.     if ($2 isnum) { %quoteon 2>6Quote $2 $+ / $+ $lines(sistema/quotes.txt) $+ 2< $read(sistema/quotes.txt, $2) }
  10.     else { %quoteon 2>6Quote Random2< $read(sistema/quotes.txt) }
  11.   }
  12.   if ($strip($1-2) == !quoteprocurar) && ($3) {
  13.     if (!$read(sistema/quotes.txt,w,* $+ $3- $+ *,1)) msg # 2>6Não encontrei nenhuma quote com a palavra-chave especificada, $nick
  14.     else {
  15.       var %n 1,%m $null
  16.       while ($read(sistema/quotes.txt,w,* $+ $3- $+ *,%n)) {
  17.         var %x $readn,%m $addtok(%m,%x,32)
  18.         inc %n
  19.       }
  20.       msg # 2>6Quotes encontradas:2 %m
  21.     }
  22.   }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement