<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/14021" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2007-09-21T09:05:00-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/14021</id>

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-09-21T09:05:00-04:00</updated>

		<published>2007-09-21T09:05:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76095#p76095</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76095#p76095"/>
		<title type="html"><![CDATA[delay output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76095#p76095"><![CDATA[
<blockquote class="uncited"><div>sorry, type'o <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"> *utimer.<br>Try this: <div class="codebox"><p>Code: </p><pre><code>proc pub:send_nfo {nick host hand chan text} {global mysql set output [mysqlsel $mysql "SELECT * FROM nfo_cache WHERE status  = '0'" -list]  set c 10   foreach row $output {    set c [expr $c +5]     utimer $c putserv "PRIVMSG #pre.nfo-feed :!fetch_nfo [lindex $row 0] [lindex $row 1] [lindex $row 2]"   }; mysqlexec $mysql "UPDATE nfo_cache SET status = '1'"}</code></pre></div> Also try using <div class="codebox"><p>Code: </p><pre><code>set site [lindex $row 0] set section [lindex $row 1]  set rls [lindex $row 2]</code></pre></div> That should send the data to the channel every 10,15,20,25,30 mins ...etc<br><br>P.S i dont know the first thing about mysql, n stuff but as i haven't changed anything other than the lindex(s); it shouldn't affect anything mysql related.</div></blockquote>You're incorrectly using the [utimer] command.<div class="codebox"><p>Code: </p><pre><code>utimer $c [list putserv "PRIVMSG #pre.nfo-feed :!fetch_nfo [lindex $row 0] [lindex $row 1] [lindex $row 2]"]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Sep 21, 2007 9:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2007-09-21T02:55:43-04:00</updated>

		<published>2007-09-21T02:55:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76088#p76088</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76088#p76088"/>
		<title type="html"><![CDATA[delay output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76088#p76088"><![CDATA[
sorry, type'o <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"> *utimer.<br>Try this: <div class="codebox"><p>Code: </p><pre><code>proc pub:send_nfo {nick host hand chan text} {global mysql set output [mysqlsel $mysql "SELECT * FROM nfo_cache WHERE status  = '0'" -list]  set c 10   foreach row $output {    set c [expr $c +5]     utimer $c putserv "PRIVMSG #pre.nfo-feed :!fetch_nfo [lindex $row 0] [lindex $row 1] [lindex $row 2]"   }; mysqlexec $mysql "UPDATE nfo_cache SET status = '1'"}</code></pre></div> Also try using <div class="codebox"><p>Code: </p><pre><code>set site [lindex $row 0] set section [lindex $row 1]  set rls [lindex $row 2]</code></pre></div> That should send the data to the channel every 10,15,20,25,30 mins ...etc<br><br>P.S i dont know the first thing about mysql, n stuff but as i haven't changed anything other than the lindex(s); it shouldn't affect anything mysql related.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Fri Sep 21, 2007 2:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[YooHoo]]></name></author>
		<updated>2007-09-21T02:33:38-04:00</updated>

		<published>2007-09-21T02:33:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76086#p76086</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76086#p76086"/>
		<title type="html"><![CDATA[Re: delay output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76086#p76086"><![CDATA[
<blockquote class="uncited"><div>There is a few. <span style="text-decoration:underline">puthelp</span> which will only send 1 line at a time, you could also looking into using <span style="text-decoration:underline">timer</span> or even <span style="text-decoration:underline">time</span> if you wanted to do it in minuets. <strong class="text-strong">timer</strong> uses seconds, so you could do after each line [expr lineNumber +1]<div class="codebox"><p>Code: </p><pre><code>timer [expr lineNumber +1] putserv "privmsg $channel :hello world!"</code></pre></div> check the docs @ <a href="http://eggheads.org/support/egghtml/1.6.18/tcl-commands.html" class="postlink">http://eggheads.org/support/egghtml/1.6 ... mands.html</a>.</div></blockquote><strong class="text-strong">utimer</strong> uses seconds, <strong class="text-strong">timer</strong> uses minutes.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2706">YooHoo</a> — Fri Sep 21, 2007 2:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-09-21T01:35:26-04:00</updated>

		<published>2007-09-21T01:35:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76085#p76085</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76085#p76085"/>
		<title type="html"><![CDATA[delay output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76085#p76085"><![CDATA[
You can create your own delayed queues here with this script. Download it from:<br><a href="http://barkerjr.net/pub/irc/eggdrop/Scripting/scripts/queues.tcl.tar.bz2" class="postlink">http://barkerjr.net/pub/irc/eggdrop/Scr ... cl.tar.bz2</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Fri Sep 21, 2007 1:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[whittinghamj]]></name></author>
		<updated>2007-09-20T22:50:02-04:00</updated>

		<published>2007-09-20T22:50:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76083#p76083</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76083#p76083"/>
		<title type="html"><![CDATA[delay output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76083#p76083"><![CDATA[
thanks for the info here is what i am actually using the real proc i mean - cos i am not sure how to use your suggested code. I was looking for timer as I need the time delay to be say 10 - 15 seconds<br><div class="codebox"><p>Code: </p><pre><code>proc pub:send_nfo {nick host hand chan text} {putlog 1  global mysql  set output [mysqlsel $mysql "SELECT * FROM nfo_cache WHERE status  = '0'" -list]putlog 2  foreach row $output {putlog 3    set site [lindex $row 1]putlog 4    set section [lindex $row 2]putlog 5    set rls [lindex $row 3]putlog 6    putquick "PRIVMSG #pre.nfo-feed :!fetch_nfo $site $section $rls"putlog 7    mysqlexec $mysql "UPDATE nfo_cache SET status = '1'"  }}</code></pre></div>please ignore the putlog lines for debugging <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7783">whittinghamj</a> — Thu Sep 20, 2007 10:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2007-09-20T22:32:46-04:00</updated>

		<published>2007-09-20T22:32:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76082#p76082</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76082#p76082"/>
		<title type="html"><![CDATA[Re: delay output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76082#p76082"><![CDATA[
There is a few. <span style="text-decoration:underline">puthelp</span> which will only send 1 line at a time, you could also looking into using <span style="text-decoration:underline">timer</span> or even <span style="text-decoration:underline">time</span> if you wanted to do it in minuets. <strong class="text-strong">timer</strong> uses seconds, so you could do after each line [expr lineNumber +1]<div class="codebox"><p>Code: </p><pre><code>timer [expr lineNumber +1] putserv "privmsg $channel :hello world!"</code></pre></div> check the docs @ <a href="http://eggheads.org/support/egghtml/1.6.18/tcl-commands.html" class="postlink">http://eggheads.org/support/egghtml/1.6 ... mands.html</a>.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Thu Sep 20, 2007 10:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[whittinghamj]]></name></author>
		<updated>2007-09-20T21:50:54-04:00</updated>

		<published>2007-09-20T21:50:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76078#p76078</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76078#p76078"/>
		<title type="html"><![CDATA[delay output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76078#p76078"><![CDATA[
Hi yall<br><br>I am trying to delay the time between putserv lines, eg<br><br>line 1<br>(wait ten seconds)<br>line 2<br>(wait another ten sections)<br>line 3<br><br>see what I mean?<br><br>Is there a way to do this - cheers<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7783">whittinghamj</a> — Thu Sep 20, 2007 9:50 pm</p><hr />
]]></content>
	</entry>
	</feed>
