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

	<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-07-01T09:38:54-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-07-01T09:38:54-04:00</updated>

		<published>2005-07-01T09:38:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51611#p51611</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51611#p51611"/>
		<title type="html"><![CDATA[help with ping.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51611#p51611"><![CDATA[
Yes that's it, but as I said greenbear's code is neater IMO.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Jul 01, 2005 9:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-07-01T08:48:15-04:00</updated>

		<published>2005-07-01T08:48:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51610#p51610</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51610#p51610"/>
		<title type="html"><![CDATA[help with ping.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51610#p51610"><![CDATA[
Thanks guys. This is the one I beleive, in KunFoo's ping.tcl located on <a href="http://www.eggfaq.com" class="postlink">www.eggfaq.com</a>:<br><div class="codebox"><p>Code: </p><pre><code>[expr abs([clock clicks] - $time) / 1000000.0]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Fri Jul 01, 2005 8:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-07-01T08:42:57-04:00</updated>

		<published>2005-07-01T08:42:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51609#p51609</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51609#p51609"/>
		<title type="html"><![CDATA[help with ping.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51609#p51609"><![CDATA[
That returns a rounded value of the reply, while in KungFoo's it returns a value to the nearest million. for example 1.835472 seconds.<br><br>Edit: this reply was to awyeah. But I find greenbear's code much better than the one I use in my script as it returns a value to the nearest thousand.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Jul 01, 2005 8:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2005-07-01T08:40:14-04:00</updated>

		<published>2005-07-01T08:40:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51608#p51608</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51608#p51608"/>
		<title type="html"><![CDATA[help with ping.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51608#p51608"><![CDATA[
you could use something like this<div class="codebox"><p>Code: </p><pre><code>set starttime [clock clicks -milliseconds]set length [expr abs([clock clicks -milliseconds] - $starttime) / 1000.0]putserv "PRIVMSG $chan: It took $length seconds"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Fri Jul 01, 2005 8:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-07-01T08:07:33-04:00</updated>

		<published>2005-07-01T08:07:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51606#p51606</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51606#p51606"/>
		<title type="html"><![CDATA[help with ping.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51606#p51606"><![CDATA[
By the way I was wondering how can we, get a reply in microseconds; one more accurately? And I guess it would be only valid for TCL &gt;= 8.4<br><br>I just use like:<div class="codebox"><p>Code: </p><pre><code>[duration [expr [clock seconds] - $time]]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Fri Jul 01, 2005 8:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mrdr]]></name></author>
		<updated>2005-07-01T06:21:24-04:00</updated>

		<published>2005-07-01T06:21:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51604#p51604</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51604#p51604"/>
		<title type="html"><![CDATA[help with ping.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51604#p51604"><![CDATA[
thank you  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6362">mrdr</a> — Fri Jul 01, 2005 6:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-07-01T05:33:27-04:00</updated>

		<published>2005-07-01T05:33:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51600#p51600</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51600#p51600"/>
		<title type="html"><![CDATA[help with ping.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51600#p51600"><![CDATA[
I wrote a script like this, <a href="http://hub.nexushells.net/~Fz/ping1.2.zip" class="postlink">ping1.2</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Jul 01, 2005 5:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mrdr]]></name></author>
		<updated>2005-07-01T02:53:29-04:00</updated>

		<published>2005-07-01T02:53:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51599#p51599</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51599#p51599"/>
		<title type="html"><![CDATA[help with ping.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51599#p51599"><![CDATA[
Here is the code edited by me:<div class="codebox"><p>Code: </p><pre><code>########################################### Ping.tcl 0.1 by #egghelp@efnet (KuNgFo0)#set ping_flag "-"set ping_chans "#egghelp"set ping_command "ping"bind msg $ping_flag $ping_command msg_pingbind pub $ping_flag|$ping_flag $ping_command pub_pingbind ctcr - PING ctcr_pingputlog "*** Ping.tcl loaded"proc msg_ping {nick uhost hand arg} { pub_ping $nick $uhost $hand $nick $arg}proc pub_ping {nick uhost hand chan arg} { global ping_chans ping_data botnick if {(([lsearch -exact [string tolower $ping_chans] [string tolower $chan]] != -1) || ($ping_chans == "*") || ([string index $chan 0] != "#")) &amp;&amp; (![matchattr $hand b])} {  if {($arg != "") &amp;&amp; ([matchattr $hand o])} {   set targnick [string tolower [join [lrange [split $arg] 0 0]]]  } else {   set targnick [string tolower $nick]  }  if {([lsearch -exact $targnick [string tolower [array names ping_data]]] == -1) &amp;&amp; ($targnick != [string tolower $botnick])} {   putserv "PRIVMSG $targnick :\001PING [clock clicks]\001"   set ping_data($targnick) $chan   timer 5 "ping_unset $targnick"  } }}proc ctcr_ping {nick uhost hand dest keyword arg} { global ping_chans ping_data set targnick [string tolower $nick] if {[info exists ping_data($targnick)]} {  if {![catch {expr $arg}]} {   set ping_reply "[expr ([clock clicks] - $arg) / 10000.0]"  } else {   set ping_reply $arg  }  puthelp "PRIVMSG $ping_data($targnick) :PING - $nick lagina $ping_reply sekunde(-es)"  unset ping_data($targnick)  foreach i [timers] {   if {[lindex $i 1] == "ping_unset $targnick"} {     killtimer [lindex $i 2]   }  } }}proc ping_unset {targnick} { global ping_data unset ping_data($targnick)}</code></pre></div>This script now does only 1 person ping. <br>(ex: <br>me; ping <br>bot; your ping is...)<br>I need that i write "ping nick" and bot says "nick's ping is..."<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6362">mrdr</a> — Fri Jul 01, 2005 2:53 am</p><hr />
]]></content>
	</entry>
	</feed>
