mIRC Homepage
Posted By: b3th3rS gahhh.. so annoying - 10/03/03 04:27 AM
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
}
Posted By: Nimue Re: gahhh.. so annoying - 10/03/03 05:29 AM
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
  }
}
Posted By: b3th3rS Re: gahhh.. so annoying - 10/03/03 07:04 AM
so i have to turn the timer on somewhere?
Posted By: Nimue Re: gahhh.. so annoying - 10/03/03 07:10 AM
Move ".timer(autoaway) off" to INSIDE the braces (the "{" & "}" chars) so it only triggers if '$idle > 2700', as in the amended code I provided.
Posted By: b3th3rS Re: gahhh.. so annoying - 10/03/03 09:34 AM
That didnt work.. I idle for 1 hr 24 secs... I dont know.. I think its got with something with my script...
© mIRC Discussion Forums