mIRC Home    About    Download    Register    News    Help

Print Thread
#248416 07/10/14 07:21 PM
Joined: Oct 2014
Posts: 13
B
Pikka bird
OP Offline
Pikka bird
B
Joined: Oct 2014
Posts: 13
I'm making a bot of my dog for reasons. I want to have him play with a ball that you can "throw" but when you want to throw again, you have to have a drop it command. Can someone help with this? If so, that would be awesome!

Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Man do you understand what you have wrote? because i cannot.

When you create an new thread please describe correctly what you want or what is your problem to make us understand correctly, also one example will be also good, describe it more with details.


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
Code:
on *:text:!throw:#: {
if (%thrown) return
describe # chases after the ball.
set %thrown 1
}

on *:text:!drop it:#: {
if (!%thrown) return
describe # drops the ball.
unset %thrown
}
I guess that's what op wants? Or something


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Oct 2014
Posts: 13
B
Pikka bird
OP Offline
Pikka bird
B
Joined: Oct 2014
Posts: 13
Yes!! Thank you so much! This is perfect. One more question, if I wanted to add a message between the first and second commands to say something like he still has the ball, how would I do that?

Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
Code:
if (%thrown) { describe # has the ball in his mouth. | return }
if (!%thrown) { describe # doesn't have the ball right now. | return }


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net

Link Copied to Clipboard