BlueHell mIRC Script — File Browser
BlueHellmIRCScriptv1.0 / BlueHellmIRCScriptv1.0 / BlueHellScript / pro.mrc
pro.mrc — 10.56 KB — Download this file
alias protest {
dialog -m pro pro
.gocheckprosettings
}
dialog pro {
title "Flood Protection"
size -1 -1 155 290
option dbu
box "Private: CTCP Flood Protection", 2, 2 2 80 8
check "Ignore (*!*@host.com)", 3, 2 14 64 8
check "Blacklist (*!*identd@host.com)", 4, 2 22 82 8
check "Report to status", 5, 2 30 82 8
box "Channel: CTCP Flood Protection", 6, 2 58 80 8
check "Ignore (*!*@host.com)", 7, 2 70 64 8
check "Blacklist (*!*identd@host.com)", 8, 2 78 82 8
check "Ban (*!*@host.com)", 9, 2 86 82 8
check "Kick (User'n'Clones)", 10, 2 94 82 8
check "Report to status", 11, 2 102 82 8
box "Channel: Floodnet Protection", 12, 2 130 80 8
check "Ban On long part msg", 13, 2 142 64 8
check "Blacklist on long part msg", 14, 2 150 82 8
check "Ban On channel notice", 15, 2 158 82 8
check "Blacklist on channel notice", 16, 2 166 82 8
check "Ban On Long Length Line", 17, 2 174 82 8
check "Blacklist on Long Length Line", 18, 2 182 82 8
check "Report to status", 19, 2 190 82 8
box "Private: Floodnet Protection", 20, 2 210 80 8
check "Ignore On Long Length Line", 21, 2 222 82 8
check "Blacklist on Long Length Line", 22, 2 230 82 8
check "Ignore On Notice", 23, 2 238 82 8
check "Blacklist on notice", 24, 2 246 82 8
check "Report to status", 25, 2 254 82 8
box "Duration In Minutes", 26, 100 2 52 265
edit %checkbar1, 30, 102 14 10 8
edit %checkbar2, 31, 102 70 10 8
edit %checkbar3, 32, 102 86 10 8
edit %checkbar4, 33, 102 142 10 8
edit %checkbar5, 34, 102 158 10 8
edit %checkbar6, 35, 102 174 10 8
edit %checkbar7, 36, 102 222 10 8
edit %checkbar8, 37, 102 238 10 8
text "minutes", 40, 115 14 25 8
text "minutes", 41, 115 70 25 8
text "minutes", 42, 115 86 25 8
text "minutes", 43, 115 142 25 8
text "minutes", 44, 115 158 25 8
text "minutes", 45, 115 174 25 8
text "minutes", 46, 115 222 25 8
text "minutes", 47, 115 238 25 8
text "Coded By JeSTeR", 48, 1 275 154 8, center
}
alias gocheckprosettings {
;.did pro 30 -a %checkbar1
;.did pro 31 -a %checkbar2
;.did pro 32 -a %checkbar3
;.did pro 33 -a %checkbar4
;.did pro 34 -a %checkbar5
;.did pro 35 -a %checkbar6
;.did pro 36 -a %checkbar7
;.did pro 37 -a %checkbar8
}
on 1:dialog:pro:*:*: {
if ($devent == init) && (%check1 == checked) { .did -c pro 3 }
if ($devent == init) && (%check2 == checked) { .did -c pro 4 }
if ($devent == init) && (%check3 == checked) { .did -c pro 5 }
if ($devent == init) && (%check4 == checked) { .did -c pro 7 }
if ($devent == init) && (%check5 == checked) { .did -c pro 8 }
if ($devent == init) && (%check6 == checked) { .did -c pro 9 }
if ($devent == init) && (%check7 == checked) { .did -c pro 10 }
if ($devent == init) && (%check8 == checked) { .did -c pro 11 }
if ($devent == init) && (%check9 == checked) { .did -c pro 13 }
if ($devent == init) && (%check10 == checked) { .did -c pro 14 }
if ($devent == init) && (%check11 == checked) { .did -c pro 15 }
if ($devent == init) && (%check12 == checked) { .did -c pro 16 }
if ($devent == init) && (%check13 == checked) { .did -c pro 17 }
if ($devent == init) && (%check14 == checked) { .did -c pro 18 }
if ($devent == init) && (%check15 == checked) { .did -c pro 19 }
if ($devent == init) && (%check16 == checked) { .did -c pro 21 }
if ($devent == init) && (%check17 == checked) { .did -c pro 22 }
if ($devent == init) && (%check18 == checked) { .did -c pro 23 }
if ($devent == init) && (%check19 == checked) { .did -c pro 24 }
if ($devent == init) && (%check20 == checked) { .did -c pro 25 }
if ($devent == mouse) && ($did == 48) { .did -a pro 48 J e S T e R ... R U L E Z }
if ($devent == sclick) && ($did = 3) { if ($did(3).state == 0) { .set %check1 unchecked } | if ($did(3).state == 1) { .set %check1 checked } }
if ($devent == sclick) && ($did = 4) { if ($did(4).state == 0) { .set %check2 unchecked } | if ($did(4).state == 1) { .set %check2 checked } }
if ($devent == sclick) && ($did = 5) { if ($did(5).state == 0) { .set %check3 unchecked } | if ($did(5).state == 1) { .set %check3 checked } }
if ($devent == sclick) && ($did = 7) { if ($did(7).state == 0) { .set %check4 unchecked } | if ($did(7).state == 1) { .set %check4 checked } }
if ($devent == sclick) && ($did = 8) { if ($did(8).state == 0) { .set %check5 unchecked } | if ($did(8).state == 1) { .set %check5 checked } }
if ($devent == sclick) && ($did = 9) { if ($did(9).state == 0) { .set %check6 unchecked } | if ($did(9).state == 1) { .set %check6 checked } }
if ($devent == sclick) && ($did = 10) { if ($did(10).state == 0) { .set %check7 unchecked } | if ($did(10).state == 1) { .set %check7 checked } }
if ($devent == sclick) && ($did = 11) { if ($did(11).state == 0) { .set %check8 unchecked } | if ($did(11).state == 1) { .set %check8 checked } }
if ($devent == sclick) && ($did = 13) { if ($did(13).state == 0) { .set %check9 unchecked } | if ($did(13).state == 1) { .set %check9 checked } }
if ($devent == sclick) && ($did = 14) { if ($did(14).state == 0) { .set %check10 unchecked } | if ($did(14).state == 1) { .set %check10 checked } }
if ($devent == sclick) && ($did = 15) { if ($did(15).state == 0) { .set %check11 unchecked } | if ($did(15).state == 1) { .set %check11 checked } }
if ($devent == sclick) && ($did = 16) { if ($did(16).state == 0) { .set %check12 unchecked } | if ($did(16).state == 1) { .set %check12 checked } }
if ($devent == sclick) && ($did = 17) { if ($did(17).state == 0) { .set %check13 unchecked } | if ($did(17).state == 1) { .set %check13 checked } }
if ($devent == sclick) && ($did = 18) { if ($did(18).state == 0) { .set %check14 unchecked } | if ($did(18).state == 1) { .set %check14 checked } }
if ($devent == sclick) && ($did = 19) { if ($did(19).state == 0) { .set %check15 unchecked } | if ($did(19).state == 1) { .set %check15 checked } }
if ($devent == sclick) && ($did = 21) { if ($did(21).state == 0) { .set %check16 unchecked } | if ($did(21).state == 1) { .set %check16 checked } }
if ($devent == sclick) && ($did = 22) { if ($did(22).state == 0) { .set %check17 unchecked } | if ($did(22).state == 1) { .set %check17 checked } }
if ($devent == sclick) && ($did = 23) { if ($did(23).state == 0) { .set %check18 unchecked } | if ($did(23).state == 1) { .set %check18 checked } }
if ($devent == sclick) && ($did = 24) { if ($did(24).state == 0) { .set %check19 unchecked } | if ($did(24).state == 1) { .set %check19 checked } }
if ($devent == sclick) && ($did = 25) { if ($did(25).state == 0) { .set %check20 unchecked } | if ($did(25).state == 1) { .set %check20 checked } }
if ($devent == edit) && ($did = 30) { .set %checkbar1 $did(30,edited) }
if ($devent == edit) && ($did = 31) { .set %checkbar2 $did(31,edited) }
if ($devent == edit) && ($did = 32) { .set %checkbar3 $did(32,edited) }
if ($devent == edit) && ($did = 33) { .set %checkbar4 $did(33,edited) }
if ($devent == edit) && ($did = 34) { .set %checkbar5 $did(34,edited) }
if ($devent == edit) && ($did = 35) { .set %checkbar6 $did(35,edited) }
if ($devent == edit) && ($did = 36) { .set %checkbar7 $did(36,edited) }
if ($devent == edit) && ($did = 37) { .set %checkbar8 $did(37,edited) }
;echo -s $dname $devent $did
if ($devent = sclick) { echo -s $devent $did }
}
ctcp *:*:?:{
if (%check1 == checked) { .ignore -tu $+ $calc(%checkbar1 * 60) $wildsite | .echo -s [ $nick $+ / $+ $address $+ , ignored $duration($calc(60 * %checkbar1)) for private ctcp flooding. ] }
if (%check2 == checked) { .echo -s [ $remove($address($nick,2),*!*@) $+ , added to blacklist.txt ] | .write blacklist.txt $remove($address($nick,2),*!*@) }
}
ctcp *:*:#:{
if (%check4 == checked) && ($nick !isop #) { .ignore -tu $+ $calc(%checkbar2 * 60) $wildsite | .echo -s [ $nick $+ / $+ $address $+ , ignored $duration($calc(60 * %checkbar2)) (Channel: $chan $+ ) for flooding. ] }
if (%check5 == checked) && ($nick !isop #) { .echo -s [ $remove($address($nick,2),*!*@) $+ , added to blacklist.txt ] | .write blacklist.txt $remove($address($nick,2),*!*@) }
if (%check6 == checked) && ($me isop #) && ($nick !isop #) { .ban -ku $+ $calc(%checkbar3 * 60) # $nick 2 don't use ctcps in here. banned $duration($calc(60 * %checkbar3)) }
}
on *:PART:#:{
if (%check9 == checked) && ($len($1-) >= 250) && ($me isop #) { .ban -u $+ $calc(%checkbar4 * 60) # $nick 2 | .echo -s ( $+ $nick $+ ) $wildsite Banned for $duration($calc(60 * %checkbar4)) for long lenght part message. (Channel: $chan $+ ) }
if (%check10 == checked) && ($len($1-) >= 250) && { .echo -s [ $remove($address($nick,2),*!*@) $+ , added to blacklist.txt for long lenght part message. (Channel: $chan $+ ) ] | .write blacklist.txt $remove($address($nick,2),*!*@) }
}
on *:NOTICE:*:#:{
if (%check11 == checked) && ($me isop #) && ($nick !isop #) { .ban -ku $+ $calc(%checkbar5 * 60) # $nick 2 don't use channel notice in here. banned $duration($calc(60 * %checkbar5)) }
if (%check12 == checked) && ($nick !isop # { .echo -s [ $remove($address($nick,2),*!*@) $+ , added to blacklist.txt for channel notice. (Channel: $chan $+ ) ] | .write blacklist.txt $remove($address($nick,2),*!*@) }
}
on *:text:*:#:{
if (%check13 == checked) && ($me isop #) && ($len($1-) >= 250) { .ban -ku $+ $calc(%checkbar6 * 60) # $nick 2 Length flood. banned $duration($calc(60 * %checkbar6)) | .echo -s ( $+ $nick $+ ) $wildsite Banned for $duration($calc(60 * %checkbar6)) for lenght flood. (Channel: $chan $+ ) }
if (%check14 == checked) { .echo -s [ $remove($address($nick,2),*!*@) $+ , added to blacklist.txt for length flood. (Channel: $chan $+ ) ] | .write blacklist.txt $remove($address($nick,2),*!*@) }
}
on *:text:*:?:{
if (%check16 == checked) && ($len($1-) >= 250) { .ignore -nu $+ $calc(%checkbar7 * 60) $wildsite | .echo -s [ $nick $+ / $+ $address $+ , ignored $duration($calc(60 * %checkbar7)) private lenght flood. ] | close -m $nick }
if (%check17 == checked) { .echo -s [ $remove($address($nick,2),*!*@) $+ , added to blacklist.txt for private length flood. ] | .write blacklist.txt $remove($address($nick,2),*!*@) }
}
on *:NOTICE:*:?:{
if ($nick == X) { . 2(1X@channels.undernet.org2):5 $1- | halt }
if (%check18 == checked) && ($nick !== X) { .ignore -tu $+ $calc(%checkbar8 * 60) $wildsite | .echo -s [ $nick $+ / $+ $address $+ , ignored $duration($calc(60 * %checkbar8)) for private notice flood. ] }
if (%check19 == checked) && ($nick !== X) { .echo -s [ $remove($address($nick,2),*!*@) $+ , added to blacklist.txt for private notice flood. ] | .write blacklist.txt $remove($address($nick,2),*!*@) }
}