Brb And Back

By Zerg on Oct 13, 2009

My Brb and Back Tracker for my bot Terran on SwiftIRC (irc.swiftirc.net)

Triggers : Brb, bbl, afk, g2g and Back

And yes, i know you can put it in one trigger, i didn't.
Don't like it? Deal with it, or edit it yourself.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;Zerg's BRB and BACK Scripts--------;;
;;Coded By Zerg----------------------;;
;;Contact on: Irc.swiftirc.net 6667--;;
;;#zergs_list #Terran or #gs-pure----;;
;;All rights reserved.---------------;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

on *:text:*:#:{
  if (brb isin $1-) || (afk isin $1-) || (g2g isin $1-) || (bbl isin $1-) {
    if (%away [ $+ [ $nick ] ] == $null) { 
      set %away [ $+ [ $nick ] ] $2- 
      if (%away [ $+ [ $nick ] ] == $null) { set %away [ $+ [ $nick ] ] n/a } 
      msg $chan 2[4 Away Status 2] [4 $nick is now: Away 2] [4 Reason: %away [ $+ [ $nick ] ] 2] 
      set %away.time. $+ $nick $ctime 
    } 
  }
}
on *:TEXT:*back*:#:{ 
  if (%away [ $+ [ $nick ] ] != $null) { 
    msg $chan 2[4 Away Status 2] [4 $nick is now back! 2][4 Reason for being afk: %away [ $+ [ $nick ] ]  2]  [ 4 Time Away: $duration($calc($ctime - %away.time. [ $+ [ $nick ] ] )) 2] 
    unset %away.time. $+ $nick $ctime 
    unset %away [ $+ [ $nick ] ] 
  } 
}

Comments

Sign in to comment.
SnoooP   -  Apr 09, 2010

Your welcome

 Respond  
Keon191   -  Apr 09, 2010

thanks :]

 Respond  
SnoooP   -  Apr 08, 2010

Here Keon191:

on *:text:*:#:{
  if (brb isin $1-) || (afk isin $1-) || (g2g isin $1-) || (bbl isin $1-) {
    if (%away [ $+ [ $nick ] ] == $null) { 
      set %away [ $+ [ $nick ] ] $2- 
      if (%away [ $+ [ $nick ] ] == $null) { set %away [ $+ [ $nick ] ] n/a } 
      msg $chan [ Away Status ] [ $nick is now: Away ] [ Reason: %away [ $+ [ $nick ] ] ] 
      set %away.time. $+ $nick $ctime 
    } 
  }
}
on *:TEXT:*back*:#:{ 
  if (%away [ $+ [ $nick ] ] != $null) { 
    msg $chan [ Away Status ] [ $nick is now back! ][ Reason for being afk: %away [ $+ [ $nick ] ]  ]  [ Time Away: $duration($calc($ctime - %away.time. [ $+ [ $nick ] ] )) ] 
    unset %away.time. $+ $nick $ctime 
    unset %away [ $+ [ $nick ] ] 
  } 
}
 Respond  
Keon191   -  Apr 08, 2010

can i get this code without the colors :]

 Respond  
TheNitelyfe   -  Jan 03, 2010

ya u c now thx

 Respond  
Jethro   -  Jan 03, 2010

I see, you are both an actor and comedian.

 Respond  
TheNitelyfe   -  Jan 03, 2010

:| he got the joke

 Respond  
SnoooP   -  Jan 02, 2010

well said Jethro n Tippy

 Respond  
Jethro   -  Jan 01, 2010

I agree, Tippy.

Niteyfe, why do you act the way you do? keep your comments constructive, NOT destructive for God's sake. For once in your life, get your act together already, or else continue earning people's disrespect.

 Respond  
Tippy158   -  Jan 01, 2010

Okay, that was uncalled for TheNiteLyfe. Some people have to do these scripts to learn. Some people like these scripts. It's not always about you. So get your head out of your arse and stop being an arse.

Thank you,

Tippy.

And great script man.

 Respond  
Jethro   -  Oct 14, 2009

Suggestion:

on $*:TEXT:/(afk|b(rb|bl|ack)|g2g)/iS:#:{
  if (%away [ $+ [ $nick ] ] == $null) { 
    set %away [ $+ [ $nick ] ] $2- 
    msg $chan 2[4 Away Status 2] [4 $nick is now: Away 2] [4 Reason: %away [ $+ [ $nick ] ] 2] 
    set %away.time. $+ $nick $ctime 
  } 
  if ($regml(1) == back) && (%away [ $+ [ $nick ] ] != $null) { 
    msg $chan 2[4 Away Status 2] [4 $nick is now back! 2][4 Reason for being afk: %away [ $+ [ $nick ] ]  2]  [ 4 Time Away: $duration($calc($ctime - %away.time. [ $+ [ $nick ] ] )) 2] 
    unset %away* 
  } 
}
 Respond  
Zerg   -  Oct 13, 2009

:o

IK YOU

YOUR IN #MSL ALL THE TIME

:OOOOOOo!!!!

 Respond  
TheNitelyfe   -  Oct 13, 2009

VERY USEFUL CAUSE EVERYONE GIVES A DAMN WHEN YOU ARE AND AREN'T AWAY NOT TO MENTION THEIR LOVE FOR ANNOYING RETARDED SCRIPTS TO LET US KNOW WHEN SOMEONE IS AWAY OR BACK

 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.