mIRC Homepage
Posted By: caseys on input - 20/07/18 07:10 PM
hello,

i want a command to be executed in "on *:INPUT:*:{}"

say, when i query user, first i want to execute command1 by sending a random message and after command was successfuly executed - let the random message appear.
couse currently command and message works on the same time.

how can i do that?

thank you
Posted By: caseys Re: on input - 20/07/18 08:44 PM
as far as i got

Code:

on *:INPUT:*:{
if ($left($1,1) != /) {
if (!%comwait) {
set -u6 %comwait 1
COMMAND_INIT
}
.timer 1 5 say $1- | halt
}
}


Posted By: fossa Re: on input - 18/01/19 02:00 PM
I'm not sure if I understand your question correctly. The %comwait variable isn't needed for this to get it work, just simply use:
Code:
on *:INPUT:*:if ($1 = /query) { query $2 $3- | .timer 1 5 /query $2 $3- | halt }

Or provide some more information please.
© mIRC Discussion Forums