I changed this away script entirely, it has some little features.
To use load it into a new script in the remote tab.
right Click a channel background and Away Script will be listed.
I would explain how it works entirely, but I'm feeling lazy.
to be away click away
to be back click back
to check your away status click Status Echo
to cancel going away enter the reason as "cancel-" without the quotes
and if you were to leave to field blank it will set you as away with no reason
when you connect and you are away, it will ask you if you want to still be away, or want to return
fill in the alias values at the bottom for the script to work.
(if there are any problems/errors report them here)
alias back {
if (%imaway == yes) {
.timer 1 0 amsg 11[4Back-From11]4 %awaystatus 11,0[4Gone-for11]112 $duration(%toa)
.timer 1 1 nick $mainnick
.timer 1 2 ns id $mpassword
away
set %imaway no
unset %awaystatus
unset %toa
unset %zomgzomg
.timeroi off
}
else {
noop $?!="You are currently not away. $crlf $+ If you would like to be back from something click Yes."
if ($! == $true) {
amsg 11[4Back-From11]4 $! 11,0[4Gone-for11]112 unknown
}
else {
echo -a very well.
}
}
}
alias status_echo {
if (%imaway == yes) {
echo -a You Are Currently Away
echo -a Reason: %awaystatus
echo -a You Left At: %time.left
echo -a You Have Been Gone For: $duration(%toa)
}
else {
echo -a You Are Not Away
}
}
alias gone {
if (%imaway != yes) {
var %zomgzomg = $?="State Away Reason pl0x."
if (%zomgzomg != $null) && (*cancel-* !iswm %zomgzomg) {
set %imaway yes
amsg 11[4Away11] 11[4Reason11]14 %zomgzomg 11,0[4Left-At11]12 $time
away %zomgzomg
.timer 1 1 nick $awaynick
.timer 1 2 ns id $apassword
set %awaystatus %zomgzomg
set %toa 1
set %time.left $time
.timeroi 0 1 inc %toa 1
}
elseif (*cancel-* iswm %zomgzomg) {
echo -a YOU JUST GOT SAVED
}
elseif (%zomgzomg == $null) {
amsg 11[4Away11] 11[4Reason11]14 No Reason 11,0[4Left-At11]12 $time
away No Reason
.timer 1 1 nick $awaynick
.timer 1 2 ns id $apassword
set %awaystatus No Reason
set %toa 1
set %time.left $time
.timeroi 0 1 inc %toa 1
}
}
elseif (%imaway == yes) {
echo -a You Are Currently Away as " $+ %awaystatus $+ "
}
}
on *:CONNECT:{
if (%imaway == yes) {
var %woo = $?!="Do you wish to still be away? $crlf $+ : $+ %awaystatus $+ : is current"
if (%woo == $true) {
.timer 1 3 amsg 11[4Return-to-Away11] 11[4Reason11]14 %awaystatus 11,0[4Left-At11]12 %sometime
.timer 1 3 away %awaystatus
.timer 1 4 nick $awaynick
.timer 1 5 ns id $apassword
}
elseif (%woo == $false) {
.timer 1 2 amsg 11[4Back-From11]4 %awaystatus 11,0[4Gone-for11]112 $duration(%toa)
.timer 1 1 nick $mainnick
.timer 1 2 ns id $mpassword
away
set %imaway no
unset %awaystatus
unset %toa
unset %zomgzomg
.timeroi off
}
}
elseif (%imaway != yes) && ($me == $awaynick) {
nick $mainnick
ns id $mpassword
}
}
alias awaynick { return YOUR_AWAY_NAME }
alias mainnick { return YOU_MAIN_NAME }
alias mpassword { return YOUR_MAIN_PASSWORD }
alias apassword { return YOUR_AWAY_PASSWORD }
menu channel {
Away Script
.Gone:/gone
.-
.Status Echo:/status_echo
.-
.Back:/back
}
slap