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

	<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-06-07T05:39:42-04:00</updated>

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

		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2005-06-07T05:39:42-04:00</updated>

		<published>2005-06-07T05:39:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50362#p50362</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50362#p50362"/>
		<title type="html"><![CDATA[Uptime Contest script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50362#p50362"><![CDATA[
You'd be smarter to make it count on part / sign because a 1 second timer is just nasty :p<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Tue Jun 07, 2005 5:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-06-05T17:06:14-04:00</updated>

		<published>2005-06-05T17:06:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50282#p50282</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50282#p50282"/>
		<title type="html"><![CDATA[Uptime Contest script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50282#p50282"><![CDATA[
I cant see anything wrong with it lets try to debug it.<br><br>put this above the first incr voices<div class="codebox"><p>Code: </p><pre><code> putserv "privmsg $gamechan :$voices" </code></pre></div>When you start the script it should count how many voices there are in the channel.<br><br>See if that works. if it does then i dont know why $voices reports it as 0 .If it doesn't then we will have to look at it again.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Sun Jun 05, 2005 5:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Diablo]]></name></author>
		<updated>2005-06-05T15:45:14-04:00</updated>

		<published>2005-06-05T15:45:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50280#p50280</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50280#p50280"/>
		<title type="html"><![CDATA[Uptime Contest script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50280#p50280"><![CDATA[
ok thnx.. bot now changes topic but it says that there is 0 voice clients:/<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6182">Diablo</a> — Sun Jun 05, 2005 3:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-06-04T15:02:24-04:00</updated>

		<published>2005-06-04T15:02:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50229#p50229</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50229#p50229"/>
		<title type="html"><![CDATA[Uptime Contest script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50229#p50229"><![CDATA[
find this in the script<div class="codebox"><p>Code: </p><pre><code>inc voices</code></pre></div>and change it to this<div class="codebox"><p>Code: </p><pre><code>incr voices</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Sat Jun 04, 2005 3:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Diablo]]></name></author>
		<updated>2005-06-04T11:00:50-04:00</updated>

		<published>2005-06-04T11:00:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50201#p50201</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50201#p50201"/>
		<title type="html"><![CDATA[Uptime Contest script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50201#p50201"><![CDATA[
<blockquote class="uncited"><div>#Set the channel for this script to work on <br>set gamechan "#channel" <br><br>#Set the time 'in seconds' after how long to check for voiced users. <br>set gametimer "1" <br><br>bind pub n "!start" start:game <br><br>proc start:game {nick uhost hand chan text} { <br> global botnick gamechan <br>  set voices 0 <br>  foreach user [chanlist $gamechan] { <br>   if {![isop $user $gamechan] &amp;&amp; ![isvoice $user $gamechan] &amp;&amp; ![isbotnick $user] &amp;&amp; [botisop $gamechan]} { <br>    pushmode $gamechan +v $user <br>    incr voices <br>    } <br>  } <br> flushmode $gamechan <br> set time [unixtime]; set timenow [ctime $time] <br> putserv "TOPIC $gamechan :New compo started on [string trim [lindex $timenow 2]] [string trim [lindex $timenow 1]] [string trim [lindex $timenow 3]] with $voices voiced clients." <br>} <br><br>utimer $gametimer check:voices <br><br>proc check:voices { } { <br> global gamechan <br>  set voices 0 <br>  set winner "none" <br>   foreach user [chanlist $gamechan] { <br>    if {[isvoice $user $gamechan] &amp;&amp; ![isbotnick $user]} { <br>     inc voices <br>    } <br>   } <br>   if {$voices == 1} { <br>    foreach user [chanlist $gamechan] { <br>     if {[isvoice $user $gamechan] &amp;&amp; ![isbotnick $user]} { <br>     set winner $user <br>     break <br>    } <br>   } <br>   putserv "privmsg $gamechan :$winner is the winner!!" <br>   return 0 <br>  } <br>  if {$voices == 0} { <br>   putserv "privmsg $gamechan :ERROR: No voiced user left!" <br>   putserv "privmsg $gamechan :Game stopped." <br>   return 0 <br>  } <br> utimer $gametimer check:voices <br>} </div></blockquote>i have found this script in this forum but it doesnt work.. can someone pls fix it and post it here? the bot voices all users with !start and sets a topic..<br><br>pls help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6182">Diablo</a> — Sat Jun 04, 2005 11:00 am</p><hr />
]]></content>
	</entry>
	</feed>
