Easy to use away script

By Nachos on Dec 25, 2006

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

Comments

Sign in to comment.
IcE^__   -  Dec 24, 2007

Good! Nice Job

 Respond  
BALTAZAR666   -  Feb 11, 2007

Nice! Good Job!

 Respond  
mysterycool   -  Jan 02, 2007

Nice! Like it! Good Job!

 Respond  
Nachos   -  Dec 26, 2006

I hate the \"$me is now away: $awayreason\" it spams when someone PMs me.

 Respond  
xDaeMoN   -  Dec 26, 2006

Why make another one when /away can do that too. ;)

 Respond  
Nachos   -  Dec 26, 2006

Doesn\'t $awaytime use /away to set $ctime? \'Cause I\'m using /afk to set the AFK.

 Respond  
xDaeMoN   -  Dec 25, 2006

No need to use variables for this since mIRC has it\'s built-in $awaymsg & $awaytime. ;)

/help $awaymsg
/help $awaytime

 Respond  
Lindrian   -  Dec 25, 2006

Great Job Nachos. It\'s really starting looking good!

 Respond  
Nachos   -  Dec 25, 2006

Working on the menu now, getting help from Lindrian since I\'ve never worked with those before. :x

 Respond  
Lindrian   -  Dec 25, 2006

Nachos, try to add a menu. You know, most of the people who uses theese scripts never thinks of typing all the commands and they rather use a menu!
But as It is right now, its okay.

 Respond  
ZabuzaMomochi   -  Dec 25, 2006

You could make it way better by making a dialog, but other than that its good.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.