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

	<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-03-01T13:55:40-04:00</updated>

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

		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2008-03-01T13:55:40-04:00</updated>

		<published>2008-03-01T13:55:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81318#p81318</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81318#p81318"/>
		<title type="html"><![CDATA[Script request! *[TICK 1177] Fri Feb 29 20:00:00 2008 - GMT*]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81318#p81318"><![CDATA[
1. you'd need to write to file, so your starttick proc would become:<div class="codebox"><p>Code: </p><pre><code>proc tick:start {nick uhost hand chan text} {   global tick   set tick(start) [clock seconds]   puthelp "PRIVMSG $chan :Started tick count at [clock format $tick(start)]"   set outfile [open "tickstart.txt" w]  puts $outfile $tick(start)  close $outfile}</code></pre></div>and at the end of the script, something like:<div class="codebox"><p>Code: </p><pre><code>if {![info exists tick(start)]} {  if {![file exists "tickstart.txt"]} {    set tick(start) [clock seconds] ;# set default value if file doesn't exist  } else {    set infile [open "tickstart.txt" r]    gets $infile tick(start)    close $infile    unset infile  }}</code></pre></div>2. Look for all [clock format .... commands, and simply add " -gmt 1" before the "]"<br><br>3. Change the "bind pub - !starttick tick:start" line to "bind pub n !starttick tick:start"<br><br>Enjoy.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sat Mar 01, 2008 1:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ripz]]></name></author>
		<updated>2008-03-01T04:34:44-04:00</updated>

		<published>2008-03-01T04:34:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81307#p81307</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81307#p81307"/>
		<title type="html"><![CDATA[Script request! *[TICK 1177] Fri Feb 29 20:00:00 2008 - GMT*]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81307#p81307"><![CDATA[
I have tried to make some changes.. but it never works :p<br><br>1. I want to make the bot remember the starttick even if it restarts or loose connection.<br><br>2. Make it so it understand GMT (the game is GMT 0). It only shows CET<br><br>3. Make the !starttick and owner command.<br><br><br>Looks like its over my knowledge..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9718">ripz</a> — Sat Mar 01, 2008 4:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ripz]]></name></author>
		<updated>2008-03-01T04:47:22-04:00</updated>

		<published>2008-03-01T04:11:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81306#p81306</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81306#p81306"/>
		<title type="html"><![CDATA[Script request! *[TICK 1177] Fri Feb 29 20:00:00 2008 - GMT*]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81306#p81306"><![CDATA[
Thanks, strike <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=9718">ripz</a> — Sat Mar 01, 2008 4:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2008-02-29T19:30:40-04:00</updated>

		<published>2008-02-29T19:30:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81289#p81289</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81289#p81289"/>
		<title type="html"><![CDATA[Script request! *[TICK 1177] Fri Feb 29 20:00:00 2008 - GMT*]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81289#p81289"><![CDATA[
I'm not really sure of the practicality of this or the full implementation, but here's an example of what you would want, from what I gather:<br><div class="codebox"><p>Code: </p><pre><code># initiate the start timebind pub - !starttick tick:startproc tick:start {nick uhost hand chan text} {  global tick  set tick(start) [clock seconds]  puthelp "PRIVMSG $chan :Started tick count at [clock format $tick(start)]"}bind pub - !tick tick:displayproc tick:display {nick uhost hand chan text} {  global tick  #incase !starttick wasn't used to (re)initiate the 'ticking'  if {![info exists tick(start)]} { set tick(start) [clock seconds] }    set ticks [lindex [split $text] 0] #if &lt;ticks&gt; argument wasn't specified, set default value  if {![string length $ticks]} { set ticks 0 } #tick calculations (60 seconds in a minute, 60 minutes in an hour)  set ticktime [expr {$tick(start) + (60 * 60 * $ticks)}] #display to user  puthelp "PRIVMSG $chan :\[TICK $ticks\] [clock format $ticktime]"}</code></pre></div>Untested code... You should be able to manipulate the above code to your liking.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Fri Feb 29, 2008 7:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ripz]]></name></author>
		<updated>2008-02-29T09:23:12-04:00</updated>

		<published>2008-02-29T09:23:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81272#p81272</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81272#p81272"/>
		<title type="html"><![CDATA[Script request! *[TICK 1177] Fri Feb 29 20:00:00 2008 - GMT*]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81272#p81272"><![CDATA[
Hey,<br><br>Im looking for a script that does this:<br>(or someone that have the knowledge to make it) <br><br>[13:06] &lt;Nick&gt; !tick 1177<br>[13:06] &lt;@nick&gt; [TICK 1177] Fri Feb 29 20:00:00 2008 - GMT<br><br>[13:06] &lt;Nick&gt; !tick 1178<br>[13:06] &lt;@nick&gt; [TICK 1178] Fri Feb 29 21:00:00 2008 - GMT<br><br>I dont really know how to explain this easy enough. (This is for a bot i have that i use for an online game planetarion)<br><br>The game always starts at tick 1 at a specific date and time.. So need to be able to put that into the bot..<br><br>(1 tick is 1 hour)<br><br>So if they game starts Tue March 15 20:00:00 2008 - GMT<br>i want it to understand that next tick will be one hour later (21:00:00 GMT)<br>Or if i wanna check what date/time tick 100 is too<br> <br>And so on untill that round is over.<br><br>If i explained this unclear.. let me know <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>And thanks if there is someone out there that is able to help me with this.. Would be really awesome.. <br><br>I have a feeling that this is a huge script so i dont really think anyone wanna do this.. but ill post it anyway <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=9718">ripz</a> — Fri Feb 29, 2008 9:23 am</p><hr />
]]></content>
	</entry>
	</feed>
