Advertisement
HeilTec

PowerDisplay

Dec 26th, 2014
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.51 KB | None | 0 0
  1. power {
  2.   var %x = 1, %y = 0, %o = 0, %h = 0, %v = 0, %r = 0, %n = 0, %t = 0, %c = 0, %oo = 0, %hh = 0, %my_cid $cid
  3.   while ($scon(%x)) {
  4.     scid $scon(%x)
  5.     set %i 1
  6.     while ($chan(%i)) {
  7.       inc %t $nick($chan(%i),0)
  8.       if ($me isop $chan(%i))          { inc %o | inc %n $nick($chan(%i),0,a,o)  | inc %hh $nick($chan(%i),0,o) }
  9.       elseif ($me ishop $chan(%i))     { inc %h | inc %n $nick($chan(%i),0,a,oh) | inc %hh $nick($chan(%i),0,h,o)   | inc %oo $nick($chan(%i),0,o) }
  10.       elseif ( $me isvoice $chan(%i) ) { inc %v | inc %n $nick($chan(%i),0,r)    | inc %hh $nick($chan(%i),0,v,ho)  | inc %oo $nick($chan(%i),0,oh) }
  11.       elseif ($me isreg $chan(%i))     { inc %r |                                  inc %hh $nick($chan(%i),0,r,ohv) | inc %oo $nick($chan(%i),0,a,r) }
  12.       inc %y | inc %i | inc %c
  13.     }
  14.     inc %x
  15.   }
  16.   scid %my_cid
  17.   echo -s You are opped in04 %o  $+ $iif(%o > 1,channels,channel) ( $+ 12 $+ $ceil($calc(%o / %c * 100)) $+ 12%), $&
  18.     Halfopped on04 %h ( $+ 12 $+ $ceil($calc(%h / %c * 100)) $+ 12%), $&
  19.     Voiced on04 %v ( $+ 12 $+ $ceil($calc(%v / %c * 100)) $+ 12%), $&
  20.     And regular on04 %r ( $+ 12 $+ $ceil($calc(%r / %c * 100)) $+ 12%). $&
  21.     On a total of04 %c  $+ $iif(%c > 1,Channels,Channel) on04 $scon(0)  $+ $iif($scon(0) > 1,Networks,Network) $+ .
  22.   echo -s You have rank over 04 %n  $+ $iif(%n > 1,users,user), $&
  23.     is equal to 04 %hh  $+ $iif(%o > 1,users,user)  $&
  24.     and has 04 %oo  $+ $iif(%o > 1,users,user) above
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement