Top

Channle Timers


mIRC Code
+ 1 likes
Please Register to submit score.
Bookmark and Share
Average Score  10.0 (of 1 scores)
Date Added  Jun 24, 2009
Last Updated  Jun 24, 2009
Tags  channle  custom  multiple  timer  timers  user 

Introduction

This is a timer script where NICKs can place ads/messages in a channle using a 15 minute timer.

Commands
!timer end <nick> - To cancel a nicks timer, Channel staff only
!timer off - Cancel your own timer
!timer on - Make a timer
!timer - Check the status of the timer


Just post it straight into your/bots remotes :)

Grab the Code

on *:TEXT:!timer end*:#:{
  if ($nick isop $chan) || ($nick ishop $chan) || ($nick isowner $chan) || (& isin $nick($2,$1).pnick) {
    if ($3) {
      if ($timer $+ $3 $+ _ $+ $chan) {
        msg $chan Sorry $3 your timer has been canceled by $nick
        timer $+ $3 $+ _ $+ $chan off
      }
      else { msg $chan Sorry $nick $+ , $nick does not have an active timer in place on $chan | halt }
    }
    else { msg $chan You didn't enter a nick, Please use !timer end <nick>. | halt }
  }
  else { msg $chan Sorry, Only channel staff can end a timer for someone else. }
}
on *:TEXT:!timer on*:#:{
  if (!$timer $+ $nick $+ _ $+ $chan) {
    if (!$23) {
        msg $chan Your timer has been activated.
        set %message_ $+ $nick $3-22
        timer $+ $nick $+ _ $+ $chan $+ first 1 2 msg $chan New! $chr(91) $+ $nick $+ $chr(93) $chr(91) $+ $read(Ids.txt, s, $nick) $+ $chr(93) $+ : %message_ $+ $nick
        timer $+ $nick $+ _ $+ $chan 9999 900 msg $chan $chr(91) $+ $nick $+ $chr(93) $chr(91) $+ $read(Ids.txt, s, $nick) $+ $chr(93) $+ : %message_ $+ $nick
      }
      else { msg $chan Sorry $nick $+ , Your timer can only contain a maximum of 20 words. | halt }
    }
    else { msg $chan You already have an active timer for this channle, Please use !timer off to end your current timer. }
}
on *:TEXT:!timer off:#:{
  if ($timer $+ $nick $+ _ $+ $chan) {
    msg $chan $nick Your timer has been de-activated.
    timer $+ $nick $+ _ $+ $chan off
    unset %message_ $+ $nick
    else { msg $chan You do not have an active timer to be de-activated. }
  }
}
on *:TEXT:!timer:#:{
  if ($timer $+ $nick $+ _ $+ $chan) {
    notice $nick Your timer is Online: %message_ $+ $nick
  } 
  else { notice $nick Your timer is Offline, Please use !timer on <message>. }
}
on *:PART:*:#:{
  if ($timer $+ $nick $+ _ $+ $chan) {
    timer $+ $nick $+ _ $+ $chan off
    msg $chan $nick $+ 's timer has been de-activated due to part from the channle.
  }
}
on *:QUIT:*:#:{
  if ($timer $+ $nick $+ _ $+ $chan) {
    timer $+ $nick $+ _ $+ $chan off
    msg $chan $nick $+ 's timer has been de-activated due to quit from the server.
  }
}
 

Comments

  (6)  RSS
Aucun50
Comments: 548
 
mIRC Snippet:  Channle Timers
Posted on Jun 24, 2009 6:10 pm
"Channle Timers" Did you mean "Channel Timers"

PATX
Comments: 389
 
mIRC Snippet:  Channle Timers
Posted on Jun 24, 2009 8:03 pm
Love it. 10/10 :)
jeroen
Comments: 6
 
mIRC Snippet:  Channle Timers
Posted on Aug 16, 2009 9:55 am
When trying the code I'm getting spammed by these errors, even after !timer off

Code:

[16:45:36 | 16-08-09]@LayerS: !timer on Visit us
[16:45:45 | 16-08-09] (°) error: unknown command [ #:{ ]
[16:47:10 | 16-08-09] (°) error: unknown command [ *:#: ]
[16:47:21 | 16-08-09] (°) error: unknown command [ #:{ ]
[16:47:26 | 16-08-09] (°) error: unknown command [ #:{ ]
[16:48:01 | 16-08-09] -LayerS- LAGCHK 8881.902
[16:48:16 | 16-08-09] -LayerS- LAGCHK 8897.112
[16:48:32 | 16-08-09] -LayerS- LAGCHK 8912.322
[16:48:47 | 16-08-09] -LayerS- LAGCHK 8927.533
[16:49:02 | 16-08-09] -LayerS- LAGCHK 8942.743
[16:49:17 | 16-08-09] -LayerS- LAGCHK 8957.953


even continues after restarting mIRC

could it be variables of your script conflicting with some NNscript variables? seeing my lag bar doesnt work either anymore.
Testor
Comments: 82
 
mIRC Snippet:  Channle Timers
Posted on Aug 16, 2009 1:15 pm
I'm sure you could change a lot of the If's from:
Code:
 if ($timer $+ $3 $+ _ $+ $chan) {

to
Code:
 if ($+($Timer,$3,_,$chan)) {
Jethro_
Comments: 437
 
mIRC Snippet:  Channle Timers
Posted on Aug 16, 2009 2:36 pm
@Testor, what difference does it make compared to the original?
Testor
Comments: 82
 
mIRC Snippet:  Channle Timers
Posted on Aug 16, 2009 8:25 pm
Idk, looks a bit nicer imo :\

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom