mIRC Home    About    Download    Register    News    Help

Print Thread
away autoreply #204281 14/09/08 12:27 PM
Joined: Sep 2008
Posts: 3
J
jay123456 Offline OP
Self-satisified door
OP Offline
Self-satisified door
J
Joined: Sep 2008
Posts: 3
I'm looking for the name of a ready-made script that auto-replies to a query (msg) when i'm away, but only once for the same nick. Thank you.

Last edited by jay123456; 14/09/08 12:27 PM.
Re: away autoreply [Re: jay123456] #204282 14/09/08 12:59 PM
Joined: Jul 2006
Posts: 3,568
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,568
Look at the on open event (/help on open), and then check if you're $away.


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: away autoreply [Re: Wims] #204313 15/09/08 05:37 PM
Joined: Sep 2008
Posts: 3
J
jay123456 Offline OP
Self-satisified door
OP Offline
Self-satisified door
J
Joined: Sep 2008
Posts: 3
"I'm looking for the name of a ready-made script..."

Re: away autoreply [Re: jay123456] #204315 15/09/08 05:51 PM
Joined: Jul 2006
Posts: 3,568
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,568
What you want is only one line of code :
Code:
on *:open:*:?:if ($away) msg $nick I'm away ...


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: away autoreply [Re: Wims] #204317 15/09/08 06:15 PM
Joined: Sep 2008
Posts: 3
J
jay123456 Offline OP
Self-satisified door
OP Offline
Self-satisified door
J
Joined: Sep 2008
Posts: 3
that does it every time, can get you flooded off
-> only once per nick

i'm sure someone already wrote that kind of script, no use in me reinventing the wheel

Re: away autoreply [Re: Wims] #204319 15/09/08 08:10 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Originally Posted By: Wims

Code:
on *:open:*:?:if ($away) msg $nick I'm away ...

You can use levels and give the user a level after message you, then remove the level with a timer, dont know if this is what you looking for.

;------------ EDIT

Code:
on *:open:*:?: {
 if ($level($address($nick,3) != norep)) && ($away) msg $nick I'm away ...
 .auser norep $address($nick,3)
 .timer 1 60 .ruser $address($nick,3)
}

Maybe can be done in a bether way, but this is what i come up with for the moment.

Last edited by sparta; 15/09/08 08:17 PM.

if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Re: away autoreply [Re: sparta] #204358 16/09/08 10:33 PM
Joined: Nov 2006
Posts: 1,559
H
Horstl Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
I suggest to add each msg'd nick to a [$network- or $cid-specific] hash table (and to check for $hget(table,nick) of course), which will be destroyed if the OP is back (raw for "no longer marked away") or automatically on mirc exit.

I cannot write it down right now (there's no mirc on the machine I'm typing at atm) - sorry 4 that, hope it helps none the less.