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

	<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-08-02T16:42:02-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-08-02T16:42:02-04:00</updated>

		<published>2003-08-02T16:42:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24281#p24281</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24281#p24281"/>
		<title type="html"><![CDATA[Needing some help in converting mIRC -&gt; TCL]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24281#p24281"><![CDATA[
1. Thanks for the help.<br>2. I'll try.<br>3. "nobody is in the mood or has time to make your scripts." &lt;- *sigh* Sorry for asking how it's done by "volunteering experts". <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"><p>Statistics: Posted by Guest — Sat Aug 02, 2003 4:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-08-02T09:47:03-04:00</updated>

		<published>2003-08-02T09:47:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24274#p24274</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24274#p24274"/>
		<title type="html"><![CDATA[Needing some help in converting mIRC -&gt; TCL]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24274#p24274"><![CDATA[
well us the pub binds (tcl-commands.doc)<br>for example second script "Anti Autojoin -kick" (I'll leave the others for you):<div class="codebox"><p>Code: </p><pre><code>#what prefix do you want to use ?set prefix "!"#code goes herebind pub n|n "${prefix}infkick" kick:nickproc kick:nick {nick uhost hand chan arg} { set vict [lindex [split $arg] 0] set rso [lindex [split $arg] 1 end] if {$vict == $::botnick} { putserv "PRIVMSG $nick :No"; return 0} #set your ban type.. lets call it $ban for example putserv "MODE $chan +b $ban" putserv "KICK $chan $vict :$rsn"} else { putserv "PRIVMSG $nick :Correct syntax: $::{prefix}infkick &lt;target&gt; &lt;reason&gt;"}</code></pre></div>try to understand it, then do the other scripts... cuz nobody is in the mood or has time to make your scripts.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Aug 02, 2003 9:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-08-02T08:16:36-04:00</updated>

		<published>2003-08-02T08:16:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24272#p24272</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24272#p24272"/>
		<title type="html"><![CDATA[Needing some help in converting mIRC -&gt; TCL]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24272#p24272"><![CDATA[
I have read some topics conserning the same thing, but I have so much things to ask that I decided to create new topic for it. For start, I'd like to ask how I should convert some parts of my earlier code to TCL. All texts, variables ect. were in finnish so i translated them on-the-fly for you. Makes things easier. (so don't expect anything politicaly correct text <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">) These mIRC scripts are in beta because I planned them for my friend and suddenly got one shell -account to run eggdrop in. You'll get the poin what it should do.<br>Oh, and I started to study TCL -scripting about two days ago, so...<br><br>1. Prefix'o'matic<div class="codebox"><p>Code: </p><pre><code>on 1600:text:*prefix*:#: {  if ($1 == %prefix $+ prefix ) {    set %prefix $2  }  else { halt }  halt}</code></pre></div>This code sets the prefix of all chancommands. (it's usualy "!") 1600 means owner. I don't actualy know how "$+" should be done.<br><br>2. Anti Autojoin -kick<div class="codebox"><p>Code: </p><pre><code>on 1600:text:*infkick*:#: {  if ($1 == %prefix $+ infkick) {     if ($2 == $me) { /msg $nick No. | halt }    /ban $chan $2 -u3    /msg $2 Anti autojoin -kick (3 sec ban)    /kick $chan $2 $3- (Infernal Kick)    set %last.command infkick $2 | set %last.user $nick  }  else { /msg $nick Correct syntax: %prefix $+ infkick &lt;target&gt; &lt;reason&gt; }  halt}</code></pre></div>This script first checks if prefix is right, then if it's going to kick himself, (witch it prevents) bans the target for 3 secs, sends some spam to the target, kicks the target, sets %last.command and %last.user. As I test this while i write, the un-ban needs some coding to work. You still got the point.<br><br>3a. Silent Night on/off<div class="codebox"><p>Code: </p><pre><code>on 1600:text:*silentnight*:#certain.channel:{  if ($1 == %prefix $+ silentnight) {    if ($2 == on) { .set %silentnight on | mode $chan +m | .msg $chan 4Silent night activated, stfu or get kicked! | set %last.command silentnight on | set %last.user $nick | halt }    if ($2 == off) { .set %silentnight off | mode $chan -m | .msg $chan 4Silent night deactivated. | set %last.command silentnight off | set %last.user $nick | halt }  }  else { halt }}</code></pre></div>Sets Silent night on or off and sets +/-m to that channel in addition to normal prefix -checks ect.<br><br>3b. Silent Night scan<div class="codebox"><p>Code: </p><pre><code>on 1:text:*:#certain.channel: {  if ($nick == negu) { halt }  if ($nick == Svir) { halt }  if (%silentnight == on) { kick $chan $nick Stfu! }  else { halt }}</code></pre></div>Nothing special here. Just kicks people if they speak when Silent Night is on.<br><br>-------------------------------------------<br>There is lots of other small scripts, but maby these will help me to start understanding tcl enough to convert 'em myself.<br>Sorry for possible bad english <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by Guest — Sat Aug 02, 2003 8:16 am</p><hr />
]]></content>
	</entry>
	</feed>
