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

	<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>2004-12-10T04:21:55-04:00</updated>

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

		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2004-12-10T04:21:55-04:00</updated>

		<published>2004-12-10T04:21:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43803#p43803</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43803#p43803"/>
		<title type="html"><![CDATA[Any there can help me a bit ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43803#p43803"><![CDATA[
Ok, all right <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Fri Dec 10, 2004 4:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Psx|Dk]]></name></author>
		<updated>2004-12-09T15:14:41-04:00</updated>

		<published>2004-12-09T15:14:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43785#p43785</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43785#p43785"/>
		<title type="html"><![CDATA[Any there can help me a bit ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43785#p43785"><![CDATA[
Didn't notice you had made a edit of your previous post !<br><br>Thanx alot for the quick and good help <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3698">Psx|Dk</a> — Thu Dec 09, 2004 3:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2004-12-09T12:57:42-04:00</updated>

		<published>2004-12-09T12:57:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43764#p43764</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43764#p43764"/>
		<title type="html"><![CDATA[Any there can help me a bit ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43764#p43764"><![CDATA[
Tested in my egg:<div class="codebox"><p>Code: </p><pre><code>[17:55:14] &lt;CrazyCat&gt; .tcl set stats "\[E\] 30 \[G\] 11 \[H\] 8 \[S\] 1"[17:56:25] &lt;CrazyCat&gt; .tcl foreach {key val} $stats { putlog "$key is $val" }[17:56:26] &lt;Viviane&gt; [17:55] tcl: evaluate (.tcl): foreach {key val} $stats { putlog "$key is $val" }[17:56:26] &lt;Viviane&gt; [17:55] [E] is 30[17:56:26] &lt;Viviane&gt; [17:55] [G] is 11[17:56:26] &lt;Viviane&gt; [17:55] [H] is 8[17:56:26] &lt;Viviane&gt; [17:55] [S] is 1</code></pre></div>It works, so I can't help you more...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Thu Dec 09, 2004 12:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Psx|Dk]]></name></author>
		<updated>2004-12-09T12:04:54-04:00</updated>

		<published>2004-12-09T12:04:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43761#p43761</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43761#p43761"/>
		<title type="html"><![CDATA[Any there can help me a bit ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43761#p43761"><![CDATA[
CrazyCat that are almost there <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>looks like this now<br><br>is [A]<br>is 19<br>is [H]<br>is 4<br>is <em class="text-italics"><br>is 1<br><br>acutaly need it like<br><br>[A] 19<br>[H] 4<br><em class="text-italics"> 1</em></em><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3698">Psx|Dk</a> — Thu Dec 09, 2004 12:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2004-12-09T11:35:14-04:00</updated>

		<published>2004-12-09T11:35:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43754#p43754</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43754#p43754"/>
		<title type="html"><![CDATA[Any there can help me a bit ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43754#p43754"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>foreach {key value} $stats {   putserv "PRIVMSG $chan :$key is $value"}</code></pre></div><span style="font-size:75%;line-height:116%">Edited: I'm too tired 2day <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></span><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Thu Dec 09, 2004 11:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2004-12-09T11:07:16-04:00</updated>

		<published>2004-12-09T11:07:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43750#p43750</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43750#p43750"/>
		<title type="html"><![CDATA[Any there can help me a bit ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43750#p43750"><![CDATA[
what's there to be lost into?<br><br>you simply lappend your data pairs to a list and then:<div class="codebox"><p>Code: </p><pre><code>foreach {element1 element2} $thelist {# do something with these elements# ...}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Thu Dec 09, 2004 11:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Psx|Dk]]></name></author>
		<updated>2004-12-09T10:55:27-04:00</updated>

		<published>2004-12-09T10:55:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43748#p43748</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43748#p43748"/>
		<title type="html"><![CDATA[Any there can help me a bit ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43748#p43748"><![CDATA[
Ohhh<br><br>you lost me there <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br>not alle the time there are the same values in stats !<br><br>[*] there can be one or many more<br><br>and info inside [] can be difrent to<br><br>1.<br>$stats = [A] 15 [C] 9<br><br>or<br><br>2.<br>$stats = [E] 30 [G] 11 [H] 8 [S] 1<br><br>hope you follow what im trying to tell <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>ohhh yeah it will always set the biggest numbre first <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3698">Psx|Dk</a> — Thu Dec 09, 2004 10:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2004-12-09T11:08:48-04:00</updated>

		<published>2004-12-09T10:43:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43743#p43743</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43743#p43743"/>
		<title type="html"><![CDATA[Any there can help me a bit ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43743#p43743"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set x {[A] 12 [B] 11 [C] 10 [D] 9 [E] 8 [F] 7}foreach {a b} $x {puthelp "privmsg $chan :$a $b"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Thu Dec 09, 2004 10:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Psx|Dk]]></name></author>
		<updated>2004-12-09T10:42:14-04:00</updated>

		<published>2004-12-09T10:42:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43742#p43742</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43742#p43742"/>
		<title type="html"><![CDATA[Any there can help me a bit ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43742#p43742"><![CDATA[
Well how do i get it to out put if i split em to there are no more ?<br><br>i can use a [lindex *<br><br>db output stored in $stats<br><br>set split [split $stats "\["]<br><br>if { [lindex $split 0] == ""  } {<br>    set msg ""<br>} else {<br>    set msg "[lindex $split 0]"<br>}<br><br>but how do i get it to cuntinure to all data are used ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3698">Psx|Dk</a> — Thu Dec 09, 2004 10:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2004-12-09T10:20:32-04:00</updated>

		<published>2004-12-09T10:20:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43741#p43741</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43741#p43741"/>
		<title type="html"><![CDATA[Any there can help me a bit ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43741#p43741"><![CDATA[
split on a particular character, as "[" and then you have the couple:<br>A] 10 <br>B] 4<br>C] 1<br><br>Now, you can split each on "]" and then you have each separates values <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Thu Dec 09, 2004 10:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Psx|Dk]]></name></author>
		<updated>2004-12-09T09:00:56-04:00</updated>

		<published>2004-12-09T09:00:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43738#p43738</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43738#p43738"/>
		<title type="html"><![CDATA[Any there can help me a bit ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43738#p43738"><![CDATA[
ì extract this from a database !<br>[A] 10 <strong class="text-strong"> 4 [C] 1<br><br>how do i make code so it shows up like that in chan ?<br><br>[A] 10<br><strong class="text-strong"> 4<br>[C] 1<br><br>i know i can make <br>putserv "PRIVMSG $chan : [lindex $var 0] [lindex $var 1]<br>putserv "PRIVMSG $chan : [lindex $var 2] [lindex $var 3]<br>putserv "PRIVMSG $chan : [lindex $var 4] [lindex $var 5]<br><br>but the amount of</strong></strong> [*] in the info can be from 1 to 15 mabye more<br>etc. [A] 12 <strong class="text-strong"> 11 [C] 10 [D] 9 [E] 8 [F] 7<br><br>and then oupput<br><br>[A] 12 <br><strong class="text-strong"> 11 <br>[C] 10 <br>[D] 9 <br>[E] 8 <br>[F] 7<br><br>Any there can help me make this code ?</strong></strong><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3698">Psx|Dk</a> — Thu Dec 09, 2004 9:00 am</p><hr />
]]></content>
	</entry>
	</feed>
