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

	<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>2012-04-09T18:50:12-04:00</updated>

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

		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2012-04-09T18:50:12-04:00</updated>

		<published>2012-04-09T18:50:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99175#p99175</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99175#p99175"/>
		<title type="html"><![CDATA[How to make a chanset flag on a script?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99175#p99175"><![CDATA[
<blockquote class="uncited"><div>So.. as i cant get DCC to work, and .chanset doesnt work in my partyline for some reason..<br></div></blockquote>Suggest that you start your own thread.  You are much more likely to get help that way.<br><br>Before you try to do what you want, you should first get DCC chat to work with bot (or telnet) so that you can join the partyline.  <br><br>Next, there must be some reason that .chanset does not work.   You should figure that out, or get help figuring it out.   It is a necessary command.<br><br>Those are the things you might want to ask about - first - when you start your new thread.    <br>View the forum home here:  <a href="http://forum.egghelp.org/" class="postlink">http://forum.egghelp.org/</a><br>and choose the best section, depending on your question(s).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Mon Apr 09, 2012 6:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Valinath]]></name></author>
		<updated>2012-04-09T15:56:24-04:00</updated>

		<published>2012-04-09T15:56:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99174#p99174</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99174#p99174"/>
		<title type="html"><![CDATA[How to make a chanset flag on a script?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99174#p99174"><![CDATA[
So.. as i cant get DCC to work, and .chanset doesnt work in my partyline for some reason..<br><br>Is it possible to remove those lines in the scripts to make it work?<br>(The question is if this is possible to reverse?)<br><br>/Valinath<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11958">Valinath</a> — Mon Apr 09, 2012 3:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spithash]]></name></author>
		<updated>2011-10-30T11:08:29-04:00</updated>

		<published>2011-10-30T11:08:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98065#p98065</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98065#p98065"/>
		<title type="html"><![CDATA[How to make a chanset flag on a script?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98065#p98065"><![CDATA[
stop posting wherever you feel like. posts like this one and the other you made, should be in "scripting help". ever used a forum before?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9145">spithash</a> — Sun Oct 30, 2011 11:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Mysticales]]></name></author>
		<updated>2011-10-29T19:08:28-04:00</updated>

		<published>2011-10-29T19:08:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98054#p98054</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98054#p98054"/>
		<title type="html"><![CDATA[How to make a chanset flag on a script?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98054#p98054"><![CDATA[
Thanks! Here is what I used. (For anyone else searching with this issue or question)<br><div class="codebox"><p>Code: </p><pre><code>setudef flag your_flag </code></pre></div>For the standard variable to add in the setup or config of a script. <br><div class="codebox"><p>Code: </p><pre><code>if {![channel get $chan your_flag]} { return 0 }</code></pre></div>Put that line in the proc of a script (or the part of the script that starts the thing) added it BEFORE any other "if" lines of the script after proc.<br><br>Worked well. =)<br><br>(Added this atm to the Strategy script, very handy now to disable so people dont activate it mid busy time of the week in the room)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11814">Mysticales</a> — Sat Oct 29, 2011 7:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2011-10-29T17:47:40-04:00</updated>

		<published>2011-10-29T17:47:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98052#p98052</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98052#p98052"/>
		<title type="html"><![CDATA[Re: How to make a chanset flag on a script?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98052#p98052"><![CDATA[
One way:<br><br>First, see:  <a href="http://www.eggheads.org/support/egghtml/1.6.20/tcl-commands.html" class="postlink">http://www.eggheads.org/support/egghtml ... mands.html</a><br>and find:     setudef<br><br><br><br>Example would be something like:<br><div class="codebox"><p>Code: </p><pre><code>setudef flag your_flag</code></pre></div><br>Then, for the first line of any proc that you want to activate, only when you have:<br>.chanset #channel +your_flag<br>put this:<br><div class="codebox"><p>Code: </p><pre><code>if {([lsearch -exact [channel info $chan] {+your_flag}] != -1)}  {###  the rest of the procedure goes here###}</code></pre></div>You can find:<br>channel info<br>in tcl-commands.doc too.<br><br>For <br>lsearch<br>go here:  <a href="http://www.tcl.tk/man/tcl8.5/TclCmd/lsearch.htm" class="postlink">http://www.tcl.tk/man/tcl8.5/TclCmd/lsearch.htm</a><br><br><br>I hope this helps.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sat Oct 29, 2011 5:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Mysticales]]></name></author>
		<updated>2011-10-29T16:15:26-04:00</updated>

		<published>2011-10-29T16:15:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98049#p98049</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98049#p98049"/>
		<title type="html"><![CDATA[How to make a chanset flag on a script?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98049#p98049"><![CDATA[
Hello, just wondering, for the script, Strategy or hell, anything else Id like. How would I make a chanset flag so the script would only run if I have it set to +? Looking to add the games to my bot, but dont want them active all the time. Thanks. =)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11814">Mysticales</a> — Sat Oct 29, 2011 4:15 pm</p><hr />
]]></content>
	</entry>
	</feed>
