This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post . Click the X in the top right-corner of this box to dismiss this message.
Old posts that have not been replied to for several years.
TRiLoGY
Voice
Posts: 2 Joined: Sat Jul 23, 2005 7:16 pm
Post
by TRiLoGY » Sat Jul 23, 2005 7:19 pm
Hi there
How can I make the script pause/sleep 250 millisecods between two commands, like this:
Code: Select all
putserv "NOTICE $nick :First message"
#sleep 250 ms
putserv "NOTICE $nick :Second message"
If it is only possible to sleep onde second or more, say it, it might help.
Regards,
TRiLoGY
demond
Revered One
Posts: 3073 Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:
Post
by demond » Sat Jul 23, 2005 7:23 pm
why would you want to do that?
TRiLoGY
Voice
Posts: 2 Joined: Sat Jul 23, 2005 7:16 pm
Post
by TRiLoGY » Sat Jul 23, 2005 7:29 pm
i'm gathering information from a mysql table and it sends the messages to some members, but i don't want to send all messages imediatly, i want to pause betwen them, so the won't get banned by flood
demond
Revered One
Posts: 3073 Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:
Post
by demond » Sat Jul 23, 2005 8:10 pm
see my code in
this thread
Ofloo
Owner
Posts: 953 Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:
Post
by Ofloo » Mon Jul 25, 2005 8:25 am
i think he wants to use ms instead of seconds you can do this using after
then use
update somewhere in a while.. to call back on it ..
or just add
and it will block for 250 ms, but remember it will block everything
XplaiN but think of me as stupid
demond
Revered One
Posts: 3073 Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:
Post
by demond » Mon Jul 25, 2005 1:26 pm
no need for [update], eggdrop maintains the Tcl event loop on its own, this is not tclsh (and I think we have already discussed that some time ago
Ofloo
Owner
Posts: 953 Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:
Post
by Ofloo » Mon Jul 25, 2005 1:41 pm
hehe sorry didn't mean to be a wizeass just have been away from the forum for a while
just was trying to help ..
hehe
tnx for the update notice good to know
wasn't sure about it..
XplaiN but think of me as stupid