• Home
  • Servers
  • Chat
  • Channels
  • Commands
  • Forum
  • FAQ
  • Software
  • Quotes
Topic Options
Rate This Topic
#1148 - 03/04/08 12:14 PM !kick
Snakeyes Offline
newbie

Registered: 11/28/07
Posts: 33
Loc: Illinois
This script is very nice. It is a !kick script. The way it works with this is that you can send a pm to the nickname that has the script. You must tell what channel you want it to kick, when you are setting up the script. For example if you on a channel called #WyldRyde, You must tell it to kick in that channel. There is also another verison on this script that you can use in an op room. But you either must but all ops on +e =exception, so the service bot will not kick them.

on *:text:!kick*:#: {
if ($chan == #WyldRyde) || ($chan == #WyldRyde) {
if ($0 >= 2) {
kick #WyldRyde $$2 $$3-
}
else { notice $nick No nickname specified. }
}
}
on *:text:!kick*:?: {
if ($0 >= 2) {
kick #WyldRyde $$2 $$3-
}
else { notice $nick No nickname specified. }
}

The one above is a pm. All you gotta do is pm the nick with that script in it and type !kick nickname You are behaving. Ex: !kick Snakeyes11 yout attidue is not welcomed here. Then the bot/cilent will kick them.

This other one is the one that allows to kick someone in the op room.

on *:text:!kick*:#WyldRyde-ops: {
if ($0 >= 2) {
kick #WyldRyde $2 $3-
}
else { notice $nick Must specify a nick for !kick command. }
}

Enjoy!
_________________________
- Be careful I might bite you if your not careful. -

- Founder of #snakeyes11 on wyldryde. -


Top
Sponsored Links
Sponsored Links
Member
*****

Registered: 27/08/04
Posts: 10136
Loc: Mountain View, CA
Top
#1583 - 04/09/08 09:19 PM Re: !kick [Re: Snakeyes]
dave Offline
n00b

Registered: 04/07/08
Posts: 17
Loc: canada
why don't you just get veronicamars if you want that bot type.
/msg botserv assign #channel veronicamars
it work'd good and u get !op,!deop,!ban and !kick and a few more.
_________________________
O is for on the dark side, beacouse we have some fresh cookies. (COOKIES)
WOO!

Top
#1736 - 04/23/08 08:00 PM Re: !kick [Re: dave]
Snakeyes Offline
newbie

Registered: 11/28/07
Posts: 33
Loc: Illinois
Dave, I have AMD in my room.. But I don't need a service bot to kick or ban. I usaully do most of the kicking. This script also can be set to work in a OP room like I said. Most ops have all halfop and operators on exception so they wont be kicked. Plust this is nice in case I am a friends house and I am using a non registered nick.
_________________________
- Be careful I might bite you if your not careful. -

- Founder of #snakeyes11 on wyldryde. -


Top
#4937 - 05/18/09 06:56 PM bomb kick old msn but something is wrong with it [Re: Snakeyes]
fall a part Offline
n00b

