<?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/9461" />

	<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>2005-04-23T07:52:20-04:00</updated>

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

		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2005-04-23T07:52:20-04:00</updated>

		<published>2005-04-23T07:52:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48464#p48464</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48464#p48464"/>
		<title type="html"><![CDATA[timer - does not give exact results (1minute approx 45 secs)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48464#p48464"><![CDATA[
!trigger [somethingbad] happens if you use that fix<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2369">spock</a> — Sat Apr 23, 2005 7:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pollar]]></name></author>
		<updated>2005-04-23T05:21:32-04:00</updated>

		<published>2005-04-23T05:21:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48458#p48458</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48458#p48458"/>
		<title type="html"><![CDATA[timer - does not give exact results (1minute approx 45 secs)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48458#p48458"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set seconds [expr $minutes * 60]</code></pre></div><div class="codebox"><p>Code: </p><pre><code>utimer [expr $minutes * 60] [list puthelp "PRIVMSG $nick :\0034TIMERARLARM!!!: \0030$xtmsg ist fertig!"] </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2501">pollar</a> — Sat Apr 23, 2005 5:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SIYB]]></name></author>
		<updated>2005-04-22T12:04:59-04:00</updated>

		<published>2005-04-22T12:04:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48438#p48438</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48438#p48438"/>
		<title type="html"><![CDATA[timer - does not give exact results (1minute approx 45 secs)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48438#p48438"><![CDATA[
hmm but if i use utimers, user will have to define their time in seconds won't they? that might be confusing (some users would even bother to try). hmm is there a way to create a list which follows a mathematical pattern (like excel), <br>so that i could make the bot recalculate all times given to him in &lt;minutes&gt; to &lt;seconds&gt;.<br><br>something like:<br>1m = 60s<br>1m = X<br>X * &lt;minutes&gt; = Y<br><br>i know that i probably would have to use:  expr and/or incr , but i have never done it before...so is it possible to set equations like this with tcl? <br><br>siyb<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5812">SIYB</a> — Fri Apr 22, 2005 12:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-04-22T11:29:03-04:00</updated>

		<published>2005-04-22T11:29:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48436#p48436</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48436#p48436"/>
		<title type="html"><![CDATA[timer - does not give exact results (1minute approx 45 secs)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48436#p48436"><![CDATA[
the documentation is missleading, timer triggers on every 0 seconds time, so timer 1 COULD be just 1 sec, but it can be 59 sec, too. But however it will always be &lt; 1 minute. So for small timers (&lt;= 5min) I suggest using utimers.<br><br>PS: the same goes for utimer as well, it triggers on 0 millisec of each second. So using utimer 1 is no accurate way to trigger something exact 1 sec later, for more than ~2sec it will probably be meaningless <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">.<br><br>PPS: the execution can of course be delayed due other blocking procs!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Fri Apr 22, 2005 11:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SIYB]]></name></author>
		<updated>2005-04-22T09:51:06-04:00</updated>

		<published>2005-04-22T09:51:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48430#p48430</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48430#p48430"/>
		<title type="html"><![CDATA[timer - does not give exact results (1minute approx 45 secs)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48430#p48430"><![CDATA[
<blockquote class="uncited"><div>bind pub - ${comchar}${xtimercom1} xtimer<br>##proc:xtimer##<br>proc xtimer {nick host hand chan text} {<br> set text [split $text " "] <br> set xtda [lindex $text 0]<br> set xtmsg [lindex $text 1]<br> set tmsg "$xtmsg"<br> set minutes "$xtda"<br> timer $minutes [list puthelp "PRIVMSG $nick :\0034TIMERARLARM!!!: \0030$xtmsg ist fertig!"]<br> putquick "PRIVMSG $nick :Dein Timer für \"$xtmsg\" wurde auf $minutes Minuten gestellt. Ich werde dir rechtzeitig bescheid geben."<br> putlog "xtimer set by $nick on $chan"<br>} </div></blockquote><br><br>that's it, thx for your help.<br><br>siyb<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5812">SIYB</a> — Fri Apr 22, 2005 9:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2005-04-21T22:50:20-04:00</updated>

		<published>2005-04-21T22:50:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48425#p48425</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48425#p48425"/>
		<title type="html"><![CDATA[Re: timer - does not give exact results (1minute approx 45 s]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48425#p48425"><![CDATA[
Can you provide us the code snippet you are looking at?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Thu Apr 21, 2005 10:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SIYB]]></name></author>
		<updated>2005-04-21T19:48:31-04:00</updated>

		<published>2005-04-21T19:48:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48423#p48423</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48423#p48423"/>
		<title type="html"><![CDATA[timer - does not give exact results (1minute approx 45 secs)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48423#p48423"><![CDATA[
when i tested the pizzatimer i am working on atm i came across something strange:  when i set the timer to 1 minute eggdrop will execute the command after 40something seconds. is that normal? how do i change it if it isn't?<br><br>siyb<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5812">SIYB</a> — Thu Apr 21, 2005 7:48 pm</p><hr />
]]></content>
	</entry>
	</feed>
