Advertisement
intersys

Untitled

Dec 5th, 2015
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 9.46 KB | None | 0 0
  1. on *:TEXT:*:#:highlighter $1-
  2. ON *:ACTION:*:#:highlighter $1-
  3. alias -l highlighter {
  4.   if ($regex($1-,/\Q $+ $me $+ \E\b/iS)) && ($nick != vG|Gathers) {
  5.     set %highlighter.chan $chan | set %highlighter.msg $1- | set %highlighter.nick $nick | set %highlighter.network $network
  6.     if ($appactive) { if ($chan != $active) { echo -at 4,1.:[7 $+ $network $+ 4]:. .:[8 $+ $chan $+ 4]:. .:[9 $+ $nick $+ 4]:. $1- | /2 } }
  7.     if (!$appactive) { $tip(High,Highlight Alert, $+ .:[ $+ $network $+ ]:. .:[ $+ $chan $+ ]:. .:[ $+ $nick $+ ]:. $1- $+ ,60,$null,$null,1,$chan) }
  8.   }
  9. }
  10. alias 1 {    
  11.   window -a %highlighter.chan
  12.   window -De @Messages
  13.   echo -t @Messages 4,1.:[7 $+ %highlighter.network $+ 4]:. .:[8 $+ %highlighter.chan $+ 4]:. .:[9 $+ %highlighter.nick $+ 4]:. %highlighter.msg
  14.   unset %highlighter*
  15. }
  16. alias 2 {
  17.   window -De @Messages
  18.   echo -t @Messages 4,1.:[ $+ %highlighter.network $+ 4]:. .:[8 $+ %highlighter.chan $+ 4]:. .:[9 $+ %highlighter.nick $+ 4]:. %highlighter.msg
  19.   unset %highlighter*
  20. }
  21. menu nicklist {
  22.   -
  23.   Mass
  24.   .Voice: mmode chan +v $1-
  25.   .Devoice: mmode chan -v $1-
  26.   .Halfop: mmode chan +h $1-
  27.   .Dehalfop: mmode chan -h $1-
  28.   .Op: mmode chan +o $1-
  29.   .Deop: mmode chan -o $1-
  30.   .Protect: mmode chan +a $1-
  31.   .Deprotect: mmode chan -a $1-
  32.   .Owner: mmode chan +q $1-
  33.   .Deowner: mmode chan -q $1-
  34.   .-
  35.   .Mass Kick: mkick $1-
  36.   .-
  37.   .Mass Invite: minv $1-
  38.   .-
  39.   .Mass Version: mver $1-
  40.   .-
  41.   .Mass MSG: mmsg $1-
  42.   .Mass Motice: mnot $1-
  43.   .-
  44.   .Mass SAJOIN: sjoin $1-
  45.   .Mass SAPART: spart $1-
  46.   .-
  47.   .Mute NICKs: qban +nick $1-
  48.   .Unmute NICKs: qban -nick $1-
  49.   .-
  50.   .Mute IPs: qban +ip $1-
  51.   .Unmute IPs: qban -ip $1-
  52.   .-
  53.   .Chanserv
  54.   ..Voice: mmode bot +v $1-
  55.   ..Devoice: mmode bot -v $1-
  56.   ..Halfop: mmode bot +h $1-
  57.   ..Dehalfop: mmode bot -h $1-
  58.   ..Op: mmode bot +o $1-
  59.   ..Deop: mmode bot -o $1-
  60.   ..Protect: mmode bot +a $1-
  61.   ..Deprotect: mmode bot -a $1-
  62.   ..Owner: mmode bot +q $1-
  63.   ..Deowner: mmode bot -q $1-
  64.   Black-List System
  65.   .Add: { set %global 1 | writeini shitlist $address($1,2) $address($1,2) $1 | writeini shitlist nicks $1 $address($1,2) | writeini shitlist $address($1,2) reason $?="why shitlist this guy/girl? (this is mandatory)" | while (%global <= $chan(0)) { if ($1 ison $chan(%global)) { mode $chan(%global) +b-e $address($1,2) $address($1,2) | kick $chan(%global) $1 [BlackList Active: $readini(shitlist,$address($1,2),reason) ] } | inc %global 1 } | echo -a Shitlist Entry Added. | .enable #shit }
  66.   .Del: { set %global2 1 | remini shitlist $address($1,2) $address($1,2) $1 | remini shitlist nicks $1 | remini shitlist $address($1,2) reason | echo -a Shitlist Entry Removed On $+($1,.) | while (%global2 <= $chan(0)) { mode $chan(%global2) -b $address($1,2) | inc %global2 1 } }
  67.   Temp Ban: {
  68.     if (($me isop $chan) || ($me ishop $chan)) {
  69.       var %length = $input(Input length in seconds.,eo)    
  70.       if ($regex(%length,/[1-9]|[1-9][0-9]*/Si)) {
  71.         var %reason = $input(Reason for temp ban,eo)
  72.         /ban -u $+ %length $1 2
  73.         if (%reason) /kick $chan $1 6User has been temp banned for 12 $+ %length 6seconds. Reason: 12 $+ %reason
  74.         else /kick $chan $1 6User has been temp banned for 12 $+ %length 6seconds.
  75.       }
  76.     }
  77.     else echo 4Need to be op/hop to use this command.
  78.   }
  79.   Q-Access
  80.   .Cheak Access:.msg q chanlev $active $$1
  81.   .Ban Q: var %t $input(Are You Sure You Want To Give Auto-Voice To $$1 $+ ?) | if (%t == $true) { .msg q chanlev $active $$1 +b }
  82.   .Auto-Voice: var %z $input(Are You Sure You Want To Give Auto-Voice To $$1 $+ ?) | if (%z == $true) { .msg q chanlev $active $$1 +v }
  83.   .De-Auto-Voice: .msg q chanlev $active $$1 -v | timer 1 1 mode $active -v $$1
  84.   .Auto-Op: var %y $input(Are You Sure You Want To Give Auto-Op To $$1 $+ ?) | if (%y == $true) { .msg q chanlev $active $$1 +ao }
  85.   .De-Auto-Op: .msg q chanlev $active $$1 -ao
  86.   .Give Master: var %w $input(Are You Sure You Want To Give Master To $$1 $+ ?) | if (%w == $true) { .msg q chanlev $active $$1 +amo }
  87.   .De Master: .msg q chanlev $active $$1 -amo
  88.   .Give Owner: var %x $input(Are You Sure You Want To Give Owner To $$1 $+ ?) | if (%x == $true) { set %CheckNotice ON | .msg q chanlev $active $$1 +amo | .msg q giveowner $active $$1 }
  89.   .De Owner: .msg q chanlev $active $$1 -amno
  90.   Q-Things
  91.   .Chanlevel: /msg Q Chanlev $chan
  92.   .Welcome msg: /msg Q welcome $chan $?"Welcome viesti"
  93.   .Clearchan: /msg Q Clearchan $chan
  94.   .Clearinvite: /msg Q Clearinvite $chan
  95.   .Deopall: /msg Q Deopall $chan
  96.   .Op: /msg Q Op $chan
  97.   .Recover: /msg Q Recover $chan
  98.   .Showcommands: /msg Q Showcommands
  99.   .Unbanall: /msg Q Unbanall $chan
  100.   .Voice: /msg Q Voice $chan
  101.   .Whois: /msg Q Whois $1
  102.   .Whoami: /msg Q Whoami
  103. }
  104.  
  105. alias shit { set %global 1 | writeini shitlist $address($1,2) $nick | writeini shitlist nicks $nick $address($1,2) | writeini shitlist $address($2\1,2) reason $?="why shitlist this guy/girl? (this is mandatory)" | while (%global <= $chan(0)) { if ($1 ison $chan(%global)) { mode $chan(%global) +b-e $address($1,2) $address($1,2) | kick $chan(%global) $1 [BlackList Active: $readini(shitlist,reason,$address($1,2)) ] } | inc %global 1 } | echo -a Shitlist Entry Added. | .enable #shit }
  106. alias unshit { set %global 1 | if ($readini(shitlist,nicks,$1)) { remini shitlist $readini(shitlist,nicks,$1) | remini shitlist nicks $1 } | echo -a  $1 removed from shitlist }
  107. #shit on
  108. on *:join:#: if ($ini(shitlist,$address($nick,2),0) >= 1) || ($readini(shitlist,nicks,$nick)) { kick $chan $nick [BlackList Active] $+([,$readini(shitlist,$address($nick,2),reason),]) | mode $chan +b-e $address($nick,2) $address($nick,2) }                                
  109. on *:RAWMODE:*: if ($regex($1,/\+[aqoh]/g) >= 1) && ($me == $2) { var %shitscan 1 | while (%shitscan <= $nick($chan,0)) { if ($ini(shitlist,$address($nick($chan,%shitscan),2),0) > 0) || ($readini(shitlist,nicks,$nick)) { mode $chan +b-e $address($nick($chan,%shitscan),2) $address($nick($chan,%shitscan),2) | kick $chan $nick($chan,%shitscan) [BlackList entry on this nick/mask exists] } | inc %shitscan 1 } } | elseif ($nick != $me) { if ($1 == -e) || ($1 == -ee) { if ($address($2,2) == $address($me,2)) || ($2 == $me) { mode $chan +e $address($me,2) | kick $chan $nick [Except Protection Active] } } }
  110. on *:KICK:*: if ($knick == $me) && ($nick != $me) { cs invite $chan | join $chan | mode $chan +b-e+e $address($nick,2) $address($nick,2) $address($me,2) | kick $chan $nick [Kick Revenge Active] }
  111. on *:nick: if ($ini(shitlist,$address($nick,2),0) > 0) || ($readini(shitlist,nicks,$nick)) { set %global2 1 | while (%global2 <= $chan(0)) { if ($newnick ison $chan(%global2)) { mode $chan(%global2) +b-e $address($newnick,2) $address($newnick,2) | kick $chan(%global2) $newnick [Shitlist Active on this nick] } | inc %global2 1 } }
  112. #shit end
  113. on ^*:notice:*:?:{ if ($nick == Q) && (%CheckNotice == ON) { haltdef | if ($3-4 == type: GIVEOWNER) { .msg Q $4- | unset %CheckNotice } } }
  114.  
  115. alias mmsg {
  116.   if ($1) {
  117.     var %msg $$?="Please enter a message:"
  118.     while ($0) {
  119.       msg $1 %msg
  120.       tokenize 32 $2-
  121.     }
  122.   }
  123. }
  124. alias mnot {
  125.   if ($1) {
  126.     var %msg $$?="Please enter a message:"
  127.     while ($0) {
  128.       notice $1 %msg
  129.       tokenize 32 $2-
  130.     }
  131.   }
  132. }
  133. alias qban {
  134.   if ($regex(qban1,$1-,[-+](nick|ip) \S+)) {
  135.     while ($2) {
  136.       if ($regex(qban2,$1,[-+]nick)) var %mute %mute $2 $+ !*@*
  137.       elseif ($regex(qban2,$1,[-+]ip)) {
  138.         if ($ial($2)) var %mute %mute $address($2,2)
  139.         else echo 4 -a ERROR: No address for $2 $+ . Please type //who $ $+ chan and try again if you wish to mute this user.
  140.       }
  141.       tokenize 32 $1 $3-
  142.     }
  143.     var %a $left($1,1)
  144.     tokenize 32 $regsubex(qban3,%mute,/(\s|^)/g,\1~q:)
  145.     while ($0) {
  146.       mode $chan %a $+ $str(b,$modespl) $1- [ $+ [ $modespl ] ]
  147.       tokenize 32 $ [ $+ [ $calc($modespl + 1) ] $+ ] -
  148.     }
  149.   }
  150.   else echo 14 -a  * /qban: insufficient parameters. /qban <nick/ip> <nick1> <nick2> ... <nickN>
  151. }
  152. alias mmode {
  153.   if ($regex(mmode,$1-,(chan|bot) [-+][vhoaq] \S+)) {
  154.     tokenize 32 $1-
  155.     while ($3) {
  156.       if ($1 == chan) {
  157.         mode $chan $left($2,1) $+ $str($right($2,1),$modespl) $3- [ $+ [ $calc($modespl + 3) ] ]
  158.         tokenize 32 $1-2 $ [ $+ [ $calc($modespl + 4) ] $+ ] -
  159.       }
  160.       if ($1 == bot) {
  161.         raw -q privmsg chanserv $replacex($2,+,,-,de,v,voice,h,halfop,o,op,a,protect,q,owner) $chan $3
  162.         tokenize 32 $1-2 $4-
  163.       }
  164.     }
  165.   }
  166.   else echo 14 -a  * /mmode: insufficient parameters. /mmodeb <chan/bot> <+/-><v/h/o/a/q> <nick1> <nick2> ... <nickN>
  167. }
  168. alias mkick {
  169.   if ($1) {
  170.     var %msg $$?="Please enter a kick message:"
  171.     while ($0) {
  172.       kick $chan $1 %msg
  173.       tokenize 32 $2-
  174.     }
  175.   }
  176.   else echo 14 -a  * /mkick: insufficient parameters. /mkick <nick1> <nick2> ... <nickN>
  177. }
  178. alias sjoin {
  179.   if ($1) {
  180.     var %chan $$?="Please enter a Channel:"
  181.     while ($0) {
  182.       sajoin $1 %chan
  183.       tokenize 32 $2-
  184.     }
  185.   }
  186. }
  187. alias spart {
  188.   if ($1) {
  189.     var %chan $$?="Please enter a Channel:"
  190.     while ($0) {
  191.       sapart $1 %chan
  192.       tokenize 32 $2-
  193.     }
  194.   }
  195. }
  196. alias minv {
  197.   if ($1) {
  198.     var %chan $$?="Please enter a Channel:"
  199.     while ($0) {
  200.       invite $1 %chan
  201.       tokenize 32 $2-
  202.     }
  203.   }
  204. }
  205. alias mbkick {
  206.   if ($2) && ($istok(nick ip,$1,32)) {
  207.     var %msg $$?="Please enter a kick message:"
  208.     while ($0) {
  209.       kick $chan $1 %msg
  210.       tokenize 32 $2-
  211.     }
  212.   }
  213.   else echo 14 -a  * /mbkick: insufficient parameters. /mbkick <nick/ip> <nick1> <nick2> ... <nickN>
  214. }
  215. alias mver {
  216.   var %x = 1
  217.   while %x <= $snick($chan,0) { ctcp $snick($chan,%x) version | inc %x }
  218. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement