mIRC Home    About    Download    Register    News    Help

Print Thread
#255123 24/09/15 12:13 PM
Joined: Sep 2015
Posts: 33
D
Deerayn Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Sep 2015
Posts: 33
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.

Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
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))
}


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Sep 2015
Posts: 33
D
Deerayn Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Sep 2015
Posts: 33
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

Joined: Feb 2015
Posts: 243
O
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

Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Use: //run $mircdir to find them out..


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-

Link Copied to Clipboard