<?xml version="1.0"?>
<rss version="2.0">
	<channel>
	<title>Newest Comments</title>
	<link>http://www.hawkee.com</link>
	<description>Hawkee.com Comment Tracker</description>
	<language>en-us</language>

	<item>
		<title>Aucun50 commented on mIRC Snippet: Count (Seconds) </title>
		<author>Aucun50</author>
		<link>http://www.hawkee.com/snippet/5760/#c53313</link>
		<description><![CDATA[Updated fixed a little error ]]></description>
		<pubDate>Fri, 20 Mar 2009 08:21:39 -0500</pubDate>
	</item>
	<item>
		<title>The_Almighty_Duelist commented on mIRC Snippet: Count (Seconds) </title>
		<author>The_Almighty_Duelist</author>
		<link>http://www.hawkee.com/snippet/5760/#c52424</link>
		<description><![CDATA[</span><table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"><tr> 	  <td><span class="genmed"><b>Quote:</b></span></td>	</tr>	<tr>	  <td class="quote"> &quot;Am I to understand that this means that you are not a good script writer if you don't use /elseif ?&quot;<br />
<br />
That means that elseif looks neater then else in my opinion less lines. </td>	</tr></table><span class="postbody"><br />
<br />
ok ^_^ thanks for the clarification!<br />
<br />
nice script btw]]></description>
		<pubDate>Fri, 27 Feb 2009 09:02:26 -0600</pubDate>
	</item>
	<item>
		<title>Kirby commented on mIRC Snippet: Count (Seconds) </title>
		<author>Kirby</author>
		<link>http://www.hawkee.com/snippet/5760/#c52423</link>
		<description><![CDATA[We all have different scripting habits/methods.]]></description>
		<pubDate>Fri, 27 Feb 2009 08:46:25 -0600</pubDate>
	</item>
	<item>
		<title>Aucun50 commented on mIRC Snippet: Count (Seconds) </title>
		<author>Aucun50</author>
		<link>http://www.hawkee.com/snippet/5760/#c52420</link>
		<description><![CDATA[&quot;Am I to understand that this means that you are not a good script writer if you don't use /elseif ?&quot; <br />
<br />
That means that elseif looks neater then else in my opinion less lines.]]></description>
		<pubDate>Fri, 27 Feb 2009 08:15:31 -0600</pubDate>
	</item>
	<item>
		<title>The_Almighty_Duelist commented on mIRC Snippet: Count (Seconds) </title>
		<author>The_Almighty_Duelist</author>
		<link>http://www.hawkee.com/snippet/5760/#c52419</link>
		<description><![CDATA[</span><table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"><tr> 	  <td><span class="genmed"><b>Quote:</b></span></td>	</tr>	<tr>	  <td class="quote">very nice, your coding is coming along nicely, keeptin it neat using elseif's etc.<br />
gd work m8 </td>	</tr></table><span class="postbody"><br />
<br />
Am I to understand that this means that you are not a good script writer if you don't use /elseif ? The reason i use Else { then /if is that it makes it easier for me to see and understand. (I'm not nagging or complaining or trying to start anything) I just like to code that way. ^_^]]></description>
		<pubDate>Fri, 27 Feb 2009 08:08:35 -0600</pubDate>
	</item>
	<item>
		<title>Aucun50 commented on mIRC Snippet: Count (Seconds) </title>
		<author>Aucun50</author>
		<link>http://www.hawkee.com/snippet/5760/#c52104</link>
		<description><![CDATA[Thanks for explaining that Zmodem]]></description>
		<pubDate>Thu, 19 Feb 2009 12:44:25 -0600</pubDate>
	</item>
	<item>
		<title>Zmodem commented on mIRC Snippet: Count (Seconds) </title>
		<author>Zmodem</author>
		<link>http://www.hawkee.com/snippet/5760/#c52103</link>
		<description><![CDATA[No, the %var is faster. The main reason is because instead of having to reference $[N/I] over and over, and mIRC re-calculates it everytime, static %variables never change and are in your code, itself, rather than referencing back to parsing out the identifiers through calculations.<br />
<br />
However, if you're seeing no lag, I wouldn't see the need, so awesome! :)]]></description>
		<pubDate>Thu, 19 Feb 2009 12:04:04 -0600</pubDate>
	</item>
	<item>
		<title>Aucun50 commented on mIRC Snippet: Count (Seconds) </title>
		<author>Aucun50</author>
		<link>http://www.hawkee.com/snippet/5760/#c52080</link>
		<description><![CDATA[Always thought $1 was faster then have it read from the var. The script running with 0% lag for me.]]></description>
		<pubDate>Wed, 18 Feb 2009 18:27:07 -0600</pubDate>
	</item>
	<item>
		<title>Zmodem commented on mIRC Snippet: Count (Seconds) </title>
		<author>Zmodem</author>
		<link>http://www.hawkee.com/snippet/5760/#c52079</link>
		<description><![CDATA[Just a quick hint: You can DRASTICALLY improve speed in the event by setting a variable to common used identifiers that don't require dynamic-values. ie: $chan will always be $chan, as well as $1 and $2.<br />
<br />
At the beginning of the event, try setting a temporary variable to the commonly used identifiers. ie:<br />
<br />
</span><table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"><tr> 	  <td><span class="genmed"><b>Code:</b></span></td>	</tr>	<tr>	  <td class="code">var %1 = $1, %2 = $2, %3 = $3, %c = $chan</td>	</tr></table><span class="postbody">]]></description>
		<pubDate>Wed, 18 Feb 2009 18:07:42 -0600</pubDate>
	</item>
	<item>
		<title>Aucun50 commented on mIRC Snippet: Count (Seconds) </title>
		<author>Aucun50</author>
		<link>http://www.hawkee.com/snippet/5760/#c52078</link>
		<description><![CDATA[Updated to use 5 counts at a time, op's can stop any count]]></description>
		<pubDate>Wed, 18 Feb 2009 16:05:36 -0600</pubDate>
	</item>
	<item>
		<title>RusselB commented on mIRC Snippet: Count (Seconds) </title>
		<author>RusselB</author>
		<link>http://www.hawkee.com/snippet/5760/#c52063</link>
		<description><![CDATA[While usage of the halt statement will prevent the extra processing of the if statements that follow the if statement that matches, Aucun's usage of if/elseif is not <span style="text-decoration: underline">completely</span> misused, however, I admit, it could be better coded.<br />
<br />
As I have stated before, the only way to tell for sure which is faster, is to time test each of the codes, ensuring that the timing was set and relayed from the same general locations in both scripts... Ideally the timings should be done between exactly the same locations, however, due to the difference in the number of ON TEXT events in the two scripts, this is not possible.\<br />
]]></description>
		<pubDate>Wed, 18 Feb 2009 02:48:25 -0600</pubDate>
	</item>
	<item>
		<title>Korvin commented on mIRC Snippet: Count (Seconds) </title>
		<author>Korvin</author>
		<link>http://www.hawkee.com/snippet/5760/#c52062</link>
		<description><![CDATA[truth be told i believe that mine would be faster, but only by a miniscule amount, and you completely misuse the elseifs, also my ifs wouldnt slow it down.<br />
<br />
i believe this on account ofmy  halts, it doesnt have to check every if, as yours does.]]></description>
		<pubDate>Wed, 18 Feb 2009 01:00:03 -0600</pubDate>
	</item>
	<item>
		<title>RusselB commented on mIRC Snippet: Count (Seconds) </title>
		<author>RusselB</author>
		<link>http://www.hawkee.com/snippet/5760/#c52059</link>
		<description><![CDATA[The $gettok is necessary for all of the modifications to be accurate.<br />
You're right, however, about having to process multiple if's rather than if/elseif/else being slower.<br />
As to the actual overall speed, it's difficult to say if Korvin's corrected code would be faster or slower than your original code, Aucun50, due to the fact that your code uses multiple ON TEXT events, which, in reality, do a built in if (the event has to check if the matchtext section matches the entry or not).<br />
Additionally, a true speed test would have to be checked between the same two points in the two scripts, which is difficult to do, based on the fact that one uses a single event, and the other multiple events.<br />
]]></description>
		<pubDate>Wed, 18 Feb 2009 00:50:28 -0600</pubDate>
	</item>
	<item>
		<title>Aucun50 commented on mIRC Snippet: Count (Seconds) </title>
		<author>Aucun50</author>
		<link>http://www.hawkee.com/snippet/5760/#c52057</link>
		<description><![CDATA[Don't have to test the speed i can tell by the unnecessary $gettok in there and all the if's and no elseif (Witch are faster) ]]></description>
		<pubDate>Wed, 18 Feb 2009 00:07:36 -0600</pubDate>
	</item>
	<item>
		<title>Korvin commented on mIRC Snippet: Count (Seconds) </title>
		<author>Korvin</author>
		<link>http://www.hawkee.com/snippet/5760/#c52056</link>
		<description><![CDATA[youre right =p i edited in notepad<br />
<br />
ty fixed.. <br />
<br />
<br />
also this means that there was no way aucun couldve tested the speed.]]></description>
		<pubDate>Wed, 18 Feb 2009 00:02:41 -0600</pubDate>
	</item>
	<item>
		<title>RusselB commented on mIRC Snippet: Count (Seconds) </title>
		<author>RusselB</author>
		<link>http://www.hawkee.com/snippet/5760/#c52053</link>
		<description><![CDATA[I don't know about speed, but the $gettok items in your code, Korvin, are missing parameters that should be included.  Specifically the parameter that identifies the token separator.<br />
]]></description>
		<pubDate>Tue, 17 Feb 2009 23:27:22 -0600</pubDate>
	</item>
	<item>
		<title>Korvin commented on mIRC Snippet: Count (Seconds) </title>
		<author>Korvin</author>
		<link>http://www.hawkee.com/snippet/5760/#c52051</link>
		<description><![CDATA[slower? for what reason? ]]></description>
		<pubDate>Tue, 17 Feb 2009 23:09:13 -0600</pubDate>
	</item>
	<item>
		<title>Aucun50 commented on mIRC Snippet: Count (Seconds) </title>
		<author>Aucun50</author>
		<link>http://www.hawkee.com/snippet/5760/#c52049</link>
		<description><![CDATA[Besides the fact the your script is alot slower then mine its ok, and i like my style better :)]]></description>
		<pubDate>Tue, 17 Feb 2009 22:58:23 -0600</pubDate>
	</item>
	<item>
		<title>Korvin commented on mIRC Snippet: Count (Seconds) </title>
		<author>Korvin</author>
		<link>http://www.hawkee.com/snippet/5760/#c52045</link>
		<description><![CDATA[i really hate your style =/  soooooo i decided to edit your code in my style. look over it. </span><table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"><tr> 	  <td><span class="genmed"><b>Code:</b></span></td>	</tr>	<tr>	  <td class="code">on *&#58;TEXT&#58;*&#58;#&#58; &#123;<br />
&nbsp; tokenize 32 $strip&#40;$1-&#41;<br />
&nbsp; var %w = !countdown,!viewcount,!countstarted,!countstop,!countpause,!countrestart<br />
&nbsp; if &#40; %flood $+ $nick == $null &#41; &#123;<br />
&nbsp; &nbsp; set -u2 %flood $+ $nick 1<br />
&nbsp; &nbsp; if &#40;$1 == $gettok&#40;%w,1,44&#41;&#41; &#123;<br />
&nbsp; &nbsp; &nbsp; if &#40;%count&#41; &#123; msg $chan There is a game going already | halt &#125;<br />
&nbsp; &nbsp; &nbsp; if &#40;$2 &gt;= 100001&#41; &#123; msg $chan Sorry number is to big | halt &#125;<br />
&nbsp; &nbsp; &nbsp; if &#40;!$2&#41; &#123; msg $chan Usage&#58; !countdown &#40;second&#41; | halt &#125;<br />
&nbsp; &nbsp; &nbsp; set -z %count $2 | msg $chan It will now count down from $2, to view it type !viewcount | set %count2 $2 | set %count3 $nick <br />
&nbsp; &nbsp; &#125;<br />
&nbsp; &nbsp; if &#40;!%count&#41; &#123;<br />
&nbsp; &nbsp; &nbsp; if &#40;$1 == $gettok&#40;%w,1,44&#41;&#41; &#123;<br />
&nbsp; &nbsp; &nbsp; &nbsp; if &#40;$v1 = 1&#41; &#123; msg $chan Countdown is now over from %count2 | unset %count2 | unset %count3 | halt &#125;<br />
&nbsp; &nbsp; &nbsp; &nbsp; msg $chan %count | var %t $calc&#40;%count2 - %count&#41; | var %t2 $duration&#40;%t&#41; | msg $chan I have been running for %t2 <br />
&nbsp; &nbsp; &nbsp; &#125;<br />
&nbsp; &nbsp; &nbsp; if &#40;$1 == $gettok&#40;%w,1,44&#41;&#41; &#123;<br />
&nbsp; &nbsp; &nbsp; &nbsp; msg $chan The count was set to %count2 and $calc&#40;%count2 - %count&#41; seconds has gone by so far, the count was started by %count3 | var %t $calc&#40;%count2 - %count&#41; | var %t2 $duration&#40;%t&#41; | msg $chan Count can be stopped by %count3 with !stopcount, i have been running for %t2 <br />
&nbsp; &nbsp; &nbsp; &#125;<br />
&nbsp; &nbsp; &nbsp; if &#40;$1 == $gettok&#40;%w,1,44&#41;&#41; &#123;<br />
&nbsp; &nbsp; &nbsp; &nbsp; if &#40;$nick !== %count3&#41; &#123; msg $chan You didn't start the count&nbsp; | halt &#125;<br />
&nbsp; &nbsp; &nbsp; &nbsp; msg $chan Count stopped by $nick it was set to %count2 and $calc&#40;%count2 - %count&#41; seconds had passed | unset %count %count2 %count3 %countpause<br />
&nbsp; &nbsp; &nbsp; &#125;<br />
&nbsp; &nbsp; &nbsp; if &#40;$1 == $gettok&#40;%w,1,44&#41;&#41; &#123;<br />
&nbsp; &nbsp; &nbsp; &nbsp; if &#40;$nick !== %count3&#41; &#123; msg $chan You didn't start the count | halt &#125;<br />
&nbsp; &nbsp; &nbsp; &nbsp; set %countpause %count | msg $chan Count is now paused, to start is again tpye !countrestart | unset %count<br />
&nbsp; &nbsp; &nbsp; &#125;<br />
&nbsp; &nbsp; &nbsp; if &#40;$1 == $gettok&#40;%w,1,44&#41;&#41; &#123;<br />
&nbsp; &nbsp; &nbsp; &nbsp; if &#40;%countpause&#41; &#123;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if &#40;$nick !== %count3&#41; &#123; msg $chan You didn't pause or start the count | halt &#125;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; msg $chan Count started after stop | set -z %count %countpause<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; halt<br />
&nbsp; &nbsp; &nbsp; &nbsp; &#125;<br />
&nbsp; &nbsp; &nbsp; &nbsp; msg $chan The count was never paused<br />
&nbsp; &nbsp; &nbsp; &#125;<br />
&nbsp; &nbsp; &#125;<br />
&nbsp; &nbsp; msg $chan No countdown started <br />
&nbsp; &#125;<br />
&#125;<br />
</td>	</tr></table><span class="postbody">]]></description>
		<pubDate>Tue, 17 Feb 2009 22:20:25 -0600</pubDate>
	</item>
	<item>
		<title>Aucun50 commented on mIRC Snippet: Count (Seconds) </title>
		<author>Aucun50</author>
		<link>http://www.hawkee.com/snippet/5760/#c52041</link>
		<description><![CDATA[Thank you russelB, the reason i set 100000 to max is because if it's to high of a number it wont count down right, I'll add some more features to it as you suggested.]]></description>
		<pubDate>Tue, 17 Feb 2009 22:15:33 -0600</pubDate>
	</item>

	</channel>
</rss>


