My Away Script. Version: better than before

By Sephiroth1n6 on Oct 09, 2007

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
}

Comments

Sign in to comment.
Sephiroth1n6   -  Nov 06, 2007

i dont like making dialogs >.>

dma  -  Oct 31, 2015

slap

Sign in to comment

Tippy   -  Oct 14, 2007

You should make it a dialog instead of people having to change it 24/7 for the stupid nicknames; )

 Respond  
Sephiroth1n6   -  Oct 09, 2007

i would make it so if you have nothing as a away msg it would stop and tell you to put a msg in but i only know how to do that with goto and i don\'t feel like editing too much lol >.<

 Respond  
Sephiroth1n6   -  Oct 09, 2007

since i edited it in my mIRC i guess i will edit it lol

 Respond  
Kyousoukyoku   -  Oct 09, 2007

You should put the amsg before the $awaymsg because I think that will return $null if you are not away anymore.

 Respond  
guest598594   -  Oct 09, 2007

u could use aliases/menus to set things like nicks and ns id

also u should check if ($1) so that if u type just /gone, the reason wouldnt be blank, either that, or if u dont supply $1, take reason part out

 Respond  
Sora-   -  Oct 09, 2007

Nice work. :)

 Respond  
Sephiroth1n6   -  Oct 09, 2007

i hope someone finds this useful :p

 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.