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

	<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>2013-12-23T04:08:28-04:00</updated>

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

		<entry>
		<author><name><![CDATA[mrNobody]]></name></author>
		<updated>2013-12-23T04:08:28-04:00</updated>

		<published>2013-12-23T04:08:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102399#p102399</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102399#p102399"/>
		<title type="html"><![CDATA[Confide trigger to a script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102399#p102399"><![CDATA[
yeah that's how I fixed it eventually, thanks for the input :)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12300">mrNobody</a> — Mon Dec 23, 2013 4:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2013-12-22T10:53:01-04:00</updated>

		<published>2013-12-22T10:53:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102396#p102396</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102396#p102396"/>
		<title type="html"><![CDATA[Confide trigger to a script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102396#p102396"><![CDATA[
What about something like:<div class="codebox"><p>Code: </p><pre><code>bind pub - !le1 all:le1proc all:le1 {nick host hand chan text} {if {[channel get $chan raid]} {#code to be executed on +raid channels}elseif {[channel get $chan oc]} {#code to be executed on +oc channels}elseif {[channel get $chan moc]} {#code to be executed on +moc channels}} </code></pre></div>If you happen to have two or three of this flags active on a channel then replace the <em class="text-italics">elseif</em> with an <em class="text-italics">if</em>.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Dec 22, 2013 10:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mrNobody]]></name></author>
		<updated>2013-12-21T11:51:22-04:00</updated>

		<published>2013-12-21T11:51:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102377#p102377</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102377#p102377"/>
		<title type="html"><![CDATA[Confide trigger to a script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102377#p102377"><![CDATA[
Thank you for this input willyw, now I know what I want is not possible xD.<br><br>I have combined all three scripts into one and switched it in one proc, like your second suggestion said.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12300">mrNobody</a> — Sat Dec 21, 2013 11:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2013-12-02T12:20:24-04:00</updated>

		<published>2013-12-02T12:20:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102266#p102266</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102266#p102266"/>
		<title type="html"><![CDATA[Re: Confide trigger to a script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102266#p102266"><![CDATA[
<blockquote class="uncited"><div><br>....Individually they work fine, but when I load them together on the same bot, only the last loaded script works.<br>...</div></blockquote>You have:<br><br>bind pub - !le1 raid:le1 <br>bind pub - !le1 oc:le1 <br>bind pub - !le1 moc:le1 <br><br>I suspect that the only one that works, is the last one.   It overwrites the previous two.<br><br>Do:<br>.binds *!le1*<br>in partyline, and list all the binds that contain !le1<br>I'm thinking that you will find only one.<br><br>Do:<br>.help binds<br>to read more about how to use that command in the partyline.<br><br><br><br><blockquote class="uncited"><div>How can I make it so that if I use !le on a channel it uses the script assigned to that channel? </div></blockquote>Depends on which way you want to go. <br>One way would be to use a different bind for each proc.<br>!le1<br>!le2<br>!le3<br>or something like that.<br><br>If you must use only one bind, (and thus one command) then you'll have to have one proc that corresponds to that command.  Within that procedure will be the code that does the selecting.<br><div class="codebox"><p>Code: </p><pre><code>if {$chan == "$raid"} {      do stuff here    }if {$chan == "#oc"} {    do other stuff here    }</code></pre></div>There are probably a variety of ways to code the selection process.<br>This way just came to mind.<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> — Mon Dec 02, 2013 12:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mrNobody]]></name></author>
		<updated>2013-12-02T05:30:58-04:00</updated>

		<published>2013-12-02T05:30:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102264#p102264</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102264#p102264"/>
		<title type="html"><![CDATA[Confide trigger to a script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102264#p102264"><![CDATA[
Hi all,<br><br>Reading these forums has helped me a lot, but now I've come across a problem for which I can't find a solution in the search.<br><br>I wrote three scripts which all use the same handles. Individually they work fine, but when I load them together on the same bot, only the last loaded script works. I use a udef flag to assign the scripts to a specific channel, and check for that flag in the procs of the script.<br><br>How can I make it so that if I use !le on a channel it uses the script assigned to that channel?<br><br>Example:<br><div class="codebox"><p>Code: </p><pre><code>#This is channel raid, I have enabled the script with .chanset #raid +raidbind pub - !le1 raid:le1proc raid:le1 {nick host hand chan args} {global raidflagif { [channel get $chan $raidflag] } {#code}}</code></pre></div><div class="codebox"><p>Code: </p><pre><code>#This is channel oc, I have enabled the script with .chanset #oc +ocbind pub - !le1 oc:le1proc oc:le1 {nick host hand chan args} {global ocflagif { [channel get $chan $ocflag] } {#code}}</code></pre></div><div class="codebox"><p>Code: </p><pre><code>#This is channel moc, I have enabled the script with .chanset #moc +mocbind pub - !le1 moc:le1proc moc:le1 {nick host hand chan args} {global mocflagif { [channel get $chan $mocflag] } {#code}}</code></pre></div>So that all works fine and does what it is supposed to do as long as I only load one script. If I load all three of them, two of the channels stop working. How can I make the bot recognise the trigger on the chan it's on to bind with the script that's running on that chan?<br><br>thanks in advance for your replies, and please let me know if you need more info.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12300">mrNobody</a> — Mon Dec 02, 2013 5:30 am</p><hr />
]]></content>
	</entry>
	</feed>
