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

	<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-06-26T09:01:02-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-06-26T09:01:02-04:00</updated>

		<published>2005-06-26T09:01:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51386#p51386</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51386#p51386"/>
		<title type="html"><![CDATA[yet another timer problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51386#p51386"><![CDATA[
txt1 needs 5 args to be passed into it when called. So if you want to call the proc txt1 you'll need to do it this way:<div class="codebox"><p>Code: </p><pre><code>txt1 bla bla2 bla3 bla4 bla5</code></pre></div>but ofcourse you'll have to specify something useful in these arguments, you'll need atleast a nick and a chan for your code.<div class="codebox"><p>Code: </p><pre><code>txt1 somenick * * somechan *</code></pre></div>but I think it'll be redundant anyway.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Jun 26, 2005 9:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Acio]]></name></author>
		<updated>2005-06-26T07:20:16-04:00</updated>

		<published>2005-06-26T07:20:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51382#p51382</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51382#p51382"/>
		<title type="html"><![CDATA[yet another timer problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51382#p51382"><![CDATA[
ah,<br><br>and how would I go about doing that?<br><br>i'm not really into this whole tcl programming yet..(read noobie) <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>I tried putting the arguments after calling txt1 in brackets but its still whining about wanting txt1 in it too..:/<br><br>thanks in advance<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6400">Acio</a> — Sun Jun 26, 2005 7:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-06-26T05:44:17-04:00</updated>

		<published>2005-06-26T05:44:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51381#p51381</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51381#p51381"/>
		<title type="html"><![CDATA[yet another timer problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51381#p51381"><![CDATA[
these 2 lines cause the error in there combination:<br><br>proc txt1 {nick host hand chan arg}<br>utimer 30 txt1<br><br>the utimer is calling txt1 without no arguments, but 5 are needed. and even if it would be called with 5 empty arguments, it would simply stop here: $chan != $basechan<br>you should at least forward $nick and $chan<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sun Jun 26, 2005 5:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Acio]]></name></author>
		<updated>2005-06-25T21:58:23-04:00</updated>

		<published>2005-06-25T21:58:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51379#p51379</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51379#p51379"/>
		<title type="html"><![CDATA[yet another timer problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51379#p51379"><![CDATA[
Ola,<br><br>I have a problem with a timer command.<br><br>when I call utimer as a loop it whines to me about missing arguments.<br><br>here is the script:<br><blockquote class="uncited"><div><br>proc txt1 {nick host hand chan arg} {<br>global basechan handle interval<br>if {$chan != $basechan} {<br>return 0<br>}<br>if {[file exists /home/acio/eggdrop/text/txt1.txt]} {<br>set o_fid [open "/home/acio/eggdrop/text/txt1.txt" "RDONLY"]<br>gets $o_fid txt1msg<br>close $o_fid<br>set channelzahl 0<br>foreach c [channels] {<br>if {[strlwr $c] != [strlwr $basechan]} {<br>incr channelzahl<br>}<br>}<br>if {[string match "*NICK*" $txt1msg]} {<br>set txt1msg [varrep $txt1msg "NICK" $nick]<br>}<br>putserv "PRIVMSG $chan :\[$handle-announcer\] txt1 broadcast msg: $txt1msg"<br>putserv "PRIVMSG $chan :\[$handle-announcer\] is beeing send to $channelzahl channels with an interval of $interval seconds! Watch chanlist with !showchans."<br>set i 0<br>foreach c [channels] { <br>   if {[strlwr $c] != [strlwr $basechan]} { <br>      utimer $interval [list puthelp "PRIVMSG $c :$txt1msg"]<br>  incr i }<br>}<br>} else {<br>putserv "PRIVMSG $chan :\[$handle-announcer\] Error: File not found / no message set"<br>}<br>utimer 30 txt1}<br></div></blockquote>here is what happens if I try it..<br><br>[03:08] Tcl error in script for 'timer2':<br>[03:08] wrong # args: should be "txt1 nick host hand chan arg"<br><br>I've tried pretty much everything. when I add txt1 to the list it just tells me to add another one..<br><br>on a sidenote the rest works fine. I just want it to recurr every X minutes (yes I know that utimer does seconds, it's just for testing purposes)<br><br>does anyone have an idea?<br><br>cous i'm lost :/<br><br>Tried looking online for over 5 hours..haha..<br><br>Thanks in advance!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6400">Acio</a> — Sat Jun 25, 2005 9:58 pm</p><hr />
]]></content>
	</entry>
	</feed>
