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

	<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>2016-03-03T17:00:49-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Mas]]></name></author>
		<updated>2016-02-16T21:50:18-04:00</updated>

		<published>2016-02-16T21:50:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104707#p104707</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104707#p104707"/>
		<title type="html"><![CDATA[Thank you very mich Spike^^]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104707#p104707"><![CDATA[
Thank you very much Spike^^ bro you are a life saver really your code worked like a charm ... thanks once again....<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12596">Mas</a> — Tue Feb 16, 2016 9:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2016-02-16T21:36:24-04:00</updated>

		<published>2016-02-16T21:36:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104706#p104706</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104706#p104706"/>
		<title type="html"><![CDATA[Deleting a specific thing in an output file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104706#p104706"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc tgresetscores {nick host hand text} {   global tgteambyname tgteamscore tgscoresbyname tgteamscoretotal   global tgtscf tgteamscore   if {($tgresetreqpw==1 &amp;&amp; [passwdok $hand $text]) || $tgresetreqpw==0} {     if {[file exists member.scores]&amp;&amp;[file size member.scores]&gt;2} {       set _sfile [open member.scores w]       puts $_sfile ""       close $_sfile ### remove 2 lines here ###    }   #THIS IS THE 2ND PART WHICH WE JUST NEED TO DELETE THE SCORE NOT THE TEAM     set tlist [array names tgteamscore]    foreach team $tlist {       set tgteamscore($team) 0    }     tgsavescores    set tgteamscoretotal [llength $tlist]    tggamemsg "[tgcolrset]===== Score table &amp; Stats reset by $nick! ====="   } } </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Tue Feb 16, 2016 9:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Mas]]></name></author>
		<updated>2016-03-03T17:00:49-04:00</updated>

		<published>2016-02-04T17:16:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104664#p104664</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104664#p104664"/>
		<title type="html"><![CDATA[Deleting a specific thing in an output file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104664#p104664"><![CDATA[
Hello ... I have a score file in which there are two things when its output it seems like this<br>teamname,points <br>example<br>Gladiators,5000 Titanic,3000 Clusters,2000 <br>at months end it reset whole file and i just want to delete the scores and reset it to 0 as below<br>Gladiators,0 Titanic,0 Clusters,0  <br><br>#MANUALLY reset current Team Member scores &amp; Team Scores for month MANUALLY<br>proc tgresetscores {nick host hand text} {<br>       global tgteambyname tgteamscore tgscoresbyname tgteamscoretotal<br>       global tgtscf tgteamscore<br>if {($tgresetreqpw==1 &amp;&amp; [passwdok $hand $text]) || $tgresetreqpw==0} {<br>              if {[file exists member.scores]&amp;&amp;[file size member.scores]&gt;2} {<br>set _sfile [open member.scores w]<br>puts $_sfile ""<br>close $_sfile<br>set tgteamscore ""<br>set tgteamscoretotal 0<br>}  <br>#THIS IS THE 2ND PART WHICH IS RESETTING WHOLE FILE WE JUST NEED TO DELETE THE SCORE NOT THE TEAM<br><br>              if {[file exists $tgtscf]&amp;&amp;[file size $tgtscf]&gt;2} {<br>set _sfile [open $tgtscf w]<br>puts $_sfile ""<br>close $_sfile<br>set tgteamscore ""<br>set tgteamscoretotal 0<br>}  <br>tggamemsg "[tgcolrset]===== Score table &amp; Stats reset by $nick! ====="<br>}<br>}<br>[/code]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12596">Mas</a> — Thu Feb 04, 2016 5:16 pm</p><hr />
]]></content>
	</entry>
	</feed>
