mIRC Home    About    Download    Register    News    Help

Print Thread
#204281 14/09/08 12:27 PM
Joined: Sep 2008
Posts: 3
J
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.
Joined: Jul 2006
Posts: 4,144
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,144
Look at the on open event (/help on open), and then check if you're $away.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #204313 15/09/08 05:37 PM
Joined: Sep 2008
Posts: 3
J
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..."

Joined: Jul 2006
Posts: 4,144
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,144
What you want is only one line of code :
Code:
on *:open:*:?:if ($away) msg $nick I'm away ...


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #204317 15/09/08 06:15 PM
Joined: Sep 2008
Posts: 3
J
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

Wims #204319 15/09/08 08:10 PM
Joined: Feb 2003
Posts: 3,432
S
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,.) }
sparta #204358 16/09/08 10:33 PM
Joined: Nov 2006
Posts: 1,559
H
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.


Link Copied to Clipboard