Ghost-writer commented on a Page, Away System  -  Nov 26, 2009

Nice tiny dialog, does its thing.

on *:Dialog:Away:Sclick:2: {
  set %ReturnNick $me
  set %AwayNick $did(1).text
}
on *:Dialog:Away:Sclick:4: {
  set %AwayReason $did(3).text
}
on *:Dialog:Away:Sclick:5: {
  nick %AwayNick 
  amsg i am now away because %awayReason
}
on *:Dialog:Away:Sclick:6: {
  .Nick %ReturnNick
  amsg i am now back from %awayReason
}
on *:Dialog:Away:Sclick:7: {
  dialog -x $dname $Dname
}

Can all be put in 1 event, its still good as is but heres what i would do

on *:Dialog:Away:Sclick:*: {
if ($did == 2) {
  set %ReturnNick $me
  set %AwayNick $did(1).text
}
if ($did == 4) set %AwayReason $did(3).text
if ($did == 5) {
nick %AwayNick 
  amsg i am now away because %awayReason
}
if ($did == 6) {
.Nick %ReturnNick
  amsg i am now back from %awayReason
}
if ($did == 7) dialog -x $dname $Dname
}
 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.