on *:text:& the & has attained level & next level in & days &:?:{
if $nick == idlerpg {
set %n $1
set %c $3
set %l $7
set %d $11
set %h $gettok($13,1,$asc(:))
set %m $gettok($13,2,$asc(:))
set %s $gettok($13,3,$asc(:))
.timerlevel $calc((86400 * %d) + (%h *3600) + (%m *60) + %s) 1 nlevel $(%n,0)
}
}
alias nlevel {
did -ra dname id %n the %c has attained level %l next level in %d days %h $+ : $+ %m $+ : $+ %s
if %s == 01 {
%s = 60
if %m == 01 {
%m = 60
if %h == 01 {
%h = 60
if %d == 1 { .timerlevel off }
elseif %d > 1 { dec %d }
}
elseif %h > 1 { dec %h }
}
elseif %m > 1 { dec %m }
}
elseif %s > 1 { dec %s }
}