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

	<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>2004-09-06T00:44:36-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-09-06T00:44:36-04:00</updated>

		<published>2004-09-06T00:44:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40612#p40612</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40612#p40612"/>
		<title type="html"><![CDATA[oper fjoin/!move/vhost .tcl help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40612#p40612"><![CDATA[
Well what you can do here is make a list, of the main room channels which you want the bots triggers to only work on.<br><br>set mainrooms "#chan1 #chan2 #chan3"<br><br>Then in your procedure check if the trigger command is done on any of the mainrooms, then only go ahead and 'do your stuff'<br><br>Use this in your procedure at first:<br><div class="codebox"><p>Code: </p><pre><code>if {([lsearch -exact [split [string tolower $mainrooms]] [string tolower $chan]] != -1)} {</code></pre></div>This is what you needed, hope it helps!  <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=4875">awyeah</a> — Mon Sep 06, 2004 12:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-09-03T09:28:59-04:00</updated>

		<published>2004-09-03T09:28:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40554#p40554</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40554#p40554"/>
		<title type="html"><![CDATA[oper fjoin/!move/vhost .tcl help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40554#p40554"><![CDATA[
sorry i also forgot to mention that the fjoin and !move are only able to be done in the main room channels they usually use a variable how would that be done in .tcl for instance they would set the variable as %m.rooms and have all the main rooms listed on it<p>Statistics: Posted by Guest — Fri Sep 03, 2004 9:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-09-02T23:57:27-04:00</updated>

		<published>2004-09-02T23:57:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40553#p40553</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40553#p40553"/>
		<title type="html"><![CDATA[oper fjoin/!move/vhost .tcl help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40553#p40553"><![CDATA[
i have much difficulty understanding .tcl lol however from what i have seen im sure i could probably come up with the rest and also learn from it ty very much so for this however i have but just one question pertaining to this for instance using the !move command how would i make it so that if the user being moved is in #admins that the command would not proceed...<br>i apreciate all of your help ty very much for taking the time to help me learn this style of scripting<p>Statistics: Posted by Guest — Thu Sep 02, 2004 11:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DayCuts]]></name></author>
		<updated>2004-09-02T20:50:06-04:00</updated>

		<published>2004-09-02T20:50:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40552#p40552</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40552#p40552"/>
		<title type="html"><![CDATA[oper fjoin/!move/vhost .tcl help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40552#p40552"><![CDATA[
That is mirc scripting not tcl.  All you have done is change the on text events to tcl binds.  which simply will not work.<br><br>First of all you must seperate binds from the code.. eg<br>bind pub m|m vhost my:vhostproc<br><br>proc my:vhostproc {nick host hand chan arg} {<br>  your code here<br>}<br><br>A HUGE factor to realise is that tcl handles command arguments very differently, all arguements given with a command are stores in $arg not the $1 $2 $3- etc that mirc scripting uses.<br><br>Here is the first part to get you started, keep in mind this is very basic and untested.  I highly suggest you RTFM : )<br><div class="codebox"><p>Code: </p><pre><code>bind pub m|m vhost my:vhostprocproc my:vhostproc {nick host hand chan arg} {  putmsg NickServ "set [lindex $arg 0] [lindex $arg 1]"  putnotc $nick "Vhost of [lindex $arg 0] changed to [lindex $arg 1]"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5073">DayCuts</a> — Thu Sep 02, 2004 8:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-09-02T17:17:15-04:00</updated>

		<published>2004-09-02T17:17:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40550#p40550</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40550#p40550"/>
		<title type="html"><![CDATA[oper fjoin/!move/vhost .tcl help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40550#p40550"><![CDATA[
that's not tcl.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Sep 02, 2004 5:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-09-02T14:58:44-04:00</updated>

		<published>2004-09-02T14:58:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40549#p40549</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40549#p40549"/>
		<title type="html"><![CDATA[oper fjoin/!move/vhost .tcl help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40549#p40549"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub m|m vhost /ns set $2 $3- | /notice $nick vhost of $2 changed to $3-bind pub m|m fjoin { if ( [ $chan isin %m.rooms ] ) &amp;&amp; ( [ $3 isin %m.rooms ] ) { /sajoin $2 $3 | /notice $nick $2 forced to join $3 }elseif ( [ $chan !isin %m.rooms ] ) { /halt }elseif ( [ $3 !isin %m.rooms ] ) { /notice $nick sorry but due to abuse only main channels can be forced to }bind pub m|m !move { if ( [ $chan isin %m.rooms ] ) &amp;&amp; ( [ $3 isin %m.rooms ] ) &amp;&amp; ( [ $chan != #admins ] ) { /sajoin $2 $3 | /timer 1 5 /sapart $2 $chan | /notice $nick $2 forced to $3 $+ , $2 will be parted from here in 5 seconds }elseif ( [ $chan !isin %m.rooms ] ) { /halt }elseif ( [ $3 !isin %m.rooms ] ) { /notice $nick sorry but due to abuse only main channels can be forced to }#main rooms set in variable %m.rooms</code></pre></div>ok ive never made .tcl scripts before will this work if not can you tell me what i need to do to make it work<p>Statistics: Posted by Guest — Thu Sep 02, 2004 2:58 pm</p><hr />
]]></content>
	</entry>
	</feed>
