Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on *:text:*:*: {
- var %txtdir = C:\Users\Mike\AppData\Roaming\mIRC\scripts\toaddregulars\
- var %nick = $nick
- var %userfile = %nick $+ .txt
- var %txtdir = %txtdir $+ %userfile
- var %file = %txtdir
- var %x = $lines(%txtdir)
- ;increase line count by 1 since it starts 1 lower.
- inc %x 1
- ;echo -s there are %x lines in the file %file
- ;assign what they wrote to variable and write to file.
- var %chatammount = $1-
- write -i %txtdir %chatammount
- ;if line count in file (times recorded chatting) over 10 then add to regular list.
- if (%x > 121 && $ulevel > 4) {
- halt
- }
- elseif (%x > 120 && $ulevel < 5) {
- echo -s $nick has chatted 120 times. Adding them to the regular list with level 5 permissions.
- auser -a 5 $nick
- write -i %txtdir ADDED THIS PERSON AS A USER
- halt
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement