mIRC Home    About    Download    Register    News    Help

Print Thread
#133451 20/10/05 09:41 PM
Joined: Jul 2005
Posts: 11
A
Pikka bird
OP Offline
Pikka bird
A
Joined: Jul 2005
Posts: 11
I have a bot that is supposed to kick and ban anybody when I type:
.kb username

For some reason, the bot doesn't ban and just kicks the person. I don't know what is wrong with my script. Please help me. It would be appreciated. Thank you.

Here is the script.

Quote:
on opaccess:TEXT:.kb*:#:{
if (!$2) { /msg # Please specify a person for me to kick/ban. }
else { set %kickban $2 }
if (!$3) { set %text $nick }
else { set %text $3- }
mode # +b %kickban
kick # %kickban %text
}

Joined: Oct 2005
Posts: 51
S
Babel fish
Offline
Babel fish
S
Joined: Oct 2005
Posts: 51
try this
Code:
on *:load:{
  /echo 4Auto~11Kicker System 
  /echo 4[Turn On = /kickerON] [Turn Off = /kickerOFF]
}
menu * {
  Autokicker
  .On:/enable #kicker 
  .Off:/disable #kicker
alias kickerON {
  /echo 4Auto~11kicker --ON--
  /enable #kicker
}
alias kickerOFF {
  /echo 4Auto~11kicker --OFF--
  /disable #kicker
}
 #kicker on
on 1:text:*kb:*:/ban $$?="nick" 2 | /timer 1 3 /kick # $$?="nick" $$?="Reason:"
  

Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
Code:
on @opaccess:TEXT:.kb*:#:{
  if ( $2 ison $chan ) ban -k # $2 $iif($3,$3-,$nick)
  else msg # Please specify a person that is on the $chan for me to kick/ban.
}   


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
Joined: Jul 2005
Posts: 11
A
Pikka bird
OP Offline
Pikka bird
A
Joined: Jul 2005
Posts: 11
Thanks! It works now.


Link Copied to Clipboard