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

	<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-02-15T13:05:12-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-02-15T13:05:12-04:00</updated>

		<published>2006-02-15T13:05:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60445#p60445</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60445#p60445"/>
		<title type="html"><![CDATA[Gather script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60445#p60445"><![CDATA[
ok<div class="codebox"><p>Code: </p><pre><code>if {[llength $teams(A)] &lt; [llength $teams(B)]} { set team A} elseif {[set size [llength $teams(A)]] == [llength $teams(B)] &amp;&amp; $size &lt; 5} { set team [lindex {A B} [rand 2]]} { set team B}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Feb 15, 2006 1:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2006-02-15T13:01:42-04:00</updated>

		<published>2006-02-15T13:01:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60444#p60444</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60444#p60444"/>
		<title type="html"><![CDATA[Gather script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60444#p60444"><![CDATA[
I wouldn't choose randomly because that will lead to the bot adding more than 5 users on 1 team.<br><br>I would just check if A has less players than B, if it does, add to A, if it doesn't, add to B.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Wed Feb 15, 2006 1:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-02-15T10:51:27-04:00</updated>

		<published>2006-02-15T10:51:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60440#p60440</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60440#p60440"/>
		<title type="html"><![CDATA[Gather script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60440#p60440"><![CDATA[
Simply create an array for teams A and B<div class="codebox"><p>Code: </p><pre><code>array set teams { A {} B {}}</code></pre></div>and lappend to it on !add, lreplace on !delete and show on !list. Always check if the list is full by using [llength], example:<div class="codebox"><p>Code: </p><pre><code>if {[llength $teams(A)] &lt; 5} { # we can add}</code></pre></div>to choose randomly between A and B<div class="codebox"><p>Code: </p><pre><code>set team [lindex {A B} [rand 2]]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Feb 15, 2006 10:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-02-14T23:35:38-04:00</updated>

		<published>2006-02-14T23:35:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60435#p60435</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60435#p60435"/>
		<title type="html"><![CDATA[Gather script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60435#p60435"><![CDATA[
didn't you already ask for such thing couple of months ago?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Tue Feb 14, 2006 11:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rt]]></name></author>
		<updated>2006-02-14T15:08:29-04:00</updated>

		<published>2006-02-14T15:08:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60425#p60425</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60425#p60425"/>
		<title type="html"><![CDATA[Gather script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60425#p60425"><![CDATA[
Hi, could someone make these 3 commands please?<br><br>!add - !remove - !teams<br><br>!add - You can either !add or !add a/b - It'll randomlly pick you in a team if you don't type anything but !add -  Providing the team randomly picked doesn't have 5 players it'll add it, else it'll add it to the other team, and !add a/b will add them providing the team is not full, itll tell them if full. When both teams are full it'll announce it in the channel and unset the vars(I wil sort the rest)<br><br>!remove - will remove you from a/b if they are in.<br><br>!teams - will do<br>[bot] Team 1: nick - nick - nick - untaken(for eg.) - nick Team 2: etc...<br><br>So basicially it'll list teams.<br><br>I can give you a bouncer if nessesary, would really appreciate it - I'm too confused to do it myself<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6457">rt</a> — Tue Feb 14, 2006 3:08 pm</p><hr />
]]></content>
	</entry>
	</feed>
