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

	<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-15T09:47:23-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Ghoete]]></name></author>
		<updated>2005-06-15T09:47:23-04:00</updated>

		<published>2005-06-15T09:47:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50826#p50826</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50826#p50826"/>
		<title type="html"><![CDATA[Need help with Web Parsing-like Eggdrop/TCL-Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50826#p50826"><![CDATA[
Can you post the script?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5867">Ghoete</a> — Wed Jun 15, 2005 9:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[hellspawn]]></name></author>
		<updated>2005-05-28T09:14:08-04:00</updated>

		<published>2005-05-28T09:14:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49920#p49920</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49920#p49920"/>
		<title type="html"><![CDATA[Need help with Web Parsing-like Eggdrop/TCL-Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49920#p49920"><![CDATA[
Hi,<br><br>i'm trying to do the same script. do you get it work ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6283">hellspawn</a> — Sat May 28, 2005 9:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Aenguish]]></name></author>
		<updated>2005-04-29T03:50:25-04:00</updated>

		<published>2005-04-29T03:50:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48686#p48686</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48686#p48686"/>
		<title type="html"><![CDATA[Need help with Web Parsing-like Eggdrop/TCL-Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48686#p48686"><![CDATA[
<img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"> <br><br>Thanks for the "hint" *g*<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6142">Aenguish</a> — Fri Apr 29, 2005 3:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-04-28T03:43:00-04:00</updated>

		<published>2005-04-28T03:43:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48645#p48645</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48645#p48645"/>
		<title type="html"><![CDATA[Need help with Web Parsing-like Eggdrop/TCL-Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48645#p48645"><![CDATA[
ROFL<br>dont you think you have forgotten to send the output somewhere? ^^<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !nollex user:searchproc user:search {nick uhost hand chan text} {   set text [split $text]   puthelp "NOTICE $nick :[user_search [lindex $text 0] [join [lrange $text 1 end]]]"   return 0}</code></pre></div>use something like this and stop making so funny things <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">.<br>usage with be then:<br>!nollex &lt;mode&gt; &lt;args&gt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Thu Apr 28, 2005 3:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-04-27T18:51:21-04:00</updated>

		<published>2005-04-27T18:51:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48634#p48634</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48634#p48634"/>
		<title type="html"><![CDATA[Need help with Web Parsing-like Eggdrop/TCL-Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48634#p48634"><![CDATA[
From tcl-commands.doc:<blockquote class="uncited"><div>PUB<br>         bind pub &lt;flags&gt; &lt;command&gt; &lt;proc&gt;<br>         procname &lt;nick&gt; &lt;user@host&gt; &lt;handle&gt; &lt;channel&gt; &lt;text&gt;<br><br>         Description: used for commands given on a channel. The first word<br>         becomes the command and everything else is the text argument.<br>         Module: irc</div></blockquote>so from your initial proc, mode is the nick and args is the rest (i.e. uhost hand chan text).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Apr 27, 2005 6:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Aenguish]]></name></author>
		<updated>2005-04-27T17:48:56-04:00</updated>

		<published>2005-04-27T17:48:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48633#p48633</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48633#p48633"/>
		<title type="html"><![CDATA[Need help with Web Parsing-like Eggdrop/TCL-Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48633#p48633"><![CDATA[
Yes, its :<br><blockquote class="uncited"><div>bind pub - !nollex user_search</div></blockquote>Do i have to call it in a different way?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6142">Aenguish</a> — Wed Apr 27, 2005 5:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-04-27T16:23:34-04:00</updated>

		<published>2005-04-27T16:23:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48630#p48630</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48630#p48630"/>
		<title type="html"><![CDATA[Need help with Web Parsing-like Eggdrop/TCL-Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48630#p48630"><![CDATA[
have you any activ binds to that proc? the proc seems to be intented to be called as function, not to be triggered by a bind ^-^.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Wed Apr 27, 2005 4:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Aenguish]]></name></author>
		<updated>2005-04-27T07:22:20-04:00</updated>

		<published>2005-04-27T07:22:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48619#p48619</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48619#p48619"/>
		<title type="html"><![CDATA[Need help with Web Parsing-like Eggdrop/TCL-Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48619#p48619"><![CDATA[
Yes, mode was always the nickname, i dont see why, but when i give args like that:<br><div class="codebox"><p>Code: </p><pre><code>proc user_search {nick uhost hand chan mode args} { </code></pre></div>He throws another error:<div class="codebox"><p>Code: </p><pre><code>Error: Mode has to be 1, 2 or 3. (Not "1 micromaster"!)</code></pre></div>Im really lost  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6142">Aenguish</a> — Wed Apr 27, 2005 7:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-04-26T14:46:36-04:00</updated>

		<published>2005-04-26T14:46:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48594#p48594</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48594#p48594"/>
		<title type="html"><![CDATA[Need help with Web Parsing-like Eggdrop/TCL-Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48594#p48594"><![CDATA[
you cannot use the code above.<br>your error can only occure, when $mode is lord or Aenguish etc.<br>but the code you posted doesnt allow to be $mode something like that. I confirmed the regexp and the error command do work that way they are supposed to.<br><br>If nothing helps, replace the var name "args" with "arg" and give it a try again. I don't see why it could cause it, but its obvious, mode doesnt contain the number its suppsed to.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Tue Apr 26, 2005 2:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dwickie]]></name></author>
		<updated>2005-04-26T14:43:53-04:00</updated>

		<published>2005-04-26T14:43:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48593#p48593</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48593#p48593"/>
		<title type="html"><![CDATA[Need help with Web Parsing-like Eggdrop/TCL-Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48593#p48593"><![CDATA[
i'am not tcl expert, but try to put (not really know, if it help)<div class="codebox"><p>Code: </p><pre><code>global data</code></pre></div>right after proc xxxx....<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5343">dwickie</a> — Tue Apr 26, 2005 2:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Aenguish]]></name></author>
		<updated>2005-04-26T14:31:48-04:00</updated>

		<published>2005-04-26T14:31:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48591#p48591</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48591#p48591"/>
		<title type="html"><![CDATA[Need help with Web Parsing-like Eggdrop/TCL-Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48591#p48591"><![CDATA[
Ok, here it is:<br><br>marvin &lt;- Name of the Bot<br>lord &lt;- User who calls the script<br><div class="codebox"><p>Code: </p><pre><code>[20:30] &lt;marvin&gt; Currently: can't read "data(lord)": no such element in array[20:30] &lt;marvin&gt; Currently:     while executing[20:30] &lt;marvin&gt; Currently: "set string $data($mode) "[20:30] &lt;marvin&gt; Currently:     (procedure "user_search" line 6)[20:30] &lt;marvin&gt; Currently:     invoked from within[20:30] &lt;marvin&gt; Currently: "user_search $_pub1 $_pub2 $_pub3 $_pub4 $_pub5"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6142">Aenguish</a> — Tue Apr 26, 2005 2:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Aenguish]]></name></author>
		<updated>2005-04-26T14:21:37-04:00</updated>

		<published>2005-04-26T14:21:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48588#p48588</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48588#p48588"/>
		<title type="html"><![CDATA[Need help with Web Parsing-like Eggdrop/TCL-Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48588#p48588"><![CDATA[
"Aenguish" is the Nickname of the one who calls the script.<br>ok, i will try .set errorinfo and post the result<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6142">Aenguish</a> — Tue Apr 26, 2005 2:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-04-26T11:58:11-04:00</updated>

		<published>2005-04-26T11:58:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48583#p48583</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48583#p48583"/>
		<title type="html"><![CDATA[Need help with Web Parsing-like Eggdrop/TCL-Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48583#p48583"><![CDATA[
There is no $data(aenguish) in the proc you displayed, the error's probably comming from another proc, try .set errorInfo in your partyline to know more info about the error.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Apr 26, 2005 11:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Aenguish]]></name></author>
		<updated>2005-04-26T05:48:35-04:00</updated>

		<published>2005-04-26T05:48:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48576#p48576</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48576#p48576"/>
		<title type="html"><![CDATA[Need help with Web Parsing-like Eggdrop/TCL-Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48576#p48576"><![CDATA[
Hi there, I have a Problem with an TCL-Script for my Windrop.<br><br>It should output the Playerinfos from <a href="http://www.nollex.de" class="postlink">www.nollex.de</a> in the Channel when its called with e.g."user_search 3 micromaster". <br><br>Its for a Browsergame called ogame (<a href="http://www.ogame.de" class="postlink">www.ogame.de</a>)<br>I´m really new to this Eggdrop/tcl stuff, would be really kind if someone could help me bit out <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"> <br><br><br>Heres the script:<div class="codebox"><p>Code: </p><pre><code>proc user_search {mode args} {   if {![regexp {\A[123]{1}\Z} $mode]} {error "Error: Mode has to be 1, 2 or 3. (Not \"$mode\"!)"}   package require http   foreach char [split $args {}] { append keyword %[format %x [scan $char %c]] }   set string [::http::data [::http::geturl http://www.nollex.de/ogame/se_uni1.php?cmbAllyPlayer=Player&amp;txtSuchen=$keyword]]   regexp {..:: punkte ::..(.*)..:: forschung ::..(.*)..:: flotte ::..(.*)\Z} $string -&gt; data(1) data(2) data(3)   set string $data($mode)   set output {}   while {[regexp {&lt;tr[^&gt;]*&gt;&lt;[^&gt;]*&gt;&lt;[^&gt;]*&gt;([^&lt;]+)&lt;[^&gt;]*&gt;&lt;[^&gt;]*&gt;&lt;[^&gt;]*&gt;&lt;[^&gt;]*&gt;&lt;[^&gt;]*&gt;([^&lt;]+)&lt;[^&gt;]*&gt;&lt;[^&gt;]*&gt;&lt;[^&gt;]*&gt;&lt;[^&gt;]*&gt;&lt;[^&gt;]*&gt;&lt;[^&gt;]*&gt;([^&lt;]*)&lt;[^&gt;]*&gt;&lt;[^&gt;]*&gt;&lt;[^&gt;]*&gt;&lt;[^&gt;]*&gt;&lt;[^&gt;]*&gt;([^&lt;]+)&lt;[^&gt;]*&gt;&lt;[^&gt;]*&gt;&lt;[^&gt;]*&gt;&lt;[^&gt;]*&gt;([^/]+)/([^&lt;]+)&lt;[^&gt;]*&gt;&lt;[^&gt;]*&gt;([^&lt;]+)&lt;[^&gt;]*&gt;&lt;[^&gt;]*&gt;[^\(]*\(([^%]+)%\)&lt;[^&gt;]*&gt;&lt;[^&gt;]*&gt;&lt;/tr&gt;(.*)} $string -&gt; rank player ally score from to scoregain percent string]} {     append output "$rank / $player / $ally / $score / $from - $to / $scoregain / $percent%\n"   }   return [string trim $output]</code></pre></div><br>The Error message reads:<blockquote class="uncited"><div>Tcl error [user_search]: can't read "data(aenguish)": no such element in array </div></blockquote>Thanks for reading, greats Aenguish<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6142">Aenguish</a> — Tue Apr 26, 2005 5:48 am</p><hr />
]]></content>
	</entry>
	</feed>
