mIRC Home    About    Download    Register    News    Help

Print Thread
#243394 14/11/13 10:53 PM
Joined: Aug 2013
Posts: 33
F
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Aug 2013
Posts: 33
Hello, people.

I have forgot what command or 2-3 commands I need to do to make mIRC detect how many lines have passed and THEN start reacting and/or posting a message.
Anyone that can help me out?

I've also thought about making a variable that will set +1 on every line. But I think there was a WAY easier way to do this.

Thanks in advance,
Farcrada

Last edited by Farcrada; 14/11/13 10:53 PM.
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Use inc.
Code:
on *:input:#:{
  inc %x 1
  if (%x == 3) {
   echo -a Trigger on your input / channels
  }
}

on *:text:#:{
  inc %x 1
  if (%x == 3) {
   echo -a Trigger on text / channels
  }
}


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Aug 2013
Posts: 33
F
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Aug 2013
Posts: 33
Thank you for the fast reply!


Link Copied to Clipboard