/Power Script

By Rage on Jul 26, 2006

When you type power. It tells how much power you have. (In The Active Channel.)

alias power {
  var %tc = 0,%tu = 0,%oc = 0,%po = 0,%i = $scid(0)
  while (%i) {
    scid $scon(%i)
    if ($status == connected) {
      var %c = $chan(0)
      while (%c) {
        inc %tc
        inc %tu $calc($nick($chan(%c),0) -1)
        if ($me isop $chan(%c)) {
          inc %oc
          inc %po $calc($nick($chan(%c),0) -1)
        }
        dec %c
      }
    }
    dec %i
  }
  scid -r
  if (!$isid) {
    if ($1 == -e) { echo -a $gtd(Stats) you're opped in $sd($+(%oc,/,%tc)) channels on $sd($scid(0)) $iif($scid(0) == 1,network.,networks.) You have the power over $sd($+(%po,/,%tu)) users. }
    else { say I'm opped in $+(12[,%oc,/,%tc,12])$+ channels on $+(12[,$scid(0),12]) $iif($scid(0) == 1,network.,networks.) I have the power over $+(12[,%po,/,%tu,12])$+ users. 4-15Rage Power4- }
  }
  else { return %po }
}

Comments

Sign in to comment.
PATX   -  Aug 19, 2009

get a 5 (and a half) but i have to give it a 1 cos it IS ripped sorry :/

 Respond  
PATX   -  Aug 19, 2009

EMMURE: Tru dat!

 Respond  
Ghost-writer   -  Aug 19, 2009

^

 Respond  
FordLawnmower   -  Aug 19, 2009

If someone uses a script then it is useful.

 Respond  
EMMURE   -  Aug 19, 2009

noMen, show me a mSL script that is usful.

 Respond  
tranceaddict_no1   -  Aug 19, 2009

thanks for the rip

 Respond  
Testor   -  Jul 29, 2009

Or maybe nns ripped from Omega? D:

 Respond  
^Neptune   -  Jul 29, 2009

Ripped from Omega too. So I guess Omega ripped NNS.

 Respond  
Testor   -  Jul 29, 2009

You took this EXACTLY from NNS, Rofl.

 Respond  
ALCAPONE   -  Jan 17, 2008

Good script it works good nicely done

 Respond  
Xe_Sn@kE   -  Nov 20, 2006

i think it\'s a nice script ^^ realy like it.
and noMen: no one sayed it was usefull :p

 Respond  
Bigmomma   -  Jul 26, 2006

haven\'t tested it but it looks nice!

 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.