Kick/Kick-Ban

By craighton on Oct 17, 2009

Here is a simple Kick and Kick Ban script.
Commands:
"/k " Will kick the person with a default reason
"/kr " Will kick the person with a default message
"/kb " Will kick and ban the person with a default message
"/kb " Will kick and ban the person with a custom message
"/spam " Will kick the person with a anti-spam message
"/flood " Will kick the person with a anti-flood message"

;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
;@@@ Kick / Kick-Ban Script                  @@@
;@@@ By Craighton                            @@@
;@@@ http://logiclounge.com                  @@@
;@@@ If you need help join                   @@@
;@@@ Server: irc.logiclounge.net             @@@
;@@@ Channel: #scripts                       @@@
;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

alias kb { 
  mode $chan +b $address($1,2) 
  kick $chan $1 Your attitude is not conductive in the desired enviroment
} 
alias kbr { 
  mode $chan +b $address($1,2) 
  kick $chan $1 $2-
} 
alias k { kick $chan $1 Your attitude is not conductive in the desired enviroment. 
} 
alias kr { kick $chan $1 $2- 
} 
alias flood { kick $chan $1 Havn't you heard?! Flooding is lame as every idiot can do it! 
} 
alias spam { kick $chan $1 Spamming is not tolerated here. 
}

Comments

Sign in to comment.
Jethro   -  Oct 19, 2009

Specifically, Ghost-writer, $iif() is an IDENTIFIER. And your example has been similarly included in mirc's help file.

 Respond  
Ghost-writer   -  Oct 19, 2009

statments... STATEMENTS for god sakes... learn to talk nerd.. $iif is a statement not a command, a command is /quit or /kill a statement is: IF THIS IS RIGHT, DO THIS, OR ELSE DO THIS. like so,

$iif(1 == 1,Do this,or else do this)

if 1 == 1 returns $true. it will
do this
if 1 doesnt = 1 it will go to that
or else.
so

$iif(1 == 1,Hello,Bye)

Hello

And

$iif(1 == 2,Hello,Bye)

it was fun seeing ya.

And now you know $iif statements. it was fun.

 Respond  
KylePolansky   -  Oct 18, 2009

Wow, that's a nice script Jethro, I really need to learn the $iif command. If i were to make exactly what you made, it would probably be like 10 lines with a lot of if-else commands.

 Respond  
Jethro   -  Oct 17, 2009

Ghost-writer, you're supposed to sound encouraging and offer your support, instead of jeering off what this user has posted. Also, shouldn't you mean "it's not the quantity, it's the quality?" You said it in reverse. Here is my suggestion:

alias k { $iif(!$1,echo # * To kick $+ $chr(44) enter: /k NickHere,$iif($1 !ison #,msg $v2 $v1 is not found or on $v2,kick $v2 $v1 $2-)) }
alias kb { $iif(!$1,echo # * To kick + ban $+ $chr(44) enter: /kb NickHere,$iif($1 !ison #,msg $v2 $v1 is not found or on $v2,ban -k $v2 $v1 2 $2-)) }
 Respond  
craighton   -  Oct 17, 2009

But when I try the personal messages it fails

 Respond  
KylePolansky   -  Oct 17, 2009

looks like your /k isn't complete, also you can't put in custom messages with that script, might want to add a few things to it.

 Respond  
Ghost-writer   -  Oct 17, 2009

Are you fucking serious? post all your scripts in 1! its not quality its quantity!

alias kb {
  mode $chan +b $address($1,2)
  if (!$2) { /msg $chan kick $1 }
}
alias k {
  if ($2) { /msg $chan kick $1 $2- }

Why the fuck would you message the channel? fucking idiot? /kick $chan $nick = syntax. Also, no need for / in a script, Mirc does it by default! And some people dont have $readini(mirc.ini, mirc, commandchar) set to /. and $1- works fine. btw 2 dif aliases yet dif operations? the k wont work because i type /k nick and theres no $2. Please Review your scripts.

 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.