It's a simple away script, but just works. It tells your away time, and when you set away, it tells people your current time.
[Upgrade #1]
Added a menu. Just click the right button in the channel window, then click "Away script", then go to "Away" and click "Away". Then enter your away reason. For setting back, just do the same, but click "Back" instead of "Away". You can also disable the script, by going to "Away script", then "Management" and click the upper button. It will switch from on to off, and from off to on. All credits go to Lindrian for making me the menu!
[Upgrade #2]
Added an away nick. This is optional. You can find it under the "Management" section, when you click "Nicks", you first fill in your away nick, press ok, then fill in your away nick. Oh, I also added a button to quickly unset your away and back nick, which is also under "Management". Then click "Unset away/back nick".
[Upgrade #3]
Added prefixed away reasons.
;##################################
;# Awayscript v1.2 by Nachos #
;# Thanks Lindrian for helping me #
;# out with the menu! #
;##################################
;##################################
;# You can always contact me at: #
;# irc.deltaanime.net -> #nachos #
;##################################
Menu * {
Script
.Awaysystem
..Management
...Away script by Nachos $iif($group(#Awayscript) == on,off,on) : $iif($group(#Awayscript) == on,disable,enable) #Awayscript
...Advertise: describe $active is using away system version 1.2 by: Nachos. Get it now at http://www.hawkee.com/snippet.php?snippet_id=2212 (Menu by Lindrian, thanks!)
...Nicks: set %afk.nick $?"What awaynick would you like to use?" | set %bck.nick $?"What nick would you like to use when you come back?" | echo Away nick set to %afk.nick $+ , back nick set to %bck.nick $+ .
...Unset away/back nick: unset %afk.nick | unset %bck.nick | echo Away nick and back nick unset.
..Away
...Away (Custom reason): afk $?"Enter your away reason."
...Away (Prefixed reason)
....Sleeping: afk ZzZleeping
....Just away: afk just away
....Food: afk food! NEED FOOD!
....School: afk school..
....Work: afk working..
....Shower: afk getting wet while naked (shower)
...Back: bck | unset %afk.message | unset %afk.time
}
#awayscript on
alias afk {
set %afk on
set %afk.message $1-
set %afk.time $ctime
echo Away on, reason: %afk.message $+ .
amsg Now away:10 %afk.message $+ . Time is now:10 $time $+ .
nick %afk.nick
}
alias bck {
amsg Back from:10 %afk.message $+ , gone for10 $duration($calc($ctime - %afk.time)) $+ .
nick %bck.nick
set %afk off
unset %afk.message
echo Back from away, gone for $duration($calc($ctime - %afk.time)) $+ .
}
#awayscript end