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

	<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-01-12T15:07:34-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-01-12T15:07:34-04:00</updated>

		<published>2003-01-12T15:07:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15230#p15230</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15230#p15230"/>
		<title type="html"><![CDATA[why wont it work?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15230#p15230"><![CDATA[
thanks ppslim after talking to ya on the chan ya got me sorted with the right way to do subst and its working wonderfull. Thanks<p>Statistics: Posted by Guest — Sun Jan 12, 2003 3:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-01-12T09:17:01-04:00</updated>

		<published>2003-01-12T09:17:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15206#p15206</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15206#p15206"/>
		<title type="html"><![CDATA[why wont it work?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15206#p15206"><![CDATA[
First off, Tcl doesn't function as simple as this, hwoever, it's prety sinple to get around.<br><br>Second, from looking at your code, it would be impossible for it to function the way you think you would want it.<br><br>Look at the line that sends the output. You are sending the variable $admsgs and not the one you did a lookup on.<br><br>Your script is sending exactly what you have told it to. If, for example, it picked the one your pasted as an example, it would output this as is. You need to force a substitution in this case. The "subst" command will help you with this.<br><br>As for it being slow. Try correcting the above error, and it may help. However, speed can deped on many thigns. Lag between you and th server, lagg between the bot and the server, both in combination. On top, eggdrop uses a otuput queue system, so that it isn't flooded off, when large amounts of text or commands need sending. You simply have to wait for this to go down.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sun Jan 12, 2003 9:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-01-12T03:22:59-04:00</updated>

		<published>2003-01-12T03:22:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15196#p15196</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15196#p15196"/>
		<title type="html"><![CDATA[why wont it work?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15196#p15196"><![CDATA[
What its doing wrong<br><blockquote class="uncited"><div>[00:09:49] &lt;dcToAST&gt; !aa poop<br>[00:09:51] &lt;octain&gt; Got $adword?3</div></blockquote>That should be like: Got Poop?3<br>But its not its still keeping the $adword...<br><br>It also does it kinda slow... <br><br>Any help would be great...<br><br>this is my code:<br><blockquote class="uncited"><div>## The Character to trigger the trigger<br>set adword(cmdchar) "!"<br><br>## The Trigger<br>set adtrig "aa"<br><br>## Catch the trigger being pulled in the chat room<br>bind pub - [string trim $adword(cmdchar)]$adtrig ad_socket<br><br>proc ad_socket {nick uhost hand chan text} {<br><br>set adword [split $text]<br><br>set admsgs {<br> {Got $adword?}<br> {Got $adword?3}<br> {Got $adword?4}<br> {Got $adword?6}<br> {Got $adword?7}<br>}<br><br>set outmsg [lindex $admsgs [rand [llength $admsgs]]]<br><br>putserv "privmsg $chan :$admsgs"<br> <br>}</div></blockquote><p>Statistics: Posted by Guest — Sun Jan 12, 2003 3:22 am</p><hr />
]]></content>
	</entry>
	</feed>
