mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Nov 2018
Posts: 4
B
Self-satisified door
OP Offline
Self-satisified door
B
Joined: Nov 2018
Posts: 4
Hello! I am trying to write a script to write a message to a channel on a specific times for every day of the week. Currently the script that I am doing crashes mIRC client and was wondering if anyone knows a better way of doing this?

Current Script:

on me:*:join:#channel:{
while (($day == Thursday)) {
if (($time == 16:04:00)) {
msg $chan test $day and $time
}
if (($time == 15:50)) {
msg $chan test $day and $time
}
if (($time == 15:52)) {
msg $chan test $day and $time
}
if (($time == 15:53)) {
msg $chan test $day and $time
}
}
}

Last edited by BlakeNote; 15/11/18 09:06 PM.
Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
take a peek at this thread and see if it's what you need
https://forums.mirc.com/ubbthreads.php/topics/260747/Scheduled_Message_(to_run_a_co#Post260747

Joined: Apr 2015
Posts: 19
O
Pikka bird
Offline
Pikka bird
O
Joined: Apr 2015
Posts: 19
if (*00:??:* iswm $fulldate) {
.msg BlakeNote works.
}


I'm sure you can see the pattern and take it from there


Link Copied to Clipboard