mIRC Homepage
Posted By: Deerayn Maybe someone will help me - 24/09/15 12:13 PM
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.
Posted By: westor Re: Maybe someone will help me - 25/09/15 04:37 PM
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))
}
Posted By: Deerayn Re: Maybe someone will help me - 25/09/15 05:11 PM
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
Posted By: OrFeAsGr Re: Maybe someone will help me - 25/09/15 05:56 PM
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
Posted By: westor Re: Maybe someone will help me - 25/09/15 06:22 PM
Use: //run $mircdir to find them out..
© mIRC Discussion Forums