Power

By Tidum on Nov 22, 2010

It's just a power script that gets power from all servers.

alias power {
  var %x 1,%r 0,%v 0,%h 0,%o 0
  while ($scon(%x)) {
    scon %x
    var %i 1
    while ($chan(%i)) {
      if ($me isop $chan(%i)) { inc %o }
      elseif ($me ishop $chan(%i)) { inc %h }
      elseif ($me isvoice $chan(%i)) { inc %v }
      elseif ($me isreg $chan(%i)) { inc %r }
      inc %i
    }
    inc %x
  }
  scon -r msg $active 07I'm in a total of14 $calc(%o + %h + %v + %r) 07 $+ $iif($calc(%o + %h + %v + %r) == 1,channel,channels) 07over14 $calc(%x - 1) 07 $+ $iif($calc(%x - 1) == 1,server,servers) $+ . I'm opped14(@) 07in14 %o 07 $+ $iif(%o == 1,channel,channels) $+ 07, halfopped14(%) 07in14 %h 07 $+ $iif(%h == 1,channel,channels) $+ 07, voiced14(+) 07in14 %v 07 $+ $iif(%v == 1,channel,channels) $+ 07, and regular in14 %r 07 $+ $iif(%r == 1,channel,channels) $+ .
}
pu

Comments

Sign in to comment.
ExternalIRC   -  Aug 19, 2011

Tidum i love this power script. However tho i did manage to make it work for my bot as well which is really awesome! Keep up the good work

 Respond  
Dark|   -  Nov 23, 2010

iv seen alot of these, this one is nice but i kinda like WIRC'S more

 Respond  
Tidum   -  Nov 22, 2010

Thanks

 Respond  
Swat-Warrior   -  Nov 22, 2010

Works nice for me, well done :)

 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.