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

	<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>2009-07-14T08:06:48-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Torrevado]]></name></author>
		<updated>2009-07-14T08:06:48-04:00</updated>

		<published>2009-07-14T08:06:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89538#p89538</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89538#p89538"/>
		<title type="html"><![CDATA[be_acro bug]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89538#p89538"><![CDATA[
Hi, <br>be_acro.tcl allows voting before the game (play round) is finished, so it makes the script unusable.<br>I think here it's the problem:<div class="codebox"><p>Code: </p><pre><code>putmsg $chan "Time is up!"  if {$totacro &gt; 2} {    set fs [open $acrovotes w+]</code></pre></div>This makes possible start voting once 3 acros are submitted instead of allowing it after acro time is over. How to fix it? <br><br>Author's note  about the script  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> :<br><blockquote class="uncited"><div># THIS IS BUGFREE CODE !!!!!!! IF YOU FIND BUGS IT IS BECAUSE I PUT<br># THEM IN ON PURPOSE !! IT'S NOT A BUG! TRUST ME! </div></blockquote>Well, here it's the whole acro end round proc:<div class="codebox"><p>Code: </p><pre><code>proc acroendround {chan} {  global acrovotes acrocurrent acropeople acrorunning botnick acrotimerid  set fo [open $acropeople r]  set totacro -1  while {![eof $fo]} {    gets $fo _temp    incr totacro  }  putmsg $chan "Time is up!"  if {$totacro &gt; 2} {    set fs [open $acrovotes w+]    close $fs    set fa [open $acrocurrent w+]    close $fa    putmsg $chan "\002Current Acros:\002"    set fs [open $acropeople r]    set acnt 1    while {![eof $fs]} {      set acro(line) [lrange [split [gets $fs] " "] 1 end]      if {$acro(line) != ""} {        set numbah "\002\[$acnt\]\002 \0039,1"        putmsg $chan "$numbah $acro(line) "      }      incr acnt 1    }    set totalacros -1    set fs [open $acropeople r]    while {![eof $fs]} {      gets $fs temp_      incr totalacros 1    }    close $fs    set votesecs [expr ((30 + (($totalacros -3) * 5)) + ($totalacros * 2)) + 4]    putmsg $chan "Start voting !! You have \002[expr ($votesecs - ($totalacros * 2)) -4]\002 seconds. Use the form \037/MSG $botnick NUMBER\037 to submit a vote."    bind msgm -|- * acro:msg    set acrotimerid [utimer [expr $votesecs -10] "acrowarningvote $chan"]  } else {    putmsg $chan "Sorry, not enough players this round! New round starts in 15 seconds."    unbind msgm -|- * acro:msg    set fp [open $acrocurrent w+]    close $fp    set acrotimerid [utimer 15 "startacro ooga ooga ooga $chan newround"]    set acrorunning 0  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8047">Torrevado</a> — Tue Jul 14, 2009 8:06 am</p><hr />
]]></content>
	</entry>
	</feed>
