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

	<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>2008-08-13T13:24:59-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sh3ny]]></name></author>
		<updated>2008-08-13T13:24:59-04:00</updated>

		<published>2008-08-13T13:24:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84574#p84574</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84574#p84574"/>
		<title type="html"><![CDATA[AFK-Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84574#p84574"><![CDATA[
hi<br><br>i get this error.<br><div class="codebox"><p>Code: </p><pre><code>[15:58] Tcl error [afk_pubm]: couldn't compile regular expression pattern: quantifier operand invalid</code></pre></div> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed">  <br><br>can paste de fix code?<br><br> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10112">Sh3ny</a> — Wed Aug 13, 2008 1:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[holycrap]]></name></author>
		<updated>2008-08-10T22:22:45-04:00</updated>

		<published>2008-08-10T22:22:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84544#p84544</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84544#p84544"/>
		<title type="html"><![CDATA[AFK-Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84544#p84544"><![CDATA[
tueb, can you do me a favor and paste the new code on here? I don't know what "blind part" that you're talking about.<br><br>Thanks!<br><br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9651">holycrap</a> — Sun Aug 10, 2008 10:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tueb]]></name></author>
		<updated>2008-07-31T12:11:20-04:00</updated>

		<published>2008-07-31T12:11:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84315#p84315</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84315#p84315"/>
		<title type="html"><![CDATA[AFK-Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84315#p84315"><![CDATA[
if you want the bot to to react on part, use "bind part"...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9349">tueb</a> — Thu Jul 31, 2008 12:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[holycrap]]></name></author>
		<updated>2008-07-13T00:00:51-04:00</updated>

		<published>2008-07-13T00:00:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83962#p83962</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83962#p83962"/>
		<title type="html"><![CDATA[AFK-Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83962#p83962"><![CDATA[
Thanks strikelight for your time. But this script still has too many bugs, for example if you part the channel without setting !back, it will think that you are still away when you rejoin. It does not reset and will just keep saything the away message untill you change to that nick and set !back. Weird...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9651">holycrap</a> — Sun Jul 13, 2008 12:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2008-07-12T12:42:44-04:00</updated>

		<published>2008-07-12T12:42:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83959#p83959</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83959#p83959"/>
		<title type="html"><![CDATA[AFK-Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83959#p83959"><![CDATA[
I would guess you would need to change this part of the code:<div class="codebox"><p>Code: </p><pre><code> regsub -all {\(} $text "" text  regsub -all {\)} $text "" text  regsub -all {\{} $text "" text  regsub -all {\}} $text "" text  regsub -all {\[} $text "" text  regsub -all {\]} $text "" text          if {[regexp -nocase -- $text $name]} {</code></pre></div>Change $text and text into $name and name in the regsub's.. And swap $name with $text in the regexp.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sat Jul 12, 2008 12:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[holycrap]]></name></author>
		<updated>2008-07-12T23:47:09-04:00</updated>

		<published>2008-07-12T04:50:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83957#p83957</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83957#p83957"/>
		<title type="html"><![CDATA[AFK-Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83957#p83957"><![CDATA[
It won't work if the nick is mentioned in a sentence. It only works if the nick is mentioned by itself.<br><br>Anyway to fix this?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9651">holycrap</a> — Sat Jul 12, 2008 4:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tueb]]></name></author>
		<updated>2008-04-21T12:45:35-04:00</updated>

		<published>2008-04-21T12:45:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82463#p82463</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82463#p82463"/>
		<title type="html"><![CDATA[AFK-Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82463#p82463"><![CDATA[
aegh, always the same problem with my scripts.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"> <br><br>i'll contact you over icq.<br><br><br><br>PS:  Changed my first thread into the newest version.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9349">tueb</a> — Mon Apr 21, 2008 12:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nimos]]></name></author>
		<updated>2008-04-21T11:57:05-04:00</updated>

		<published>2008-04-21T11:57:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82462#p82462</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82462#p82462"/>
		<title type="html"><![CDATA[AFK-Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82462#p82462"><![CDATA[
wow its working now! thank you<br><br>a little error is left: in partyline appears, everytime someone talks:<br><br>[17:56] Tcl error [afk_pubm]: couldn't compile regular expression pattern: quantifier operand invalid<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9877">Nimos</a> — Mon Apr 21, 2008 11:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tueb]]></name></author>
		<updated>2008-04-21T11:19:17-04:00</updated>

		<published>2008-04-21T11:19:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82460#p82460</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82460#p82460"/>
		<title type="html"><![CDATA[AFK-Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82460#p82460"><![CDATA[
please try the updated code above.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9349">tueb</a> — Mon Apr 21, 2008 11:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nimos]]></name></author>
		<updated>2008-04-21T10:55:37-04:00</updated>

		<published>2008-04-21T10:55:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82458#p82458</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82458#p82458"/>
		<title type="html"><![CDATA[AFK-Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82458#p82458"><![CDATA[
hm....thanks for your work, but. . .<br>!afk -- Seems to work (the bot anwers with You have been...)<br>!back -- shows no reaction<br>and the nick call shows no reaction, too...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9877">Nimos</a> — Mon Apr 21, 2008 10:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tueb]]></name></author>
		<updated>2008-04-21T15:05:16-04:00</updated>

		<published>2008-04-21T08:55:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82456#p82456</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82456#p82456"/>
		<title type="html"><![CDATA[AFK-Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82456#p82456"><![CDATA[
Hi,<br><br>interesting script you requested. I tried to fill it: The commands are "!afk" and "!back".  <br><br>There are most likely a few bugs in it. Please contact me after testing, so I can try to fix them.<br><br><div class="codebox"><p>Code: </p><pre><code>bind pub - !afk afk_setbind pub - !back afk_back#bind pub - afk afk_set#bind pub - back afk_backbind pubm - * afk_pubmvariable afkarrayvariable whoarrayproc afk_back {nick host handle channel text} { global afkarray whoarray if {[info exists afkarray($nick)]} {    unset afkarray($nick)    afk_notc $nick "Du bist nicht länger \"!afk\"."    if {[info exists whoarray($nick)]} {       #this needs to be changed in case more than one person has been looking for you       afk_notc $nick "$whoarray($nick) hat/haben Dich in Deiner Abwesenheit gesucht."       unset whoarray($nick)    } } else {   afk_notc $nick "Du warst nicht \"!afk\"." }}proc afk_set {nick host handle channel text} { global afkarray whoarray if {$text == ""} {    set text "." } else {   set text ": \002$text\002" } if {![info exists afkarray($nick)]} {    set afkarray($nick) $text } else {   set entry $afkarray($nick)   set afkarray($nick) $text } afk_notc $nick "Du bist auf \002away from keyboard\002 gesetzt. Grund${text}. Zurück setzt Du Dich mit \002!back\002."}proc afk_pubm {nick host handle channel text} { global afkarray whoarray if {$text=="^"||$text=="^^"||$text=="^^^"||$text=="*"} {    return } foreach name [array names afkarray] { regsub -all {\(} $text "" text regsub -all {\)} $text "" text regsub -all {\{} $text "" text regsub -all {\}} $text "" text regsub -all {\[} $text "" text regsub -all {\]} $text "" text         if {[regexp -nocase -- $text $name]} {            set afkmsg "$name ist away from keyboard"            afk_notc $nick "${afkmsg}. Grund$afkarray($name). Eine eigene away-Nachricht setzt Du Dir mit !away &lt;text&gt;."            regsub -all {\|} $nick {} whonick            if {[info exists whoarray($name)]} {               set who $whoarray($name)               set entry $whoarray($name)               set whoarray($name) "$who and $whonick"            } else {              set whoarray($name) $whonick            }            #break         } }}proc afk_say {channel text} { putquick "PRIVMSG $channel :$text"}proc afk_notc {nick text} { putquick "NOTICE $nick :$text"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9349">tueb</a> — Mon Apr 21, 2008 8:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nimos]]></name></author>
		<updated>2008-04-20T10:04:40-04:00</updated>

		<published>2008-04-20T10:04:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82436#p82436</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82436#p82436"/>
		<title type="html"><![CDATA[AFK-Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82436#p82436"><![CDATA[
Is it possible to make a scripte where Users can set theirselves afk, and when this users name is said in the Channel  the bot says that the user is afk?<br><blockquote class="uncited"><div>Example:<br><br>User1: !afk eating<br>Bot(MSG): Status set!<br><br><em class="text-italics">User2 comes into the channel</em><br>User2: Hi User1, whats up?<br>Bot: User1 is afk at the moment: eating<br><br>User2: back<br>Bot(MSG): You are no longer marked as being afk!<br><br></div></blockquote>If its possible, i would be glad if someone here could script it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9877">Nimos</a> — Sun Apr 20, 2008 10:04 am</p><hr />
]]></content>
	</entry>
	</feed>
