simple/away — File Browser
simpleawayv1.0 / simpleawayv1.0 / Saway.mrc
Saway.mrc — 1.63 KB — Download this file
;uh this is a simple thing made in like 5 minutes
;i dont care what u think if it
;i dont care if you can script better
;if you are queer and rip it...thats your thing i dont care just give me SOME credit
;wanna bust me that u can do better? go ahead
;i have alot more important things to do in my life then sit my ass on a computer all day and script
;this addon is not meant to "phj33r" or "0wn" anyone...its just to use
;you wont find any advertisement here because i think that shit is bullshit
;people dont care what script you are using so shove it.
;last but not least...enjoy
On 1:LOAD: {
echo -a 3s14imple15/3a14away 15v1b14-3nothingface
echo -a 3usage:14 /gone yourreasonhere
}
alias gone {
set %awayr $1-
.timeraway1 0 1 inc %awtime 1
amsg 3a15way:3[14 $+ %awayr $+ 3]14 $mtime
away %awayr
.timeraway 0 1200 amsg 3a15way:3[14 $+ %awayr - $dur(%awtime) $+ 3]
}
alias back {
away
amsg 3b15ack:3[14 $+ %awayr - $dur(%awtime) $+ 3] 14 $mtime
.timeraway off
.timeraway1 off
unset %awtime
}
alias dur { return $remove($remove($remove($remove($remove($remove($duration($1),ecs),ins),rs),in),ec),$chr(32)) }
alias mtime { if ($gettok($time,1,58) = 0) { return $calc($gettok($time,1,58) + 12) $+ : $+ $gettok($time,2,58) $+ a } | if ($gettok($time,1,58) > 12) { return $calc($gettok($time,1,58)-12) $+ : $+ $gettok($time,2,58) $+ p } | if ($gettok($time,1,58) < 12) { return $gettok($time,1,58) $+ : $+ $gettok($time,2,58) $+ a } | if ($gettok($time,1,58) == 12) { return $gettok($time,1,58) $+ : $+ $gettok($time,2,58) $+ p } }