mIRC Homepage
Posted By: jay123456 away autoreply - 14/09/08 12:27 PM
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.
Posted By: Wims Re: away autoreply - 14/09/08 12:59 PM
Look at the on open event (/help on open), and then check if you're $away.
Posted By: jay123456 Re: away autoreply - 15/09/08 05:37 PM
"I'm looking for the name of a ready-made script..."
Posted By: Wims Re: away autoreply - 15/09/08 05:51 PM
What you want is only one line of code :
Code:
on *:open:*:?:if ($away) msg $nick I'm away ...
Posted By: jay123456 Re: away autoreply - 15/09/08 06:15 PM
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
Posted By: sparta Re: away autoreply - 15/09/08 08:10 PM
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.
Posted By: Horstl Re: away autoreply - 16/09/08 10:33 PM
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.
© mIRC Discussion Forums