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

	<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>2013-03-09T20:02:58-04:00</updated>

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

		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2013-03-09T20:02:58-04:00</updated>

		<published>2013-03-09T20:02:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101195#p101195</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101195#p101195"/>
		<title type="html"><![CDATA[[SOLVED] need help match something from list1 to list2]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101195#p101195"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set fp [open "temp" r]set data [split [read -nonewline $fp] \n]close $fpforeach a [array names nlu] {  foreach b $nlu($a) {    if {[string length $b]} {      set lpos 0      while {[set pos [lsearch -exact -start $lpos $data $b]]&gt;-1} {        putlog "$b == [expr {$pos+1}] -- matched \002[lindex $data $pos]\002 for $b"        set lpos [incr pos]      }   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sat Mar 09, 2013 8:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Madalin]]></name></author>
		<updated>2013-03-09T11:44:22-04:00</updated>

		<published>2013-03-09T11:44:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101194#p101194</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101194#p101194"/>
		<title type="html"><![CDATA[[SOLVED] need help match something from list1 to list2]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101194#p101194"><![CDATA[
Ok figured it out. I will post the solved problem here and if there is another way.. please post<br><div class="codebox"><p>Code: </p><pre><code>foreach a [array names nlu] {foreach b $nlu($a) {if {[llength $b]} {do $b}}}</code></pre></div>and now<br><div class="codebox"><p>Code: </p><pre><code>proc do {b} {global temp fstats bid item nlu nlset fp [open "temp" r]set data [read $fp]close $fpset nr 0foreach c [split $data "\n"] {incr nrif {$b == $nr} {putlog "$b == $nr -- matched \002$c\002 for $b"}}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6396">Madalin</a> — Sat Mar 09, 2013 11:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Madalin]]></name></author>
		<updated>2013-03-09T11:38:05-04:00</updated>

		<published>2013-03-09T11:38:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101193#p101193</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101193#p101193"/>
		<title type="html"><![CDATA[[SOLVED] need help match something from list1 to list2]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101193#p101193"><![CDATA[
Thats not working i will post some putlog's<br><blockquote class="uncited"><div>&lt;(EggHelp&gt; [17:33:07] 4 == 1 ??<br>&lt;(EggHelp&gt; [17:33:07] 4 == 2 ??<br>&lt;(EggHelp&gt; [17:33:07] 4 == 3 ??<br>&lt;(EggHelp&gt; [17:33:07] 4 == 4 -- matched Balefire Caster for 4<br>&lt;(EggHelp&gt; [17:33:07] 4 == 4 ??<br>&lt;(EggHelp&gt; [17:33:07] 4 == 5 ??<br>&lt;(EggHelp&gt; [17:33:07] 4 == 6 ??<br>....<br>&lt;(EggHelp&gt; [17:33:07] 4 == 133 ??<br>&lt;(EggHelp&gt; [17:33:07] 5 == 134 ??<br>&lt;(EggHelp&gt; [17:33:07] 5 == 135 ??<br>&lt;(EggHelp&gt; [17:33:07] 5 == 136 ??<br>&lt;(EggHelp&gt; [17:33:07] 5 == 137 ??<br>&lt;(EggHelp&gt; [17:33:07] 5 == 138 ??<br>&lt;(EggHelp&gt; [17:33:07] 5 == 139 ??<br>&lt;(EggHelp&gt; [17:33:07] 5 == 140 ??<br>&lt;(EggHelp&gt; [17:33:07] 5 == 141 ??<br>...</div></blockquote>So when it should get the second element from the first list it should start the list2 from 0 but it doesnt it just continues the first one<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6396">Madalin</a> — Sat Mar 09, 2013 11:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dirty]]></name></author>
		<updated>2013-03-09T11:22:16-04:00</updated>

		<published>2013-03-09T11:22:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101192#p101192</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101192#p101192"/>
		<title type="html"><![CDATA[[SOLVED] need help match something from list1 to list2]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101192#p101192"><![CDATA[
are you looking for something like this?<br><div class="codebox"><p>Code: </p><pre><code>set found ""foreach item "a b c d" {     if {[lsearch -exact "e f a g b" $item] != "-1"} {          lappend found $item     }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12189">dirty</a> — Sat Mar 09, 2013 11:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Madalin]]></name></author>
		<updated>2013-03-09T11:44:54-04:00</updated>

		<published>2013-03-09T11:13:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101191#p101191</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101191#p101191"/>
		<title type="html"><![CDATA[[SOLVED] need help match something from list1 to list2]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101191#p101191"><![CDATA[
I need a code to match a number from a list with a number from another list i made so far this <br><div class="codebox"><p>Code: </p><pre><code>foreach a [array names nlu] {foreach b $nlu($a) {if {[llength $b]} {foreach c [split $data "\n"] {incr nrif {$b == $nr} {putlog "$b == $nr -- matched \002$c\002 for $b"}}}}}</code></pre></div>The problem is that $nlu($a) is formed from 2 or 3 numbers for example 1 2 3 and when the foreach triggeres it only matches the first one with the second list and then it start from where it found the first number (but i need it to start from 0 or something to match the others and make a temp(list)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6396">Madalin</a> — Sat Mar 09, 2013 11:13 am</p><hr />
]]></content>
	</entry>
	</feed>
