Guest User

Untitled

a guest
May 21st, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.54 KB | None | 0 0
  1. alias power {
  2. var %a 1,%b 1,%c 0,%d 0,%e 0
  3. while (%a <= $scon(0)) {
  4. scon %a
  5. var %e $calc(%e + $chan(0))
  6. while (%b <= $chan(0)) {
  7. if ($me isop $chan(%b)) { var %c $calc(%c + $nick($chan(%b),0)) | inc %d | inc %b }
  8. inc %b
  9. }
  10. var %b 0
  11. inc %a
  12. }
  13. ; echo -a I am op in %d $+ / %e channels on $scon(0) Networks. I currently pwn %c people.
  14. echo -a I am op in %d $+ / %e channels on 1 Network. I currently pwn %c people.
  15.  
  16. }
  17.  
  18. ; ------------------------------
  19. ; Channel Clonescanner, v1.0 - By Segosa.
  20. ;
  21. ; -> EXPLANATION
  22. ;
  23. ; This script will scan a channel for
  24. ; clones (users connected to the server
  25. ; twice) and will echo each host and its
  26. ; clones in a colour coded and easy to
  27. ; read format.
  28. ;
  29. ; NOTE: This script will /who the channel
  30. ; before it starts scanning it. (This is to
  31. ; fill mIRC's IAL up with its addresses.
  32. ;
  33. ; -> INSTALLATION
  34. ;
  35. ; To load the script, place this file in
  36. ; your mIRC directory and type:
  37. ; /load -rs clonescan.mrc
  38. ;
  39. ; -> USAGE
  40. ;
  41. ; The syntax of the command is /cscan [#channel].
  42. ; if the channel is specified, it will scan for
  43. ; clones in there. Otherwise the script will scan
  44. ; the active channel.
  45. ;
  46. ; -> CONFIGURATION
  47. ;
  48. ; Configuration lines are in this format:
  49. ; alias cscan.NAME return VALUE
  50. ; where NAME is the name of the configuration
  51. ; option and VALUE is 1 (enabled) or 0 (disabled)
  52. ;
  53. ; Menu display:
  54. ;
  55. ; Enable this option if you want a Clonescan option
  56. ; to be added to each channel's right click menu.
  57.  
  58. alias cscan.menu return 1
  59.  
  60. ; -> END OF CONFIGURATION
  61. ;
  62. ; DO NOT EDIT ANYTHING BELOW THIS UNLESS YOU KNOW WHAT YOU ARE DOING
  63. ; ------------------------------------------------------------------
  64. ; ------------------------------------------------------------------
  65.  
  66.  
  67. alias cscan {
  68. var %d = linesep $iif($active == Status Window,-s,$active)
  69. if ((!$chan) && (!$1)) {
  70. %d | echo -ca ctcp * Error: specify a channel to scan for clones! | %d
  71. return
  72. }
  73. if (($1) && ($1 !ischan)) {
  74. %d | echo -ca ctcp * Error: you are not on the channel you specified | %d
  75. return
  76. }
  77. set %do_cscan $iif($1,$1,$chan)
  78. set %ds_cscan $iif($active == Status Window,status,$active)
  79. who %do_cscan
  80. }
  81.  
  82. alias -l cscan2 {
  83. var %i = 1,%a
  84. var %tc = 0,%th = 0
  85.  
  86. var %chan = $1
  87.  
  88. linesep %chan
  89. cscan.echo -c ctcp %ds_cscan - Scanning for clones on %chan
  90. while (%i <= $nick(%chan,0)) {
  91. if ($ialchan($address($nick(%chan,%i),2),%chan,0) > 1) {
  92. if ($istok(%a,$remove($address($nick(%chan,%i),2),*!*@),32)) {
  93. inc %i
  94. continue
  95. }
  96. inc %th
  97. %a = $addtok(%a,$remove($address($nick(%chan,%i),2),*!*@),32)
  98. var %b = 1
  99. cscan.echo -c info %ds_cscan * Clones from $remove($address($nick(%chan,%i),2),*!*@) $+ :
  100. while (%b <= $ialchan($address($nick(%chan,%i),2),%chan,0)) {
  101. cscan.echo -c info %ds_cscan $chr(160) $+ $chr(160) $+ $chr(160) %b $+ . $ialchan($address($nick(%chan,%i),2),%chan,%b).nick ( $+ $ialchan($address($nick(%chan,%i),2),%chan,%b).user $+ )
  102. inc %b
  103. inc %tc
  104. }
  105. }
  106. inc %i
  107. }
  108. if (%tc > 0) dec %tc
  109. cscan.echo -c ctcp %ds_cscan - Finished scanning for clones, %tc clone $+ $iif(%tc != 1,s) from %th host $+ $iif(%th != 1,s) found
  110. linesep %chan
  111. unset %ds_cscan
  112. }
  113.  
  114. alias -l cscan.echo {
  115. if ($3 == status) echo $1 $+ s $2 $4-
  116. else echo $1-
  117. }
  118.  
  119. menu channel {
  120. $iif($cscan.menu,Clonescan): cscan
  121. }
  122.  
  123. raw 315:*: {
  124. if (%do_cscan == $2) {
  125. unset %do_cscan
  126. cscan2 $2
  127. halt
  128. }
  129. }
  130.  
  131. raw 352:*: if (%do_cscan) halt
Add Comment
Please, Sign In to add comment