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

	<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-11-03T04:48:09-04:00</updated>

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

		<entry>
		<author><name><![CDATA[mkluin]]></name></author>
		<updated>2003-11-03T04:48:09-04:00</updated>

		<published>2003-11-03T04:48:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29393#p29393</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29393#p29393"/>
		<title type="html"><![CDATA[what is wrong with this script?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29393#p29393"><![CDATA[
i am not that good in scripting.<br><br>This is the first script i tried to do without help.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2151">mkluin</a> — Mon Nov 03, 2003 4:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-11-03T04:05:05-04:00</updated>

		<published>2003-11-03T04:05:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29391#p29391</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29391#p29391"/>
		<title type="html"><![CDATA[what is wrong with this script?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29391#p29391"><![CDATA[
The first "else" is not connected to a conditional if-statement, which causes the error message.<br><br>Look carefully where you open and close the braces and check on the correct application of the if-then-else constructions.<br><br>Besides, what you also have is:<blockquote class="uncited"><div>}<br>else {</div></blockquote>which should be:<blockquote class="uncited"><div>} else {</div></blockquote>Also, you are applying list commands ([llength], [lindex]) on strings.<br><br>Also, you first apply the test "{ [llength $arg] == 0 }"  and not much later you apply the test "if { [llength $arg] &lt; 1 } { ".<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Mon Nov 03, 2003 4:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mkluin]]></name></author>
		<updated>2003-11-03T03:54:34-04:00</updated>

		<published>2003-11-03T03:54:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29390#p29390</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29390#p29390"/>
		<title type="html"><![CDATA[what is wrong with this script?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29390#p29390"><![CDATA[
i have tried that also.<br><br>no luck.<br><br>the part as i have it now is:<br><div class="codebox"><p>Code: </p><pre><code># main procedure to handle the commandsproc pub:xp { nick uhost handle channel arg } {   # check if command should work in this chan   set chan [string tolower $channel]   if { ![isenabledchan $chan] } {      return 1   }   if { [llength $arg] == 0 } {     putserv "NOTICE $nick :Unable to perform request, give command." }   }   } else {      set command [lindex $arg 0]      set command [string tolower $command]         # check if valid number of arguments         if { [llength $arg] &lt; 1 } {            putserv "NOTICE $nick :Please check the help function if you don't know how to use this command."         # command syntax is ok, process request         } else {</code></pre></div>the error i get now is:<br><br>[02:52] Tcl error in file 'eggdrop.conf':<br>[02:52] invalid command name "}"<br>    while executing<br>"} else {<br>      set command [lindex $arg 0]<br>      set command [string tolower $command]<br>         # check if valid number of arguments<br>         if { [ll..."<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2151">mkluin</a> — Mon Nov 03, 2003 3:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-11-03T03:04:09-04:00</updated>

		<published>2003-11-03T03:04:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29389#p29389</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29389#p29389"/>
		<title type="html"><![CDATA[what is wrong with this script?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29389#p29389"><![CDATA[
<blockquote class="uncited"><div>still doesn't work.<br><br>now i keep getting an error about the second } else {<br><br>guess i better stop with it since i don't get it to work.<br><br>Thanks for the help guys</div></blockquote>what you have is<br><blockquote class="uncited"><div>}else {</div></blockquote>what it should be is<br><blockquote class="uncited"><div>} else {</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Mon Nov 03, 2003 3:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mkluin]]></name></author>
		<updated>2003-11-03T02:52:36-04:00</updated>

		<published>2003-11-03T02:52:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29388#p29388</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29388#p29388"/>
		<title type="html"><![CDATA[what is wrong with this script?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29388#p29388"><![CDATA[
still doesn't work.<br><br>now i keep getting an error about the second } else {<br><br>guess i better stop with it since i don't get it to work.<br><br>Thanks for the help guys<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2151">mkluin</a> — Mon Nov 03, 2003 2:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-11-02T05:54:31-04:00</updated>

		<published>2003-11-02T05:54:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29329#p29329</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29329#p29329"/>
		<title type="html"><![CDATA[what is wrong with this script?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29329#p29329"><![CDATA[
You forgot to add an } at the end of the proc. At his end should be 4 } not 3. Just add one and should be working.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Nov 02, 2003 5:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mkluin]]></name></author>
		<updated>2003-11-02T05:46:20-04:00</updated>

		<published>2003-11-02T05:46:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29328#p29328</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29328#p29328"/>
		<title type="html"><![CDATA[what is wrong with this script?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29328#p29328"><![CDATA[
[04:43] extra characters after close-brace<br>    while executing<br>"} else {<br>     set command [lindex $arg 0]<br>      set command [string tolower $command]<br>         # check if valid number of arguments<br>         if { [lle..."<br>    (file "scripts/anaroch.tcl" line 35)<br>    invoked from within<br>"source scripts/anaroch.tcl"<br><br>this is what i have now:<br><div class="codebox"><p>Code: </p><pre><code>   } else {     set command [lindex $arg 0]      set command [string tolower $command]         # check if valid number of arguments         if { [llength $arg] &lt; 1 } {            putserv "NOTICE $nick :Please check the help function if you don't $         # command syntax is ok, process request         }  }else {            set exp [string tolower [lindex $arg 1]]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2151">mkluin</a> — Sun Nov 02, 2003 5:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-11-02T05:00:00-04:00</updated>

		<published>2003-11-02T05:00:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29327#p29327</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29327#p29327"/>
		<title type="html"><![CDATA[what is wrong with this script?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29327#p29327"><![CDATA[
try replace<div class="codebox"><p>Code: </p><pre><code>else {       set command [lindex $arg 0]       set command [string tolower $command]          # check if valid number of arguments          if { [llength $arg] &lt; 1 } {             putserv "NOTICE $nick :Please check the help function if you don't know how to use this command."          # command syntax is ok, process request          } else {</code></pre></div>with <div class="codebox"><p>Code: </p><pre><code>else {       set command [lindex $arg 0]       set command [string tolower $command]          # check if valid number of arguments          if { [llength $arg] &lt; 1 } {             putserv "NOTICE $nick :Please check the help function if you don't know how to use this command."          # command syntax is ok, process request          }}else {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Nov 02, 2003 5:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mkluin]]></name></author>
		<updated>2003-11-02T04:08:18-04:00</updated>

		<published>2003-11-02T04:08:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29325#p29325</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29325#p29325"/>
		<title type="html"><![CDATA[what is wrong with this script?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29325#p29325"><![CDATA[
ok. i have it like this now. but it tells me that it is missing a close brace. <br><br>[09:02] Tcl error in file 'ahv.conf':<br>[09:02] missing close-brace<br>    while executing<br>"proc pub:xp { nick uhost handle channel arg } {<br>   # check if command should work in this chan<br>   set chan [string tolower $channel]<br>   if { ![isenabl..."<br>    (file "scripts/anaroch.tcl" line 26)<br><br>ok. what i have now is: <br><div class="codebox"><p>Code: </p><pre><code>##############binds###############bind pub +xp pub:xpbind pub +potion pub:potionbind pub +help pub:help#Channels allowed to use these commandsset enabledchans {#anaroch #anaroch1 #r_anaroch #attack}# procedure to check if chan where command is used is listed chanproc 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 commandsproc pub:xp { nick uhost handle channel arg } {   # check if command should work in this chan   set chan [string tolower $channel]   if { ![isenabledchan $chan] } {      return 1   }   if { [llength $arg] == 0 } {     putserv "NOTICE $nick :Unable to perform request, give command."   } else {      set command [lindex $arg 0]      set command [string tolower $command]         # check if valid number of arguments         if { [llength $arg] &lt; 1 } {            putserv "NOTICE $nick :Please check the help function if you don't know how to use this command."         # command syntax is ok, process request         } else {            set exp [string tolower [lindex $arg 1]]            if {$exp &gt;= 26} { putserv "NOTICE $nick :They added a new level to the game? As far as i know there are only 25 levels in this game." return }             if {$exp &lt;= 0} { putserv "NOTICE $nick :Error no info exists about this level." return }            switch $exp {             "1" { putserv "NOTICE $nick :You must be dumb, check what level you start with." }             "2" { putserv "NOTICE $nick :you need 400 XP - 20 AP - 20 DP and 20 HP to fight level 2 Monsters." }             "3" { putserv "NOTICE $nick :you need 800 XP - 40 AP - 40 DP and 40 HP to fight level 3 Monsters." }             "4" { putserv "NOTICE $nick :you need 1600 XP - 80 AP - 80 DP and 80 HP to fight level 4 Monsters." }             "5" { putserv "NOTICE $nick :you need 3200 XP - 160 AP - 160 DP and 160 HP to fight level 5 Monsters." }             "6" { putserv "NOTICE $nick :you need 6400 XP - 320 AP - 320 DP and 320 HP to fight level 6 Monsters." }             "7" { putserv "NOTICE $nick :you need 12800 XP - 640 AP - 640 DP and 640 HP to fight level 7 Monsters." }             "8" { putserv "NOTICE $nick :you need 25600 XP - 1280 AP - 1280 DP and 1280 HP to fight level 8 Monsters." }             "9" { putserv "NOTICE $nick :you need 51200 XP - 2560 AP - 2560 DP and 2560 HP to fight level 9 Monsters." }             "10" { putserv "NOTICE $nick :you need 102400 XP - 5120 AP - 5120 DP and 5120 HP to fight level 10 Monsters." }             "11" { putserv "NOTICE $nick :you need 204800 XP - 10240 AP - 10240 DP and 10240 HP to fight level 11 Monsters." }             "12" { putserv "NOTICE $nick :you need 409600 XP - 20480 AP - 20480 DP and 20480 HP to fight level 12 Monsters." }             "13" { putserv "NOTICE $nick :you need 819200 XP - 40960 AP - 40960 DP and 40960 HP to fight level 13 Monsters." }             "14" { putserv "NOTICE $nick :you need 1638400 XP - 81920 AP - 81920 DP and 81920 HP to fight level 14 Monsters." }             "15" { putserv "NOTICE $nick :you need 3276800 XP - 163840 AP - 163840 DP and 163840 HP to fight level 15 Monsters." }             "16" { putserv "NOTICE $nick :you need 6553600 XP - 327680 AP - 327680 DP and 327680 HP to fight level 16 Monsters." }             "17" { putserv "NOTICE $nick :you need 13107200 XP - 655360 AP - 655360 DP and 655360 HP to fight level 17 Monsters." }             "18" { putserv "NOTICE $nick :you need 26214400 XP - 1310720 AP - 1310720 DP and 1310720 HP to fight level 18 Monsters." }             "19" { putserv "NOTICE $nick :you need 52418800 XP - 2621440 AP - 2621440 DP and 2621440 HP to fight level 19 Monsters." }             "20" { putserv "NOTICE $nick :you need 104857600 XP - 5242880 AP - 5242880 DP and 5242880 HP to fight level 20 Monsters." }             "21" { putserv "NOTICE $nick :you need 209715200 XP - 10485760 AP - 10485760 DP and 10485760 HP to fight level 21 Monsters." }             "22" { putserv "NOTICE $nick :you need 419430400 XP - 20971520 AP - 20971520 DP and 20971520 HP to fight level 22 Monsters." }             "23" { putserv "NOTICE $nick :you need 838860800 XP - 41943040 AP - 41943040 DP and 41943040 HP to fight level 23 Monsters." }             "24" { putserv "NOTICE $nick :you need 1677721600 XP - 83886080 AP - 83886080 DP and 83886080 HP to fight level 24 Monsters." }             "25" { putserv "NOTICE $nick :you need 3355443200 XP - 167772160 AP - 167772160 DP and 167772160 HP to fight level 25 Monsters." }           }       }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2151">mkluin</a> — Sun Nov 02, 2003 4:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-11-02T03:06:57-04:00</updated>

		<published>2003-11-02T03:06:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29323#p29323</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29323#p29323"/>
		<title type="html"><![CDATA[what is wrong with this script?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29323#p29323"><![CDATA[
Instead of the lots of if's use something like this:<div class="codebox"><p>Code: </p><pre><code>if {$exp &gt;= 26} {putserv "NOTICE $nick :They added a new level to the game? As far as i know there are only 25 levels in this game."return}if {$exp &lt;= 0} {putserv "NOTICE $nick :Error no info exists about this level."return} switch $exp {"1" { putserv "NOTICE $nick :You must be dumb, check what level you start with." } "2" { putserv "NOTICE $nick :you need 400 XP - 20 AP - 20 DP and 20 HP to fight level 2 Monsters." } "3" { putserv "NOTICE $nick :you need 800 XP - 40 AP - 40 DP and 40 HP to fight level 3 Monsters." } "4" { putserv "NOTICE $nick :you need 1600 XP - 80 AP - 80 DP and 80 HP to fight level 4 Monsters." }"5" { putserv "NOTICE $nick :you need 3200 XP - 160 AP - 160 DP and 160 HP to fight level 5 Monsters." } "6" { putserv "NOTICE $nick :you need 6400 XP - 320 AP - 320 DP and 320 HP to fight level 6 Monsters." } "7" { putserv "NOTICE $nick :you need 12800 XP - 640 AP - 640 DP and 640 HP to fight level 7 Monsters." } "8" { putserv "NOTICE $nick :you need 25600 XP - 1280 AP - 1280 DP and 1280 HP to fight level 8 Monsters." } "9" { putserv "NOTICE $nick :you need 51200 XP - 2560 AP - 2560 DP and 2560 HP to fight level 9 Monsters." } "10" { putserv "NOTICE $nick :you need 102400 XP - 5120 AP - 5120 DP and 5120 HP to fight level 10 Monsters." } "11" { putserv "NOTICE $nick :you need 204800 XP - 10240 AP - 10240 DP and 10240 HP to fight level 11 Monsters." } "12" { putserv "NOTICE $nick :you need 409600 XP - 20480 AP - 20480 DP and 20480 HP to fight level 12 Monsters." } "13" { putserv "NOTICE $nick :you need 819200 XP - 40960 AP - 40960 DP and 40960 HP to fight level 13 Monsters." } "14" { putserv "NOTICE $nick :you need 1638400 XP - 81920 AP - 81920 DP and 81920 HP to fight level 14 Monsters." } "15" { putserv "NOTICE $nick :you need 3276800 XP - 163840 AP - 163840 DP and 163840 HP to fight level 15 Monsters." } "16" { putserv "NOTICE $nick :you need 6553600 XP - 327680 AP - 327680 DP and 327680 HP to fight level 16 Monsters." } "17" { putserv "NOTICE $nick :you need 13107200 XP - 655360 AP - 655360 DP and 655360 HP to fight level 17 Monsters." } "18" { putserv "NOTICE $nick :you need 26214400 XP - 1310720 AP - 1310720 DP and 1310720 HP to fight level 18 Monsters." } "19" { putserv "NOTICE $nick :you need 52418800 XP - 2621440 AP - 2621440 DP and 2621440 HP to fight level 19 Monsters." } "20" { putserv "NOTICE $nick :you need 104857600 XP - 5242880 AP - 5242880 DP and 5242880 HP to fight level 20 Monsters." } "21" { putserv "NOTICE $nick :you need 209715200 XP - 10485760 AP - 10485760 DP and 10485760 HP to fight level 21 Monsters." } "22" { putserv "NOTICE $nick :you need 419430400 XP - 20971520 AP - 20971520 DP and 20971520 HP to fight level 22 Monsters." } "23" { putserv "NOTICE $nick :you need 838860800 XP - 41943040 AP - 41943040 DP and 41943040 HP to fight level 23 Monsters." } "24" { putserv "NOTICE $nick :you need 1677721600 XP - 83886080 AP - 83886080 DP and 83886080 HP to fight level 24 Monsters." } "25" { putserv "NOTICE $nick :you need 3355443200 XP - 167772160 AP - 167772160 DP and 167772160 HP to fight level 25 Monsters." } }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Nov 02, 2003 3:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mkluin]]></name></author>
		<updated>2003-11-02T02:42:07-04:00</updated>

		<published>2003-11-02T02:42:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29320#p29320</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29320#p29320"/>
		<title type="html"><![CDATA[what is wrong with this script?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29320#p29320"><![CDATA[
i used the - between pub and +xp.<br><br>now the bot responds, but every answer it gives is the answer from this line:<br><br>if { $exp &lt;= 0} { putserv "NOTICE $nick :Error no info exists about this level" }<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2151">mkluin</a> — Sun Nov 02, 2003 2:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spyda]]></name></author>
		<updated>2003-11-01T23:37:18-04:00</updated>

		<published>2003-11-01T23:37:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29316#p29316</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29316#p29316"/>
		<title type="html"><![CDATA[tcl.commands]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29316#p29316"><![CDATA[
<blockquote class="uncited"><div>PUB<br>         bind pub &lt;flags&gt; &lt;command&gt; &lt;proc&gt;<br>         procname &lt;nick&gt; &lt;user@host&gt; &lt;handle&gt; &lt;channel&gt; &lt;text&gt;<br><br>         Description: used for commands given on a channel. The first word<br>           becomes the command and everything else is the text argument.<br>         Module: irc</div></blockquote><strong class="text-strong">Found the in tcl-commands.doc</strong> (/eggdrop/docs/)<br><br><strong class="text-strong">mkluin</strong> <blockquote class="uncited"><div>#Anaroch's info script by a_happy_visitor <br><br>putlog "loading Anaroch by a_happy_visitor..." <br><br>###############binds############### <br>bind pub +xp pub:xp <br>bind pub +potion pub:potion <br>bind pub +help pub:help</div></blockquote><div class="codebox"><p>Code: </p><pre><code>bind PUB - +xp pub:xpbind PUB - +potion pub:potionbind PUB - +help :pub:help</code></pre></div>Hope that helps<br>------------<br>ThePope<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1731">spyda</a> — Sat Nov 01, 2003 11:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mkluin]]></name></author>
		<updated>2003-11-01T22:30:29-04:00</updated>

		<published>2003-11-01T22:30:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29315#p29315</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29315#p29315"/>
		<title type="html"><![CDATA[what is wrong with this script?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29315#p29315"><![CDATA[
The script doesn't respond at all, it also doesn't give any error.<br><div class="codebox"><p>Code: </p><pre><code>#Anaroch's info script by a_happy_visitorputlog "loading Anaroch by a_happy_visitor..."###############binds###############bind pub +xp pub:xpbind pub +potion pub:potionbind pub +help pub:help#Channels allowed to use these commandsset enabledchans {#anaroch #anaroch1 #r_anaroch #attack}# procedure to check if chan where command is used is listed chanproc 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 commandsproc pub:xp { nick uhost handle channel arg } {   # check if command should work in this chan   set chan [string tolower $channel]   if { ![isenabledchan $chan] } {      return 1   }   if { [llength $arg] == 0 } {     putserv "NOTICE $nick :Unable to perform request, give command."   } else {      set command [lindex $arg 0]      set command [string tolower $command]         # check if valid number of arguments         if { [llength $arg] &lt; 1 } {            putserv "NOTICE $nick :Please check the help function if you don't know how to use this command."         # command syntax is ok, process request         } else {            set exp [string tolower [lindex $arg 1]]            if { $exp == 1 } { putserv "NOTICE $nick :You must be dumb, check what level you start with." }            if { $exp == 2 } { putserv "NOTICE $nick :you need 400 XP - 20 AP - 20 DP and 20 HP to fight level 2 Monsters." }            if { $exp == 3 } { putserv "NOTICE $nick :you need 800 XP - 40 AP - 40 DP and 40 HP to fight level 3 Monsters." }            if { $exp == 4 } { putserv "NOTICE $nick :you need 1600 XP - 80 AP - 80 DP and 80 HP to fight level 4 Monsters." }            if { $exp == 5 } { putserv "NOTICE $nick :you need 3200 XP - 160 AP - 160 DP and 160 HP to fight level 5 Monsters." }            if { $exp == 6 } { putserv "NOTICE $nick :you need 6400 XP - 320 AP - 320 DP and 320 HP to fight level 6 Monsters." }            if { $exp == 7 } { putserv "NOTICE $nick :you need 12800 XP - 640 AP - 640 DP and 640 HP to fight level 7 Monsters." }            if { $exp == 8 } { putserv "NOTICE $nick :you need 25600 XP - 1280 AP - 1280 DP and 1280 HP to fight level 8 Monsters." }            if { $exp == 9 } { putserv "NOTICE $nick :you need 51200 XP - 2560 AP - 2560 DP and 2560 HP to fight level 9 Monsters." }            if { $exp == 10 } { putserv "NOTICE $nick :you need 102400 XP - 5120 AP - 5120 DP and 5120 HP to fight level 10 Monsters." }            if { $exp == 11 } { putserv "NOTICE $nick :you need 204800 XP - 10240 AP - 10240 DP and 10240 HP to fight level 11 Monsters." }            if { $exp == 12 } { putserv "NOTICE $nick :you need 409600 XP - 20480 AP - 20480 DP and 20480 HP to fight level 12 Monsters." }            if { $exp == 13 } { putserv "NOTICE $nick :you need 819200 XP - 40960 AP - 40960 DP and 40960 HP to fight level 13 Monsters." }            if { $exp == 14 } { putserv "NOTICE $nick :you need 1638400 XP - 81920 AP - 81920 DP and 81920 HP to fight level 14 Monsters." }            if { $exp == 15 } { putserv "NOTICE $nick :you need 3276800 XP - 163840 AP - 163840 DP and 163840 HP to fight level 15 Monsters." }            if { $exp == 16 } { putserv "NOTICE $nick :you need 6553600 XP - 327680 AP - 327680 DP and 327680 HP to fight level 16 Monsters." }            if { $exp == 17 } { putserv "NOTICE $nick :you need 13107200 XP - 655360 AP - 655360 DP and 655360 HP to fight level 17 Monsters." }            if { $exp == 18 } { putserv "NOTICE $nick :you need 26214400 XP - 1310720 AP - 1310720 DP and 1310720 HP to fight level 18 Monsters." }            if { $exp == 19 } { putserv "NOTICE $nick :you need 52418800 XP - 2621440 AP - 2621440 DP and 2621440 HP to fight level 19 Monsters." }            if { $exp == 20 } { putserv "NOTICE $nick :you need 104857600 XP - 5242880 AP - 5242880 DP and 5242880 HP to fight level 20 Monsters." }            if { $exp == 21 } { putserv "NOTICE $nick :you need 209715200 XP - 10485760 AP - 10485760 DP and 10485760 HP to fight level 21 Monsters." }            if { $exp == 22 } { putserv "NOTICE $nick :you need 419430400 XP - 20971520 AP - 20971520 DP and 20971520 HP to fight level 22 Monsters." }            if { $exp == 23 } { putserv "NOTICE $nick :you need 838860800 XP - 41943040 AP - 41943040 DP and 41943040 HP to fight level 23 Monsters." }            if { $exp == 24 } { putserv "NOTICE $nick :you need 1677721600 XP - 83886080 AP - 83886080 DP and 83886080 HP to fight level 24 Monsters." }            if { $exp == 25 } { putserv "NOTICE $nick :you need 3355443200 XP - 167772160 AP - 167772160 DP and 167772160 HP to fight level 25 Monsters." }            if { $exp &gt;= 26 } { putserv "NOTICE $nick :They added a new level to the game? As far as i know there are only 25 levels in this game." }            if { $exp &lt;= 0} { putserv "NOTICE $nick :4Error no info exists about this level" }          }       }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2151">mkluin</a> — Sat Nov 01, 2003 10:30 pm</p><hr />
]]></content>
	</entry>
	</feed>
