mIRC Home    About    Download    Register    News    Help

Print Thread
#267392 23/06/20 11:51 AM
Joined: Jun 2020
Posts: 2
I
Bowl of petunias
OP Offline
Bowl of petunias
I
Joined: Jun 2020
Posts: 2
My very simple script is as follows:

on *:text:*:?: /msg $nick where are you from?

Now, I need this script to run on one and only one ontext event, per each query. In other words, I want this script to reply only once.

Does anybody know how do I do this?

Thanks




Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
if you want it to happen as someone opens the query window, then you can use the ON OPEN event which also includes the text of their first message. if you want it to trigger even if they type into a query window that you opened yourself, then it would be more complicated to track whether someone has previously said something into an arbitrary query window.

Joined: Jun 2020
Posts: 2
I
Bowl of petunias
OP Offline
Bowl of petunias
I
Joined: Jun 2020
Posts: 2
thanks! works great


Link Copied to Clipboard