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

	<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>2004-12-19T09:58:10-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2004-12-19T09:58:10-04:00</updated>

		<published>2004-12-19T09:58:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44161#p44161</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44161#p44161"/>
		<title type="html"><![CDATA[Looking for a script to save the poor trouts!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44161#p44161"><![CDATA[
well, I've already written this when forum went down, so here it is:<div class="codebox"><p>Code: </p><pre><code>set s "takes the trout out of %s's hand and puts it back in the sea. Trouts saved: %d"if ![catch {set f [open trouts]}] {  set trouts [gets $f]; close $f} {set trouts 0}bind time - "%0 % % % %" saveproc save {m h d mo y} {  set f [open trouts w]; puts $f $::trouts; close $f}bind ctcp - ACTION slapproc slap {n u h d k t} {  if [string equal -nocase $d $::botnick] return  if [string match -nocase *slaps* $t] {    puthelp "privmsg $d :\001ACTION[format $::s $n [incr ::trouts]]\001"  } }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Dec 19, 2004 9:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2004-12-19T06:36:47-04:00</updated>

		<published>2004-12-19T06:36:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44152#p44152</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44152#p44152"/>
		<title type="html"><![CDATA[Looking for a script to save the poor trouts!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44152#p44152"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set troutfile [pwd]/trouts.savebind ctcp - ACTION save:the:troutsproc save:the:trouts {nick host hand dest key arg} {if {![info exists ::trouts]} { set ::trouts 0 }if {[string match -nocase "*slaps * around a bit with a large trout" $arg]} {putserv "PRIVMSG $dest :\001ACTION takes the trout out of ${nick}s hand and puts it back in the sea. Trouts saved: [incr ::trouts]"}}bind evnt - logfile save:trouts:filebind evnt - prerestart save:trouts:fileproc save:trouts:file {args} {puts [set fid [open $::troutfile w]] $::troutsclose $fid}bind evnt - connect-server load:trouts:fileproc load:trouts:file {args} {set ::trouts [read [set fid [open $::troutfile r]]]close $fid}</code></pre></div>just had to <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Sun Dec 19, 2004 6:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[thedude0001]]></name></author>
		<updated>2004-12-18T20:51:19-04:00</updated>

		<published>2004-12-18T20:51:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44148#p44148</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44148#p44148"/>
		<title type="html"><![CDATA[Looking for a script to save the poor trouts!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44148#p44148"><![CDATA[
Hi everybody!<br><br>I saw a really nice script in an IRC channel today. It just reacts to the widely known"abc slaps xyz around a bit with a large trout" by saying "/me takes the trout out of abcs hand and puts it back in the sea. Trouts saved: x".<br><br>I instantly fell in love with this script and decided that this would be a great addition to my eggdrop as it is already running the fishdrop script. The user who had this script told me that he only had it for mIRC. So I started to search the web, but all I found was the mIRC script. And to complete my misery I have to admit that I don't really know how to write a TCL script for an eggdrop.<br><br>So my question would be: Is there any coder out here who thinks this is a great idea and could write this script for me? I would really appreciate it. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"> <br><br>The counter should be global (for all chans the bot is on) and should be saved to a file on a regular basis so that the counter doesn't get resetted when the bot restarts.<br><br>Thanks a lot!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5806">thedude0001</a> — Sat Dec 18, 2004 8:51 pm</p><hr />
]]></content>
	</entry>
	</feed>
