Away Script...

By Stealth on Jan 22, 2005

This is just a simple away script, it tells people why you have gone and when you come back it tells them why you left and how long you were gone for... it has a logger for what people need to say to you... just type /away to leave and /away to come back.

Alias Away {
  if (%away == $null) { 
    Away $1-
    set %reason $$?="Why Are You Going?"
    /ame -=-I Am Now Away...-=- | Reason: %Reason | -=- I Am Now Away...-=-
    //set %duration 0
    /inc -c %duration
    /set %away yes
    /window -w @Away
    //echo @away THIS WINDOW WILL SHOW PEOPLE WHO HAVE EITHER SAID SOMETHING TO YOU OR HAVE TRIED TO CONTACT YOU!
    /set %nick $me
    /nick $$?="Change Your Nick To What?"
    halt
  }
  if (%away != $null) {
    Away
    /ame -=-I Am Now Back...-=- | Reason: %reason | Gone For: $duration(%duration) | -=-I Am Now Back...-=-
    /unset %reason
    /unset %duration
    /unset %away
    /nick %nick
    /unset %people
    halt
  }
}
on *:text:*:*: {
  if (%away == yes) && ($me isin $1- ) {
    //notice $nick Sorry $nick I Am Currently Away, I Have Been Gone For $duration(%duration)
    //echo @away $asctime([HH:nn:ss]) < $+ $nick $+ > $1-
  }
}

Comments

Sign in to comment.
Stealth   -  Jan 24, 2005

StonedStoner i made it like this because i didnt want it too be like the built in one.. if i wanted it like that i dont think i would have posted it

 Respond  
bxn   -  Jan 23, 2005

how do you make the im away and why and im back and i was gone for in colours?

 Respond  
StonedStoner   -  Jan 22, 2005

and another reason to do $1- is so it matches ur other away built into mirc

 Respond  
StonedStoner   -  Jan 22, 2005

well i havnt completly looked it over but it looks good and instead of $$?=\"Why Are You Going?\" u could try $1- so then u dont get one of those annoying ass pop up windows..

 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.