Away System

By Bouncer on Apr 10, 2007

This is the second away system I have made. It is not a version 2.0 or anything but all new. The first one was very basic in form. This one is more complicated and carries out more functions. I know this code could probably be cleaned up ALOT seeing as I just threw this together for a friend, but it has been tested and it works fine so I thought I would submit it for you all to use, comment, and judge. Enjoy.

Paste this into the Remotes section of your Scripts Editor (Alt+R)

on *:INPUT:#: {
  if ($1 == brb) {
    set %away on
    set %away.reason $2-
    amsg [ I will be right back ][ Reason: %away.reason ]
    set %duration 0
    inc -c %duration
    away %away.reason
    halt
  }
  if ($1 == bbs) {
    set %away on
    set %away.reason $2-
    amsg [ I will be back soon ][ Reason: %away.reason ]
    set %duration 0
    inc -c %duration
    away %away.reason
    halt
  }
  if ($1 == bbl) {
    set %away on
    set %away.reason $2-
    amsg [ I will be back later ][ Reason: %away.reason ]
    set %duration 0
    inc -c %duration
    halt
  }
  if ($1 == bbiab) {
    set %away on
    set %away.reason $2-
    amsg [ I will be back in a bit ][ Reason: %away.reason ]
    set %duration 0
    inc -c %duration
    halt
  }
  elseif (%away == on) {
    set %away off
    amsg [ I have returned after: $duration(%duration) ][ From: %away.reason ]
  }
}

Comments

Sign in to comment.
Chevy   -  Apr 12, 2007

Hey bro thats a good away system thanks for telling me not to put timers in mine....Cause it was annoying me after returning but yeah i have used your away system.... 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.