alias stats { var %x = 1, %i = 1 var %Ocount = 0, %Hcount = 0, %Vcount = 0, %chancount = 0, %infcount = 0, %usercount = 0 while (%i <= $scon(0)) { scon %i { while ($chan(%x) <= $chan(0)) { if ($me isop $chan(%x)) { inc %Ocount | inc %Ousercount = $nick($chan(%x),0) } elseif ($me ishop $chan(%x)) { inc %Hcount | inc %Husercount = $nick($chan(%x),0) } elseif ($me isvoice $chan(%x)) { inc %Vcount | inc %Vusercount = $nick($chan(%x),0) } if ($me isop $chan(%x)) || ($me ishop $chan(%x)) inc %infcount $nick($chan(%x),0,$iif($me isop $chan(%x),rvho,rv))) if ($me isvoice $chan(%x)) inc %infcount $nick($chan(%x),0,r) inc %usercount $nick($chan(%x),0) inc %Chancount inc %x } } inc %i var %x = 1 } scid -r set %percent $ceil($calc((%infcount / %usercount)*100)) $+ % if (%infcount > %max.infcount) { set %max.infcount %infcount set %stats.infcount yes } if (%ocount > %max.ocount) { set %max.ocount %ocount set %stats.op yes } if (%hcount > %max.hcount) { set %max.hcount %hcount set %stats.hop yes } if (%Vcount > %max.Vcount) { set %max.vcount %Vcount set %stats.voice yes } if (%percent > %max.percent) { set %max.percent %percent set %stats.percent yes } msg $active 14I have: 4@Op14 in7 %ocount $+ 14, 7%Halfop14 in7 %hcount $+ 14, 2+Voice14 in7 %Vcount $+ 14, and 10regular14 in7 $calc(%chancount - %Ocount - %Hcount - %Vcount) 14out of7 %chancount 14channels over7 $scid(0) 14networks. I control7 $+(%infcount,/,%usercount) 14Inferior mortals7 ( $+ $ceil($calc((%infcount / %usercount)*100)) $+ % $+ ) if ((%stats.op == yes) || (%stats.hop == yes) || (%stats.voice == yes) || (%stats.percent == yes) || (%stats.infcount == yes)) { msg $active 14Max 7stats14 have been updated! Most 7channels 14opped in:7 %max.ocount 14- Halfopped in:7 %max.hcount 14- Voiced in:7 %max.vcount 14- Max people controled:7 %max.infcount 14- Percent Controled:7 ( $+ %max.percent $+ ) unset %stats.* } } alias Maxstats { //msg $active 14My max 7stats14 are: most 7channels 14opped in:7 %max.ocount 14- Halfopped in:7 %max.hcount 14- Voiced in:7 %max.vcount 14- Max people controled:7 %max.infcount 14- Percent Controled:7 ( $+ %max.percent $+ ) }