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

	<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-01-02T10:23:28-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-01-02T10:23:28-04:00</updated>

		<published>2005-01-02T10:23:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44850#p44850</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44850#p44850"/>
		<title type="html"><![CDATA[game score]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44850#p44850"><![CDATA[
here's how to read from a file by line number (in your case, rank):<div class="codebox"><p>Code: </p><pre><code>if ![catch {set f [open file.txt]}] {  while {![eof $f]} {lappend lines [gets $f]}; close $f  set line [lindex $lines [expr $num - 1]]} {set line "couldn't open file"}</code></pre></div>I'd patch your script but that circling dude of yours drives me crazy <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Jan 02, 2005 10:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[hikaro]]></name></author>
		<updated>2005-01-02T04:29:41-04:00</updated>

		<published>2005-01-02T04:29:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44838#p44838</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44838#p44838"/>
		<title type="html"><![CDATA[game score]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44838#p44838"><![CDATA[
hello, i need help again with my game score.<br><br>this it the proc of !rank, this code display rank 1 to 5 with command !rank. I want it like when i do command !rank2 if will display only rank 2 or if i do !rank31 it will this play those who are on rank 31... is it possible to do this?<br>here is the proc<br><br><br>proc KAOSTop5 {nick uhost hand chan args} {<br>global KAOSChannel KAOSScoreFile KAOSPointsName<br>if {$chan != $KAOSChannel} {return}<br>set KWinners "Top5 $KAOSPointsName "<br>set f [open $KAOSScoreFile r]<br>for { set s 0 } { $s &lt; 5 } { incr s } {<br>gets $f KAOSTotals<br>if {[lindex $KAOSTotals 1] &gt; 0} {<br>  append KWinners "15,1&lt;[expr $s +1]&gt;0,1 [lindex $KAOSTotals 0]4,1 [lindex $KAOSTotals 1] "<br>} {<br>append KWinners "&lt;[expr $s +1]&gt; Nobody 0 "<br>}<br>}<br>kaosmsg "$KWinners"<br>close $f<br>}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4672">hikaro</a> — Sun Jan 02, 2005 4:29 am</p><hr />
]]></content>
	</entry>
	</feed>
