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

	<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>2004-03-31T15:28:30-04:00</updated>

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

		<entry>
		<author><name><![CDATA[hikaro]]></name></author>
		<updated>2004-03-31T15:28:30-04:00</updated>

		<published>2004-03-31T15:28:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35118#p35118</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35118#p35118"/>
		<title type="html"><![CDATA[!rank help pls...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35118#p35118"><![CDATA[
i got trivia tcl and i got a little problem. when i type !rank the bot will give rank 1-5 when i type !rank 3 it will give rank 1 to 3 i want it the bot give only 1 nick... ex !rank 23 then the result will be $nick is in rank 23 with score .... <br>this is the part of the script.. pls help me out coz it just like flooding the channel when i type !rank 15 or something<blockquote class="uncited"><div>proc mx_spit_rank {how where length} {<br>    global timerankreset<br>    global userlist<br>    global manjaconf<br>    variable pos 1<br>    variable prevscore 0<br>    variable entries 0<br>    variable lines ""<br><br>    # anybody with a point?<br>    foreach u [array names userlist] {<br>array set aa $userlist($u)<br>if {$aa(score) &gt; 0} {<br>    set entries 1<br>    break<br>}<br>    }<br><br> if {$entries == 0} {<br>lappend lines "Topscore list Kosong"<br>    } else {<br>if {$length &gt; $manjaconf(maxranklines)} {<br>    set length $manjaconf(maxranklines)<br>}<br>lappend lines "6TopScore Scramble Game ver8.9"<br>set pos 1<br>set prevscore 0<br>foreach u [lsort -command mx_sortrank [array names userlist]] {<br>    array set aa $userlist($u)<br>    if {$aa(score) == 0} { break }<br>    if {$pos &gt; $length &amp;&amp; $aa(score) != $prevscore} { break }<br><br>    if {$aa(score) == $prevscore} {<br>set text "= " <br>    } else {<br>set text [format "%2d " $pos]<br>    }<br>    set text [format "$text %12s :: %5d pts." $u $aa(score)]<br>    if {$pos == 1} {<br>set text "$text"<br>    }<br>    lappend lines $text<br>    set prevscore $aa(score)<br>    incr pos<br>}<br>lappend lines "6Congrats!"<br>    }<br>    # spit lines<br>    foreach line $lines {<br>if {$how == "NOTC"} {<br>    mxirc_say $where $line<br>#    mxirc_notc $where $line<br><br>} else {<br>    mxirc_say $where $line<br>}<br>    }<br><br>    return 1<br>}</div></blockquote> Pls help me with this code... thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4672">hikaro</a> — Wed Mar 31, 2004 3:28 pm</p><hr />
]]></content>
	</entry>
	</feed>
