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

	<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-03-14T05:34:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-03-14T05:34:00-04:00</updated>

		<published>2002-03-14T05:34:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=5367#p5367</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=5367#p5367"/>
		<title type="html"><![CDATA[OK, so I'm a dumbass...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=5367#p5367"><![CDATA[
...and it's late, and I'm tired. I've been trying to create a "slap" script of sorts(yea, I know it's lame, but I'm trying to learn =P), piecing together what I've understood of the docs so far and using other scripts as examples, but I'm a bit lost here. I need another set of eyes to look at what I've been working on, and let me know what I've f**ked up this time. It's prolly a total wash, but here it is:<br><br>--begin code--<br>set slap {<br> {<br>  <br>  "slaps $arg around a bit with a large trout"<br> }<br> {<br>  <br>  "slaps $arg around with $nick's stinky old sock!"<br> }<br>}<br><br>bind pub - !slap slapit:pub:slap<br><br>proc slapit:pub:slap {nick uhost hand chan arg}<br>  set cmd [string tolower [lindex $arg 0]]<br>  if {$cmd == ""} {<br>putmsg $chan "02DOES NOT COMPUTE...DOES NOT COMPUTE02"; return 0}<br> if { $slap != "" } {<br>  {[lindex $slap [rand [llength $slap]]]}<br>  putact $chan "$slap"<br>--end code--<br><br>Thanks for any help given.<p>Statistics: Posted by Guest — Thu Mar 14, 2002 5:34 am</p><hr />
]]></content>
	</entry>
	</feed>
