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

	<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>2006-09-21T20:55:28-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2006-09-21T20:55:28-04:00</updated>

		<published>2006-09-21T20:55:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66530#p66530</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66530#p66530"/>
		<title type="html"><![CDATA[moxquizz]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66530#p66530"><![CDATA[
You do not edit any Tcl file you edit the .rc file <span style="text-decoration:underline">as per instructions</span>.<blockquote class="uncited"><div>## Defaults for bot configuration. Don't edit here, edit the file<br>## <strong class="text-strong">moxquizz.rc</strong> instead! </div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Thu Sep 21, 2006 8:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Thanhas]]></name></author>
		<updated>2006-09-21T05:42:09-04:00</updated>

		<published>2006-09-21T05:42:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66518#p66518</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66518#p66518"/>
		<title type="html"><![CDATA[sorry]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66518#p66518"><![CDATA[
<blockquote class="uncited"><div># say Hi to "known" users<br>proc moxquiz_purr {nick host handle channel action arg} {<br>    global quizconf allstarsarray<br>      global botnick<br>         # [pending] translate this<br>    set tlist [list "purrs." \<br>                   "meows." \<br>                   "happily hops around."]<br><br>    if {$action == "ACTION" &amp;&amp; $arg == "pats $botnick" &amp;&amp;<br>        [mx_str_ieq $channel $quizconf(quizchannel)] &amp;&amp;<br>        ([validuser $handle] || [info exists allstarsarray($nick)]) } {<br>        mxirc_action $quizconf(quizchannel) [lindex $tlist [rand [llength $tlist]]]<br>    }<br>}</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8161">Thanhas</a> — Thu Sep 21, 2006 5:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Thanhas]]></name></author>
		<updated>2006-09-21T05:31:53-04:00</updated>

		<published>2006-09-21T05:31:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66516#p66516</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66516#p66516"/>
		<title type="html"><![CDATA[i don't know why i can']]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66516#p66516"><![CDATA[
i don't know why its not pasting all ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8161">Thanhas</a> — Thu Sep 21, 2006 5:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2006-09-21T05:16:32-04:00</updated>

		<published>2006-09-21T05:16:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66515#p66515</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66515#p66515"/>
		<title type="html"><![CDATA[moxquizz]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66515#p66515"><![CDATA[
Add: <div class="codebox"><p>Code: </p><pre><code>global botnick</code></pre></div>After the: <blockquote class="uncited"><div>global quizconf allstarsarray</div></blockquote> line<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Thu Sep 21, 2006 5:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Thanhas]]></name></author>
		<updated>2006-09-21T04:23:48-04:00</updated>

		<published>2006-09-21T04:23:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66512#p66512</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66512#p66512"/>
		<title type="html"><![CDATA[heay]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66512#p66512"><![CDATA[
it was fine but suddenly i see this Errer 2 <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> don't know where shuold i FIND the prob.,.,.,.,.,<br><br>Errer <br>-------------------------------------------------------------------<br> Tcl error [moxquiz_purr]: can't read "botnick": no such variable<br>--------------------------------------------------------------------<br><blockquote class="uncited"><div>## Version:<br>set version_moxquizz "0.8.1"<br><br>package require msgcat<br><br>namespace import -force msgcat::*<br><br>###########################################################################<br>##<br>## ATTENTION:<br>##<br>## Defaults for bot configuration.  Don't edit here, edit the file<br>## moxquizz.rc instead!<br>##<br>###########################################################################<br><br><br># system stuff<br>variable quizbasedir        moxquizz<br>variable datadir            $quizbasedir/quizdata<br>variable configfile         $quizbasedir/moxquizz.rc<br>variable intldir            $quizbasedir/intl<br><br>variable rankfile           $datadir/rank.data<br>variable allstarsfile       $datadir/rankallstars.data<br>variable statsfile          $datadir/stats.data<br>variable userqfile          $datadir/questions.user.new<br>variable commentsfile       $datadir/comments.txt<br><br>variable quizhelp<br><br># these will be searched in $intldir/$quizconf(language)<br>variable channeltipfile     channeltips.txt<br>variable channelrulesfile   channelrules.txt<br>variable pricesfile         prices.txt<br>variable helpfile           help.txt<br></div></blockquote>what am i do ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8161">Thanhas</a> — Thu Sep 21, 2006 4:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Thanhas]]></name></author>
		<updated>2006-09-19T13:17:46-04:00</updated>

		<published>2006-09-19T13:17:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66463#p66463</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66463#p66463"/>
		<title type="html"><![CDATA[Thanks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66463#p66463"><![CDATA[
Thanks it works thanks alot <br>Regards<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8161">Thanhas</a> — Tue Sep 19, 2006 1:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-09-19T10:52:10-04:00</updated>

		<published>2006-09-19T10:52:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66460#p66460</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66460#p66460"/>
		<title type="html"><![CDATA[moxquizz]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66460#p66460"><![CDATA[
the problem is afaik mainly the unescaped newline. I bypassed by simply putting it into one line:<div class="codebox"><p>Code: </p><pre><code>    if {$action == "ACTION" &amp;&amp; $arg == "pats $botnick" &amp;&amp; [mx_str_ieq $channel $quizconf(quizchannel)] &amp;&amp; ([validuser $handle] || [info exists allstarsarray($nick)]) } {        mxirc_action $quizconf(quizchannel) [lindex $tlist [rand [llength $tlist]]]    }</code></pre></div>PS: I sent in this fix more than a year ago to the creator... but either email failed or he nolonger responds to them <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> — Tue Sep 19, 2006 10:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2006-09-19T08:26:02-04:00</updated>

		<published>2006-09-19T08:26:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66455#p66455</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66455#p66455"/>
		<title type="html"><![CDATA[moxquizz]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66455#p66455"><![CDATA[
Your missing the $ before arg:<br><div class="codebox"><p>Code: </p><pre><code>if {$action == "ACTION" &amp;&amp; $arg == "pats $botnick" &amp;&amp; [mx_str_ieq $channel $quizconf(quizchannel)] &amp;&amp; ([validuser $handle] || [info exists allstarsarray($nick)]) } {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Tue Sep 19, 2006 8:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Thanhas]]></name></author>
		<updated>2006-09-19T07:38:23-04:00</updated>

		<published>2006-09-19T07:38:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66453#p66453</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66453#p66453"/>
		<title type="html"><![CDATA[moxquizz]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66453#p66453"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>-----------------------------[b]# mini funstuffbind pub - !hi moxquiz_pub_hibind ctcp - action moxquiz_purr[/b]------------------------------# say Hi to "known" usersproc moxquiz_purr {nick host handle channel action arg} {    global quizconf allstarsarray    # [pending] translate this    set tlist [list "purrs." \                   "meows." \                   "happily hops around."]    if {$action == "ACTION" &amp;&amp; arg == "pats $botnick" &amp;&amp;        [mx_str_ieq $channel $quizconf(quizchannel)] &amp;&amp;        ([validuser $handle] || [info exists allstarsarray($nick)]) } {        mxirc_action $quizconf(quizchannel) [lindex $tlist [rand [llength $tlist]]]    }}</code></pre></div>Errer is on action when someone type /me anything the BOT in has DCC type <br><br>Tcl error [moxquiz_purr]: syntax error in expression "$action == "ACTION" &amp;&amp; arg == "pats $botnick" &amp;&amp;<br><br><br><br>i hope someone will find the reason of Errer i try my best on it<br>regards<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8161">Thanhas</a> — Tue Sep 19, 2006 7:38 am</p><hr />
]]></content>
	</entry>
	</feed>
