Hi all am trying to make a /timer for my channel and its not working
ON :TEXT:!m:#: {
if ($2 == on) { timerMessage 0 300 msg #channel }
msg $chan 12##############
msg $chan 12# 11New M 12#
msg $chan 12##############
msg $chan 8#channel Newest M List:
msg $chan 4#############################
msg $chan 6J
msg $chan 6E
msg $chan 6F
msg $chan 6T
msg $chan 6T
msg $chan 6K
msg $chan 8End Of M List.
if ($2 == off) { timerMessage off }
}
Now it comes out once when I type !m in the channel but dose not continue every 5 mins
Any help would be great.
Kind Regards
MoMosaMuzic
on *:text:*:#: {
if ($1 == !m) && ($nick isop $chan) {
if ($2 == setchan) {
set %chan $3
.msg $chan msg chan set to $3
halt
}
elseif ($2 == on) {
if ($timer(msg)) { .msg $chan timer is allready active | halt }
$+(.,timer,msg) 0 300 /output
.msg $chan timer is now activated
halt
}
elseif ($2 == off) {
if (!$timer(msg)) { .msg $chan timer is not active | halt }
$+(.,timer,msg) off
.msg $chan timer is now de-activated
halt
}
else {
.msg $chan more information is needed
}
}
}
alias output {
msg %chan 4#############################
msg %chan 6J
msg %chan 6E
msg %chan 6F
msg %chan 6T
msg %chan 6T
msg %chan 6K
msg %chan 8End Of M List.
}
Hi ovelayer I keep getting
I did change it a bit to
on :text::#: {
if ($1 == !m) && ($nick isop $chan) {
if ($2 == setchan) {
set %chan $3
.msg $chan msg chan set to $3
halt
}
elseif ($2 == on) {
if ($timer(msg)) { .msg $chan timer is allready active | halt }
$+(.,timer,msg) 0 1300 /output
.msg $chan timer is now activated
halt
}
elseif ($2 == off) {
if (!$timer(msg)) { .msg $chan timer is not active | halt }
$+(.,timer,msg) off
.msg $chan timer is now de-activated
halt
}
else {
.msg $chan more information is needed
}
}
}
alias output {
msg $chan 8#MyChanName M List:
msg $chan 4#############################
msg $chan 6J
msg $chan 6E
msg $chan 6F
msg $chan 6T
msg $chan 6T
msg $chan 6K
msg $chan 8End Of M List.
}
mmmm not sure what the output should be like but i would have written it like this
on :text::#: {
if $1 == !m && $CheckOps($nick) {
if $2 == setchan && $left($3,1) == $chr(35) {
%chan = $3
msg $chan msg chan set to $3
halt
}
if $2 == on {
if $timer(msg) {
msg $chan timer is allready active
halt
}
$+(timer,msg) 0 1300 output
msg $chan timer is now activated
halt
}
if $2 == off {
if !$timer(msg) {
msg $chan timer is not active
halt
}
$+(timer,msg) off
msg $chan timer is now de-activated
halt
}
else {
msg $chan more information is needed
}
}
; ### U CAN CHANGE THE ISIN PART TO ALLOW THE TYPES OF OPS EXAMPLE: ~ (+q) = channel owner, & (+a), @ (+o) and so on
alias CheckOps {
if $left($nick($chan,$1).pnick,1) isin ~&@ {
return $true
}
}
alias output {
msg %chan NOT SURE WHAT U WANTED HERE?
msg %chan #############################
msg %chan J
msg %chan E
msg %chan F
msg %chan T
msg %chan T
msg %chan K
msg %chan End Of M List.
}
Thank you very much ovelayer very much greatful :)