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

	<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-10-13T17:07:15-04:00</updated>

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

		<entry>
		<author><name><![CDATA[FiskerEnDK]]></name></author>
		<updated>2003-10-13T17:07:15-04:00</updated>

		<published>2003-10-13T17:07:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28435#p28435</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28435#p28435"/>
		<title type="html"><![CDATA[Trigger script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28435#p28435"><![CDATA[
Thanks for the help ppl!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2536">FiskerEnDK</a> — Mon Oct 13, 2003 5:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-10-13T15:34:48-04:00</updated>

		<published>2003-10-13T15:34:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28427#p28427</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28427#p28427"/>
		<title type="html"><![CDATA[Trigger script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28427#p28427"><![CDATA[
well, not sure what you are trying, but the usual way most people would write this script is:<br><div class="codebox"><p>Code: </p><pre><code>bind PUB - !slap tudproc tud { nick uhost hand chan text } {   set msg [lindex [split $text] 0]   puthelp "PRIVMSG $chan :Slaps $msg Bigtime"}</code></pre></div>Note that your code used the keyword "args", which does have a special meaning.<br><br>Note that you need to add some checking in case someone simply types "!slap".<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Mon Oct 13, 2003 3:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FiskerEnDK]]></name></author>
		<updated>2003-10-13T15:13:05-04:00</updated>

		<published>2003-10-13T15:13:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28425#p28425</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28425#p28425"/>
		<title type="html"><![CDATA[Trigger script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28425#p28425"><![CDATA[
ya<br><br>bind pub - !slap tud<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2536">FiskerEnDK</a> — Mon Oct 13, 2003 3:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-10-13T15:08:25-04:00</updated>

		<published>2003-10-13T15:08:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28424#p28424</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28424#p28424"/>
		<title type="html"><![CDATA[Trigger script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28424#p28424"><![CDATA[
<blockquote class="uncited"><div>Now it just dont say anything in the chan even not the first of putserv!</div></blockquote>did you include a binding to the PUB !slap?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Mon Oct 13, 2003 3:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FiskerEnDK]]></name></author>
		<updated>2003-10-13T14:54:16-04:00</updated>

		<published>2003-10-13T14:54:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28423#p28423</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28423#p28423"/>
		<title type="html"><![CDATA[Trigger script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28423#p28423"><![CDATA[
Now it just dont say anything in the chan even not the first of putserv!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2536">FiskerEnDK</a> — Mon Oct 13, 2003 2:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-10-13T12:12:25-04:00</updated>

		<published>2003-10-13T12:12:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28407#p28407</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28407#p28407"/>
		<title type="html"><![CDATA[Trigger script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28407#p28407"><![CDATA[
you've forgot one { <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><div class="codebox"><p>Code: </p><pre><code>proc tud {nick uhost chan hand args} {</code></pre></div>is correct.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Oct 13, 2003 12:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Darkj]]></name></author>
		<updated>2003-10-13T11:34:20-04:00</updated>

		<published>2003-10-13T11:34:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28403#p28403</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28403#p28403"/>
		<title type="html"><![CDATA[Trigger script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28403#p28403"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc tud { nick mask hand chan text args } { set msg [lindex $args 0] putserv "PRIVMSG $chan :Slaps $msg Bigtime" } </code></pre></div>First of all your proc has too many args in it, and you should split your lindex for those nicks with weird chars in them.  This should do it...<br><div class="codebox"><p>Code: </p><pre><code>proc tud {nick uhost chan hand args}set msg [lindex [split $args] 0] putserv "PRIVMSG $chan :Slaps $msg Bigtime" } </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3459">Darkj</a> — Mon Oct 13, 2003 11:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FiskerEnDK]]></name></author>
		<updated>2003-10-13T10:38:33-04:00</updated>

		<published>2003-10-13T10:38:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28398#p28398</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28398#p28398"/>
		<title type="html"><![CDATA[Trigger script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28398#p28398"><![CDATA[
i made this script. I want it to take the last from a trigger and put it into the putserv line<br><br>e.g.<br>I write !slap Nick<br><br>proc tud { nick mask hand chan text args } {<br>set msg [lindex $args 0]<br>        putserv "PRIVMSG $chan :Slaps $msg Bigtime"<br>}<br><br>but the code dosent display the nick on the line.. properly a little args error can anyone help!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2536">FiskerEnDK</a> — Mon Oct 13, 2003 10:38 am</p><hr />
]]></content>
	</entry>
	</feed>
