Kickban Script v1.1

By BoosteeR on Aug 28, 2010

Kickban script (v1.1) with lastban function.


Commands:
!kb nick* (Kickbans the specified nick.)
!lastban (Shows the person who were last banned.)
!bancount (Shows how many pepz have been banned on youw channel.)

  • = Have to be replaced with an optional nick.

I will be updating on this one and also include more functions.

Made by BoosteeR
(Feel free to use all my scripts on your own channel)


Change list:
Fixed ban command to adress ban.
Update with the one WorldDMT posted.
08-09 - Fixed and reupdated to my old script.
08-09 - Created a ban counting system. (BETA)
08-09 - Added date to the !lastban command.
30-04 - Started working again and updated script, so now its working. Also updated to 1.1.



To-do list:
Make !unban command.
Make seperate !ban and !kick commands.
Make !mute command.
Cleanup!


on *:text:*:#:{
  if ($1 == !kb) && ($nick isop $chan) && ($me isop $chan) {
    set %chan $chan
    set %victim $2
    set %banner $nick
    ban -k $chan $2 5 $nick
    notice %ban.nick %victim kickbanned you.
    inc -q %ban.count 1
  }
  if ($1 == !lastban) {
    msg $chan The last banned was %victim and were banned by: %banner. There has now been %ban.count banned.
  }
  if ($1 == !bancount) {
    msg $chan On $chan %ban.count has been banned.
  }
  if ($1 == !reset) {
    set %ban.count 0
    notice $nick Bancount is reset.
  }
}

Comments

Sign in to comment.
BoosteeR   -  Aug 30, 2010

WorldDMT i tried the script you posted, and it doesnt work :/

 Respond  
Jethro   -  Aug 29, 2010

Burrito, stop confusing yourself dude. lol Just by looking at your nikename makes me want to go grab a burrito from a Mexican cafe to eat. :P

 Respond  
WorldDMT   -  Aug 28, 2010

@burrito: $nick is the beginning of the kick msg

 Respond  
Burrito   -  Aug 28, 2010

One thing is you ban the $address of the nick. It should be $2

~Posted from my iPhone

 Respond  
WorldDMT   -  Aug 28, 2010

u have to check if your bot is an OP in channel so u can do it by adding "@" before level and better to use $strip bcz some user use bold or color text an this wont work with your code and make sure if $2 is on channel or not and u can add at end or ban -k the kick msg and remove the notice finaly if your bot is in 2 channel or more the last kicked have to be informed in the same channel not for any one so better to use %var $+ #

on @*:text:*:#:{
  if ($strip($1) == !kb) && ($nick isop #) && ($2 ison #) {
    set %info $+ # $2 $nick
    ban -k # $2 5 $nick kickbanned you.
  }
  elseif $strip($1) == !lastban {
    tokenize 32 %info [ $+ [ # ] ]
    if ($0) msg # Last banned was $1 and got banned by: $2
  }
}
 Respond  
ZirixZero   -  Aug 28, 2010

Well, I'll give a 4, but I won't use it

 Respond  
}{exer   -  Aug 28, 2010

too much of this i found :\
It becomes a good note if added a kb Counter !

 Respond  
BoosteeR   -  Aug 28, 2010

oh, i didnt know :)
im new mIRC scripting :)

 Respond  
ZirixZero   -  Aug 28, 2010

Ban -k does that

 Respond  
Jethro   -  Aug 28, 2010

To kick/ban at the same time, you could have done it as:

ban -k %chan %ban.nick 5

This will kick and ban the nick's type 5 address instead of using mode # +b and kick command separately.

 Respond  
BoosteeR   -  Aug 28, 2010

Just to ban and kick peoples in one command from an bot :)

 Respond  
ZirixZero   -  Aug 28, 2010

I'm sorry, but what is the point of this?

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.