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

	<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-04-28T14:31:36-04:00</updated>

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

		<entry>
		<author><name><![CDATA[chaokusc]]></name></author>
		<updated>2006-04-28T14:31:36-04:00</updated>

		<published>2006-04-28T14:31:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62462#p62462</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62462#p62462"/>
		<title type="html"><![CDATA[How do i fix my reply on word script ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62462#p62462"><![CDATA[
I managed to fix it with this code<br><div class="codebox"><p>Code: </p><pre><code># Superm4nset bigmanreply {"Its a Bird, Its a Plane, No Its \0024Superm4n\002""\0024Superm4n\002 i think \002$nick\002 wants your attention""\002$nick\002 do you know why \0024Superm4n\002 wears his underwear on the outside ?""\002$nick\002 do you know why \0024Superm4n\002 wears red underwear ?"}bind pub - superm4n pub_bigmanproc pub_bigman {nick u h chan t} {global bigmanreplyif {$t == ""} {set output [lindex $bigmanreply [rand [llength $bigmanreply]]]regsub -all {\$nick} $output $nick outputputchan $chan "$output"  }}</code></pre></div>This also let me allow $nick in bigmanreply<br><br>Thanks for all of your reply, and <strong class="text-strong">DragnLord</strong> i will look into rand and expr<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7689">chaokusc</a> — Fri Apr 28, 2006 2:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-04-28T03:46:12-04:00</updated>

		<published>2006-04-28T03:46:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62446#p62446</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62446#p62446"/>
		<title type="html"><![CDATA[How do i fix my reply on word script ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62446#p62446"><![CDATA[
he will have to double evaluate it, like:<br><br>eval "putchan $chan \"$output\""<br>or<br>eval "puthelp \"PRIVMSG $chan :$output\""<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Fri Apr 28, 2006 3:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2006-04-26T14:31:21-04:00</updated>

		<published>2006-04-26T14:31:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62387#p62387</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62387#p62387"/>
		<title type="html"><![CDATA[How do i fix my reply on word script ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62387#p62387"><![CDATA[
1) use putlog to show variables in dcc as the script runs<div class="codebox"><p>Code: </p><pre><code>proc pub_superm4n {nick u h chan t} {putlog "got $nick in $chan"global superm4nreplyif {$t == ""} {set output [lindex $superm4nreply [rand [llength $superm4nreply]]]putlog "output: $output"putchan $chan "$output"  }}</code></pre></div>(btw, for this to work as written "superm4n" has to be the only word said)<br><br>2) search a lot more about rand and expr<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Wed Apr 26, 2006 2:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[chaokusc]]></name></author>
		<updated>2006-04-26T13:47:28-04:00</updated>

		<published>2006-04-26T13:47:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62384#p62384</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62384#p62384"/>
		<title type="html"><![CDATA[How do i fix my reply on word script ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62384#p62384"><![CDATA[
Sorry for the double post but can anyone help me with the reply on this?<br>I just wish to know why $nick is not replaced with the nick of the person who typed superm4n<br><div class="codebox"><p>Code: </p><pre><code>set superm4nreply {"Its a Bird, Its a Plane, No Its \0024Superm4n\002""\0024Superm4n\002 i think \002$nick\002 wants you""\002$nick\002 do you know why \0024Superm4n\002 wears his underwear on the outside ?""\002$nick\002 do you know why \0024Superm4n\002 wears \002red\002 underwear ?"}bind pub - superm4n pub_superm4nproc pub_superm4n {nick u h chan t} {global superm4nreplyif {$t == ""} {set output [lindex $superm4nreply [rand [llength $superm4nreply]]]putchan $chan "$output"  }}</code></pre></div>If your not interested in giving me the full help thats fine, clues are welcome  <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=7689">chaokusc</a> — Wed Apr 26, 2006 1:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[chaokusc]]></name></author>
		<updated>2006-04-26T11:59:26-04:00</updated>

		<published>2006-04-26T11:59:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62379#p62379</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62379#p62379"/>
		<title type="html"><![CDATA[How do i fix my reply on word script ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62379#p62379"><![CDATA[
^^ Thank You<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7689">chaokusc</a> — Wed Apr 26, 2006 11:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2006-04-25T16:43:19-04:00</updated>

		<published>2006-04-25T16:43:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62336#p62336</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62336#p62336"/>
		<title type="html"><![CDATA[How do i fix my reply on word script ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62336#p62336"><![CDATA[
oops, that's why I usually use the simpler variable form<div class="codebox"><p>Code: </p><pre><code>bind pub - brb pub_brbproc pub_brb {n u h c t} {  if {$t == ""} {    putchan $c "\002$n\002 says Be Right Back"  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Tue Apr 25, 2006 4:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-04-25T16:03:51-04:00</updated>

		<published>2006-04-25T16:03:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62335#p62335</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62335#p62335"/>
		<title type="html"><![CDATA[How do i fix my reply on word script ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62335#p62335"><![CDATA[
You shouldn't use <strong class="text-strong">args</strong>, instead use <strong class="text-strong">arg</strong>.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Apr 25, 2006 4:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[chaokusc]]></name></author>
		<updated>2006-04-25T15:24:29-04:00</updated>

		<published>2006-04-25T15:24:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62333#p62333</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62333#p62333"/>
		<title type="html"><![CDATA[How do i fix my reply on word script ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62333#p62333"><![CDATA[
It still does it <strong class="text-strong">DragnLord</strong>, is there any other way ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7689">chaokusc</a> — Tue Apr 25, 2006 3:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2006-04-25T14:03:14-04:00</updated>

		<published>2006-04-25T14:03:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62330#p62330</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62330#p62330"/>
		<title type="html"><![CDATA[Re: How do i fix my reply on word script ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62330#p62330"><![CDATA[
<blockquote class="uncited"><div>My question is, how can i make the bot not reply to anything after the brb ?<br><blockquote class="uncited"><div>&lt;FoX&gt; brb<br>&lt;testbot&gt; FoX says Be Right Back<br>&lt;FoX&gt; brb im going out<br>&lt;testbot&gt; FoX says Be Right Back</div></blockquote></div></blockquote>Try this:<div class="codebox"><p>Code: </p><pre><code>bind pub - brb pub_brbproc pub_brb {nick uhost hand chan args} {  if {$args == ""} {    putchan $chan "\002$nick\002 says Be Right Back"  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Tue Apr 25, 2006 2:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[chaokusc]]></name></author>
		<updated>2006-04-25T13:50:54-04:00</updated>

		<published>2006-04-25T13:50:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62328#p62328</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62328#p62328"/>
		<title type="html"><![CDATA[How do i fix my reply on word script ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62328#p62328"><![CDATA[
I got this simple reply script written out so if somone says <strong class="text-strong">brb</strong> my bot says <strong class="text-strong">$nick says Be Right Back</strong><br><br><div class="codebox"><p>Code: </p><pre><code>bind pub - brb pub_brbproc pub_brb {nick uhost hand chan $brb_msg} {putchan $chan "\002$nick\002 says Be Right Back" }</code></pre></div>My question is, how can i make the bot not reply to anything after the brb ?<br><blockquote class="uncited"><div>&lt;FoX&gt; brb<br>&lt;testbot&gt; FoX says Be Right Back<br>&lt;FoX&gt; brb im going out<br>&lt;testbot&gt; FoX says Be Right Back</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7689">chaokusc</a> — Tue Apr 25, 2006 1:50 pm</p><hr />
]]></content>
	</entry>
	</feed>
