mIRC Home    About    Download    Register    News    Help

Print Thread
#244101 24/01/14 02:11 AM
Joined: Jan 2014
Posts: 6
A
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: Jan 2014
Posts: 6

I don't know if I'm formatting the timers wrong or not?

Code:
on :TEXT:!Test:#amtraxtge:{
  if ($nick !isop $chan)
  timerTest 0 600 { 
    Msg $chan Starting Timer
  }
  else {
    msg $chan $nick You are not allowed to use this command
  }
}


I usually test the timer with 15 sec but I wanted it to go every 10 min or 600 sec. This is for Twitch.tv

I also don't understand how to turn off the timers.


AMTraxTGE #244102 24/01/14 03:08 AM
Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
Code:
on *:text:!test:#: {
  if ($nick isop #) { timerTest 0 600 Msg # Test }
  else { msg # You are not allowed to use this command. }
}

on *:text:!stoptimer:#: {
  timerTest off
}


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Nillen #244105 24/01/14 05:45 AM
Joined: Jan 2014
Posts: 6
A
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: Jan 2014
Posts: 6
Awesome thanks! Your a great help!

Nillen #244107 24/01/14 06:22 AM
Joined: Jan 2014
Posts: 6
A
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: Jan 2014
Posts: 6
when I put the script in it did nothing

I did not get any notification that it started

Code:
on *:text:!test:#: {
  if ($nick isop #) { timerTest 0 600 Msg # Test }
  else { msg # You are not allowed to use this command. }
}

on *:text:!stoptimer:#: {
  timerTest off
}


AMTraxTGE #244110 24/01/14 09:30 AM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Code:
  ; #### Somone else start the timer. He/she need op in the channel ...
on *:text:!test:#: {
  if ($nick isop #) { .timerTest 0 600 Msg # Test | echo -at Timer started ... }
  else { msg # You are not allowed to use this command. }
}
   ; #### Somone else stop the time. Everyone can stop the timer since it dont check for op first.
on *:text:!stoptimer:#: {
  .timerTest off
  echo -at Timer stoped ...
}

If you want to start/stop your timer, then you need to use on input and not on text .. And you maybe also want to check if the timer running befor you want to start it? if ($timer(timerTest)) { msg # Timer already running ... | return }


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Link Copied to Clipboard