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

	<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>2014-10-09T09:21:11-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Get_A_Fix]]></name></author>
		<updated>2014-10-09T09:21:11-04:00</updated>

		<published>2014-10-09T09:21:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103267#p103267</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103267#p103267"/>
		<title type="html"><![CDATA[Re: Reply]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103267#p103267"><![CDATA[
Just a couple of things;<br>Firstly, the set command is fine, but with set message, you'd want to brace your text string with "" .. like<div class="codebox"><p>Code: </p><pre><code>set message "this is a message text"</code></pre></div>Secondly, for a pub bind, the proper arguments are <div class="codebox"><p>Code: </p><pre><code>{nick uhost hand chan arg} {</code></pre></div>Instead of using "" in the bind, you can just do <div class="codebox"><p>Code: </p><pre><code>${command}</code></pre></div>You also forgot to declare the message as a global var, within the proc, otherwise it will error as $message can't be read.<div class="codebox"><p>Code: </p><pre><code>global message</code></pre></div>or you can not declare, like you did, and call it using <div class="codebox"><p>Code: </p><pre><code>$::message</code></pre></div>You're still learning, so it's good to try many different methods then find what works best.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6204">Get_A_Fix</a> — Thu Oct 09, 2014 9:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AlphaTech]]></name></author>
		<updated>2014-10-07T17:12:42-04:00</updated>

		<published>2014-10-07T17:12:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103263#p103263</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103263#p103263"/>
		<title type="html"><![CDATA[Reply]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103263#p103263"><![CDATA[
heres a simple script that does exactly what you want <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><div class="codebox"><p>Code: </p><pre><code>#set what you want the command to be below.set command !example_command#set what you want it to say belowset message Sample Message#No need to edit below this linebind pubm - "$command" my_simple_scriptproc my_simple_script {nick uhost handle chan text} {putquick "privmsg $chan :$message"}</code></pre></div>Don't forget to edit those variables up there! Once your done just put it in a .tcl file a drop it in your scripts directory. In your eggdrop.conf add that .tcl file and your done! Enjoy!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12414">AlphaTech</a> — Tue Oct 07, 2014 5:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2014-09-23T08:53:01-04:00</updated>

		<published>2014-09-23T08:53:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103212#p103212</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103212#p103212"/>
		<title type="html"><![CDATA[Simple trigger script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103212#p103212"><![CDATA[
Check out:<br><br><a href="http://suninet.the-demon.de/04.htm" class="postlink">http://suninet.the-demon.de/04.htm</a><br><a href="http://suninet.the-demon.de/041.htm" class="postlink">http://suninet.the-demon.de/041.htm</a><br><br>and<br>(from Get-A-Fix's link) :   <br><a href="http://www.eggheads.org/support/egghtml/1.6.21/tcl-commands.html#binda" class="postlink">http://www.eggheads.org/support/egghtml ... html#binda</a><br><br>Hint -<br>see:  bind pub<br><br>I hope this helps.<br>Let us know how you do.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Tue Sep 23, 2014 8:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Get_A_Fix]]></name></author>
		<updated>2014-09-23T08:10:44-04:00</updated>

		<published>2014-09-23T08:10:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103211#p103211</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103211#p103211"/>
		<title type="html"><![CDATA[Simple trigger script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103211#p103211"><![CDATA[
The answers you seek are inside the eggdrop directory, inside doc. It's a file called tcl-commands.doc - which explains all of the commands and events you can use. Have a read of <a href="http://www.eggheads.org/support/egghtml/1.6.21/" class="postlink">this</a> and <a href="http://www.egghelp.org/commands/index.htm" class="postlink">this</a>?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6204">Get_A_Fix</a> — Tue Sep 23, 2014 8:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[noobie10111]]></name></author>
		<updated>2014-09-23T00:27:22-04:00</updated>

		<published>2014-09-23T00:27:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103210#p103210</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103210#p103210"/>
		<title type="html"><![CDATA[Simple trigger script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103210#p103210"><![CDATA[
Hey all, I'm really new to this<br><br>I have my eggdrop up and running thankfully<br><br>I'm looking for a script so if someone types !ts it prints back the ip of my ts server, e.g. 244.244.244.244<br><br>It could be anything really just so I can get the syntax for a simple trigger response<br><br>I've browsed through alot of the pages but can't find anything<br><br>Would really appreciate the help, thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12435">noobie10111</a> — Tue Sep 23, 2014 12:27 am</p><hr />
]]></content>
	</entry>
	</feed>
