mIRC Home    About    Download    Register    News    Help

Print Thread
#110994 12/02/05 08:12 AM
Joined: Feb 2005
Posts: 344
B
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Feb 2005
Posts: 344
Making a script that respond to sertain words is not that hard.
My problem is I want multiple responds on one word.
example: someone typs kick
I want my bot to make a choise out of the following lines:

No kicking allowed here $nick
Please don't kick to hard
I'm from animal protection ....Isn't $nick some kind of animal ?
etc
etc
etc

I can't seem to get it working..... please help me.

#110995 12/02/05 08:42 AM
Joined: Jun 2003
Posts: 92
K
Babel fish
Offline
Babel fish
K
Joined: Jun 2003
Posts: 92
add your random txt to a file

on 1:TEXT:*:#:{
if ($1 == kick) {
kick $chan $2 $read(kicks.txt)
}
elseif ($1 == op) {
mode $chan +o $nick
}
}


k1ll3rz

Link Copied to Clipboard