Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Auto Kick On Ban
#1
    • This addon will kick anyone one the room has been banned with reason Banned if he was banned by you or anyone else and sure if u are halfop or more Big Grin.. i made this as the ppl who using mIRC based will not have that function but i think others scripts will have it.

    Example

    Quote:
    •   (01:23:13) * Agent sets mode: +b *!*@8872FA.F049B8.232DE2.01BF5A
      (01:23:14) * Cracon was kicked by Agent (Banned)

    How to load the addon on your mIRC script

    1- Go on Tools on the MenuBar - Script Editor - Remote - File - New then copy the code down and paste it there then press Ok.

    2- Download the Auto kick on ban.mrc down, Put it on the mirc folder and go on Tools on the MenuBar - Script Editor --- > Remote - File  - Load and then choose the place of the Auto kick on ban.mrc and then press Open then Ok

Code

Code:
alias -l add {
  var %1 = $strip($1)
  goto $prop
  :allow | return $addtok(%allow,%1,44)
  :dis | return $remtok(%allow,%1,1,44)
}
on @*:ban:%allow:{
  var %i = 1
  while ($ialchan($banmask,#,%i).nick) {
    if ($v1 != $me) {
      kick # $v1 Banned
    }
    inc %i
  }
}
menu status,channel,nicklist,menubar,query {
  Channel Allow List
  .Add {
    set %allow $add($$?"Add a channel to my Allow List:").allow
    echo 4 -at * $! has been added to my allow list!
  }
  .Del {
    set %allow $add($$?"Remove a channel from my Allow List:").dis
    echo 4 -at * $! has been removed from my allow list!
  }
}

How to use
  • Right click on any of the mIRC window for the popup prompt called Channel Allow List You can add and delete a channel from there. The script will only trigger on the added channels
  • If you would like to change the kick reason just change the Banned on the code and type the reason you want Big Grin



Attached Files
.mrc   Auto kick on ban.mrc (Size: 633 bytes / Downloads: 544)
You don't have to win every argument. Agree to disagree.
Reply
#2
Again: Nice Job, Agent Smile SmileSmile ...
It even works fine with my Script lol :>
I wasn't born to become happy, I was born to help others to become happy!
Kev :]
Reply
#3
yea its simple .. and mostly the display things is the one that's make conflict with other scripts but kick and ban and this stuff would be fine always.
You don't have to win every argument. Agree to disagree.
Reply
#4
Why dont you use simply an ini-datei for the allow list? :S than you have just to use writeini and no alias....
Reply
#5
Okay try this one it might be better no allow list just enable and disable for the specify channel u want

Code:
alias -l add {
  goto $prop
  :allow | return $addtok(%allow,#,44)
  :dis | return $remtok(%allow,#,1,44)
}
on @*:ban:%allow:{
  var %i = 1
  while ($ialchan($banmask,#,%i).nick) {
    if ($v1 != $me) {
      kick # $v1 4 Floodbot.
    }
    inc %i
  }
}
menu channel  {
  Auto Kick
  .Enabled {
    set %allow $add(#).allow
    echo 4 -at * # 7has been Enabled!
  }
  .Disabled {
    set %allow $add(#).dis
    echo 4 -at * # 7has been Disabled!
  }
}
You don't have to win every argument. Agree to disagree.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Re: How to make auto identify Scarecrow 3 4,820 11-04-2013, 09:48 AM
Last Post: Omar
  Auto Save Logs Omar 0 2,544 20-01-2013, 12:04 PM
Last Post: Omar
  Avoid using of your Nicks by Auto Ghost free 5 5,421 04-07-2012, 02:37 PM
Last Post: verypersoanl
  Auto Identify Omar 0 2,684 14-12-2011, 04:12 PM
Last Post: Omar

Forum Jump:


Users browsing this thread: 1 Guest(s)