mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Aug 2005
Posts: 11
F
fobiC Offline OP
Pikka bird
OP Offline
Pikka bird
F
Joined: Aug 2005
Posts: 11
Im not so good at this bot i need to do so my bot messeges a line from a list. for an example: when someone types !punish fobiC the bot takes a line from the list and msgs ex (thebotsname) strangles fobiC with a towel.. and next time someone types that the bot msgs another line.. excuse me for my bad english..

Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
put this in the bot's remotes:

on *:TEXT:!punish &:#yourchannelnamehere:{
describe $chan $read(punish.txt)
}

Then make a text file punish.txt in the bot's mIRC folder with on each line the text of the action. Don't leave lines blank in the file, one action per line. $2 should be the name of who needs a punishment...

strangles $2 with a towel
kicks $2's legs
throws some canned tomatoes at $2's head

Joined: Aug 2005
Posts: 11
F
fobiC Offline OP
Pikka bird
OP Offline
Pikka bird
F
Joined: Aug 2005
Posts: 11
thanks! laugh very fast answer..

Joined: Aug 2005
Posts: 11
F
fobiC Offline OP
Pikka bird
OP Offline
Pikka bird
F
Joined: Aug 2005
Posts: 11
I cant make it work.. i'm sure that i have done something wrong as usually..

Joined: Sep 2004
Posts: 200
I
Fjord artisan
Offline
Fjord artisan
I
Joined: Sep 2004
Posts: 200
on *:text:!punish &:#channel: {
msg #channel $read(punish.txt)
}
this is the script, then do /write punish.txt message $2 = the second thing they say, $nick = the person who trigered it, i.e: $2 was killed by $iif(*s iswm $nick,$nick $+ ',$nick $+ 's) chainsaw.
<abc> !punish ir_n00b
<bot> ir_n00b was killed by abc's chainsaw.
<abcs> !punish ir_n00b
<bot> ir_n00b was killed by abcs' chainsaw.
the $iif above is an if statement, in the format of: $iif(statemet,return if true,return if false)
you can also do:
if (somthing) {
stuff
}
elseif (somthing) {
other stuff
}
else {
other stuff
}

you should do /help basic commands, /help $read, /help write, /help if then else, and /help on text
that should explain most of this to you. wink


Link Copied to Clipboard