• Home
  • Servers
  • Chat
  • Channels
  • Commands
  • Forum
  • FAQ
  • Software
  • Quotes
Topic Options
Rate This Topic
#2656 - 07/18/08 05:32 PM Away notification script
boredcollegekid Offline
newbie

Registered: 12/19/07
Posts: 48
Loc: Tulsa, OK
Message channel:

Code:
on *:TEXT:*:#: {
  if ($me isin $1-) && ($away) && ($network == WyldRyde) && (%nickspro2. [ $+ [ $nick ] ] !== on) {
    if (%nickspro1. [ $+ [ $nick ] ] !== on) { 
      msg $chan Sorry $nick I'm currently away: $awaymsg $+ .
    }
    else { set -u60 %nickspro2. [ $+ [ $nick ] ] on }
    set -u60 %nickspro1. [ $+ [ $nick ] ] on 
  }
}


Notice User:

Code:
on *:TEXT:*:#: {
  if ($me isin $1-) && ($away) && ($network == WyldRyde) && (%nickspro2. [ $+ [ $nick ] ] !== on) {
    if (%nickspro1. [ $+ [ $nick ] ] !== on) { 
      notice $nick Sorry $nick I'm currently away: $awaymsg $+ .
    }
    else { set -u60 %nickspro2. [ $+ [ $nick ] ] on }
    set -u60 %nickspro1. [ $+ [ $nick ] ] on 
  }
}


Notes:
1. Trigger is your current nick
2. Triggerable only on this network, edit out ($network == WyldRyde) if you want to use it on more than one
2. Script ignores a user for 60 seconds after they say your nick to prevent spam
3. If you use the msg channel one you'll want to get approval of channels you want to use it in. otherwise turn # in the first line to channels you want to use

Thanks to H_M-XP for help with the ignore function


Edited by boredcollegekid (07/18/08 05:33 PM)
_________________________

Top
Sponsored Links
Sponsored Links
Member
*****

Registered: 27/08/04
Posts: 10136
Loc: Mountain View, CA
Top
#2717 - 07/23/08 10:59 AM Re: Away notification script [Re: boredcollegekid]
TuxedoJericho Offline
newbie

Registered: 12/24/07
Posts: 42
Loc: Whitesburg, TN
Heh, nice BCK.

Tho, it was quite humorous when we both had the old code and flooded the channel we tested in. smile
_________________________
I am Gary "TuxedoJericho" Greenlee, and I support this message.

Top
#2992 - 08/28/08 02:43 PM Re: Away notification script [Re: TuxedoJericho]
evanrocks010 Offline
n00b

Registered: 05/26/08
Posts: 9
Loc: USA
Hey, I like this script a lot. I use XChat and have a mIRC bot. Is there a way to make the bot notify the user when they highlight me.
e.g.
<John>Ev4n
<Frizzle>Ev4n is currently not here because: <away reason>

If anyone could post a reply that would be awesome!

Top
#3207 - 09/14/08 06:03 PM Re: Away notification script [Re: boredcollegekid]
Jonny Offline
n00b

Registered: 08/31/08
Posts: 22
Loc: Newcastle,UK
How do you edit what networks it works on? do you use WyldRyde,IRC1,IRC2 or WyldRyde IRC1 IRC2?
_________________________
My Personal Blog
Follow me on Twitter

Top
#3210 - 09/16/08 02:40 PM Re: Away notification script [Re: Jonny]
boredcollegekid Offline
newbie

Registered: 12/19/07
Posts: 48
Loc: Tulsa, OK
|| is the or switch in mIRC so it would be ($network == WyldRyde || Network2 || etc.)
_________________________

Top
#4046 - 01/19/09 11:06 AM Re: Away notification script [Re: boredcollegekid]
Jonny Offline
n00b

Registered: 08/31/08
Posts: 22
Loc: Newcastle,UK
hmm, i tryed replacing WyldRyde with my own network name, and it hasnt worked, could you try and figure out why?
_________________________
My Personal Blog
Follow me on Twitter

Top
#4047 - 01/19/09 11:31 AM Re: Away notification script [Re: Jonny]
Hex Offline
n00b

Registered: 01/19/09
Posts: 1
Loc: Rugby, UK
type "//echo -a $network" on your network, make sure you replace WyldRyde with what is shown once you type that command smile

Top
#4157 - 01/30/09 10:25 AM Re: Away notification script [Re: Hex]
iAlex Offline
Over 100 posts

Registered: 09/01/08
Posts: 100
Loc: Kongsvinger, 2209 Norway.
I would find scripts like this really annoying. Let's say the user is named "Mac" or "iPhone" imagine how annoying it is to get a notice every time you say the word mac. Also, most users marks them self as AFK, or away. If the user doesnt find you away by that.. he/she has a problem
_________________________
http://ialex.info
ialex94wr@gmail.com
alex@ialex.info

Top
#4278 - 02/18/09 10:15 PM Re: Away notification script [Re: iAlex]
FordLawnmower Offline
Over 100 posts

Registered: 02/15/09
Posts: 111
Loc: Ohio
I totally agree with you iAlex. I'm sure they have them turned off by now though, haha.
Keep on scripting though boredcollegekid. Your scripting shows lots of promise and it works just like you intended it to smile
_________________________
If you already know everything, You can never learn anything :P

Top


Moderator:  Jeff, mandy, usrbingeek