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

	<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>2006-01-03T12:30:03-04:00</updated>

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

		<entry>
		<author><name><![CDATA[stalix]]></name></author>
		<updated>2006-01-03T12:30:03-04:00</updated>

		<published>2006-01-03T12:30:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58996#p58996</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58996#p58996"/>
		<title type="html"><![CDATA[Script MSG Problem !]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58996#p58996"><![CDATA[
very thanks !  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6724">stalix</a> — Tue Jan 03, 2006 12:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-01-03T10:22:35-04:00</updated>

		<published>2006-01-03T10:22:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58992#p58992</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58992#p58992"/>
		<title type="html"><![CDATA[Script MSG Problem !]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58992#p58992"><![CDATA[
I hope you finally understand after you see this, I really really hope so.<div class="codebox"><p>Code: </p><pre><code>set dbfile "scripts/hello.txt"set dbfile2 "scripts/bye.txt"bind pub - hello aleatorybind pub - bye aleatory2proc aleatory {nick uhost hand chan arg} { global dbfile set r [lindex [set d [split [read [set f [open $dbfile]]] \n]] [rand [llength $d]]] puthelp "PRIVMSG $chan : $r" close $f}proc aleatory2 {nick uhost hand chan arg} { global dbfile2 set r [lindex [set d [split [read [set f [open $dbfile2]]] \n]] [rand [llength $d]]] puthelp "PRIVMSG $chan : $r" close $f}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Jan 03, 2006 10:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stalix]]></name></author>
		<updated>2006-01-03T07:50:05-04:00</updated>

		<published>2006-01-03T07:50:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58987#p58987</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58987#p58987"/>
		<title type="html"><![CDATA[Script MSG Problem !]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58987#p58987"><![CDATA[
<blockquote class="uncited"><div>You have to change the name of the proc too (i.e. aleatory2 instead of aleatory) since you're still using aleatory for hello. Also, dbfile should be dbfile2 (in the global).</div></blockquote>i dont undersantd can modify the script ? thx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6724">stalix</a> — Tue Jan 03, 2006 7:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-01-02T19:10:15-04:00</updated>

		<published>2006-01-02T19:10:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58969#p58969</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58969#p58969"/>
		<title type="html"><![CDATA[Script MSG Problem !]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58969#p58969"><![CDATA[
You have to change the name of the proc too (i.e. aleatory2 instead of aleatory) since you're still using aleatory for hello. Also, dbfile should be dbfile2 (in the global).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Jan 02, 2006 7:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stalix]]></name></author>
		<updated>2006-01-02T17:56:30-04:00</updated>

		<published>2006-01-02T17:56:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58964#p58964</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58964#p58964"/>
		<title type="html"><![CDATA[Script MSG Problem !]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58964#p58964"><![CDATA[
<blockquote class="uncited"><div>set dbfile2 "scripts/bye.txt"<br><br>bind pub - bye aleatory<br><br>proc aleatory {nick uhost hand chan arg} {<br> global dbfile<br> set r [lindex [set d [split [read [set f [open $dbfile2]]] \n]] [rand [llength $d]]]<br> puthelp "PRIVMSG $chan : $r"<br> close $f<br>}</div></blockquote>and goes to first txt  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad">  hello.txt  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_question.gif" width="15" height="15" alt=":?:" title="Question"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6724">stalix</a> — Mon Jan 02, 2006 5:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2006-01-02T10:10:01-04:00</updated>

		<published>2006-01-02T10:10:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58953#p58953</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58953#p58953"/>
		<title type="html"><![CDATA[Script MSG Problem !]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58953#p58953"><![CDATA[
post your code and we might see what your doing wrong.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Mon Jan 02, 2006 10:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stalix]]></name></author>
		<updated>2006-01-01T15:12:14-04:00</updated>

		<published>2006-01-01T15:12:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58933#p58933</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58933#p58933"/>
		<title type="html"><![CDATA[Script MSG Problem !]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58933#p58933"><![CDATA[
<img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed">  dont work the eggdrop To continue use the DB of first TCL. :S<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6724">stalix</a> — Sun Jan 01, 2006 3:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-01-01T11:12:25-04:00</updated>

		<published>2006-01-01T11:12:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58924#p58924</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58924#p58924"/>
		<title type="html"><![CDATA[Script MSG Problem !]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58924#p58924"><![CDATA[
That because you're using dbfile in the bye proc, create another variable for example<div class="codebox"><p>Code: </p><pre><code>set dbfile2 "scripts/bye.txt"</code></pre></div>and instead of<div class="codebox"><p>Code: </p><pre><code>[open $dbfile]</code></pre></div>use<div class="codebox"><p>Code: </p><pre><code>[open $dbfile2]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Jan 01, 2006 11:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stalix]]></name></author>
		<updated>2006-01-01T10:58:48-04:00</updated>

		<published>2006-01-01T10:58:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58922#p58922</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58922#p58922"/>
		<title type="html"><![CDATA[Script MSG Problem !]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58922#p58922"><![CDATA[
i make this but the "bye" takes the file of "hello"  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":?" title="Confused"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6724">stalix</a> — Sun Jan 01, 2006 10:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-01-01T09:35:52-04:00</updated>

		<published>2006-01-01T09:35:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58921#p58921</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58921#p58921"/>
		<title type="html"><![CDATA[Script MSG Problem !]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58921#p58921"><![CDATA[
That's very simple since you already have everything done, just bind to bye, create a file for byes and a similar proc to the one you have for hello.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Jan 01, 2006 9:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stalix]]></name></author>
		<updated>2006-01-01T08:30:14-04:00</updated>

		<published>2006-01-01T08:30:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58918#p58918</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58918#p58918"/>
		<title type="html"><![CDATA[Script MSG Problem !]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58918#p58918"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set dbfile "scripts/hello.txt"bind pub - hello aleatoryproc aleatory {nick uhost hand chan arg} { global dbfile set r [lindex [set d [split [read [set f [open $dbfile]]] \n]] [rand [llength $d]]] puthelp "PRIVMSG $chan : $r" close $f}</code></pre></div>I have this scripts but i want have a similar script simultanion with this, i want hello and bye but in other file bye.txt. is possible?<br><br>thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6724">stalix</a> — Sun Jan 01, 2006 8:30 am</p><hr />
]]></content>
	</entry>
	</feed>
