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

	<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>2006-03-31T11:40:12-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Hamish]]></name></author>
		<updated>2006-03-31T11:40:12-04:00</updated>

		<published>2006-03-31T11:40:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61549#p61549</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61549#p61549"/>
		<title type="html"><![CDATA[&gt;&gt; Simple MIRC -&gt; TCL Script Conversion &lt;&lt;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61549#p61549"><![CDATA[
De Kus, it works perfectly, thanks alot man!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7551">Hamish</a> — Fri Mar 31, 2006 11:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-03-30T21:39:10-04:00</updated>

		<published>2006-03-30T21:39:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61539#p61539</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61539#p61539"/>
		<title type="html"><![CDATA[&gt;&gt; Simple MIRC -&gt; TCL Script Conversion &lt;&lt;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61539#p61539"><![CDATA[
something like that should do the trick:<div class="codebox"><p>Code: </p><pre><code>bind pub - !price pricesproc prices {nick uhost hand chan text} {   set hit 0   set fd [open prices.txt r]   while {![eof $fd]} {      if {[string match -nocase "$text: *" [set price [gets $fd]]]} {         set hit 1         break      }   }   close $fd   if {$hit} {       puthelp "NOTICE $nick :$price"       return 1   } else {       puthelp "NOTICE $nick :No match found"       return 0   }}</code></pre></div>Read <a href="http://www.tcl.tk/man/tcl8.4/TclCmd/string.htm#M35" class="postlink">TCL manual</a> for possible wildcard searchs.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Thu Mar 30, 2006 9:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Hamish]]></name></author>
		<updated>2006-03-30T03:27:20-04:00</updated>

		<published>2006-03-30T03:27:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61531#p61531</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61531#p61531"/>
		<title type="html"><![CDATA[&gt;&gt; Simple MIRC -&gt; TCL Script Conversion &lt;&lt;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61531#p61531"><![CDATA[
I need a script that will allow the user to type !price <span style="text-decoration:underline">item</span><br>The script should get the item from this text file <a href="http://mrstk.com/upload/file/116" class="postlink">Pricelist</a> and return the line that word is contained on.<br><br>Eg. user types <span style="text-decoration:underline">!price Abyssal whip</span> and the bot will search the text file and return line one of the text file "<span style="text-decoration:underline">Abyssal whip: 2.9-3.2Mil</span>" as a notice to the user... So it's like:<br><br>&lt;<strong class="text-strong"><span style="color:red">@Hamish</span></strong>&gt; !price Abyssal whip<br><span style="color:darkred"><strong class="text-strong">-ClanBot-</strong> Abyssal whip: 2.9-3.2Mil</span><br><br>Also, if it helps at all, here is the MIRC version:<div class="codebox"><p>Code: </p><pre><code>on *:TEXT:!price*:#:{     .notice $nick *** [7 $upper($$2-) ]: $read(prices.txt, s, $$2- $+ :)   } } </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7551">Hamish</a> — Thu Mar 30, 2006 3:27 am</p><hr />
]]></content>
	</entry>
	</feed>
