mIRC Homepage
Posted By: Blondemoscow Command execution order? - 07/10/14 07:21 PM
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!
Posted By: westor Re: Command execution order? - 07/10/14 07:31 PM
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.
Posted By: Nillen Re: Command execution order? - 07/10/14 08:03 PM
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
Posted By: Blondemoscow Re: Command execution order? - 08/10/14 02:05 AM
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?
Posted By: Nillen Re: Command execution order? - 08/10/14 05:28 AM
Code:
if (%thrown) { describe # has the ball in his mouth. | return }
if (!%thrown) { describe # doesn't have the ball right now. | return }
© mIRC Discussion Forums