extreem12

extreem12

Joined:
Sep 28, 2011

Activity Stream

extreem12 posted a Snippet  -  Jun 12, 2012
extreem12 commented on a Snippet, 2012 countdown  -  Sep 28, 2011
i have another contdown for you for topic and with timers
automatich sorry for my bad english
here the script
*************
alias dur {
var %i = $duration($1)
return $replace(%i,wks,weeks,wk,week,hr,hour,hrs,hours,$iif(mins isin %i || min isin %i,$ifmatch),$iif(mins isin %i,minutes,$iif(min isin %i,minute)),$iif(secs isin %i || sec isin %i,$ifmatch),$iif(secs isin %i,seconds,$iif(sec isin %i,second)))
}
alias xmas {
var %j = $calc($ctime(December 25 $asctime(yyyy) 00:00:00) - $ctime)
if (%j < 0) { var %j = $calc($ctime(December 25 $calc($asctime(yyyy) +1) 00:00:00) - $ctime) }
;Change this line if you wish.
msg $chan There is $dur(%j) until Christmas!
}
alias new-year {
var %j = $calc($ctime(January 1 $asctime(yyyy) 00:00:00) - $ctime)
if (%j < 0) { var %j = $calc($ctime(January 1 $calc($asctime(yyyy) +1) 00:00:00) - $ctime) }
;Change this line if you wish.
.msg $chan 0,12nog4 $dur(%j) tot 0,4Nieuwjaar!!!!
if (%j <= 43200) {
;Change this line if you wish.
.timer_newyear 1 %j scon -rat1 amsg 1Happy New Years! 2Happy New Years! 3Happy New Years! 4Happy New Years! 5Happy New Years! 6Happy New Years! 7Happy New Years! 8Happy New Years! 9Happy New Years!
}
}
alias vday {
var %j = $calc($ctime(February 14 $asctime(yyyy) 00:00:00) - $ctime)
if (%j < 0) { var %j = $calc($ctime(February 14 $calc($asctime(yyyy) +1) 00:00:00) - $ctime) }
;Change this line if you wish.
msg $chan There is $dur(%j) until Valentine Day!
}

on *:text:!nieuw-jaar:#: {
/new-year
set %chan $chan
}

on 50:text:!startn:#: {
msg $chan aftellen is begonnen
.timer_nj 0 10 /new-year $chan
}

on 50:text:!topic:#: {
/topic
timer 0 60 /topic
}

alias topic {
var %j = $calc($ctime(January 1 $asctime(yyyy) 00:00:00) - $ctime)
if (%j < 0) { var %j = $calc($ctime(January 1 $calc($asctime(yyyy) +1) 00:00:00) - $ctime) }
topic $chan 0,12het is nog4 $dur(%j) tot 0,4Nieuwjaar!!!!
if (%j <= 43200) {
;Change this line if you wish.
.timer_newyear 1 %j scon -rat1 topic $chan 1Happy New Years! 2Happy New Years! 3Happy New Years! 4Happy New Years! 5Happy New Years! 6Happy New Years! 7Happy New Years! 8Happy New Years! 9Happy New Years!
}
}



on 50:text:!stopn:#: {
/nieuwjaar off
}
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.