Good day. I am somewhat new to mIRC scripting, but I have figured out enough to easily make a script that will post messages into chat after X lines of chat
OR after X number of minutes. What I want is to create is a script that will check for
BOTH. For example, it will only post the message if at least ten minutes have passed
and there have been at least ten lines of chat, and then it would reset both counters and post the message again once both variables are true.
Message counter script:
on *:TEXT:*:#: {
INC %msgCounter {
if (%msgCounter = 10) { msg $chan This is my auto-message | return }
}
if (%msgCounter < 10) { return }
set -u1 %msgCounter On
}
Timed message script:
on *:TEXT:!startannouncer:#: {
if ($nick isop #) {
msg # Announcer is now starting.
.timerAnnouncer 0 600 /play # C:\testfile.txt
}
}
on *:TEXT:!stopannouncer:#: {
if ($nick isop #) {
msg # Announcer is now stopping.
.timerAnnouncer off
}
}
I'm not sure if I can combine these two somehow, or if I would need an entirely new script. Any help would be appreciated. Thanks!