mIRC Home    About    Download    Register    News    Help

Print Thread
Maybe someone will help me #255123 24/09/15 12:13 PM
Joined: Sep 2015
Posts: 32
D
Deerayn Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Sep 2015
Posts: 32
Hi again, so yesterday I asked help with script and I got this
Code:
on *:text:!test:#: {
  if ((%floodtest) || ($($+(%,floodtest.,$nick),2))) { return }
  set -u15 %floodtest On
  set -u25 %floodtest $+ $nick On
  var %randnick = $nick($chan,$rand(1,$nick($chan,0)))
  inc $+(%,rpick,.,%randnick) 1
  msg $chan %randnick $+ , test test test ( $+ $ord($($+(%,rpick,.,%randnick),2))) time)
}

And now I have question if its possible to save all picked users and how many times in txt file, I want to do top5 command.

Re: Maybe someone will help me [Re: Deerayn] #255134 25/09/15 04:37 PM
Joined: Dec 2008
Posts: 1,511
westor Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
Try this code:

Code:
on *:text:!test:#: {
  if ((%floodtest) || ($($+(%,floodtest.,$nick),2))) { return }
  set -eu15 %floodtest On
  set -eu25 %floodtest $+ $nick On
  var %randnick = $nick($chan,$rand(1,$nick($chan,0)))
  var %w = $mkfn($chan) $+ ~ $+ $mkfn($nick) $+ .txt
  var %r = $read(%w)
  var %res = $calc(%r +1)
  write -c %w %res
  msg $chan %randnick $+ , test test test ( $+ $ord(%res) time(s))
}

Re: Maybe someone will help me [Re: westor] #255136 25/09/15 05:11 PM
Joined: Sep 2015
Posts: 32
D
Deerayn Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Sep 2015
Posts: 32
But where does it save? Or maybe I cant see, because than I load folder with mirc I see all my files
Html:
http://prntscr.com/8kdpr0

Re: Maybe someone will help me [Re: Deerayn] #255137 25/09/15 05:56 PM
Joined: Feb 2015
Posts: 243
O
OrFeAsGr Offline
Fjord artisan
Offline
Fjord artisan
O
Joined: Feb 2015
Posts: 243
If the channel is #Channel and user picked is User the file would be
#Channel~User.txt and it would be in the mIRC directory

Re: Maybe someone will help me [Re: OrFeAsGr] #255140 25/09/15 06:22 PM
Joined: Dec 2008
Posts: 1,511
westor Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
Use: //run $mircdir to find them out..