Alright. Here is my away script. It works but the only thing missing is an auto-away for idling script. Anybody that wants to use it, feel free to. (although it sucks kinda). I got the "alias" script for idle. I'm not sure how to apply it though. My friend suggested a "while" loop which I am not familiar with. Maybe "on *:connect: {" ? I'm not too sure.
Code:
Alias f4 {
  if (!%awaystatus) {
    set %awayreason $?"Away Reason:" | if ($! == $null) { set %awayreason Away }
    set %awaynick Relin $+ $?"Away Tag:" | if ($! == $null) { set %awaynick RelinAway }
    ame 3,1i15s 3a15way 14[ 15 $+ %awayreason 14] [ 15 $+ $asctime(h:nn:sstt) 14] [ 3$15quishy3$15cript 14]
    set -s %awaytime 0
    inc -c %awaytime 1
    away %awayreason
    nick %awaynick
    set %awaystatus away
  }
  if (%awaystatus == back) {
    set %awayreason $?"Away Reason:" | if ($! == $null) { set %awayreason Away }
    set %awaynick Relin $+ $?"Away Tag:" | if ($! == $null) { set %awaynick RelinAway }
    ame 3,1i15s 3a15way 14[ 15 $+ %awayreason 14] [ 15 $+ $asctime(h:nn:sstt) 14] [ 3$15quishy3$15cript 14]
    set -s %awaytime 0
    inc -c %awaytime 1
    away %awayreason
    nick %awaynick
    set %awaystatus away
  }
  Elseif (%awaystatus == away) {
    ame 3,1i15s 3b15ack 14[ 15 $+ %awayreason 14] [ 15 $+ $duration(%awaytime) 14] [ 3$15quishy3$15cript 14]
    ni
    set %awaystatus back
    away
    unset %awayreason
    unset %awaynick
    unset %awaytime
  }
}
Alias idleaway {
  if (%awaystatus == back) && ($idle >= 900) {
    set %awayreason Idle
    set %awaynick RelinAway
    ame 3,1i15s 3a15way 14[ 15 $+ %awayreason 14] [ 15 $+ $asctime(h:nn:sstt) 14] [ 3$15quishy3$15cript 14]
    set -s %awaytime 0
    inc -c %awaytime 1
    away %awayreason
    nick %awaynick
    set %awaystatus away
  }
}
 


Last edited by Relinsquish; 09/04/04 05:00 AM.

- Relinsquish