mIRC Home    About    Download    Register    News    Help

Print Thread
#5167 06/01/03 12:46 AM
Joined: Dec 2002
Posts: 45
P
piko Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Dec 2002
Posts: 45
Code:
on *:CONNECT: {
timer(autoaway) 0 10 aaway
}

 alias aaway {
  if ($idle > %aatime) {
    setaway autoaway after $calc(%aatime / 60) mins
    .timer(autoaway) off
  }
}
 


well, there seemes to be a problem:
[01:35:24] [@piko-away] back: autoaway after 30 mins ø duration: 4mins 27secs
* Timer (autoaway) activated
-
[01:35:34] [@piko] away: autoaway after 30 mins ø went of at: 01:35:34
* Timer (autoaway) halted

what i need to do is to reset $idle, right? but, how? smile

Last edited by piko; 06/01/03 12:47 AM.
#5168 06/01/03 01:58 AM
Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
/help /resetidle

/resetidle [seconds]
This resets the $idle identifer to zero or to the number of seconds you specify


Link Copied to Clipboard