Advertisement
severen1999

AutoAddRegular

May 23rd, 2019
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. on *:text:*:*: {
  2.  
  3. var %txtdir = C:\Users\Mike\AppData\Roaming\mIRC\scripts\toaddregulars\
  4. var %nick = $nick
  5. var %userfile = %nick $+ .txt
  6. var %txtdir = %txtdir $+ %userfile
  7. var %file = %txtdir
  8. var %x = $lines(%txtdir)
  9.  
  10. ;increase line count by 1 since it starts 1 lower.
  11. inc %x 1
  12.  
  13. ;echo -s there are %x lines in the file %file
  14. ;assign what they wrote to variable and write to file.
  15.  
  16. var %chatammount = $1-
  17. write -i %txtdir %chatammount
  18.  
  19. ;if line count in file (times recorded chatting) over 10 then add to regular list.
  20. if (%x > 121 && $ulevel > 4) {
  21. halt
  22. }
  23. elseif (%x > 120 && $ulevel < 5) {
  24. echo -s $nick has chatted 120 times. Adding them to the regular list with level 5 permissions.
  25. auser -a 5 $nick
  26. write -i %txtdir ADDED THIS PERSON AS A USER
  27. halt
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement