mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2015
Posts: 3
A
Self-satisified door
OP Offline
Self-satisified door
A
Joined: Sep 2015
Posts: 3
Hai. I'm creating a bot for my channel. I want to create a command for example .kiss.

This is what I've got so far:

Code:
on *:TEXT:.kiss*:#: { msg $chan $me kisses $2. }


But I wanted to add another possible response. For example:

Code:
msg $chan $me grabs $2 by the hair, steals the kiss.


What would I have to do to get my bot to select a response randomly from two or more responses? Thx.

Last edited by AtheistSpacePira; 10/09/15 04:47 AM.
Joined: Sep 2015
Posts: 3
A
Self-satisified door
OP Offline
Self-satisified door
A
Joined: Sep 2015
Posts: 3
To be more specific, what I want to do, is set it up is like follows:

first time...
.kiss <user>
[BotNameHere] kisses <user>

second time...
.kiss <user>
[BotNameHere] grabs <user> by the hair, and steals the kiss.


Is there a way to do that with mIRC?

Last edited by AtheistSpacePira; 10/09/15 04:47 AM.
Joined: Feb 2015
Posts: 243
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Feb 2015
Posts: 243
Code:
on *:text:.kiss*:#: {
inc %kisscount 1
if (%kisscount == 1) {
describe $chan kisses $2
}
elseif (%kisscount == 2) {
describe $chan grabs $2 by the hair, and steals the kiss
unset %kisscount
}
}

This should do it! smile

Joined: Sep 2015
Posts: 3
A
Self-satisified door
OP Offline
Self-satisified door
A
Joined: Sep 2015
Posts: 3
Thank you sooooooo much!!! laugh


Link Copied to Clipboard