Registered: 05/13/09
Posts: 2
Loc: USA
can any help me find out whats wrong with this old msn kick. the code is ths: sorry if i posted wrong i am new
;################
;# General Info #
;################
;
;Filename: <TimeBomb.mrc>
;Required Files: <TimeBomb.ini>
;
;TimeBomb Channel Game v1.0 (Fully Functional, Minimal Features)
;
;"Just like diffusing the real thing, only with 100% more replay value if you lose!"
;
;Coded by: Checkers (Network: DALnet | Channel: #Helpdesk | Email: dadums@gmail.com | AIM: Sp4rkyJ0n3z)
;
;
;################
;# Instructions #
;################
;
;Load the game by extracting the files into your mIRC directory and /load -rs timebomb.mrc
;
;Use the Channel popups to Enable/Disable the game.
;Also there is an option whether or not to kick the person who failed to diffuse the bomb.
;
;To play, someone initiates the game by typing !Bomb in a channel.
;Then it will display instructions on how to diffuse the bomb and how much time you have.
;
;
;###########
;# Version #
;###########
;Release v1.0
;
;Created basic functionality.
;No known issues.
;
;I will add more features depending on feedback.
;
;Feedback / Bug Reports / Features requests -> dadums@gmail.com


#TimeBomb on

ON *:TEXT:!Bomb*:#: {
IF (!%Bomb.Ticking) { BombStart $2- $chan }
ELSE { .msg # Warining! %Bomb.Nick is already trying to diffuse a bomb on $iif($chan == %Bomb.Chan,this channel,%Bomb.Chan) }
}

ON *:TEXT:!Cut*:%Bomb.Chan: {
IF ((%Bomb.Ticking) && (%Bomb.Nick == $nick) && ($chan == %Bomb.Chan)) { BombCutWire $2 }
}

alias BombStart {
set %Bomb.Ticking 1
set %Bomb.Nick $1
set %Bomb.Chan $2
set %Bomb.Time $r(15,40)
var %Bomb.Start = $BombWires
set %Bomb.NWires $gettok(%Bomb.Start,1,94)
set %Bomb.CWires $gettok(%Bomb.Start,2,94)
set %Bomb.DWires $gettok(%Bomb.Start,3,94)
.msg $2 $BombReply(Start)
.msg $2 $BombReply(Wires)
.timerBomb 1 %Bomb.Time BombBoom $1 $2
}


alias BombCutWire {
IF ($1 == %Bomb.DiffuseWire) { BombBoom Diffused }
ELSEIF ($istok(%Bomb.AlreadyCut,$1,32)) { BombBoom AlreadyCut }
ELSEIF (!$istok($remove($strip(%Bomb.CWires),$chr(44)),$1,32)) { BombBoom NoSuchWire }
ELSEIF ($istok(%Bomb.DudWires,$1,32)) {
set %Bomb.AlreadyCut %Bomb.AlreadyCut $1
%Bomb.DWires = $deltok(%Bomb.DWires,$findtok(%Bomb.DWires,$1,32),32)
%Bomb.CWires = $deltok(%Bomb.CWires,$findtok($remove($strip(%Bomb.CWires),$chr(44)),$1,32),32)
dec %Bomb.NWires
BombBoom DudWire
}
ELSE { BombBoom WrongWire }
}

alias BombWires {
;Colors
var %Bomb.WireColors = Red,Green,Blue,Teal,Orange,Yellow,Brown,Purple
;Number of Wires
var %Bomb.Wires = $r(2,$numtok(%Bomb.WireColors,44))
;Wires to choose from.
var %Bomb.Temp.Inc = 0
var %Bomb.Temp.Wires = %Bomb.WireColors
while (%Bomb.Temp.Inc < %Bomb.Wires) {
var %Bomb.Temp.Tok = $r(1,$numtok(%Bomb.Temp.Wires,44))
var %Bomb.CutWires = $iif(%Bomb.CutWires,$+(%Bomb.CutWires,$chr(44))) $gettok(%Bomb.Temp.Wires,%Bomb.Temp.Tok,44)
var %Bomb.Temp.Wires = $deltok(%Bomb.Temp.Wires,%Bomb.Temp.Tok,44)
inc %Bomb.Temp.Inc
}
;Set the Bombs Diffuse Wire
set %Bomb.DiffuseWire $remove($strip($gettok(%Bomb.CutWires,$r(1,$numtok(%Bomb.CutWires,32)),32)),$chr(44))
;Set The wires that won't trigger the bomb.
IF ($numtok(%Bomb.CutWires,32) > 2) {
var %Bomb.DudWires.N = $int($calc($numtok(%Bomb.CutWires,32) * .5))
set %Bomb.DudWires
var %Bomb.DudWires.Temp = %Bomb.CutWires
var %Bomb.DudWires.Temp2 = $remove($strip(%Bomb.CutWires),$chr(44))
var %Bomb.DudWires.Temp = $deltok(%Bomb.DudWires.Temp2,$findtok(%Bomb.DudWires.Temp2,%Bomb.DiffuseWire,32),32)
while (%Bomb.DudWires.N > $numtok(%Bomb.DudWires,32)) {
var %Bomb.DudWires.Temp.Tok = $r(1,$numtok(%Bomb.DudWires.Temp,32))
%Bomb.DudWires = %Bomb.DudWires $gettok(%Bomb.DudWires.Temp,%Bomb.DudWires.Temp.Tok,32)
var %Bomb.DudWires.Temp = $deltok(%Bomb.DudWires.Temp,%Bomb.DudWires.Temp.Tok,32)
}
}
return $+(%Bomb.Wires,^,%Bomb.CutWires,^,%Bomb.DudWires,^)
}

alias BombBoom {
IF ($1 == Diffused) { .msg %Bomb.Chan $BombReply(Diffused) | goto end }
IF ($1 == DudWire) { .msg %Bomb.Chan $BombReply(DudWire) | .msg %Bomb.Chan $BombReply(Wires) | halt }
IF ($1 == AlreadyCut) { .msg %Bomb.Chan $BombReply(AlreadyCut) | halt }
IF ($1 == NoSuchWire) { .msg %Bomb.Chan $BombReply(NoSuchWire) | halt }
IF ($1 == WrongWire) { var %Bomb.BoomMsg = $BombReply(WrongWire) }
ELSE { var %Bomb.BoomMsg = $BombReply(Failed) }

IF ($me IsOp %Bomb.Chan) && (%Bomb.KickToggle) {
.Kick %Bomb.Chan %Bomb.Nick %Bomb.BoomMsg
}
ELSE { .msg %Bomb.Chan %Bomb.BoomMsg }

;Pick Random People to die.
var %Bomb.Dead.N = $r(2,5)
while (%Bomb.Dead.N) {
set %Bomb.Dead $addtok(%Bomb.Dead,$nick(%Bomb.Chan,$r(1,$nick(%Bomb.Chan,0,a)),0,a),32)
dec %Bomb.Dead.N
}
:end
.unset %bomb.*
.timerBomb off
}

alias BombReply {
var %BombReply.File = $+($ScriptDir,TimeBomb.ini)
IF ($exists(%BombReply.File)) {
var %BombReply.N = $readini(%BombReply.File,$1,N)
return $readini(%BombReply.File,$1,$r(1,%BombReply.N))
}
ELSE { echo -s TimeBomb: BombReply File Does Not Exist! }
}
#TimeBomb END

;Popups! YAY!
menu Channel {
TimeBomb
.$iif($group(#TimeBomb).status == on,Disable,Enable) TimeBomb:.$iif($group(#TimeBomb).status == on,DISABLE,ENABLE) #timebomb
.$iif(%Bomb.KickToggle,Disable,Enable) Kicking: set %Bomb.KickToggle $iif(%Bomb.KickToggle,0,1)
.-
.Advertise:/msg # TimeBomb Channel Game v1.0 by Checkers (DALnet), Type !bomb to start the game.
}

Top
#4990 - 05/27/09 08:05 AM Re: !kick [Re: Snakeyes]
LostCoder Offline
n00b

Registered: 11/03/08
Posts: 13
Loc: England
Nice codes both of you, as hardly anyone on the WyldRyde network uses colours, there's no point in adding regex to strip it. Other than that, you might want to use the code tages "
Code:
 code here 
tags, makes it easier to seperate and easier to read smile

Thanks,
LostCoder
_________________________
Don't forget to go to http://www.codingpod.com for all of your Coding needs

Top


Moderator:  Jeff, mandy, usrbingeek