mIRC Home    About    Download    Register    News    Help

Print Thread
#94099 13/08/04 10:08 PM
Joined: May 2004
Posts: 39
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: May 2004
Posts: 39
Ok I am wondering , is there a script I can make that if I am gone for a certian time it set my name to <away>

And if at that it couls atuomatically set a away message??
Say if I am gone for 4 minutes it sets my name to away

Say my name is -> Icehydro
I have been gove for 4 minutes it sets away message and my name becomes
Icehydro|Away


Do the monkey!
#94100 13/08/04 10:53 PM
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788

On *:Start:{ .timer 0 60 chkidle }

alias chkidle {
var %minutes = [color:red]4

var %awaynick = Icehydro|Away
if (($idle >= $calc(%minutes * 60)) && (%awaynick != $me)) {
nick %awaynick
}
}
[/color]

The following will START when you run mIRC and every '60' seconds it will check if your $idle time is more than x minutes, if so, it will away nick you, edit the values in red to the values you want.

Note; typing anything into mIRC will reset your idle, so to test the script just add it to the remotes, restart mIRC, connect to a server, and sit and wait, also to make it quicker reduce '4' to '1' so your only waiting 60 seconds for the test.

Eamonn.


Link Copied to Clipboard