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

	<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>2007-07-23T11:25:05-04:00</updated>

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

		<entry>
		<author><name><![CDATA[oxygen]]></name></author>
		<updated>2007-07-23T11:25:05-04:00</updated>

		<published>2007-07-23T11:25:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74685#p74685</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74685#p74685"/>
		<title type="html"><![CDATA[Auto Voice Top 3 trivia players]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74685#p74685"><![CDATA[
Hello<br><br>Try to add this to your joining proc. If you don't know how.. just post your joining proc here.<br><div class="codebox"><p>Code: </p><pre><code># Set this to how many players you like to voice.set topplayer 3# Joining trivia chan.proc tgjoinmsg {nick host hand chan} {    global tgranksbyname topplayer tgscoresbyname tgchan       tggetscoresif {![info exists tgscoresbyname([strlwr $nick])]} {   tggamemsg "&gt;&gt;&gt;&gt; Hellooo $nick , you're not in the scores list!!! ;\)"  } else {  if {$tgranksbyname([strlwr $nick])&lt;=$topplayer&amp;&amp;[botisop $tgchan]} {     putserv "MODE $tgchan +v $nick"      putserv "PRIVMSG $tgchan :&gt;&gt;&gt;&gt; You're a Top$topplayer $nick and deserve voice. :\)"   } }}</code></pre></div>Greets,<br>~werner<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6688">oxygen</a> — Mon Jul 23, 2007 11:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BIF]]></name></author>
		<updated>2007-06-29T14:57:29-04:00</updated>

		<published>2007-06-29T14:57:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74009#p74009</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74009#p74009"/>
		<title type="html"><![CDATA[Auto Voice Top 3 trivia players]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74009#p74009"><![CDATA[
I want my trivia bot to auto voice users that are in the score file. the score file lists users in 1st place to last. So on join it would need to check to see if user is in the scores file. and then if the user is amoung the top 3 players he/she is auto voiced. This below Is a section on a public command used to display the top 10 players in the channel. <div class="codebox"><p>Code: </p><pre><code>  #triggered when someone uses !top10 commandproc tgshowtop10 {nick host hand chan text} {        global tgscores tgchan tgscorestotal        if {[strlwr $chan]==[strlwr $tgchan]} {                tggetscores                if {$tgscorestotal&gt;0} {                        if {$tgscorestotal&gt;9} {                                set _max 9                        } else {                                set _max [expr $tgscorestotal-1]                        }                        set i 0                        while {$i&lt;=$_max} {                                set _item [lindex $tgscores $i]                                set _nick [join [lindex [split $_item ,] 2]]                                set _score [join [lindex [split $_item ,] 0]]                                if {$i==0} {                                        append _scores "[tgcolscr1]$_nick $_score"                                } elseif {$i==1} {                                        append _scores ", [tgcolscr2]$_nick $_score"                                } elseif {$i==2} {                                        append _scores ", [tgcolscr3]$_nick $_score"                                } else {                                        append _scores ", [tgcolmisc1]$_nick $_score"                                }                                incr i                        }                        tggamemsg "[tgcolmisc1]Top 10: $_scores"                } else {                        tggamemsg "[tgcolmisc1]Score table is empty."                }        }} </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8042">BIF</a> — Fri Jun 29, 2007 2:57 pm</p><hr />
]]></content>
	</entry>
	</feed>
