| View previous topic :: View next topic |
| Author |
Message |
NTHosts Op
Joined: 10 Oct 2005 Posts: 100 Location: UK
|
Posted: Tue Jun 27, 2006 1:09 pm Post subject: Is this possible ? (utimer) |
|
|
say i have a simple responder script that says a few lines like...
| Code: |
putserv "msg $chan :bleah"
putserv "msg $chan :bleah"
putserv "msg $chan :bleah"
putserv "msg $chan :bleah"
|
is it possible to set utimers between them like..
| Code: |
putserv "msg $chan :bleah"
utimer 1
putserv "msg $chan :bleah"
utimer 1
putserv "msg $chan :bleah"
utimer 1
putserv "msg $chan :bleah"
|
so it says the next like exactly a second later ? _________________ www.NT-Hosts.Net - More than just a host |
|
| Back to top |
|
 |
krimson Halfop

Joined: 19 Apr 2006 Posts: 86
|
Posted: Tue Jun 27, 2006 2:53 pm Post subject: |
|
|
they would just print out one after another, but one second later than the first time
i would suggest using utimer in utimer. something like this:
| Code: | utimer 1 { putserv "msg $chan :bleah"
utimer 1 { putserv "msg $chan :bleah"
utimer 1 { putserv "msg $chan :bleah"
[...]
}
}
} |
it should do what you want |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Tue Jun 27, 2006 6:44 pm Post subject: |
|
|
| Code: | putserv "msg $chan :bleah"
utimer 1 [list putserv "msg $chan :bleah"]
utimer 2 [list putserv "msg $chan :bleah"]
utimer 3 [list putserv "msg $chan :bleah"] |
_________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
De Kus Revered One

Joined: 15 Dec 2002 Posts: 1361 Location: Germany
|
Posted: Wed Jun 28, 2006 4:11 am Post subject: |
|
|
As long there is a server queue, it cannot be determined how many seconds it delays. Per default the queue cycle is every 2 secs, so its impossible to have 1 second delay. And still then (when you decrease it in server.c, use putquick or putdccraw), IRC is a laggy thing and 1-2 seconds go missing in some netlag pretty fast. _________________ De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens... |
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Wed Jun 28, 2006 10:53 am Post subject: |
|
|
have you tried using puthelp instead of putserv?
(sometimes it's better to just use the easiest method) |
|
| Back to top |
|
 |
|