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

	<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>2003-08-20T08:55:21-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-08-20T08:55:21-04:00</updated>

		<published>2003-08-20T08:55:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25356#p25356</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25356#p25356"/>
		<title type="html"><![CDATA[random generated nick script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25356#p25356"><![CDATA[
oh yes, you're right <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> I understoud.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Aug 20, 2003 8:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-08-20T06:19:45-04:00</updated>

		<published>2003-08-20T06:19:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25346#p25346</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25346#p25346"/>
		<title type="html"><![CDATA[random generated nick script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25346#p25346"><![CDATA[
<blockquote class="uncited"><div>I'd suggest addin "counter" to the global line too, if its being used in another proc of this script.</div></blockquote>The counter variable has no value outside the proc as it'll always contain "8" when the proc returns.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Aug 20, 2003 6:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-08-20T04:59:52-04:00</updated>

		<published>2003-08-20T04:59:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25341#p25341</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25341#p25341"/>
		<title type="html"><![CDATA[random generated nick script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25341#p25341"><![CDATA[
I'd suggest addin "counter" to the global line too, if its being used in another proc of this script.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Aug 20, 2003 4:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MarlbMan]]></name></author>
		<updated>2003-08-20T01:05:23-04:00</updated>

		<published>2003-08-20T01:05:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25336#p25336</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25336#p25336"/>
		<title type="html"><![CDATA[random generated nick script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25336#p25336"><![CDATA[
I love it when I answer my own question, I just added sd_rnick to the global line and it works fine now.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3021">MarlbMan</a> — Wed Aug 20, 2003 1:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MarlbMan]]></name></author>
		<updated>2003-08-20T00:39:34-04:00</updated>

		<published>2003-08-20T00:39:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25334#p25334</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25334#p25334"/>
		<title type="html"><![CDATA[random generated nick script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25334#p25334"><![CDATA[
ok, got that figured out. Changed the script a bit, now it looks like this. <br><div class="codebox"><p>Code: </p><pre><code>bind pub - chnick sd_nchangeset sd_char {A a B b C c D d E e F f G g H h I i J j K k L l M m N n O o P p Q q R r S s T t U u V v W w X x Y y Z z}proc sd_nchange { nick uhost hand chan arg } {global sd_charset counter 0set sd_rnick ""while {$counter &lt; 8 } {set sd_rand [lindex $sd_char [rand [llength $sd_char]]]set sd_rnick "$sd_rnick$sd_rand"incr counter}putserv "nick $sd_rnick"}</code></pre></div>Problem now is, it changes it's nick back. I change set keep-nick to 0, but it still does it. how do I fix this one?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3021">MarlbMan</a> — Wed Aug 20, 2003 12:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MarlbMan]]></name></author>
		<updated>2003-08-19T22:33:53-04:00</updated>

		<published>2003-08-19T22:33:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25333#p25333</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25333#p25333"/>
		<title type="html"><![CDATA[random generated nick script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25333#p25333"><![CDATA[
I stole a bit out of the random password script to generate random nicks, here is what I've come up with.<br><div class="codebox"><p>Code: </p><pre><code>set sd_nlength "8"bind pub - chnick sd_nchangeset sd_char {A a B b C c D d E e F f G g H h I i J j K k L l M m N n O o P p Q q R r S s T t U u V v W w X x Y y Z z}proc sd_nchange { sd_nlength } {global sd_charset counter 0set sd_rnick ""while {$counter &lt; $sd_nlength } {set sd_rand [lindex $sd_char [rand [llength $sd_char]]]set sd_rnick "$sd_nick$sd_rand"incr counter}putserv "nick $sd_rnick"}</code></pre></div>but when I type chnick in channel, I get the following error:<div class="codebox"><p>Code: </p><pre><code>Tcl error [sd_nchange]: wrong # args: should be "sd_nchange sd_nlength"</code></pre></div>can anyone help me?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3021">MarlbMan</a> — Tue Aug 19, 2003 10:33 pm</p><hr />
]]></content>
	</entry>
	</feed>
