Snippets Project Page
Author: entropy
Added: 5y
Updated: 5y
mIRC: 7.52+
Hits: 1,009
Downloads: 16
Review: entropy
Size: 742B
1 0
Login to vote.
/Power
v1.1
This snippet echos the power you have on all channels/networks.
Download
JSON
▲ Review
▼ Source
; /Power v1.1 - by entropy 2017 alias power { if ($isid) { return } var %a = 1, %total = 0, %opped, %to, %nets, %ch while ($scon(%a)) { scid $v1 inc %ch $chan(0) %nets = %nets $network var %x = 1, %y while ($chan(%x)) { %y = $v1 inc %to $nick(%y,0) if ($me isop %y) { %opped = %opped %y | inc %total $nick(%y,0,rvh) } inc %x } inc %a } scid -r echo $color(info) -ta * Opped in $numtok(%opped,32) $+ / $+ %ch ( $+ $int($round($calc(($numtok(%opped,32) / %ch) * 100),2)) $+ % $+ ) channels across $numtok(%nets,32) networks, Power over %total $+ / $+ %to ( $+ $int($round($calc((%total / %to) * 100),2)) $+ % $+ ) people. }
Changelog:
0
0