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

	<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-08-11T13:57:22-04:00</updated>

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

		<entry>
		<author><name><![CDATA[monie089]]></name></author>
		<updated>2006-08-11T13:57:22-04:00</updated>

		<published>2006-08-11T13:57:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65393#p65393</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65393#p65393"/>
		<title type="html"><![CDATA[help with my custom 8ball]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65393#p65393"><![CDATA[
thanks it worked i just wanted to make a simpler 8ball script<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8036">monie089</a> — Fri Aug 11, 2006 1:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2006-08-11T13:38:49-04:00</updated>

		<published>2006-08-11T13:38:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65391#p65391</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65391#p65391"/>
		<title type="html"><![CDATA[help with my custom 8ball]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65391#p65391"><![CDATA[
First off, I'd suggest you build your list using the "list" command<br>ie:<div class="codebox"><p>Code: </p><pre><code>set reply [list "line 1" "line 2" ...]</code></pre></div>Secondly, the proc head is incorrect...<br>Public bind calls the proc with the following arguments: nick host handle channel text.  In your case you've forgotten host. However, you do use the special variable "args", which can hold 1 more more arguments, so you won't get a tcl-error.. instead, you send the reply to the hostmask of the caller, which in most cases, is'nt a valid nick or channel...<br><br>simple fix:<div class="codebox"><p>Code: </p><pre><code>proc pub:8ball {nick host hand chan text} {...</code></pre></div>Also, avoid using "args" whenever possible, as it requires some special attention...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Fri Aug 11, 2006 1:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[monie089]]></name></author>
		<updated>2006-08-11T13:02:48-04:00</updated>

		<published>2006-08-11T13:02:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65390#p65390</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65390#p65390"/>
		<title type="html"><![CDATA[help with my custom 8ball]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65390#p65390"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>#######################################################coded by monie @ moniestcl.awardspace.com           ##server :Friendcodes irc.friendcodes.info            ##Channels #NintendoXG,#Ircsupport,#eggdrop|windrop   ##simple 8ball script 1.0                             ##for more of my scripts check out my site            #######################################################bind pub -|- !8ball pub:8ballproc pub:8ball {nick hand channel args } {global replyputquick "PRIVMSG $channel :[lindex $reply [rand [llength $reply]]]"}#sets the response for the 8ball answerset reply {  "\"Try asking when you get smater.\""  "\"Absolutely yes!\""  "\"Answer hazy."  "\"Prospect looks bleak.\""  "\"No."  "\"That's a question you should ask yourself.\""  "\"Prospect looks hopeful.\""  "\"I like to think so.\""  "\"Not even on a GOOD day.\""  "\"It would take a disturbed person to even ask.\""  "\"Maybe -- give me more money and ask again.\""  "\"Yes, yes, yes, and yes again.\""  "\"You wish.\""  "\"Not bloody likely.\""  "\"I'm busy.\""  "\"Concentrate and ask again.\""  "\"Most likely.\""  "\"I wouldn't know anything about that.\""  "\"No way.\""  "\"All signs point to yes.\""  "\"Never.\""  "\":\""}putlog "simple 8ball script 1.0 by monie loaded..."</code></pre></div>it doesnt respond to the channel<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8036">monie089</a> — Fri Aug 11, 2006 1:02 pm</p><hr />
]]></content>
	</entry>
	</feed>
