Hello
You have a little typo in the second line of the counter script.
You don't need a { there and since you dont need that you dont need a closing bracket as well.
Other than that the scripts are just fine but they need a slight modification to do what you want.
on *:TEXT:!startannouncer:#: {
if ($nick isop #) {
if (!%announce) {
msg # Announcer is now starting.
set %announce $ctime
}
}
}
on *:TEXT:!stopannouncer:#: {
if ($nick isop #) {
if (%announce) {
msg # Announcer is now stopping.
unset %announce
}
}
}
ON *:TEXT:*:#: {
if (%announce) {
inc %msgcounter 1
if (%msgcounter >= 10) {
if ($calc($ctime - %announce) >= 600) {
msg #chan YOur msg here
unset %msgcounter
set %announce $ctime
}
}
}
}