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

	<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>2015-11-15T09:42:20-04:00</updated>

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

		<entry>
		<author><name><![CDATA[pizzahut]]></name></author>
		<updated>2015-11-15T09:42:20-04:00</updated>

		<published>2015-11-15T09:42:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104552#p104552</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104552#p104552"/>
		<title type="html"><![CDATA[Game.tcl may need a quick fix]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104552#p104552"><![CDATA[
I came up with this, but seems it isn't working still:<br><br>[14:47:26] &lt;pizzahut&gt; !ip 87.98.237.191:27015<br>[14:47:27] &lt;^lycosbot^&gt; Did not found anything for 87.98.237.191:27015<br><br>Mind I have neither EggDrop nor TCL, so it was a shot in the dark.<br><br>I changed the form data to not only query CS:S servers, but all servers.<br><div class="codebox"><p>Code: </p><pre><code>set formdata [http::formatQuery search $arg]</code></pre></div>This should create an URL like this:<br><br><a href="http://www.game-monitor.com/search.php?search=87.98.237.191:27015" class="postlink">http://www.game-monitor.com/search.php? ... .191:27015</a><br><br>I changed the RegEx to match the current website layout.<br><br>Layout:<div class="codebox"><p>Code: </p><pre><code>&lt;a href="/dmc_GameServer/87.98.237.191:27015/HLDS.pl_DMC_1.html"&gt;HLDS.pl DMC #1&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class="sp"&gt;&lt;span&gt;0 /&lt;/span&gt;&lt;span&gt;14&lt;/span&gt; (4)&lt;/td&gt;&lt;td&gt;dmc_helix&lt;/td&gt;&lt;td class="sip"&gt;</code></pre></div>RegEx:<div class="codebox"><p>Code: </p><pre><code>regexp -- {&lt;td class="sp"&gt;&lt;span&gt;(.+?) /&lt;/span&gt;} $data -&gt; playersif {![regexp -nocase {&lt;a href="/.+?GameServer/.+?"&gt;(.+?)&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;} $data -&gt; title]} { putmsg $chan "Did not found anything for $arg"; return }regsub -all {&lt;.*?&gt;|&amp;nbsp} $title {} titleregexp -- {&lt;td&gt;(.*?)&lt;/td&gt;&lt;td class="sip"&gt;} $data -&gt; map</code></pre></div>Edited script:<div class="codebox"><p>Code: </p><pre><code># Script to get some extra information about the IP-Adress of your Counter-Strike Source server# Script made by Mookie@Efnet Contact me for more information# Suggestions are always welcome, post them on the forum on egghelp.org# Settings# Bind key? Default: !ipset game(trigger) "!ip"# Get-url timeout. Recommed to keep this as defaultset game(timeout) "60000"########################################################### Don't edit below unless you know what you're doing. ###########################################################bind pub - $::game(trigger) lookupproc lookup {nick uhost hand chan arg} {global game# Check if $arg existsif {![regexp -- {^(.+?):(.+?)$} $arg]} { putmsg $chan "Right format is: $::game(trigger) IP"; return }# Set formdataset formdata [http::formatQuery search $arg]# Going to urlcatch {set tok [http::geturl http://game-monitor.com/search.php?$formdata -timeout $::game(timeout)]} errorif {[string match -nocase "*couldn't open socket*" $error]} {putlog "Error trying connect to url."return}# Went to url, setting dataset data [http::data $tok]# Cleaninghttp::cleanup $tok# Regex timeregexp -- {&lt;td class="sp"&gt;&lt;span&gt;(.+?) /&lt;/span&gt;} $data -&gt; playersif {![regexp -nocase {&lt;a href="/.+?GameServer/.+?"&gt;(.+?)&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;} $data -&gt; title]} { putmsg $chan "Did not found anything for $arg"; return }regsub -all {&lt;.*?&gt;|&amp;nbsp} $title {} titleregexp -- {&lt;td&gt;(.*?)&lt;/td&gt;&lt;td class="sip"&gt;} $data -&gt; map# Shout the resultputmsg $chan "Title: $title Map: $map Players$players"}</code></pre></div>I noticed that there should be a "<a href="www" class="postlink">www</a>." in front of the domain, perhaps that's why it won't work. The response is a redirect if the "<a href="www" class="postlink">www</a>." is omitted.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12581">pizzahut</a> — Sun Nov 15, 2015 9:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[RoboCop]]></name></author>
		<updated>2015-11-14T20:50:57-04:00</updated>

		<published>2015-11-14T20:50:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104551#p104551</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104551#p104551"/>
		<title type="html"><![CDATA[Game.tcl may need a quick fix]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104551#p104551"><![CDATA[
Alright I got alltools.tcl fixed thanks, only problem is that game-monitor.com query not giving me any results nor the bot will relay that IP query. I want to know how to resolve it or maybe use IP Gameserver query on gametracker.com<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12270">RoboCop</a> — Sat Nov 14, 2015 8:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2015-11-14T20:08:16-04:00</updated>

		<published>2015-11-14T20:08:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104549#p104549</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104549#p104549"/>
		<title type="html"><![CDATA[Game.tcl may need a quick fix]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104549#p104549"><![CDATA[
putmsg is included in alltools.tcl<br><br>alltools.tcl is included with all versions of Eggdrop.<br><br>Make sure this line is included near the bottom of your conf file...<div class="codebox"><p>Code: </p><pre><code>source scripts/alltools.tcl</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sat Nov 14, 2015 8:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[RoboCop]]></name></author>
		<updated>2015-11-14T15:56:48-04:00</updated>

		<published>2015-11-14T15:56:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104548#p104548</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104548#p104548"/>
		<title type="html"><![CDATA[Game.tcl may need a quick fix]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104548#p104548"><![CDATA[
Hello I've been trying game.tcl for search GameServer IPs but it appears to give me a error saying "Tcl error [lookup]: invalid command name "putmsg" Is this command for older Eggdrop Versions below 1.6.21? Cos it doesn't seem to work well on that. Here is the TCL code script:<br><div class="codebox"><p>Code: </p><pre><code># Script to get some extra information about the IP-Adress of your Counter-Strike Source server# Script made by Mookie@Efnet Contact me for more information# Suggestions are always welcome, post them on the forum on egghelp.org# Settings# Bind key? Default: !ipset game(trigger) "!ip"# Get-url timeout. Recommed to keep this as defaultset game(timeout) "60000"########################################################### Don't edit below unless you know what you're doing. ###########################################################bind pub - $::game(trigger) lookupproc lookup {nick uhost hand chan arg} {global game# Check if $arg existsif {![regexp -- {^(.+?):(.+?)$} $arg]} { putmsg $chan "Right format is: $::game(trigger) IP"; return }# Set formdataset formdata [http::formatQuery search $arg type server game cstrike2]# Going to urlcatch {set tok [http::geturl http://game-monitor.com/search.php?$formdata -timeout $::game(timeout)]} errorif {[string match -nocase "*couldn't open socket*" $error]} {putlog "Error trying connect to url."return}# Went to url, setting dataset data [http::data $tok]# Cleaninghttp::cleanup $tok# Regex timeregexp -- {&lt;b&gt;Total Players/Max&lt;/b&gt;(.+?)$} $data -&gt; playersif {![regexp -nocase {&lt;a href="/GameServer/(.+?)"&gt;(.+?)&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;} $data -&gt; url title]} { putmsg $chan "Did not found anything for $arg"; return }regsub -all {&lt;.*?&gt;|&amp;nbsp} $title {} titleregexp -- {&lt;td&gt;&lt;a href="/MapSearch/cstrike2/.*?/"&gt;(.*?)&lt;/a&gt;} $data -&gt; map# Shout the resultputmsg $chan "Title: $title Map: $map Players$players"}</code></pre></div>Another thing, game-monitor.com is not as popular as gametracker.com. Say if I wanted to convert game-monitor.com URL for gametracker.com what will the code have to be for it to work. Can you help please? I suck on TCL.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12270">RoboCop</a> — Sat Nov 14, 2015 3:56 pm</p><hr />
]]></content>
	</entry>
	</feed>
