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

	<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>2009-03-28T09:44:59-04:00</updated>

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

		<entry>
		<author><name><![CDATA[lenooxx]]></name></author>
		<updated>2009-03-28T09:44:59-04:00</updated>

		<published>2009-03-28T09:44:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88154#p88154</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88154#p88154"/>
		<title type="html"><![CDATA[hello]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88154#p88154"><![CDATA[
mapchange notifyer  work on Windrop?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10564">lenooxx</a> — Sat Mar 28, 2009 9:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AciD]]></name></author>
		<updated>2007-12-02T18:06:52-04:00</updated>

		<published>2007-12-02T18:06:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78920#p78920</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78920#p78920"/>
		<title type="html"><![CDATA[Qstat + qstat map change notify]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78920#p78920"><![CDATA[
Ok thanks everybody, everything works fine  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cool.gif" width="15" height="15" alt="8)" title="Cool"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9504">AciD</a> — Sun Dec 02, 2007 6:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2007-12-01T19:00:31-04:00</updated>

		<published>2007-12-01T19:00:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78885#p78885</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78885#p78885"/>
		<title type="html"><![CDATA[Qstat + qstat map change notify]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78885#p78885"><![CDATA[
<blockquote class="uncited"><div>Tell what files to update pls... Not the whole windrop, but the needed files, thank you...  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":?" title="Confused"></div></blockquote>You have been told what to do. Upgrade to the <strong class="text-strong">latest</strong> version windrop.<br><br>Now how easy could that be? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Windrop is not eggdrop (as you are aware) and as such, there are no guarantees that it can utilise all Tcl scripts.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Sat Dec 01, 2007 7:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AciD]]></name></author>
		<updated>2007-11-30T00:37:33-04:00</updated>

		<published>2007-11-30T00:37:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78832#p78832</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78832#p78832"/>
		<title type="html"><![CDATA[Qstat + qstat map change notify]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78832#p78832"><![CDATA[
Tell what files to update pls... Not the whole windrop, but the needed files, thank you...  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":?" title="Confused"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9504">AciD</a> — Fri Nov 30, 2007 12:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AciD]]></name></author>
		<updated>2007-11-30T00:36:32-04:00</updated>

		<published>2007-11-30T00:36:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78831#p78831</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78831#p78831"/>
		<title type="html"><![CDATA[Qstat + qstat map change notify]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78831#p78831"><![CDATA[
But what could get wrong? It works ok, restart eggdrop it brokes... i used windrop1.6.18-handlen32, beta, 1.6.17, dont know what could be... I understand that unix is not win32, but if it runs one time, why doesnot it run the second?  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9504">AciD</a> — Fri Nov 30, 2007 12:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-11-30T00:30:20-04:00</updated>

		<published>2007-11-30T00:30:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78830#p78830</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78830#p78830"/>
		<title type="html"><![CDATA[Qstat + qstat map change notify]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78830#p78830"><![CDATA[
Told ya once already, windoze does not use the same syntax for path names. Don't expect a unix program to run properly under windows.<br><br>What I don't understand, is, if you are already running Cygwin, why are you using windrop at all?  Just get the eggdrop source code and compile it under cygwin. No need to mess with windrop at all under cygwin afaik.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Fri Nov 30, 2007 12:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-11-30T00:26:26-04:00</updated>

		<published>2007-11-30T00:26:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78829#p78829</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78829#p78829"/>
		<title type="html"><![CDATA[Qstat + qstat map change notify]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78829#p78829"><![CDATA[
<blockquote class="uncited"><div>.. I doubt anyone would be stupid enough to download your Windrop.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"></div></blockquote>Especially from rapidshare <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Fri Nov 30, 2007 12:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2007-11-29T22:24:09-04:00</updated>

		<published>2007-11-29T22:24:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78824#p78824</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78824#p78824"/>
		<title type="html"><![CDATA[Qstat + qstat map change notify]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78824#p78824"><![CDATA[
Try using <strong class="text-strong">the</strong> latest: <a href="http://prdownloads.sourceforge.net/windrop/windrop1.6.18-handlen32.exe" class="postlink">Eggdrop v1.6.18 Handlen32</a><br>.. I doubt anyone would be stupid enough to download your Windrop.  <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=3646">Alchera</a> — Thu Nov 29, 2007 10:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AciD]]></name></author>
		<updated>2007-11-29T20:49:55-04:00</updated>

		<published>2007-11-29T20:49:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78822#p78822</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78822#p78822"/>
		<title type="html"><![CDATA[Qstat + qstat map change notify]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78822#p78822"><![CDATA[
No mather if i delete stats.conf, or no i get the same... Help pls, my windrop is going nuts...<br>My windrop uploaded in:<br><a href="http://rapidshare.com/files/73223207/egg.rar.html" class="postlink">http://rapidshare.com/files/73223207/egg.rar.html</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9504">AciD</a> — Thu Nov 29, 2007 8:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AciD]]></name></author>
		<updated>2007-11-29T20:48:57-04:00</updated>

		<published>2007-11-29T20:48:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78821#p78821</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78821#p78821"/>
		<title type="html"><![CDATA[Qstat + qstat map change notify]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78821#p78821"><![CDATA[
WTF? ive updated, everything worked.<div class="codebox"><p>Code: </p><pre><code>&lt;pSy&gt; .stat&lt;SpawN&gt; [01:59] #pSy# status&lt;SpawN&gt; I am SpawN, running eggdrop v1.6.17: 2 users (mem: 81k).&lt;SpawN&gt; Online for 01:09 (background) - CPU: 00:01 - Cache hit: 41.8%&lt;SpawN&gt; Config file: eggdrop.conf&lt;SpawN&gt; OS: CYGWIN_NT-5.1 1.5.24(0.156/4/2)&lt;SpawN&gt; Tcl library: C:/egg/lib/tcl8.4&lt;SpawN&gt; Tcl version: 8.4.7 (header version 8.4.7)&lt;SpawN&gt; Loaded module information:&lt;SpawN&gt;     Channels: #grigai, #mercenaries&lt;SpawN&gt;     Online as: SpawN!~eggdrop@aitvaras-F831351B.vln.skynet.lt (SpawN)&lt;SpawN&gt;     Server irc.ktu.lt:6667 (connected for 00:59)&lt;SpawN&gt;     #grigai             :  14 members, enforcing "+tn-klips" (greet)&lt;SpawN&gt;     #mercenaries        :   4 members, enforcing "+tn" (greet)&lt;SpawN&gt; [02:00] @#grigai (+mRtrn) : [m/14 o/4 h/1 v/7 n/2 b/0 e/0 I/0]&lt;SpawN&gt; [02:00] Writing user file...&lt;SpawN&gt; [02:00] Writing channel file...&lt;SpawN&gt; [02:05] @#grigai (+mRtrn) : [m/14 o/4 h/1 v/7 n/2 b/0 e/0 I/0]&lt;SpawN&gt; [02:09] #Grigai: mode change '+e sda!*@*' by AciD`oFF!~AciD@9A68A77C.1A839F6.F7CCB473.IP&lt;SpawN&gt; [02:10] @#grigai (+mRtrn) : [m/14 o/4 h/1 v/7 n/2 b/0 e/1 I/0]&lt;pSy&gt; .rehash&lt;SpawN&gt; [02:14] #pSy# rehash&lt;SpawN&gt; Rehashing.&lt;SpawN&gt; [02:14] Writing user file...&lt;SpawN&gt; [02:14] Writing channel file...&lt;SpawN&gt; [02:14] Rehashing ...&lt;SpawN&gt; [02:14] Listening at telnet port 3333 (all).&lt;SpawN&gt; [02:14] Userinfo TCL v1.07 loaded (URL BF GF IRL EMAIL DOB PHONE ICQ).&lt;SpawN&gt; [02:14] use '.help userinfo' for commands.&lt;SpawN&gt; [02:14] Auto Identify&lt;SpawN&gt; [02:14] MSG TCL 0.5 Loaded&lt;SpawN&gt; [02:14] tv scripts form http://www.shellai.lt loaded&lt;SpawN&gt; [02:14] AMXBans By AciD successfully loaded!&lt;SpawN&gt; [02:14] egglib_pub.tcl v1.53 by Shrike &lt;shrike@eggdrop.org.ru&gt;, mrBuG &lt;mrbug@eggdrop.org.ru&gt; loaded&lt;SpawN&gt; [02:14]  - incith:google-1.8.6a loaded.&lt;SpawN&gt; [02:14] mapchangenotify v0.1.1 loaded&lt;SpawN&gt; [02:14] ERROR reading stats file&lt;SpawN&gt; [02:14] Stats.mod v1.4.0 dev20 loaded.&lt;SpawN&gt; [02:14] Module loaded: stats           &lt;SpawN&gt; [02:14] Tcl error in file 'eggdrop.conf':&lt;SpawN&gt; [02:14] invalid command name "loadslang"&lt;SpawN&gt;     while executing&lt;SpawN&gt; "loadslang language/stats.lang"&lt;SpawN&gt;     (file "stats.conf" line 65)&lt;SpawN&gt;     invoked from within&lt;SpawN&gt; "source stats.conf"&lt;SpawN&gt;     (file "eggdrop.conf" line 70)&lt;SpawN&gt; [02:14] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)-DCC session closed-</code></pre></div>Then ive loaded source stats.conf my windrop crashed. Ive loaded him again and:<div class="codebox"><p>Code: </p><pre><code>Chat with SpawNWaiting for acknowledgement...DCC Chat connection established-&lt;SpawN&gt; Enter your password.&lt;pSy&gt; blacklist&lt;SpawN&gt; Connected to SpawN, running eggdrop v1.6.17&lt;SpawN&gt;      ____                __&lt;SpawN&gt;     / __/___ _ ___ _ ___/ /____ ___   ___&lt;SpawN&gt;    / _/ / _ `// _ `// _  // __// _ \ / _ \&lt;SpawN&gt;   /___/ \_, / \_, / \_,_//_/   \___// .__/&lt;SpawN&gt;        /___/ /___/                 /_/&lt;SpawN&gt;  &lt;SpawN&gt; Hey pSy!  My name is SpawN and I am running eggdrop v1.6.17, on CYGWIN_NT-5.1 1.5.24(0.156/4/2).&lt;SpawN&gt;  &lt;SpawN&gt; Local time is now 02:15&lt;SpawN&gt; You are an owner of this bot. Only +n users can see this! For more info,&lt;SpawN&gt; see .help set motd. Please edit the motd file in your bot's 'text'&lt;SpawN&gt; directory.&lt;SpawN&gt; Use .help for basic help.&lt;SpawN&gt; Use .help &lt;command&gt; for help on a specific command.&lt;SpawN&gt; Use .help all to get a full command list.&lt;SpawN&gt; Use .help *somestring* to list any help texts containing "somestring".&lt;SpawN&gt;  &lt;SpawN&gt; Have fun.&lt;SpawN&gt;  &lt;SpawN&gt; Commands start with '.' (like '.quit' or '.help')&lt;SpawN&gt; Everything else goes out to the party line.&lt;SpawN&gt; You have no messages.&lt;SpawN&gt; *** pSy joined the party line.&lt;SpawN&gt; [02:15] New user peak in #mercenaries: 1.&lt;SpawN&gt; [02:16] Tcl error [qstatrun]: couldn't duplicate input handle: bad file number&lt;SpawN&gt; [02:16] &lt;&lt;pSy&gt;&gt; !pSy! top &lt;SpawN&gt; [02:16] WARNING! No language selected! (getslang())&lt;SpawN&gt; [02:16] Tcl error [pub:qstat]: couldn't duplicate input handle: bad file number</code></pre></div>And Everyting I Load him now i get:<br><div class="codebox"><p>Code: </p><pre><code>Chat with SpawNWaiting for acknowledgement...DCC Chat connection established-&lt;SpawN&gt; Enter your password.&lt;pSy&gt; blacklist&lt;SpawN&gt; Connected to SpawN, running eggdrop v1.6.17&lt;SpawN&gt;      ____                __&lt;SpawN&gt;     / __/___ _ ___ _ ___/ /____ ___   ___&lt;SpawN&gt;    / _/ / _ `// _ `// _  // __// _ \ / _ \&lt;SpawN&gt;   /___/ \_, / \_, / \_,_//_/   \___// .__/&lt;SpawN&gt;        /___/ /___/                 /_/&lt;SpawN&gt;  &lt;SpawN&gt; Hey pSy!  My name is SpawN and I am running eggdrop v1.6.17, on CYGWIN_NT-5.1 1.5.18(0.132/4/2).&lt;SpawN&gt;  &lt;SpawN&gt; Local time is now 02:39&lt;SpawN&gt; You are an owner of this bot. Only +n users can see this! For more info,&lt;SpawN&gt; see .help set motd. Please edit the motd file in your bot's 'text'&lt;SpawN&gt; directory.&lt;SpawN&gt; Use .help for basic help.&lt;SpawN&gt; Use .help &lt;command&gt; for help on a specific command.&lt;SpawN&gt; Use .help all to get a full command list.&lt;SpawN&gt; Use .help *somestring* to list any help texts containing "somestring".&lt;SpawN&gt;  &lt;SpawN&gt; Have fun.&lt;SpawN&gt;  &lt;SpawN&gt; Commands start with '.' (like '.quit' or '.help')&lt;SpawN&gt; Everything else goes out to the party line.&lt;SpawN&gt; You have no messages.&lt;SpawN&gt; *** pSy joined the party line.&lt;SpawN&gt; [02:39] #Grigai: mode change '+o SpawN' by pSy!~pSy@aitvaras-F831351B.vln.skynet.lt&lt;SpawN&gt; [02:39] #Grigai: mode change '-o SpawN' by savas!ubaldas@aitvaras.eu&lt;SpawN&gt; [02:39] #Grigai: mode change '+o SpawN' by pSy!~pSy@aitvaras-F831351B.vln.skynet.lt&lt;SpawN&gt; [02:40] #Grigai: mode change '-o SpawN' by savas!ubaldas@aitvaras.eu&lt;SpawN&gt; [02:40] Tcl error [qstatrun]: couldn't create error file for command: no such file or directory&lt;SpawN&gt; [02:40] #grigai (+mRtrn) : [m/14 o/2 h/1 v/7 n/4 b/0 e/1 I/0]&lt;SpawN&gt; [02:40] #Grigai: mode change '+o SpawN' by pSy!~pSy@aitvaras-F831351B.vln.skynet.lt&lt;SpawN&gt; [02:40] Tcl error [pub:qstat]: couldn't create error file for command: no such file or directory&lt;SpawN&gt; [02:41] Tcl error [qstatrun]: couldn't create error file for command: no such file or directory</code></pre></div>i get or:<div class="codebox"><p>Code: </p><pre><code>Tcl error [qstatrun]: couldn't create error file for command: no such file or directory</code></pre></div>or:<div class="codebox"><p>Code: </p><pre><code>Tcl error [qstatrun]: couldn't duplicate input handle: bad file number</code></pre></div>WTF?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9504">AciD</a> — Thu Nov 29, 2007 8:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AciD]]></name></author>
		<updated>2007-11-29T19:45:03-04:00</updated>

		<published>2007-11-29T19:45:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78819#p78819</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78819#p78819"/>
		<title type="html"><![CDATA[Qstat + qstat map change notify]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78819#p78819"><![CDATA[
Hi again <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> , oki i have a REQ maybe someone can edit my mapchangenotify. I need it to how hostname, ip, map, players. Ive edited and it shows hostname, ip, map. But dont know how to edit to show players. Help pls. <div class="codebox"><p>Code: </p><pre><code># set your qstatpathset qstatpath "C:/egg/qstat/qstat.exe"# number of servers to checkset server_number 6set mcn_version "v0.1.1"################################################################ TCL code begins, don't edit unless you know what your doing ################################################################putlog "mapchangenotify $mcn_version loaded"# read server list set slname "mapchangenotify.serverlist"set slct [open $slname "r"]set sdlist [split [read $slct] \n]close $slct#---------------------------------------------------------------------# create server files if they don't existset cfc 0while { $cfc != $server_number } {if {![file exists mapchange]} {set fname "mapchangenotify$cfc.output"set fp [open $fname "w"]close $fpincr cfc}}#---------------------------------------------------------------------bind time - * qstatrun ;# runs every minuteproc qstatrun {m h d mo y} {global qstatpathglobal server_numberglobal slctglobal slglobal sdlistset server_count 0set slcount 0while {$server_count != $server_number} {# read old map nameset fname "mapchangenotify$server_count.output"set fp [open $fname "r"]set qstatxmlfile [split [read $fp] \n]close $fp#-------------------------------------------------------------------------# using regex to find the right lines, yeah i know 50 lines is over kill.set qstatxmlgameline 20set qstatxmlmapline 20set findrightlines 0set findrightlinesmax 20while { $findrightlines != $findrightlinesmax } {set poon [lindex $qstatxmlfile $findrightlines]if { [regexp "&lt;map&gt;(.*)&lt;/map&gt;" $poon] == 1} {set qstatxmlmapline $findrightlines} incr findrightlines}#-------------------------------------------------------------------------set mapline [lindex $qstatxmlfile $qstatxmlmapline]# strip out &lt;map&gt; and &lt;\map&gt;set oldmap [string range $mapline 7 [expr [string length $mapline] - 7]]#-------------------------------------------------------------------------# set server list set qstatgametype [lindex $sdlist $slcount] ; incr slcountset qstatserverip [lindex $sdlist $slcount] ; incr slcountset qstataddedtext [lindex $sdlist $slcount] ; incr slcountset qstatircchan [lindex $sdlist $slcount] ; incr slcount#-------------------------------------------------------------------------exec $qstatpath $qstatgametype $qstatserverip -xml -of mapchangenotify$server_count.output# read new map nameset fname "mapchangenotify$server_count.output"set fp [open $fname "r"]set qstatxmlfile [split [read $fp] \n]close $fp#-------------------------------------------------------------------------# using regex to find the right lines, yeah i know 50 lines is over kill.set qstatxmlgameline 20set qstatxmlmapline 20set findrightlines 0set findrightlinesmax 20while { $findrightlines != $findrightlinesmax } {set poon [lindex $qstatxmlfile $findrightlines]if { [regexp "&lt;map&gt;(.*)&lt;/map&gt;" $poon] == 1} {set qstatxmlmapline $findrightlines} if { [regexp "&lt;gametype&gt;(.*)&lt;/gametype&gt;" $poon] == 1} {set qstatxmlgameline $findrightlines} incr findrightlines}#-------------------------------------------------------------------------set gametypeline [lindex $qstatxmlfile $qstatxmlgameline]set mapline [lindex $qstatxmlfile $qstatxmlmapline]# strip out &lt;map&gt; and &lt;\map&gt;set newmap [string range $mapline 7 [expr [string length $mapline] - 7]]# strip out &lt;gametype&gt; and &lt;\gametype&gt;set gametype [string range $gametypeline 12 [expr [string length $gametypeline] - 12]]#--------------------------------------------------------------------------# if qstat hit the server at the wrong time nothing is returned so having another crack at itset recheckbreak 0set mlbroken 0while {[string length $mapline] &lt; 1} {exec $qstatpath $qstatgametype $qstatserverip -xml -of mapchangenotify$server_count.output# read new map nameset fname "mapchangenotify$server_count.output"set fp [open $fname "r"]set qstatxmlfile [split [read $fp] \n]close $fp#------------------------------------------------------------------------# using regex to find the right lines, yeah i know 50 lines is over kill.set qstatxmlgameline 20set qstatxmlmapline 20set findrightlines 0set findrightlinesmax 20while { $findrightlines != $findrightlinesmax } {set poon [lindex $qstatxmlfile $findrightlines]if { [regexp "&lt;map&gt;(.*)&lt;/map&gt;" $poon] == 1} {set qstatxmlmapline $findrightlines} if { [regexp "&lt;gametype&gt;(.*)&lt;/gametype&gt;" $poon] == 1} {set qstatxmlgameline $findrightlines} incr findrightlines}#------------------------------------------------------------------------set gametypeline [lindex $qstatxmlfile $qstatxmlgameline]set mapline [lindex $qstatxmlfile $qstatxmlmapline]# strip out &lt;map&gt; and &lt;\map&gt;set newmap [string range $mapline 7 [expr [string length $mapline] - 7]]# strip out &lt;gametype&gt; and &lt;\gametype&gt;set gametype [string range $gametypeline 12 [expr [string length $gametypeline] - 12]]incr recheckbreakif {$recheckbreak == 2} { set mlbroken 1 ; break }}#-----------------------------------------------------------------------------------------------------------------------------------------incr server_countif {$newmap != $oldmap &amp;&amp; $mlbroken == 0 }  {     puthelp "PRIVMSG $qstatircchan :$qstataddedtext $newmap "   }}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9504">AciD</a> — Thu Nov 29, 2007 7:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AciD]]></name></author>
		<updated>2007-11-29T19:05:24-04:00</updated>

		<published>2007-11-29T19:05:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78817#p78817</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78817#p78817"/>
		<title type="html"><![CDATA[Qstat + qstat map change notify]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78817#p78817"><![CDATA[
Thanks, i needed to update my cygwin, and everything works!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9504">AciD</a> — Thu Nov 29, 2007 7:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-11-29T17:31:00-04:00</updated>

		<published>2007-11-29T17:31:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78808#p78808</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78808#p78808"/>
		<title type="html"><![CDATA[Qstat + qstat map change notify]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78808#p78808"><![CDATA[
A quick <a href="http://www.google.com" class="postlink">Google</a> resulted in this hit:<br><a href="http://windrop.sourceforge.net/faq.html" class="postlink">http://windrop.sourceforge.net/faq.html</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Thu Nov 29, 2007 5:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AciD]]></name></author>
		<updated>2007-11-29T17:02:09-04:00</updated>

		<published>2007-11-29T17:02:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78807#p78807</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78807#p78807"/>
		<title type="html"><![CDATA[Qstat + qstat map change notify]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78807#p78807"><![CDATA[
Here is My Code:<br><div class="codebox"><p>Code: </p><pre><code>set qstat_flag "-|-"set pathqstat "c:/egg/qstat"set nopub ""bind pub $qstat_flag "!cs"  pub:qstatbind pub $qstat_flag "!csp"  pub:qstatbind pub $qstat_flag "!css"  pub:qstatbind pub $qstat_flag "!cssp"  pub:qstatbind pub $qstat_flag "!q4"  pub:qstatbind pub $qstat_flag "!q4p"  pub:qstatproc pub:qstat {nick host hand chan arg} {  global lastbind pathqstat nopub  if {[lsearch -exact $nopub [string tolower $chan]] &gt;= 0} {return 0}  set arg [lindex $arg 0]  if {[string length [string trim $arg]] == 0} {    putquick "NOTICE $nick :1,0Syntax: $lastbind &lt;IP/Host&gt;"    return 0  }  switch [string tolower $lastbind] {    "!cs"     { set gametype "-a2s";  set players 0 }    "!csp"     { set gametype "-a2s";  set players 1 }    default {      putquick "NOTICE $nick :1,0Unknown Command"      return 0    }  }  # run the qstat program.   if {$players} {     set stat [open "|$pathqstat/qstat.exe $gametype $arg -Ts $pathqstat/server.qstat -Tp $pathqstat/players.qstat -P" r]   } else {     set stat [open "|$pathqstat/qstat.exe $gametype $arg -Ts $pathqstat/server.qstat" r]   }  qstat:results $chan $nick $stat  close $stat  return 0}proc qstat:results {chan nick pf} {    while {[gets $pf line] &gt;= 0} {       if {[string match "DOWN*" $line]} {          putquick "NOTICE $nick :Connection refused while querying server."          break       } elseif {[string match "HOSTNOTFOUND*" $line]} {          putquick "NOTICE $nick :Host not found."          break       } elseif {[string match "TIMEOUT*" $line]} {          putquick "NOTICE $nick :Timeout while querying server."          break       }       set msg [split $line]       set string ""       foreach query $msg {          if {[string length $string] + [string length $query] &lt; 458} {             append string "$query "          } else {             putquick "NOTICE $nick :$string"             set string ""          }       }       if {$string != ""} {          putquick "NOTICE $nick :$string"       }    } }</code></pre></div>i have edit what you said, and get error: <div class="codebox"><p>Code: </p><pre><code>[22:56] Tcl error [pub:qstat]: couldn't duplicate input handle: bad file number</code></pre></div>Help pls  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":?" title="Confused"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9504">AciD</a> — Thu Nov 29, 2007 5:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-11-29T08:34:52-04:00</updated>

		<published>2007-11-29T08:34:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78788#p78788</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78788#p78788"/>
		<title type="html"><![CDATA[Qstat + qstat map change notify]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78788#p78788"><![CDATA[
If you are using the windows port of qstat, the command would be qstat.exe, rather than qstat. This basically means you'll have to edit the script, locating the lines that executes the external application to use qstat.exe as commandname rather than qstat.<br><br>It would probably look something like this:<div class="codebox"><p>Code: </p><pre><code>  if {$players == 1} {    catch { exec $qstat(path)/qstat -timeout 5 $gametype $arg -Ts $qstat(path)/server.qstat -Tp $qstat(path)/players.qstat -P } lines  } else {    catch { exec $qstat(path)/qstat -timeout 5 $gametype $arg -Ts $qstat(path)/server.qstat } lines  }</code></pre></div>where the "exec $qstat(path)/qstat" should be changed into "exec $qstat(path)/qstat.exe"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Thu Nov 29, 2007 8:34 am</p><hr />
]]></content>
	</entry>
	</feed>
