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

	<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-08-15T18:43:20-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2006-08-15T18:43:20-04:00</updated>

		<published>2006-08-15T18:43:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65504#p65504</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65504#p65504"/>
		<title type="html"><![CDATA[stats from the web]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65504#p65504"><![CDATA[
<blockquote class="uncited"><div>Also, seems like pieces of code is actually missing there.. you use gets on a file that you hav'nt opened.. </div></blockquote>That would be because we're cannibalising other's code and then asking in the forums to sort it out. <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=3646">Alchera</a> — Tue Aug 15, 2006 6:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2006-08-15T15:24:09-04:00</updated>

		<published>2006-08-15T15:24:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65492#p65492</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65492#p65492"/>
		<title type="html"><![CDATA[stats from the web]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65492#p65492"><![CDATA[
I'd suggest you start by getting your brackets and braces in order...<br><br><em class="text-italics">edit:</em><br>I'd also suggest you read up on your tcl-manual, to get atleast a basic understanding on how to use [], {}, basic commands such as "set", how to use lists and strings (ie. not using list commands on strings), knowing that variable names are case sensitive<br><br>Also, seems like pieces of code is actually missing there.. you use gets on a file that you hav'nt opened..<br><br>Probably a few more flaws/faults that I failed to notice while skimming thru that code...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Aug 15, 2006 3:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[monie089]]></name></author>
		<updated>2006-08-15T15:08:35-04:00</updated>

		<published>2006-08-15T15:08:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65491#p65491</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65491#p65491"/>
		<title type="html"><![CDATA[stats from the web]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65491#p65491"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set webport 80set webserv "www.nintendowifi.com"set webpath "/gaminghub/MetroidHuntersLicenseFrame.jsp?gspid="set localfilename "wifi/gspid.txt"set update_feq 120set update_in_progress 0set outfile ""bind pub - &amp;stats pub:statsproc func:read_stats_data {text} {if {[file exists $localfilename r]set mph_stats ""while {!{eof $localfile]} {gets $localfile mph_stats_tempappend mph_stats "-$mph_stats_temp"set overall rank_temp [join [list [split $mph_stats_temp :]]]set Alt_kills [lindex $kills_temp 1]if {$Alt_kills &lt; 6} Pset mph_top_five($alt_kills) "Driver: [lindex $rank_temp 0] Rank: [lindex $Rank_temp 1]Game wons: [lindex $rank_temp 2]"}}putlog "Mphstats.tcl -$localfilename."close $localfile}}proc pub:stats {nick host handle chan text} {global statsglobal mph_top_fiveset query_name [string trim $text]if {]string match "" $text] } {set mph_top_five_i 1putserv "PRIVMSG $chan :MPH top 5 players..."while {$mph_top_fivw_i &lt; 6} {putserv "PRIVMSG $chan :$mph_top_five($mph_top_five_i)"incr mph_top_five_i}} else {foreach mph_stat [join [list [split $mph_stats "-" ]]] {         set driver_data [join [list [split [string trim $mph_stat] : ]]]         if { [string match -nocase "*$query_name*" [lindex $driver_data 0]] } {            putserv "PRIVMSG $chan :Driver: [lindex $mph_data 0]   Rank: [lindex $mphr_data 1]   Points: [lindex $mph_data 2]"         }      }   }}</code></pre></div>why doesnt it display the info<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8036">monie089</a> — Tue Aug 15, 2006 3:08 pm</p><hr />
]]></content>
	</entry>
	</feed>
