WorldDMT commented on a Page, Simple/Auto/Multiserver Away System  -  May 18, 2010

for init u dont need to use did -ra $dname ID %var just put the %var in the dialog

like this

dialog AW {
  title "Away System"
  size -1 -1 195 83
  option dbu
  button "Go Away", 1, 6 8 37 12
  button "Come Back", 2, 6 42 37 12
  button " Change Reason", 3, 6 20 37 22, multi
  check " Set Prefix With Your nick +", 15, 49 6 76 8
  edit %awayn, 16, 125 4 65 11, autohs
  check " Set a Prefixed Away nick:", 17, 49 17 73 10
  edit %away.pr.nick, 18, 125 17 65 11, autohs
  check " Auto Away After idling for", 7, 49 32 73 10
  edit $calc(%away.idle / 60), 8, 125 31 19 11, autohs center
  text " minutes!", 9, 146 33 27 8
  button "Exit!", 10, 153 69 37 12, ok
  check " */ame* Reason every", 12, 49 45 73 10
  edit $calc(%amereasondelay / 60), 13, 125 45 19 11, autohs center
  text " minutes!", 6, 146 48 27 8
  text "Simple/Auto/Multi Away System by dRain ;P", 4, 6 71 106 8, disable
  check " Disable Sounds While Away", 5, 49 57 79 10
}
on *:DIALOG:AW:*:*: {
  if $devent == init {
    if (%AAWAY == On) did -c $dname 7
    if (%amereason == On) did -c $dname 12
    if (%dis.aw.snd == On) did -c $dname 5
    did -c $dname $iif(%_awayn == 1,15,17)
  }
 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.