Advertisement
SpecialG

power script

Mar 25th, 2014
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 2.79 KB | None | 0 0
  1. ;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  2. ;@@@ Brag Spam Script                        @@@
  3. ;@@@ By Craighton                            @@@
  4. ;@@@ http://blog.logiclounge.net             @@@
  5. ;@@@ If you need help join                   @@@
  6. ;@@@ Server: irc.logiclounge.org             @@@
  7. ;@@@ Channel: #scripts                       @@@
  8. ;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  9.  
  10. alias bragspam {
  11.   /say I'm on $rchans channels, across $rnets networks. I have %olinecount olines, $rowners owners, $radmins admins, $rops ops, $rhops halfops, and $rvoice voices. There are $rpower people in channels with me.
  12. }
  13. alias rchans {
  14.   set %total 0
  15.   set %counter 1
  16.   while (%counter <= $scon(0)) {
  17.     /scon %counter
  18.     /set %chans $chan(0)
  19.     set %total $calc(%total + %chans)
  20.     inc %counter
  21.   }
  22.   return %total
  23. }
  24. alias rops {
  25.   set %ops 0
  26.   set %counter 1
  27.   while (%counter <= $scon(0)) {
  28.     /scon %counter
  29.     set %scounter 1
  30.     while (%scounter <= $chan(0)) {
  31.       if ($me isop $chan(%scounter)) inc %ops
  32.       inc %scounter
  33.     }
  34.     inc %counter
  35.   }
  36.   return %ops
  37. }
  38. alias rpower {
  39.   set %peeps 0
  40.   set %counter 1
  41.   while (%counter <= $scon(0)) {
  42.     /scon %counter
  43.     set %scounter 1
  44.     while (%scounter <= $chan(0)) {
  45.       set %peeps $calc(%peeps + $nick($chan(%scounter),0) - 1)
  46.       inc %scounter
  47.     }
  48.     inc %counter
  49.   }
  50.   return %peeps
  51. }
  52. alias rowners {
  53.   set %owners 0
  54.   set %counter 1
  55.   while (%counter <= $scon(0)) {
  56.     /scon %counter
  57.     set %scounter 1
  58.     while (%scounter <= $chan(0)) {
  59.       if ($nick($chan(%scounter),$me,q)) inc %owners
  60.       inc %scounter
  61.     }
  62.     inc %counter
  63.   }
  64.   return %owners
  65. }
  66. alias radmins {
  67.   set %admins 0
  68.   set %counter 1
  69.   while (%counter <= $scon(0)) {
  70.     scon %counter
  71.     set %scounter 1
  72.     while (%scounter <= $chan(0)) {
  73.       if ($nick($chan(%scounter),$me,a) == 1) { inc %admins 1 }
  74.       inc %scounter
  75.     }
  76.     inc %counter
  77.   }
  78.   return %admins
  79. }
  80. alias rhops {
  81.   set %hops 0
  82.   set %counter 1
  83.   while (%counter <= $scon(0)) {
  84.     /scon %counter
  85.     set %scounter 1
  86.     while (%scounter <= $chan(0)) {
  87.       if ($me ishop $chan(%scounter)) inc %hops
  88.       inc %scounter
  89.     }
  90.     inc %counter
  91.   }
  92.   return %hops
  93. }
  94. alias rvoice {
  95.   set %voice 0
  96.   set %counter 1
  97.   while (%counter <= $scon(0)) {
  98.     /scon %counter
  99.     set %scounter 1
  100.     while (%scounter <= $chan(0)) {
  101.       if ($me isvoice $chan(%scounter)) inc %voice
  102.       inc %scounter
  103.     }
  104.     inc %counter
  105.   }
  106.   return %voice
  107. }
  108. alias rnets {
  109.   return $scon(0)
  110. }
  111. raw 381:*:{
  112.   set %curbragwork ¬ $+ $network $+ ¬
  113.   if (%curbragwork !isin %countednets) {
  114.     set %countednets %countednets $+ %curbragwork
  115.     inc %olinecount
  116.   }
  117. }
  118. on *:start: { unset %countednets | set %olinecount 0 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement