Away System

By DragonFlare on Jul 22, 2008

This is a basic away system i decided to script when i was bored.

menu * {
  -=[ Easy Away System ]=-
  ..-=[ Go Away ]=-:{
    .set %away $$?="-=[ Reason of away ]=-"
    .away %away 
    .amsg 4,1I 4,1a15,1m 4,1n15,1o4,1w 4,1a15,1w4,1a15,1y4,1, 15,1R4,1e15,1a4,1s15,1o4,1n15,1:9,1 %away $+ .
  }

  ..-=[ Come Back ]=-:{  
    .away  
    .amsg 4,1I 4,1a15,1m 4,1n15,1o4,1w 4,1b15,1a4,1c15,1k4,1, 15,1R4,1e15,1a4,1s15,1o4,1n15,1:9,1 %away $+ .  
  }
}

Comments

Sign in to comment.
Typo   -  Jul 22, 2008

Keep in mind, you don\'t need to use /\'s inside of scripts.

Also if you didn\'t know about them check out the $awaytime and $awaymsg identifiers. Theyre very handy and could be used for instance when you come back to announce why you left and how long you were gone. $awaymsg stores the reason you set when you set yourself away or returns \"User is away\" if no reason was given. $awaytime returns the total amount of seconds you have been set top away so make sure you check it before you set back so it isnt null. To convert the seconds into readable time use $duration($awaytime).

Also, you forgot to unset %away when the user returns and your using two .\'s in your menues when you only need one . For instance,
..-=[ Come Back ]=-:{
should be
.-=[ Come Back ]=-:{

Good luck.

 Respond  
DragonFlare   -  Jul 22, 2008

i hope this script dont upset you guys thought i would pst it i know its really really short but it is a little useful

 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.