mIRC Homepage
Posted By: BuxXray Script that responds to a query - 01/12/13 11:06 AM
Hey,do you know a script that responds to a query for my bot??
example...
/msg mahbot test then it will reply : Testing!!!!...
mah bot is GameBoy...
Posted By: Iire Re: Script that responds to a query - 01/12/13 08:19 PM
use ? as the target in either an on TEXT or on ACTION event:

examples:

The following will trigger when somebody queries you with the msg "text"
Code:
on !*:TEXT:help:?:msg $nick Hello, $nick $+ . How may I help you?


The following will trigger when somebody queries you with the action "going crazy!"
Code:
on !*:ACTION:going crazy!:?:msg $nick What's wrong?


Note: It is possible to trigger these events yourself by querying yourself (why would you? I don't know) because the message/action will be both sent and received by you. (this is why you see messages sent to yourself twice if you've ever tried it). Therefore, if you expect that this, for whatever reason, will be an issue, you can prefix the event with an ! like I demonstrated above.
Posted By: BuxXray Re: Script that responds to a query - 02/12/13 07:19 AM
thx,if works....but you know how to make my bot`s chat slow??
Posted By: Deega Re: Script that responds to a query - 02/12/13 07:47 PM
If you mean add a delay before the response is sent, use a timer. See "/help /timer"

Example: .timer 1 3 msg $nick TESTING!
That is a timer that will wait for 3 seconds before sending the msg 1 time.
The period before 'timer' prevents mirc from displaying * Timer <X> activated and * Timer <X> halted
Code:
on *:text:test:?:.timer 1 3 msg $nick TESTING!

Posted By: BuxXray Re: Script that responds to a query - 06/12/13 07:16 AM
did not work...its said insufficiently perimeters
© mIRC Discussion Forums