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

	<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-07-28T14:18:14-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-07-28T14:18:14-04:00</updated>

		<published>2003-07-28T14:18:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24116#p24116</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24116#p24116"/>
		<title type="html"><![CDATA[Hi, Help With tcl scripting pleas :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24116#p24116"><![CDATA[
great!<p>Statistics: Posted by Guest — Mon Jul 28, 2003 2:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-07-28T14:02:08-04:00</updated>

		<published>2003-07-28T14:02:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24114#p24114</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24114#p24114"/>
		<title type="html"><![CDATA[Hi, Help With tcl scripting pleas :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24114#p24114"><![CDATA[
pretty good.<br>the - stands for any flag, for example if u want it to only read the pub from owners then u put <strong class="text-strong">bind pub n !help &lt;procname&gt;</strong><br><br>as for <strong class="text-strong">on *:text:</strong> is not always replaced by <strong class="text-strong">bind pub</strong><br>if text on channel then bind pub, if private use binf msg or msgm (check'em out in tcl-commands.doc)<br><br>and yeah the <strong class="text-strong">on *:join</strong> is a join bind (<strong class="text-strong">bind join</strong>)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Jul 28, 2003 2:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-07-28T13:24:04-04:00</updated>

		<published>2003-07-28T13:24:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24113#p24113</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24113#p24113"/>
		<title type="html"><![CDATA[Hi, Help With tcl scripting pleas :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24113#p24113"><![CDATA[
Thx Allot guy's thx for the links will tak a look there i hope i can make some nice scripts THX !<br><br>what dous the <div class="codebox"><p>Code: </p><pre><code>bind pub - !help pub:help</code></pre></div> part ?<br><br>i think it says when !help is said in channel it shall do process pub:help? is that right?<br><br>ahea found something on site<div class="codebox"><p>Code: </p><pre><code>PUBbind pub &lt;flags&gt; &lt;command&gt; &lt;proc&gt;procname &lt;nick&gt; &lt;user@host&gt; &lt;handle&gt; &lt;channel&gt; &lt;text&gt;Description: used for commands given on a channel. The first word becomes the command and everything else is the text argument.Module: irc</code></pre></div>but I don't see the "-" between the "bind pub" and "!help"<div class="codebox"><p>Code: </p><pre><code>site: bind pub &lt;flags&gt; &lt;command&gt; &lt;proc&gt;script: bind pub - !help pub:help</code></pre></div>any reason for that?<br><br><br>hm think i just figuerd something out<br>you can translate the<br>"on *:text:.."  with "bind pub"<br><br>on *:join: -&gt; bind join <br>is that correct?<p>Statistics: Posted by Guest — Mon Jul 28, 2003 1:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-07-28T13:00:17-04:00</updated>

		<published>2003-07-28T13:00:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24110#p24110</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24110#p24110"/>
		<title type="html"><![CDATA[Hi, Help With tcl scripting pleas :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24110#p24110"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub - !help pub:help proc pub:help {nick host hand chan text} {   if {$text == ""} {     putserv "PRIVMSG $nick :Hello $nick, type !help &lt;question&gt;"   } else {     putserv "PRIVMSG $nick :Help test 123 works"   } }</code></pre></div>also this may work:<div class="codebox"><p>Code: </p><pre><code>bind pub - !help pub:help proc pub:help {nick host hand chan text} {   if {$text != ""} {     putserv "PRIVMSG $nick :Help test 123 works"   } else {    putserv "PRIVMSG $nick :Hello $nick, type !help &lt;question&gt;"   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Jul 28, 2003 1:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LtPhil]]></name></author>
		<updated>2003-07-28T11:58:12-04:00</updated>

		<published>2003-07-28T11:58:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24100#p24100</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24100#p24100"/>
		<title type="html"><![CDATA[Hi, Help With tcl scripting pleas :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24100#p24100"><![CDATA[
i actually have a help command in my eggdrop (it works until i write another script that kills the entire bot <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"> ), that takes multiple parameters.  here's how it works (\002 is the escape sequence to make text bold in IRC):<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !help pub:helpproc pub:help {nick host hand chan text} {  switch $text {    "!help" {      putserv "PRIVMSG $nick :\002!help\002 gives you a list of commands"    }    "!opme" {      putserv "PRIVMSG $nick :\002!opme\002 will op you in the given channel, if you are an auto-op"    }    "!kick" {      putserv "PRIVMSG $nick :\002!kick &lt;nick&gt;\002 will kick the specified nick from the channel, if you are an auto-op"    }    "!cookie" {      putserv "PRIVMSG $nick :\002!cookie [nick]\002 will give a cookie to the specified nick, or to you if you don't specify a nick"    }    default {      putserv "PRIVMSG $nick :Command listing:"      putserv "PRIVMSG $nick :!help , !opme , !kick , !cookie"      putserv "PRIVMSG $nick :Type \002!help &lt;command&gt;\002 for more help on that command"    }  }}</code></pre></div>the <strong class="text-strong">default</strong> block will trigger if none of the other blocks triggered -- whether the user didn't specify a command they wanted help on, or they specified something that wasn't in the listing.  if you wanted it to ONLY give the command listing when the user didn't specify a command for help on, i think you'd just need to replace <strong class="text-strong">default</strong> with a pair of double-quotes, like <strong class="text-strong">""</strong><br><br>that isn't my script <strong class="text-strong">exactly</strong>, but it should give you an idea of how to set everything up <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=3577">LtPhil</a> — Mon Jul 28, 2003 11:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LtPhil]]></name></author>
		<updated>2003-07-28T11:48:32-04:00</updated>

		<published>2003-07-28T11:48:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24099#p24099</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24099#p24099"/>
		<title type="html"><![CDATA[Hi, Help With tcl scripting pleas :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24099#p24099"><![CDATA[
<strong class="text-strong">PART 1</strong><br>i tend to use <a href="http://tcl.powersource.cx/eggtcl.php" class="postlink">http://tcl.powersource.cx/eggtcl.php</a> and <a href="http://www.suninet.nl/tclguide/index.php" class="postlink">http://www.suninet.nl/tclguide/index.php</a> most often.  there are plenty of other references out there, too.  just google what you're looking for, and make sure to include "eggdrop" and/or "TCL" as a search keyword.<br><br><strong class="text-strong">PART 2</strong><br><div class="codebox"><p>Code: </p><pre><code>on *:text:!help*:#help:{  if ($2 == $null) { /.msg $nick Hello $nick $+ , type !help &lt;question&gt; }  if ($2 != $null) {    /.msg $nick Help test 123 worcks  }}</code></pre></div>i'm no TCL genius... but i think the following code snippet should be equivalent (untested as of yet -- my eggy's broken right now):<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !help pub:helpproc pub:help {nick host hand chan text} {  if {$text == ""} {    putserv "PRIVMSG $nick :Hello ${nick}, type !help &lt;question&gt;"  } {    putserv "PRIVMSG $nick :Help test 123 works"  }}</code></pre></div>will have a snippet in just a bit that will help you to process WHAT the parameter is...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3577">LtPhil</a> — Mon Jul 28, 2003 11:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-07-28T11:29:42-04:00</updated>

		<published>2003-07-28T11:29:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24098#p24098</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24098#p24098"/>
		<title type="html"><![CDATA[Hi, Help With tcl scripting pleas :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24098#p24098"><![CDATA[
Hi I'm Gods Hell,<br><br>I'm using mIRC for over 2 years now i make my own mIRC scripts etc<br><br>and now i'm willing to learn tcl<br><br>i was looking for sites or help files where every comand is explained (like the help file of mIRC)<br>but i haven't foud it yet ... so if someone has this kind of info it wopuld be verry nice if you could send me it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>now for the 2nd part<br><br>can someone translate mIRC script--&gt; tcl script<br><br>just a litle example:<div class="codebox"><p>Code: </p><pre><code>on *:text:!help*:#help:{  if ($2 == $null) { /.msg $nick Hello $nick $+ , type !help &lt;question&gt; }  if ($2 != $null) {    /.msg $nick Help test 123 worcks   }}</code></pre></div>so i know how the trigger event's are<br><br>i looked in some scripts but the only thing i c is <br>proc .... {<br><br>}<p>Statistics: Posted by Guest — Mon Jul 28, 2003 11:29 am</p><hr />
]]></content>
	</entry>
	</feed>
