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

	<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>2004-12-30T05:40:11-04:00</updated>

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

		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-12-30T05:36:57-04:00</updated>

		<published>2004-12-30T05:36:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44727#p44727</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44727#p44727"/>
		<title type="html"><![CDATA[Can anyone convert this into TCL please?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44727#p44727"><![CDATA[
You forgot to global it though<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Thu Dec 30, 2004 5:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2004-12-30T05:39:02-04:00</updated>

		<published>2004-12-30T05:04:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44726#p44726</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44726#p44726"/>
		<title type="html"><![CDATA[Can anyone convert this into TCL please?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44726#p44726"><![CDATA[
<blockquote class="uncited"><div>Making a channel string would work too<br><div class="codebox"><p>Code: </p><pre><code>setudef str countset count [channel get #precisioneffect count]bind pub - "#PrecisionEffect %" fooproc foo {n u h c} {  incr ::count  puthelp "notice $n :You are number $::count to join $c since January 1, 2005"   channel set #precisioneffect count $count}</code></pre></div></div></blockquote>That would work too if you changed the <span style="text-decoration:underline">pub</span> to <span style="text-decoration:underline">join</span> but again if you happen to remove the bot from the chan by accident you would lose this count. Awyeahs suggestion is the wisest move in my opinion.<br><br>This should help.<br><div class="codebox"><p>Code: </p><pre><code>## Set the filename hereset gJoinFile "JoinLog.log"bind join - "#PrecisionEffect %" fooproc foo {nick uhost hand chan} {     global gJoinFile    ## Open file and read the variable    if { [file exists $gJoinFile] == 1 } {        set FileHandle [open $gJoinFile "r"]        set TempString [read $FileHandle]        close $FileHandle        set lines [split $TempString "\n"]        set gJoinCounter [lindex $lines 0]    } else {        # Set the JoinCounter to 0 initially        set gJoinCounter 0    }    puthelp "notice $nick :You are number $gJoinCounter to join $chan since January 1, 2005"     incr gJoinCounter 1    ## Write the variable to file (remember opening with 'w' mode truncates the file contents)    set FileHandle [open $gJoinFile "w"]    puts $FileHandle $gJoinCounter    close $FileHandle    return}</code></pre></div>cheers <br><br>// Edit Ooops Thanks Metroid  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Thu Dec 30, 2004 5:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-12-30T05:40:11-04:00</updated>

		<published>2004-12-30T03:03:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44721#p44721</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44721#p44721"/>
		<title type="html"><![CDATA[Can anyone convert this into TCL please?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44721#p44721"><![CDATA[
Making a channel string would work too<br><div class="codebox"><p>Code: </p><pre><code>setudef str countset count [channel get #precisioneffect count]bind join - "#PrecisionEffect %" fooproc foo {n u h c} {  incr ::count  puthelp "notice $n :You are number $::count to join $c since January 1, 2005"   channel set #precisioneffect count $count}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Thu Dec 30, 2004 3:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-12-29T20:36:29-04:00</updated>

		<published>2004-12-29T20:36:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44711#p44711</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44711#p44711"/>
		<title type="html"><![CDATA[Can anyone convert this into TCL please?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44711#p44711"><![CDATA[
Ofcourse it will reset the count if you rehash/restart. If you do not want it to reset you can use another bind evnt on prerehash and restart allowing not to reset the counter or transferring it to a dummy var, and after rehash/restart transfer it back to your count var.<br><br>The easiest and most efficient one would be to write it to a file, which would never get reset, and read it from there always.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Dec 29, 2004 8:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2004-12-29T13:02:43-04:00</updated>

		<published>2004-12-29T13:02:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44666#p44666</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44666#p44666"/>
		<title type="html"><![CDATA[Can anyone convert this into TCL please?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44666#p44666"><![CDATA[
That small script will work fine but it wont remember the number it got to if you rehash the bot it will start back at 1.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Wed Dec 29, 2004 1:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stevegarbz]]></name></author>
		<updated>2004-12-29T12:47:36-04:00</updated>

		<published>2004-12-29T12:47:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44665#p44665</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44665#p44665"/>
		<title type="html"><![CDATA[Can anyone convert this into TCL please?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44665#p44665"><![CDATA[
Awesome, thank you very much <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5732">stevegarbz</a> — Wed Dec 29, 2004 12:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stevegarbz]]></name></author>
		<updated>2004-12-29T12:47:03-04:00</updated>

		<published>2004-12-29T12:47:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44664#p44664</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44664#p44664"/>
		<title type="html"><![CDATA[Can anyone convert this into TCL please?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44664#p44664"><![CDATA[
Lemme test it out, 1 sec <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5732">stevegarbz</a> — Wed Dec 29, 2004 12:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2004-12-29T12:45:58-04:00</updated>

		<published>2004-12-29T12:45:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44663#p44663</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44663#p44663"/>
		<title type="html"><![CDATA[Can anyone convert this into TCL please?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44663#p44663"><![CDATA[
oops.. bind join, not bind pub<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Wed Dec 29, 2004 12:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stevegarbz]]></name></author>
		<updated>2004-12-29T12:33:58-04:00</updated>

		<published>2004-12-29T12:33:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44662#p44662</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44662#p44662"/>
		<title type="html"><![CDATA[Can anyone convert this into TCL please?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44662#p44662"><![CDATA[
Hmm.. doesn't work for some reason?<br><br>- Won't notice me.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5732">stevegarbz</a> — Wed Dec 29, 2004 12:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2004-12-29T12:24:49-04:00</updated>

		<published>2004-12-29T12:24:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44661#p44661</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44661#p44661"/>
		<title type="html"><![CDATA[Can anyone convert this into TCL please?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44661#p44661"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set count 0bind pub - "#PrecisionEffect %" fooproc foo {n u h c} {  incr ::count  puthelp "notice $n :You are number $::count to join $c since January 1, 2005"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Wed Dec 29, 2004 12:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stevegarbz]]></name></author>
		<updated>2004-12-29T12:18:23-04:00</updated>

		<published>2004-12-29T12:18:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44659#p44659</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44659#p44659"/>
		<title type="html"><![CDATA[Can anyone convert this into TCL please?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44659#p44659"><![CDATA[
on *:JOIN:#PrecisionEffect:{<br>  inc %join<br>  notice $nick You are number %join to join $chan since January 1, 2005<br>}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5732">stevegarbz</a> — Wed Dec 29, 2004 12:18 pm</p><hr />
]]></content>
	</entry>
	</feed>
