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

	<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>2002-05-31T03:30:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-05-31T03:30:00-04:00</updated>

		<published>2002-05-31T03:30:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7483#p7483</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7483#p7483"/>
		<title type="html"><![CDATA[what is wrong with this script?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7483#p7483"><![CDATA[
i know that.<br><br>This script is used on a test bot that doesn't have the main script loaded<p>Statistics: Posted by Guest — Fri May 31, 2002 3:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-05-30T21:52:00-04:00</updated>

		<published>2002-05-30T21:52:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7474#p7474</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7474#p7474"/>
		<title type="html"><![CDATA[what is wrong with this script?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7474#p7474"><![CDATA[
If the other script uses the same setup (bind pub - ahv) then only one of them can be loaded at the same time.<br><br>If you want to add more commands, you should edit the original script, not try to add a new one.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Thu May 30, 2002 9:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-05-30T15:42:00-04:00</updated>

		<published>2002-05-30T15:42:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7455#p7455</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7455#p7455"/>
		<title type="html"><![CDATA[what is wrong with this script?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7455#p7455"><![CDATA[
I have a script that uses the same setup as that.<br><br>That script works just fine.<br><br>The script i posted here, will be added to that script so i can use more commands after ahv (which is the name of my bot)<p>Statistics: Posted by Guest — Thu May 30, 2002 3:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2002-05-30T15:32:00-04:00</updated>

		<published>2002-05-30T15:32:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7450#p7450</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7450#p7450"/>
		<title type="html"><![CDATA[what is wrong with this script?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7450#p7450"><![CDATA[
if { ![isenabledchan $chan] } { <br>      return 1 <br>   } <br><br><br>is'nt that supposed to "return 0"?<br>or <br><br>if { [isenabledchan $chan] } { <br>      return 1 <br>   } <br><br><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Thu May 30, 2002 3:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-05-30T13:33:00-04:00</updated>

		<published>2002-05-30T13:33:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7444#p7444</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7444#p7444"/>
		<title type="html"><![CDATA[what is wrong with this script?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7444#p7444"><![CDATA[
Ok i changed that. but it still doesn't work<p>Statistics: Posted by Guest — Thu May 30, 2002 1:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-05-30T06:23:00-04:00</updated>

		<published>2002-05-30T06:23:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7425#p7425</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7425#p7425"/>
		<title type="html"><![CDATA[what is wrong with this script?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7425#p7425"><![CDATA[
I guess it's ...<br>set calc_temp [expr $calc_a / 1.01 * $calc_b]<br>... and not set $calc_temp ...<p>Statistics: Posted by Guest — Thu May 30, 2002 6:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-05-30T05:57:00-04:00</updated>

		<published>2002-05-30T05:57:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7423#p7423</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7423#p7423"/>
		<title type="html"><![CDATA[what is wrong with this script?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7423#p7423"><![CDATA[
Can anybody tell me what is wrong with this script?<br><br>It doesn't calculate:<br><div class="codebox"><p>Code: </p><pre><code># listen to all ahv commands in channels bind pub - ahv pub:ahv # limit the chans to listen in by filling them in here ( more chans goes this way {#chan1 #chan2} set enabledchans {#ahv #nike #bbs #equinox1 #equinox2 #equinox3 #equinox4 #equinox5 #antisocial #lotus} # procedure to check if chan where command is used is listed chan proc isenabledchan { channel } {    global enabledchans    # compare each chan in $enabledchans with current chan and return 1 (true) if chan is listed    foreach enablechan $enabledchans {       if { $channel == $enablechan } {          return 1       }    }    return 0 } # main procedure to handle the ahv commands proc pub:ahv { nick uhost handle channel arg } {    # check if command should work in this chan    set chan [string tolower $channel]       if { ![isenabledchan $chan] } {       return 1    }    # check if valid command (calc)   if { [llength $arg] == 0 } {       putserv "PRIVMSG $channel :Unable to perform request, give command."    } else {       # get command and compare it to "xp"       set command [lindex $arg 0]       set command [string tolower $command]       if { [string compare $command xp] == 0 } {          # check if valid number of arguments          if { [llength $arg] &lt; 2 } {             putserv "PRIVMSG $channel :Please check the help function if you don't know how to use this command."          # command syntax is ok, process request          } else {             set calc_a [lindex $arg 1]             set calc_b [lindex $arg 1]            if { $calc_b == "" } { set $calc_b 24 }              { set $calc_temp [expr $calc_a / 1.01 * $calc_b] }              { putserv "PRIVMSG $channel :After $calc_b hours in the bank, $calc_a gold will be $calc_temp gold." }         }   }} </code></pre></div>_________________<br><br><br>&lt;font size=-1&gt;[ This Message was edited by: ahv on 2002-05-30 03:58 ]&lt;/font&gt;<p>Statistics: Posted by Guest — Thu May 30, 2002 5:57 am</p><hr />
]]></content>
	</entry>
	</feed>
