egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Is this possible ? (utimer)

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
NTHosts
Op


Joined: 10 Oct 2005
Posts: 100
Location: UK

PostPosted: Tue Jun 27, 2006 1:09 pm    Post subject: Is this possible ? (utimer) Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
krimson
Halfop


Joined: 19 Apr 2006
Posts: 86

PostPosted: Tue Jun 27, 2006 2:53 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Tue Jun 27, 2006 6:44 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Wed Jun 28, 2006 4:11 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Wed Jun 28, 2006 10:53 am    Post subject: Reply with quote

have you tried using puthelp instead of putserv?
(sometimes it's better to just use the easiest method)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber