mIRC Home    About    Download    Register    News    Help

Print Thread
#263365 20/07/18 07:10 PM
Joined: Jul 2018
Posts: 2
C
caseys Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
C
Joined: Jul 2018
Posts: 2
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

caseys #263366 20/07/18 08:44 PM
Joined: Jul 2018
Posts: 2
C
caseys Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
C
Joined: Jul 2018
Posts: 2
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
}
}



Last edited by caseys; 20/07/18 09:43 PM.
caseys #264860 18/01/19 02:00 PM
Joined: Jan 2019
Posts: 4
F
Self-satisified door
Offline
Self-satisified door
F
Joined: Jan 2019
Posts: 4
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.


Link Copied to Clipboard