Powar!

Platform:  mIRC
Published  Mar 30, 2008
Updated  Mar 30, 2008
just a 1337 cool version of the /power script :D ; script by giggle-tan!
; #jpnm@irc.rizon.net / #vash@irc.rizon.net

alias power {
set %power.chan.counter 0
set %power.powerover 0
set %power.opchans 0
set %power.totalnetworks $scon(0)
set %power.totalnetworks.count 0
set %power.total.channels 0
set %power.max.chans 0
:connectionloop
inc %power.totalnetworks.count
if ( %power.totalnetworks.count > %power.totalnetworks ) { goto end }
scon %power.totalnetworks.count
set %power.total.channels %power.total.channels + $chan(0)
set %power.max.chans $chan(0)
set %power.chan.counter 0
:loop
if ( %power.chan.counter > %power.max.chans ) { goto connectionloop }
set %power.chan.counter $calc( %power.chan.counter + 1 )
if ( $me isop $chan(%power.chan.counter) ) {
set %power.powerover %power.powerover + $nick($chan(%power.chan.counter),0)
inc %power.opchans
}
goto loop
:end
scon -r
if ( %power.total.channels = 1 ) var %power.chanword channel
if ( %power.total.channels > 1 ) var %power.chanword channels
if ( %power.totalnetworks = 1 ) var %power.netword network
if ( %power.totalnetworks > 1 ) var %power.netword different networks
msg $active I am currently oped in %power.opchans $+ / $+ %power.total.channels %power.chanword on %power.totalnetworks %power.netword $+ . I own %power.powerover inferior mortals.
unset %power.*
}

Comments

Sign in to comment.
Gecko321   -  Mar 30, 2008
if you change the line where it add the total nicks to:

set %power.powerover %power.powerover + $nick($chan(%power.chan.counter),0,a,o)

it will give olny nicks that are not opped. also you can use some while statements to help clean up the code a little and use the /inc command.
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.