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

	<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>2005-09-30T16:59:24-04:00</updated>

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

		<entry>
		<author><name><![CDATA[notstrider]]></name></author>
		<updated>2005-09-30T16:59:24-04:00</updated>

		<published>2005-09-30T16:59:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56238#p56238</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56238#p56238"/>
		<title type="html"><![CDATA[possible help for a one line script?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56238#p56238"><![CDATA[
haha. thanks again man. i really appreciate it. <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=6788">notstrider</a> — Fri Sep 30, 2005 4:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[notstrider]]></name></author>
		<updated>2005-09-30T05:45:37-04:00</updated>

		<published>2005-09-30T05:45:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56223#p56223</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56223#p56223"/>
		<title type="html"><![CDATA[possible help for a one line script?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56223#p56223"><![CDATA[
it seems to be working well. thanks man. i appreciate it. if there is any issue with it, i'll be back. thanks again.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6788">notstrider</a> — Fri Sep 30, 2005 5:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-09-30T05:54:14-04:00</updated>

		<published>2005-09-30T05:35:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56222#p56222</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56222#p56222"/>
		<title type="html"><![CDATA[possible help for a one line script?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56222#p56222"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub - cttl cttl:calcproc cttl:calc {nick uhost hand chan arg} {  set arg [split $arg]  set x [lindex $arg 0]  set y [lindex $arg 1]  if {[string is double -s $x] &amp;&amp; [string is double -s $y]} {    puthelp "PRIVMSG $chan :$nick has [duration [expr (100 - $x) / $y]] til next level -- STN!"    return 1  } else {    puthelp "NOTICE $nick :you are too stupid to enter 2 floating point values!"    return 0  }}</code></pre></div>dont know if the calc is correct, since I dont know what to do with ",2"<br><br>PS: changed the script a little bit. I hope you have either the string map or the string is double inside, I almost forgot to ensure valid and safe evaluation. But with is double we also prevent causing any TCL errors... tcl errors always override errorInfo and therefore anyoing <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Fri Sep 30, 2005 5:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[notstrider]]></name></author>
		<updated>2005-09-30T04:09:39-04:00</updated>

		<published>2005-09-30T04:09:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56219#p56219</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56219#p56219"/>
		<title type="html"><![CDATA[possible help for a one line script?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56219#p56219"><![CDATA[
Alright. Bear with me, I absolutely know nothing about Tcl scripting. I can't really make heads or tails of it. It's sad, I know. What I basically want to do is 'convert' a single line code from a mIRC script to Tcl. <br><br>The code is:<br><div class="codebox"><p>Code: </p><pre><code>on 1:TEXT:cttl*:#chan:msg # $nick has $duration($calc((100 - $$2) / $$3),2) til next level -- STN!</code></pre></div>Now, I've tried reading up on 'bind/pub', and I basically just get lost. Also the calc code is somewhat confusing me. Any help would be greatly appreciated. I'll try to read more about Tcl too. Thanks for helping out a 'newbie'.<br><br>Oh, also. The script does this -- If the user in #chan types 'cttl 19.82 .0005' (just an example), the bot will respond with 'user has 1hr 23minutes til next level -- STN!'. It's basically cheesy, but it's for myself and friends of mine that place a certain game, so this just determines when the next time we level up. Again, it's cheesy. heh.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6788">notstrider</a> — Fri Sep 30, 2005 4:09 am</p><hr />
]]></content>
	</entry>
	</feed>
