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

	<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>2005-05-09T17:35:32-04:00</updated>

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

		<entry>
		<author><name><![CDATA[fade85]]></name></author>
		<updated>2005-05-09T17:35:32-04:00</updated>

		<published>2005-05-09T17:35:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49292#p49292</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49292#p49292"/>
		<title type="html"><![CDATA[CounterStrike Source]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49292#p49292"><![CDATA[
the new version is'nt in ltc..it's in .c<br>and, it's way too much text to post here.  <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=6211">fade85</a> — Mon May 09, 2005 5:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-05-09T17:00:46-04:00</updated>

		<published>2005-05-09T17:00:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49289#p49289</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49289#p49289"/>
		<title type="html"><![CDATA[CounterStrike Source]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49289#p49289"><![CDATA[
Paste the new version lets try and fix that one rather than adding complete new code.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Mon May 09, 2005 5:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[fade85]]></name></author>
		<updated>2005-05-09T16:57:52-04:00</updated>

		<published>2005-05-09T16:57:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49287#p49287</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49287#p49287"/>
		<title type="html"><![CDATA[CounterStrike Source]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49287#p49287"><![CDATA[
It's used, for people to be able to type !q in the channel, and it lists CounterStrike servers (that I have in another file)<br>with players on it, the score, etc.<br>And yes, I tried it on my eggbot, and it worked fine, 'cept that it don't recognize the command that is in the new qstat version for halflife2.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6211">fade85</a> — Mon May 09, 2005 4:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-05-09T16:55:14-04:00</updated>

		<published>2005-05-09T16:55:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49286#p49286</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49286#p49286"/>
		<title type="html"><![CDATA[CounterStrike Source]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49286#p49286"><![CDATA[
What are you using this script for? And are you actually running this on your Windrop?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Mon May 09, 2005 4:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[fade85]]></name></author>
		<updated>2005-05-09T16:46:57-04:00</updated>

		<published>2005-05-09T16:46:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49285#p49285</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49285#p49285"/>
		<title type="html"><![CDATA[CounterStrike Source]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49285#p49285"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>## qstat4eggdrop.tcl v1.0## A little script to redirect output of Qstat to IRC # for eggdrop 1.4# Author: Mikael Blomqvist (micke@peachpuff.com)## http://eggdrop.peachpuff.com/## Sometimes I don't get along with Tcl, so please don't complain too# much about the code. Comments are very welcome though.# There was an earlier version of this script which only managed to list QW servers# This is a completely rewritten one which supports everything that Qstat does (hopefully)# ATM all the files has to be in the same directory as the bot is started (including qstat).# You can ofcourse change the exec lines in exec_get_servers &amp; exec_get_servers_with_players# if you want to move them.## public commandsbind pub -|- !help helpbind pub -|- !q qbind pub -|- !qp qplayersbind pub -|- !qf qfindproc help {nick host hand chan arg} {    putserv "NOTICE $nick :Commands:"    putserv "NOTICE $nick : !q &lt;searchword&gt;; List servers"    putserv "NOTICE $nick : !qf &lt;player searchword&gt;; Search for players on all servers"    putserv "NOTICE $nick : !qp &lt;searchword&gt;; Display all players on matched servers"    return 0}proc exec_get_servers {} {    return [exec ./qstat -sort g -default qws -Ts server.qstat -Tp players.qstat -f qstat4eggdrop.lst]}proc exec_get_servers_with_players {} {    return [exec ./qstat -sort g -default qws -Ts server.qstat -Tp players.qstat -f qstat4eggdrop.lst -P]}proc get_number_of {i type} {    switch -exact $i {0 {    return "No ${type}s found."}1 {    return "1 $type found."}default {    return "$i ${type}s found."}    }}proc sort2 {a b} {    set tal1 [string trim [string range $a 0 2]]    set tal2 [string trim [string range $b 0 2]]    return [expr int($tal1) &lt; int($tal2)]}proc q {nick host hand chan arg} {    set stat [exec_get_servers]    set stat_arr [split $stat "\n"]    set i 0    set str [lsort $stat_arr]    set players [list]    set found 0    if {[llength $arg] == 1} then {foreach rad $str {    if {[string first $arg [string tolower $rad]] != -1} then {incr iputquick "NOTICE $nick :$rad"incr found    }}    } else {foreach rad $str {    incr i    putquick "NOTICE $nick :$i: $rad"    incr found}    }    set info_str [get_number_of $found "server"]    putquick "NOTICE $nick :$info_str"    return 0}proc qplayers {nick host hand chan arg} {    if {[llength $arg] &lt; 1} then {putquick "NOTICE $nick : You might wanna put in a search word to limit the list a bit"return    }    set stat [exec_get_servers_with_players]    set stat_arr [split $stat "\n"]    set str $stat_arr    set found 0    set players_found 0    for {set i 0} {$i &lt; [llength $str]} {incr i} {if {[string range [lindex $str $i] 0 6] != "Player:"} then {    if {[string first $arg [string tolower [lindex $str $i]]] != -1} then {incr foundset players [list]set j [expr $i + 1]# Loop through all the players and save them into a listwhile {[string range [lindex $str $j] 0 6] == "Player:"} {    lappend players [string trimleft [lindex $str $j] "Player:"]    incr j    incr players_found}# Display serverputquick "NOTICE $nick :[lindex $str $i]"# If we have any players list them up sortedif {[llength $players] &gt; 0} then {    foreach player [lsort -command sort2 $players] {putquick "NOTICE $nick :  $player"    }}    }}    }    set info_str [get_number_of $found "server"]    set info_str2 [get_number_of $players_found "player"]    putquick "NOTICE $nick :$info_str $info_str2"    return 0}proc qfind {nick host hand chan arg} {    if {[llength $arg] &lt; 1} then {putquick "NOTICE $nick : You might wanna put in a search word to limit the list a bit"return    }    set stat [exec_get_servers_with_players]    set stat_arr [split $stat "\n"]    set i 0    set str $stat_arr    set found 0    #    set str [lsort $stat_arr]    for {set i 0} {$i &lt; [llength $str]} {incr i} {set j [expr $i + 1]# Loop through all the players and save them into a listwhile {[string range [lindex $str $j] 0 6] == "Player:"} {    set player [string trimleft [lindex $str $j] "Player:"]    set playername [lindex [split $player " "] 2]    set server [join [lindex [split [lindex $str $i] ""] 1] " "]    if {[string first [string tolower $arg] [string tolower $playername]] != -1} then {incr foundputquick "NOTICE $nick :$playername is on $server"    }    incr j}# Make sure we don't check through the players againset i [expr $j - 1]    }    set info_str [get_number_of $found "player"]    putquick "NOTICE $nick :$info_str"    return 0} </code></pre></div>The command I want to add, is -hl2s<br><br>To execute qstat.exe and show the information (in command prompt), i type qstat -hl2s IP<br>And, I want it parsed into a IRC channel.<br><br>Thanks for the quick reply.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6211">fade85</a> — Mon May 09, 2005 4:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-05-09T16:38:38-04:00</updated>

		<published>2005-05-09T16:38:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49283#p49283</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49283#p49283"/>
		<title type="html"><![CDATA[CounterStrike Source]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49283#p49283"><![CDATA[
It can be done but without the script to modify your question is about as much use as an inflateable dartboard  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Mon May 09, 2005 4:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[fade85]]></name></author>
		<updated>2005-05-09T14:41:52-04:00</updated>

		<published>2005-05-09T14:41:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49266#p49266</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49266#p49266"/>
		<title type="html"><![CDATA[CounterStrike Source]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49266#p49266"><![CDATA[
Hi.<br><br>Ok, here's the thing.<br><br>I have a working eggdrop bot, on my irc channel.<br>I have the latest qstat, so I can check up halflife 2 servers and show the information (players online,map)<br>Thing is, I want the eggbot, to react to a certain command, to show off this information.<br>I'm actually kinda new to this, so please excuse me if my question is stupidly asked.   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"> <br>I'm using windows XP for the server computer.<br><br>Thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6211">fade85</a> — Mon May 09, 2005 2:41 pm</p><hr />
]]></content>
	</entry>
	</feed>
