cheiron

edited slow down text to pm

Feb 14th, 2022
2,138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.02 KB | None | 0 0
  1. alias -l txt { return C:\Users\location\location\mibbitnames\badnick.txt }
  2. alias -l mychan { return #mastercontrol }
  3.  
  4. ON *:TEXT:!add *:$($mychan): {
  5.   write $qt($txt) $2-
  6.   msg $chan 4ADD Watched nick - $2-
  7. }
  8.  
  9. ON *:TEXT:!del *:$($mychan): {
  10.   /write $+(-ds,$2-) C:\Users\location\location\mibbitnames\badnick.txt
  11.   msg $chan 3DELETED Watched nick - $2-
  12. }
  13.  
  14. ON *:TEXT:!viewlist:$($mychan): {
  15.   var %t = $lines(C:\Users\location\location\mibbitnames\badnick.txt)
  16.  
  17.   if (!$file(C:\Users\location\location\mibbitnames\badnick.txt)) { msg $chan The file is empty! | return }
  18.  
  19.   msg $chan 6LIST Incoming PM
  20.   msg $nick Start of file.. - (Lines: %t Size: $bytes($file($txt).size).suf $+ )
  21.  
  22.   play $nick C:\Users\location\location\mibbitnames\badnick.txt 500
  23.   var %i = 1
  24.   while (%i <= %t) {
  25.     var %r = $read(C:\Users\location\location\mibbitnames\badnick.txt,n,%i)
  26.     if (%r) { .timerdelaymsg 1 20 msg $nick %r }
  27.     inc %i
  28.   }
  29.  
  30. }
  31. The problem here is the last line on the txt file repeats twice no matter what i try!
Advertisement
Add Comment
Please, Sign In to add comment