alias away2 {
away away
echo -s se ha conectao
.set %horaconect $ctime
timeraway 0 500 /me 0,7 away
}
alias back2 {
away
timeraway off
/me 0,7 Back --> Left On: $asctime(%horaconect) Gone For --> $duration($calc($ctime - %horaconect))
unset %horaconect
}
Result:
<markes as away>
/me away every 500 second
<marked as back>
/me back Left On --> Sat Mar 08 21:24:27 2003 Gone For --> 3hrs 5mins 23secs
Note: This Is just an example of the MANY MANY ways you can acheive what your trying to do, i just used something as similar to what you wrote just to try and make it easier for you to understand