-= Awaysys V1.0 =-

By Da_DoN on Nov 20, 2004

a dialog away system

dialog awaysys {
  title "-= Away System =-"
  size -1 -1 128 117
  option dbu
  text "Welcome to the away system dialog by Da_DoN.            This dialog is easy to use. ENJOY!!!!", 1, 3 4 120 14
  edit "", 2, 20 32 91 10
  text "Away Reason", 3, 46 25 39 7
  edit "", 4, 38 51 50 10
  text "Away Nick", 5, 46 43 35 7
  button "Go Away", 6, 34 70 50 8
  button "Come Back", 7, 34 81 50 8
  button "Quit Dialog", 8, 34 91 50 8, cancel
  box "Option Menu", 9, 31 62 61 42
}
on *:dialog:awaysys:sclick:6:{ 
  if (%awaysys == on) { echo -a 2Your already away | halt }
  else {
    set %awaysysmenick $me
    set %awaysys on
    set %awaysysmsg $did(awaysys,2).text
    set %awaysysnick $did(awaysys,4).text
    set %time $asctime
    amsg I am now away - [Reason] %awaysysmsg
    nick %awaysysnick
  }
}
on *:dialog:awaysys:sclick:7:{
  if (%awaysys == on) {
    set %awaysys off
    amsg I am now back from - [Reason] %awaysysmsg since %time
    nick %awaysysmenick
    else {
      echo -a You are not set as away
    }
  }
}

Comments

Sign in to comment.
Da_DoN   -  Nov 27, 2004

what ?

 Respond  
nobody   -  Nov 26, 2004

Under the \'nick %awaysysnick\', put \'away %awaysysmsg\'. That\'s for the going \'away\'. Now for gonig \'back\' add \'away\' under the \'nick %awaysysmenick\'.

 Respond  
DarthReven   -  Nov 20, 2004

your script doesn\'t mark you as away

 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.