mIRC Home    About    Download    Register    News    Help

Print Thread
#266394 28/11/19 06:49 PM
J
JB_uk
JB_uk
J
Evening,

Been a while since I've been active here.

Returned recently to updating a few scripts I've been running for a friend.

Code
on *:text:!t *:#: {
  write $chan $+ test.txt $2-
  msg # Fingers crossed  }


So what I'm attempting is to simply write to a file called #CHANNELtest.txt anything after the command, however, this format doesn't appear to be working any more despite it previously having worked in other scripts.

Any suggestions, keeping this filename format would save changing several other scripts if possible...

#266395 28/11/19 08:44 PM
Joined: Dec 2015
Posts: 147
D
Vogon poet
Offline
Vogon poet
D
Joined: Dec 2015
Posts: 147
Assuming you aren't getting any errors, you probably have some other script that's taking over the text event and halting the processing.

You can also try "/REMOTE ON" and "/EVENTS ON" to make sure both remote scripts and events are being processed.

#266397 29/11/19 06:35 AM
Joined: Jan 2004
Posts: 2,081
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jan 2004
Posts: 2,081
In addition to another script halting the text event, there can only be 1 of these text events matching each message, so if you have another text event in the same script having a wildcard-match which matches this event, whichever one is on the higher line is the one which gets triggered.

Also, just to be clear, the text event triggers on channel messages only when it's from another nick. You can't test your own messages in the text event without running 2 clients in the same channel so that one can trigger the other's text event.

For more info that might help -> https://en.wikichip.org/wiki/mirc/on_events/on_text


Link Copied to Clipboard