Code:
alias f8 {
  scon -a windows
  if ($timer(deop_and_part)) .timerdeop_and_part off
}
alias windows {
  .timerdeop_and_part 1 60 /deop_and_part
  
  var %z = 1
  while ($chan(%z)) {
    window $iif($window($v1).state == hidden,-w,-h) [ $v1 ]
    inc %z
  }
  window $iif($window(Status Window).state == hidden,-w,-h) "Status Window"
}
alias -l deop_and_part {
  if ($me isop #dynasty_help) { mode #dynasty_help -o $me }
  if ($me isop #helpcom) { mode #helpcom -o $me }
  if ($me isop #dyn_staff) { mode #dyn_staff -o $me }
  if ($me isop #dyn_scripting) { mode #dyn_scripting -o $me }
  if ($me isop #xbc_opers) { mode #xbc_opers -o $me }
  if ($me ison #ascii_art) { part #ascii_art }
  if ($me ison #xbc_help) { part #xbc_help }
  if ($me ison #xbc_game) { part #xbc_game }
}


Untested so let me know if it works, but this should do as prescribed. I added a timer that will go off a minute from pressing the f8 button. If the f8 button is pressed again and the timer is on (i.e. pressed again in the 1 minute window as you mentioned) they will not part/deop.

If you have any questions, please feel free to ask.

Last edited by KingTomato; 04/11/06 05:51 PM.

-KingTomato