mIRC Home    About    Download    Register    News    Help

Print Thread
#14735 10/03/03 04:27 AM
Joined: Mar 2003
Posts: 29
B
b3th3rS Offline OP
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Mar 2003
Posts: 29
This has gotten to be annoying.. Ok.. First.. I finally got my auto-away working after a help with some ppl from here.. then all suddenly it doesnt work nomore?? i mean i was idling 4 hrs earlier and my nick or autoaway didnt go off...

the code are here..

On *:Connect: {
.timer(autoaway) 0 10 awaychk
}
alias awaychk {
If ($idle > 2700) { nick %away.nick | /ns identify %away.system.nick.pass | amsg 14A15uto-14A15way after 45 mintues } | .timer(autoaway) off
}

#14736 10/03/03 05:29 AM
Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
You have the '/timer off' command outside the braces, so it is being turned off even if $idle < 2700
Code:
On *:Connect: { 
  .timer(autoaway) 0 10 awaychk 
}
alias awaychk { 
  If ($idle &gt; 2700) {
    nick %away.nick
    ns identify %away.system.nick.pass
    amsg 14A15uto-14A15way after 45 mintues
   .timer(autoaway) off
  }
}

#14737 10/03/03 07:04 AM
Joined: Mar 2003
Posts: 29
B
b3th3rS Offline OP
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Mar 2003
Posts: 29
so i have to turn the timer on somewhere?

#14738 10/03/03 07:10 AM
Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
Move ".timer(autoaway) off" to INSIDE the braces (the "{" & "}" chars) so it only triggers if '$idle > 2700', as in the amended code I provided.

#14739 10/03/03 09:34 AM
Joined: Mar 2003
Posts: 29
B
b3th3rS Offline OP
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Mar 2003
Posts: 29
That didnt work.. I idle for 1 hr 24 secs... I dont know.. I think its got with something with my script...


Link Copied to Clipboard