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

	<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>2008-04-01T12:44:02-04:00</updated>

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

		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2008-04-01T12:44:02-04:00</updated>

		<published>2008-04-01T12:44:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82106#p82106</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82106#p82106"/>
		<title type="html"><![CDATA[[quakenet] auto add/remove chanlev for users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82106#p82106"><![CDATA[
Thanks <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Tue Apr 01, 2008 12:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-03-31T16:41:35-04:00</updated>

		<published>2008-03-31T16:41:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82097#p82097</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82097#p82097"/>
		<title type="html"><![CDATA[[quakenet] auto add/remove chanlev for users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82097#p82097"><![CDATA[
<blockquote class="uncited"><div>hehehe didn't think it was needed when $text was used.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"></div></blockquote>It's needed whenever you want to use list manipulation on a string. Split converts the string into a list, as well as protecting (escaping) special characters.<div class="codebox"><p>Code: </p><pre><code># string -&gt; split -&gt; 1st wordset data [lindex [split $text] 0]# args -&gt; 1st parameter group -&gt; split -&gt; 1st wordset data [lindex [split [lindex $args 0]] 0]</code></pre></div>Both of these accomplish the same thing within a procedure.<br><br>$args (special reserved token in tcl) enters the procedure as a list, but not a normal list (it's a list of sublist's actually). It is made to allow several binds (irregardless of parameters) to use the same procedure. Depending on where you place $args in the procedure header determines what parameters it will 'swallow' as <strong class="text-strong">arg</strong>ument<strong class="text-strong">s</strong> (hence its name args). Don't use it unless you need it and fully understand it.<br>For a better understanding of this behavior see <a href="http://www.peterre.info/characters.html" class="postlink">"A point worthy of note about args"</a> by "Peterre". It covers this exact scenario discussed above.<br><br>$text enters the procedure as a standard string variable. It's contents should (read this as must) always be split prior to using list commands.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Mon Mar 31, 2008 4:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2008-03-31T14:42:07-04:00</updated>

		<published>2008-03-31T14:42:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82096#p82096</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82096#p82096"/>
		<title type="html"><![CDATA[[quakenet] auto add/remove chanlev for users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82096#p82096"><![CDATA[
hehehe didn't think it was needed when $text was used.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Mon Mar 31, 2008 2:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-03-31T12:12:19-04:00</updated>

		<published>2008-03-31T12:12:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82095#p82095</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82095#p82095"/>
		<title type="html"><![CDATA[[quakenet] auto add/remove chanlev for users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82095#p82095"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>proc pub:ticket {nick uhost hand chan text} {<br> set who [lindex $args 0]...</div></blockquote> This that should be <div class="codebox"><p>Code: </p><pre><code>set who [lindex $text 0]</code></pre></div>  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote>This that should be <div class="codebox"><p>Code: </p><pre><code>set who [lindex [split $text] 0]</code></pre></div>  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Mon Mar 31, 2008 12:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2008-03-31T08:55:15-04:00</updated>

		<published>2008-03-31T08:55:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82094#p82094</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82094#p82094"/>
		<title type="html"><![CDATA[[quakenet] auto add/remove chanlev for users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82094#p82094"><![CDATA[
<blockquote class="uncited"><div>proc pub:ticket {nick uhost hand chan text} {<br> set who [lindex $args 0]...</div></blockquote> This that should be <div class="codebox"><p>Code: </p><pre><code>set who [lindex $text 0]</code></pre></div>  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Mon Mar 31, 2008 8:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ven000m]]></name></author>
		<updated>2008-03-28T12:28:31-04:00</updated>

		<published>2008-03-28T12:28:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82057#p82057</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82057#p82057"/>
		<title type="html"><![CDATA[[quakenet] auto add/remove chanlev for users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82057#p82057"><![CDATA[
Hell0 fellas.<br><br>I wanted to ask for a tcl script:<br><br>okay lets go:<br><br><br>1) When i type <strong class="text-strong">!ticket &lt;nickname&gt;</strong> the eggdrop should do: <strong class="text-strong">/msg Q chanlev #BamsUnholyUnion &lt;nickname&gt; +av </strong>, at the same time he should message in the active channel: <strong class="text-strong">Thanks for using our Service, you can now join #BamsUnholyUnion for 5 Minutes!</strong>.<br><br>Well.., after 4 Minutes, the bot should <strong class="text-strong">notice</strong> the &lt;nickname&gt; with: <strong class="text-strong">Your Ticket is in the last Minute! Pay for a Lifetime Ticket</strong>.<br><br>After 5 Minutes, the Bot should message in #BamsUnholyUnion: <strong class="text-strong">&lt;nickname&gt;, your Ticket was deleted (Reason: Test Time Expierence)</strong><br><br>After this the Bot should do that: <strong class="text-strong">/msg Q chanlev #BamsUnholyUnion &lt;nickname&gt; -av</strong><br><br><br><br>DONE:)<br><br>REALLY BIG THANKS, I NEED THIS SCRIPT <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br><br><br>EDIT:<br><div class="codebox"><p>Code: </p><pre><code>bind pub o|o !ticket pub:ticketproc pub:ticket {nick uhost hand chan text} {     set who [lindex $args 0]     putserv "MODE $chan +v $who"     putquick "PRIVMSG $chan :Thanks for using our Service $who, you can now join #BamsUnholyUnion for 5 Minutes!"     putquick "PRIVMSG Q :chanlev #BamsUnholyUnion $who +av"     timer 4 [list putserv "NOTICE $who :Your Ticket is in the last Minute! Pay for a Lifetime Ticket"]     timer 5 [list (putquick "PRIVMSG #BamsUnholyUnion :$who, your Ticket was deleted (Reason: Test Time Expierence)) &amp;&amp; (putquick "PRIVMSG Q :chanlev #BamsUnholyUnion $who -av)]}</code></pre></div>doesnt work <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_neutral.gif" width="15" height="15" alt=":|" title="Neutral"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9821">ven000m</a> — Fri Mar 28, 2008 12:28 pm</p><hr />
]]></content>
	</entry>
	</feed>
