Snippets
  • Uploaded By: entropy
  • Added: 2 years ago
  • Updated: 2 years ago
  • mIRC Version: v6.35+
  • Hits: 886
  • Size: 1.12KB
  • Downloads: 12
  • Review By: entropy



Simple Chan Stats v1.2

Simple percentages of the nicknames with access.
Screenshot...

  
  1    0  Login to Vote.


Source Code:
  1. ; Simple Chan Stats v1.2 - by entropy 2019
  2. ; Place in Remotes (alt+r)
  3.  
  4. menu channel {
  5. -
  6. Chan Stats { dostats # }
  7. -
  8. }
  9. alias -l docalc { return $+($round($calc($nick($1,0,$2) / $nick($1,0) * 100),2),%) }
  10. alias -l dostats {
  11. if (!$1) { return }
  12. var %owner = $docalc($1,~), %admin = $docalc($1,&), %op = $docalc($1,@), %halfop = $docalc($1,%), %voice = $docalc($1,+), %reg = $docalc($1,r), %c2 = 07
  13. echo $color(own) -t $1 %char $1 Stats: $iif(%owner != 0%,Owners:( $+ %c2 $+ $nick($1,0,~) $+ / $+ %c2 $+ $nick($1,0) $+ ) [ $+ %c2 $+ %owner $+ ]) $iif(%admin != 0%,Admins:( $+ %c2 $+ $nick($1,0,&) $+ / $+ %c2 $+ $nick($1,0) $+ ) [ $+ %c2 $+ %admin $+ ]) $iif(%op != 0%,Ops:( $+ %c2 $+ $nick($1,0,@) $+ / $+ %c2 $+ $nick($1,0) $+ ) [ $+ %c2 $+ %op $+ ]) $iif(%halfop != 0%,Halfops:( $+ %c2 $+ $nick($1,0,%) $+ / $+ %c2 $+ $nick($1,0) $+ ) [ $+ %c2 $+ %halfop $+ ]) $iif(%voice != 0%,Voices:( $+ %c2 $+ $nick($1,0,+) $+ / $+ %c2 $+ $nick($1,0) $+ ) [ $+ %c2 $+ %voice $+ ]) $iif(%reg != 0%,Regulars:( $+ %c2 $+ $nick($1,0,r) $+ / $+ %c2 $+ $nick($1,0) $+ ) [ $+ %c2 $+ %reg $+ ])
  14. }


Comments
No Comments.

Login to Comment.