BlueHell mIRC Script — File Browser

BlueHellmIRCScriptv1.0 / BlueHellmIRCScriptv1.0 / BlueHellScript / banprotection.mrc

banprotection.mrc — 2.93 KB — Download this file

alias ProxyScanner {
  .set %latestproxyfound $read(found.txt,$lines(found.txt))
  .dialog -m ProxyScanner ProxyScanner
}
alias BanProtection {
  .dialog -m Ban-Protection Ban-Protection
}
dialog Ban-Protection {
  title "BanProtection"
  size -1 -1 126 80
  option dbu
  text This Script addon has been written to protect you when somebody will attempt to ban you on a channel that you are operator too. , 11, 2 2 120 35, ok tab 1, center
  text Unban:, 12, 2 32 158 35, ok tab 1
  text Unban Deop:, 13, 2 40 158 35, ok tab 1
  text Unban Deop Ban:, 14, 2 48 158 35, ok tab 1
  text Unban Deop Ban Kick:, 15, 2 56 158 35, ok tab 1
  button "Select", 16, 95 31 30 8
  button "Select", 17, 95 39 30 8
  button "Select", 18, 95 47 30 8
  button "Select", 19, 95 55 30 8
  button "Ok", 20, 2 700 15 35, ok tab 1 
  button "Turn off Ban Protection", 21, 33 70 60 8
  button "X", 22, 118 69 8 10
  text ( $+ %banchoice1 $+ ), 23, 62 32 15 10, ok tab 1
  text ( $+ %banchoice2 $+ ), 24, 62 40 15 10, ok tab 1
  text ( $+ %banchoice3 $+ ), 25, 62 48 15 10, ok tab 1
  text ( $+ %banchoice4 $+ ), 26, 62 56 15 10, ok tab 1
}

on *:BAN:#:{
  if (%banchoice1 == on) && ($banmask iswm $address($me,5)) && ($me isop #) && ($nick !== $me) { .mode # -b $banmask } 
  if (%banchoice2 == on) && ($banmask iswm $address($me,5)) && ($me isop #) && ($nick !== $me) { .mode # -bo $banmask $nick }
  if (%banchoice3 == on) && ($banmask iswm $address($me,5)) && ($me isop #) && ($nick !== $me) { .mode # -bo+b $banmask $nick $address($nick,2) }
  if (%banchoice4 == on) && ($banmask iswm $address($me,5)) && ($me isop #) && ($nick !== $me) { .mode # -bo+b $banmask $nick $address($nick,2) | .kick # $nick Ban Protection Successful On Lamer! }
  if (%banchoice5 == on) && ($banmask iswm $address($me,5)) && ($me isop #) && ($nick !== $me) { .echo -s Ban Protection Disabled, Cannot Protect You On # :( }
}
on 1:dialog:Ban-Protection:sclick:*: {
  if ($did == 16) {
    .set %banchoice1 on 
    .set %banchoice2 off 
    .set %banchoice3 off 
    .set %banchoice4 off
    .set %banchoice5 off 
    .gorefbanpro
  }
  if ($did == 17) { 
    .set %banchoice1 off
    .set %banchoice2 on 
    .set %banchoice3 off 
    .set %banchoice4 off
    .set %banchoice5 off
    .gorefbanpro
  }
  if ($did == 18) {
    .set %banchoice1 off
    .set %banchoice2 off 
    .set %banchoice3 on 
    .set %banchoice4 off
    .set %banchoice5 off
    .gorefbanpro
  }
  if ($did == 19) {
    .set %banchoice1 off
    .set %banchoice2 off 
    .set %banchoice3 off 
    .set %banchoice4 on
    .set %banchoice5 off
    .gorefbanpro
  }
  if ($did == 21) {
    .set %banchoice1 off
    .set %banchoice2 off 
    .set %banchoice3 off 
    .set %banchoice4 off
    .set %banchoice5 on
    .gorefbanpro
  }
  if ($did == 22) {
    .dialog -c ban-protection ban-protection
  }
}
alias gorefbanpro {
  .dialog -c ban-protection ban-protection
  .banprotection
}