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

	<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-04-25T19:28:23-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-04-25T16:49:21-04:00</updated>

		<published>2003-04-25T16:49:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19423#p19423</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19423#p19423"/>
		<title type="html"><![CDATA[multiple timers - for each gamer its own]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19423#p19423"><![CDATA[
Thank you very much!<br><br>timer($hand) 300 [list returned $name $uhost $hand $text] worked fine.<p>Statistics: Posted by Guest — Fri Apr 25, 2003 4:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-04-25T19:28:23-04:00</updated>

		<published>2003-04-25T15:29:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19421#p19421</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19421#p19421"/>
		<title type="html"><![CDATA[multiple timers - for each gamer its own]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19421#p19421"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>timer($hand) 300 [list returned $name $uhost $hand $text]</code></pre></div>add this line into your code<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Fri Apr 25, 2003 3:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-04-25T14:46:53-04:00</updated>

		<published>2003-04-25T14:46:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19420#p19420</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19420#p19420"/>
		<title type="html"><![CDATA[multiple timers - for each gamer its own]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19420#p19420"><![CDATA[
Hey folks, first time asking, since the search couldn't help me with this:<br><br>I wrote a quite nice script that triggers !joined and !returned from gamers and writes them with their actual game-ip and game into a .txt which is displayed on my website and on !gamers in the chan.<br><br>Now I got the problem, that - if a gamer times out on IRC during he's on a server, my Bot can't notice when he's back from gaming - so he'd stay on the list forever.<br>I solved this so far sind i made a !makereturned-proc where I can remove gamers by will, but that's not the best solution since i can't check the list 24/7.<br><br>I decided to set up timers that do remove a gamer after a while, let's say five hours from putting on the list. Because I did not find any clear documentation on advanced timers, I hope you guys can tell me how to realize this stuff.<br><br>I thougt I would use something like<div class="codebox"><p>Code: </p><pre><code>timer($hand) 300 returned</code></pre></div>which should open a personalized timer every time the !joined-proc is called. But how do i pass the searchstring for the list to make the !returned- or the !makereturned-proc know, who is to be deleted?<br><br>In my words:<br><br>timer(testgamer) 300 returned<br><br>should open the proc returned which should remove "testgamer" from the list. The !returned-proc goes like this:<br><div class="codebox"><p>Code: </p><pre><code>proc returned { name uhost hand text { dest ""}} {putlog "---+++--- Received return-command from $hand. ---+++---"set found 0 set index "" set file [open file.txt r] while {![eof $file]} { set lines [split [read $file] "\n"] foreach line $lines { if {$line == ""} { continue } if {[lsearch $line $hand] &gt; 0} { set found 1 } else { lappend index $line } } if {$found == 0} { putlog "---+++--- $hand not in gamer's list. ---+++---"putquick "NOTICE $name : U were not on the list."return } } catch {close $file} set file [open file.txt w] foreach line $index { puts $file $line } catch {close $file} putlog "---+++--- $hand removed from gamer's list. ---+++---"putquick "NOTICE $name : Successfully removed."}</code></pre></div>Any help would be greatly welcome <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by Guest — Fri Apr 25, 2003 2:46 pm</p><hr />
]]></content>
	</entry>
	</feed>
