mIRC Home    About    Download    Register    News    Help

Print Thread
#248151 23/09/14 09:55 PM
Joined: Mar 2014
Posts: 65
E
Exuviax Offline OP
Babel fish
OP Offline
Babel fish
E
Joined: Mar 2014
Posts: 65
Hey,

So I want some auto announcement messages in my IRC channel, so far I have it set to a delay, so the announcement message will post once ever 1300 seconds. But now I have three announcement messages, and even tho I have them set to post at different intervals, when someone first entrees the chat they all post at the same time. This is where counting text entrees would help, so I would have it post every 1300 seconds after 50 text posts.

Here is the code I have so far,

Code:
on *:text:*:#ifstudios: {
    if ((%donate.) || ($($+(%,donate.,$nick),2))) { return }
    msg # /me Some pop-out text here.
    set -u2700 %donate. On
}


All I want is a way to count text entrees in the chat from any user. Or maybe a better way of handling announcement videos.


I do things with stuff that makes other things do stuff.
Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
Code:
on *:text:*:#ifstudios: {
  inc %count
  if (%count >= 50) {
    unset %count
    if (!$timer(donate)) .timerdonate 1 2700 msg # /me text
  }
}

Last edited by Loki12583; 24/09/14 04:12 AM.
Joined: Mar 2014
Posts: 65
E
Exuviax Offline OP
Babel fish
OP Offline
Babel fish
E
Joined: Mar 2014
Posts: 65
So how does that deal with the timer? Does it set the timer to 50? Or, do I have to use another code segment to set the timer?


I do things with stuff that makes other things do stuff.
Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
I forgot to put in the repetition and interval for the timer, it has been corrected.


Link Copied to Clipboard