<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.atitd.org/wiki/t6w/index.php?action=history&amp;feed=atom&amp;title=User%3ACegaiel%2FVeggieTales%2FFlaxCommon</id>
	<title>User:Cegaiel/VeggieTales/FlaxCommon - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://www.atitd.org/wiki/t6w/index.php?action=history&amp;feed=atom&amp;title=User%3ACegaiel%2FVeggieTales%2FFlaxCommon"/>
	<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t6w/index.php?title=User:Cegaiel/VeggieTales/FlaxCommon&amp;action=history"/>
	<updated>2026-06-05T05:53:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>http://www.atitd.org/wiki/t6w/index.php?title=User:Cegaiel/VeggieTales/FlaxCommon&amp;diff=126825&amp;oldid=prev</id>
		<title>Cegaiel at 04:18, 15 December 2011</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t6w/index.php?title=User:Cegaiel/VeggieTales/FlaxCommon&amp;diff=126825&amp;oldid=prev"/>
		<updated>2011-12-15T04:18:30Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 04:18, 15 December 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;b&amp;gt;Note the only edit on this file is line 201&amp;lt;/b&amp;gt; - (The new addition is shown in &amp;lt;b&amp;gt;&amp;lt;font color=red&amp;gt;Bold Red&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;). This has nothing to do with the function of the scripts and only affects when &amp;lt;b&amp;gt;flaxseeds.lua&amp;lt;/b&amp;gt; is running.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;b&amp;gt;Here is what it would say before the change:&amp;lt;/b&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;This will plant a 5x5 grid of Flax and harvest it 4 times, requiring 25 seeds and repeat this 1 times, yielding 100 seeds.  &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Before the change, it would ALWAYS say &amp;quot;requiring 25 seeds&amp;quot;, not matter what you changed the field boxes.  So this is nothing more than a cosmetic fix to make the &amp;quot;requring x seeds&amp;quot; update correctly as you change the numbers in the field boxes&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;		if is_plant then&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;			lsPrintWrapped(10, y, z+10, lsScreenX - 20, 0.7, 0.7, 0xD0D0D0ff, &amp;quot;This will plant and harvest a &amp;quot; .. grid_w .. &amp;quot;x&amp;quot; .. grid_w .. &amp;quot; grid of Flax &amp;quot; .. num_loops .. &amp;quot; times, requiring &amp;quot; .. (grid_w * grid_w * num_loops) .. &amp;quot; seeds, doing &amp;quot; .. (grid_w*grid_w*num_loops) .. &amp;quot; flax harvests.&amp;quot;);&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;		else&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;			rip_out_when_done = lsCheckBox(10, y, z+10, 0xFFFFFFff, &amp;quot;Rip out when done&amp;quot;, rip_out_when_done);&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;			y = y + 25;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;			lsPrintWrapped(10, y, z+10, lsScreenX - 20, 0.7, 0.7, 0xD0D0D0ff, &amp;quot;This will plant a &amp;quot; .. grid_w .. &amp;quot;x&amp;quot; .. grid_w .. &amp;quot; grid of Flax and harvest it &amp;quot; .. seeds_per_pass .. &amp;quot; times, requiring &amp;quot; .. (grid_w * grid_w &amp;lt;b&amp;gt;&amp;lt;font color=red&amp;gt;* num_loops&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;) .. &amp;quot; seeds, and repeat this &amp;quot; .. num_loops .. &amp;quot; times, yielding &amp;quot; .. (grid_w * grid_w * num_loops * seeds_per_pass) .. &amp;quot; seeds.&amp;quot;);&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;		end&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Copy the below code and edit/overwrite &amp;lt;b&amp;gt;flax_commmon.inc&amp;lt;/b&amp;gt; file (in your Veggie Tales/luascripts folder).&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Copy the below code and edit/overwrite &amp;lt;b&amp;gt;flax_commmon.inc&amp;lt;/b&amp;gt; file (in your Veggie Tales/luascripts folder).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Cegaiel</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t6w/index.php?title=User:Cegaiel/VeggieTales/FlaxCommon&amp;diff=126538&amp;oldid=prev</id>
		<title>Cegaiel at 10:05, 14 December 2011</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t6w/index.php?title=User:Cegaiel/VeggieTales/FlaxCommon&amp;diff=126538&amp;oldid=prev"/>
		<updated>2011-12-14T10:05:06Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:05, 14 December 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Copy the below code and edit/overwrite &amp;lt;b&amp;gt;flax_commmon.inc&amp;lt;/b&amp;gt; file (in your Veggie Tales/luascripts folder).&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Cegaiel</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t6w/index.php?title=User:Cegaiel/VeggieTales/FlaxCommon&amp;diff=126518&amp;oldid=prev</id>
		<title>Cegaiel: Created page with &quot;&lt;pre&gt;  -- Also using these for other planting automation  xyWindowSize = srGetWindowSize(); imgFlax1 = &quot;FlaxGeneric.png&quot;; imgHarvest = &quot;HarvestThisFlax.png&quot;; imgWeedAndWater = &quot;W...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t6w/index.php?title=User:Cegaiel/VeggieTales/FlaxCommon&amp;diff=126518&amp;oldid=prev"/>
		<updated>2011-12-14T08:55:14Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt;  -- Also using these for other planting automation  xyWindowSize = srGetWindowSize(); imgFlax1 = &amp;quot;FlaxGeneric.png&amp;quot;; imgHarvest = &amp;quot;HarvestThisFlax.png&amp;quot;; imgWeedAndWater = &amp;quot;W...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
-- Also using these for other planting automation&lt;br /&gt;
&lt;br /&gt;
xyWindowSize = srGetWindowSize();&lt;br /&gt;
imgFlax1 = &amp;quot;FlaxGeneric.png&amp;quot;;&lt;br /&gt;
imgHarvest = &amp;quot;HarvestThisFlax.png&amp;quot;;&lt;br /&gt;
imgWeedAndWater = &amp;quot;WeedAndWater.png&amp;quot;;&lt;br /&gt;
imgWeed = &amp;quot;WeedThisFlaxBed.png&amp;quot;;&lt;br /&gt;
imgSeeds = &amp;quot;HarvestSeeds.png&amp;quot;;&lt;br /&gt;
imgHarvestThese = &amp;quot;HarvestThese.png&amp;quot;;&lt;br /&gt;
imgWeedThese = &amp;quot;WeedThese.png&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
delay_time = 100;&lt;br /&gt;
screen_refresh_time = 300;&lt;br /&gt;
walk_px_y = 340;&lt;br /&gt;
walk_px_x = 380;&lt;br /&gt;
walk_y_drift = 18;&lt;br /&gt;
walk_x_drift = 14;&lt;br /&gt;
walk_time = 570;&lt;br /&gt;
refocus_time = 500;&lt;br /&gt;
refocus_click_time = 200;&lt;br /&gt;
&lt;br /&gt;
function initGlobals()&lt;br /&gt;
	pixel_scale = xyWindowSize[0] / 1720; -- Macro written with 1720 pixel wide window&lt;br /&gt;
	lsPrintln(&amp;quot;pixel_scale &amp;quot; .. pixel_scale);&lt;br /&gt;
&lt;br /&gt;
	walk_px_y = math.floor(walk_px_y * pixel_scale);&lt;br /&gt;
	walk_px_x = math.floor(walk_px_x * pixel_scale);&lt;br /&gt;
	if (lsScreenX &amp;lt; 1280) then&lt;br /&gt;
		-- Have to click way off center in order to not move at high resoltuions&lt;br /&gt;
		walk_y_drift = math.floor(walk_y_drift * pixel_scale);&lt;br /&gt;
		walk_x_drift = math.floor(walk_x_drift * pixel_scale);&lt;br /&gt;
	else&lt;br /&gt;
		-- Very little drift at these resolutions, clicking dead center barely moves&lt;br /&gt;
		walk_y_drift = 1;&lt;br /&gt;
		walk_x_drift = 1;&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- The flax bed window&lt;br /&gt;
-- T4, guilded?: window_w = 166;&lt;br /&gt;
-- T4, guilded?: window_h = 116;&lt;br /&gt;
window_w = 174;&lt;br /&gt;
window_h = 100;&lt;br /&gt;
refresh_down_y_offs = 4;&lt;br /&gt;
refresh_up_y_offs = 0;&lt;br /&gt;
&lt;br /&gt;
-- adjust if &amp;quot;plant all guild owned&amp;quot; option is enabled&lt;br /&gt;
window_check_done_once = false;&lt;br /&gt;
function checkWindowSize(x, y)&lt;br /&gt;
	if not window_check_done_once then&lt;br /&gt;
		srReadScreen();&lt;br /&gt;
		window_check_done_once = true;&lt;br /&gt;
		local pos = srFindImageInRange(&amp;quot;UseableBy.png&amp;quot;, x-5, y-50, 150, 100)&lt;br /&gt;
		if pos then&lt;br /&gt;
			window_w = 166;&lt;br /&gt;
			window_h = 116;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- position to drag window to&lt;br /&gt;
function pinnedPos(x, y)&lt;br /&gt;
	local ret = {};&lt;br /&gt;
	ret[0] = xyWindowSize[0] - 25*(x-1) - (window_w - 5);&lt;br /&gt;
	ret[1] = (y-1)*14 + (window_h/2) + 2;&lt;br /&gt;
	lsPrintln(&amp;quot;pinnedPos(&amp;quot; .. x .. &amp;quot;,&amp;quot; .. y .. &amp;quot;)=&amp;quot; .. ret[0] .. &amp;quot;,&amp;quot; .. ret[1]);&lt;br /&gt;
	return ret;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function refreshPosUp(x, y)&lt;br /&gt;
	local ret = pinnedPos(x, y);&lt;br /&gt;
	ret[0] = ret[0] + (window_w - 15);&lt;br /&gt;
	ret[1] = ret[1] - (window_h/2 - 4); -- - (window_h - 66) + refresh_up_y_offs; -- 50 for flax;&lt;br /&gt;
	lsPrintln(&amp;quot;refreshPosUp(&amp;quot; .. x .. &amp;quot;,&amp;quot; .. y .. &amp;quot;)=&amp;quot; .. ret[0] .. &amp;quot;,&amp;quot; .. ret[1]);&lt;br /&gt;
	return ret;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function refreshPosDown(x, y)&lt;br /&gt;
	local ret = pinnedPos(x, y);&lt;br /&gt;
	ret[0] = ret[0] - 2;&lt;br /&gt;
	ret[1] = ret[1] + (window_h / 2) - refresh_down_y_offs;&lt;br /&gt;
	lsPrintln(&amp;quot;refreshPosDown(&amp;quot; .. x .. &amp;quot;,&amp;quot; .. y .. &amp;quot;)=&amp;quot; .. ret[0] .. &amp;quot;,&amp;quot; .. ret[1]);&lt;br /&gt;
	return ret;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function getCenterPos()&lt;br /&gt;
	local ret = {};&lt;br /&gt;
	ret[0] = xyWindowSize[0] / 2 - walk_x_drift;&lt;br /&gt;
	ret[1] = xyWindowSize[1] / 2 + walk_y_drift;&lt;br /&gt;
	return ret;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function setWaitSpot(x0, y0)&lt;br /&gt;
	setWaitSpot_x = x0;&lt;br /&gt;
	setWaitSpot_y = y0;&lt;br /&gt;
	setWaitSpot_px = srReadPixel(x0, y0);&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function waitForChange(timeout)&lt;br /&gt;
	if not timeout then&lt;br /&gt;
		timeout = 10000000;&lt;br /&gt;
	end&lt;br /&gt;
	local c=0;&lt;br /&gt;
	local timestart = lsGetTimer();&lt;br /&gt;
	while srReadPixel(setWaitSpot_x, setWaitSpot_y) == setWaitSpot_px do&lt;br /&gt;
		lsSleep(1);&lt;br /&gt;
		c = c+1;&lt;br /&gt;
		if (lsShiftHeld() and lsControlHeld()) then&lt;br /&gt;
			error 'broke out of loop from Shift+Ctrl';&lt;br /&gt;
		end&lt;br /&gt;
		if lsGetTimer() &amp;gt; timestart + timeout then&lt;br /&gt;
			lsPrintln('Timed out waiting.');&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	lsPrintln('Waited ' .. c .. 'ms for pixel to change.');&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function drag(x0, y0, x1, y1)&lt;br /&gt;
	srSetMousePos(x0, y0);&lt;br /&gt;
	setWaitSpot(x1, y1);&lt;br /&gt;
	srMouseDown(x0, y0, 0);&lt;br /&gt;
	-- lsSleep(15);&lt;br /&gt;
	srSetMousePos(x1, y1);&lt;br /&gt;
	-- lsSleep(50);&lt;br /&gt;
	waitForChange();&lt;br /&gt;
	srMouseUp(x0, y0, 0);&lt;br /&gt;
	-- lsSleep(50);&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function promptFlaxNumbers(is_plant)&lt;br /&gt;
	scale = 1.0;&lt;br /&gt;
	&lt;br /&gt;
	local z = 0;&lt;br /&gt;
	local is_done = nil;&lt;br /&gt;
	local value = nil;&lt;br /&gt;
	-- Edit box and text display&lt;br /&gt;
	while not is_done do&lt;br /&gt;
		-- Put these everywhere to make sure we don't lock up with no easy way to escape!&lt;br /&gt;
		checkBreak(&amp;quot;disallow pause&amp;quot;);&lt;br /&gt;
		&lt;br /&gt;
		lsPrint(10, 10, z, scale, scale, 0xFFFFFFff, &amp;quot;Choose passes and grid size&amp;quot;);&lt;br /&gt;
		&lt;br /&gt;
		-- lsEditBox needs a key to uniquely name this edit box&lt;br /&gt;
		--   let's just use the prompt!&lt;br /&gt;
		-- lsEditBox returns two different things (a state and a value)&lt;br /&gt;
		local y = 40;&lt;br /&gt;
		if is_plant or rip_out_when_done then&lt;br /&gt;
			lsPrint(5, y, z, scale, scale, 0xFFFFFFff, &amp;quot;Passes:&amp;quot;);&lt;br /&gt;
			is_done, num_loops = lsEditBox(&amp;quot;passes&amp;quot;,&lt;br /&gt;
				110, y, z, 50, 30, scale, scale,&lt;br /&gt;
				0x000000ff, 5);&lt;br /&gt;
			if not tonumber(num_loops) then&lt;br /&gt;
				is_done = nil;&lt;br /&gt;
				lsPrint(10, y+18, z+10, 0.7, 0.7, 0xFF2020ff, &amp;quot;MUST BE A NUMBER&amp;quot;);&lt;br /&gt;
				num_loops = 1;&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			lsPrint(5, y, z, scale, scale, 0x808080ff, &amp;quot;Passes: 1&amp;quot;);&lt;br /&gt;
			num_loops = 1;&lt;br /&gt;
		end&lt;br /&gt;
		y = y + 32;&lt;br /&gt;
&lt;br /&gt;
		lsPrint(5, y, z, scale, scale, 0xFFFFFFff, &amp;quot;Grid size:&amp;quot;);&lt;br /&gt;
		is_done, grid_w = lsEditBox(&amp;quot;grid&amp;quot;,&lt;br /&gt;
			110, y, z, 50, 30, scale, scale,&lt;br /&gt;
			0x000000ff, grid_w);&lt;br /&gt;
		if not tonumber(grid_w) then&lt;br /&gt;
			is_done = nil;&lt;br /&gt;
			lsPrint(10, y+18, z+10, 0.7, 0.7, 0xFF2020ff, &amp;quot;MUST BE A NUMBER&amp;quot;);&lt;br /&gt;
			grid_w = 1;&lt;br /&gt;
			grid_h = 1;&lt;br /&gt;
		end&lt;br /&gt;
		grid_w = tonumber(grid_w);&lt;br /&gt;
		grid_h = grid_w;&lt;br /&gt;
		y = y + 32;&lt;br /&gt;
&lt;br /&gt;
		if not is_plant then&lt;br /&gt;
			lsPrint(5, y, z, scale, scale, 0xFFFFFFff, &amp;quot;Seeds per:&amp;quot;);&lt;br /&gt;
			is_done, seeds_per_pass = lsEditBox(&amp;quot;seedsper&amp;quot;,&lt;br /&gt;
				110, y, z, 50, 30, scale, scale,&lt;br /&gt;
				0x000000ff, 4);&lt;br /&gt;
			if not tonumber(seeds_per_pass) then&lt;br /&gt;
				is_done = nil;&lt;br /&gt;
				lsPrint(10, y+18, z+10, 0.7, 0.7, 0xFF2020ff, &amp;quot;MUST BE A NUMBER&amp;quot;);&lt;br /&gt;
				seeds_per_pass = 1;&lt;br /&gt;
			end&lt;br /&gt;
			y = y + 32;&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		fast_refocus = lsCheckBox(10, y, z+10, 0xFFFFFFff, &amp;quot;Fast refocus&amp;quot;, fast_refocus);&lt;br /&gt;
		y = y + 32;&lt;br /&gt;
&lt;br /&gt;
		if lsButtonText(170, y-32, z, 100, 0xFFFFFFff, &amp;quot;OK&amp;quot;) then&lt;br /&gt;
			is_done = 1;&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		if is_plant then&lt;br /&gt;
			lsPrintWrapped(10, y, z+10, lsScreenX - 20, 0.7, 0.7, 0xD0D0D0ff, &amp;quot;This will plant and harvest a &amp;quot; &lt;br /&gt;
&lt;br /&gt;
.. grid_w .. &amp;quot;x&amp;quot; .. grid_w .. &amp;quot; grid of Flax &amp;quot; .. num_loops .. &amp;quot; times, requiring &amp;quot; .. (grid_w * grid_w * num_loops) .. &amp;quot; &lt;br /&gt;
&lt;br /&gt;
seeds, doing &amp;quot; .. (grid_w*grid_w*num_loops) .. &amp;quot; flax harvests.&amp;quot;);&lt;br /&gt;
		else&lt;br /&gt;
			rip_out_when_done = lsCheckBox(10, y, z+10, 0xFFFFFFff, &amp;quot;Rip out when done&amp;quot;, rip_out_when_done);&lt;br /&gt;
			y = y + 25;&lt;br /&gt;
			lsPrintWrapped(10, y, z+10, lsScreenX - 20, 0.7, 0.7, 0xD0D0D0ff, &amp;quot;This will plant a &amp;quot; .. grid_w .. &lt;br /&gt;
&lt;br /&gt;
&amp;quot;x&amp;quot; .. grid_w .. &amp;quot; grid of Flax and harvest it &amp;quot; .. seeds_per_pass .. &amp;quot; times, requiring &amp;quot; .. (grid_w * grid_w * num_loops) &lt;br /&gt;
&lt;br /&gt;
.. &amp;quot; seeds, and repeat this &amp;quot; .. num_loops .. &amp;quot; times, yielding &amp;quot; .. (grid_w * grid_w * num_loops * seeds_per_pass) .. &amp;quot; &lt;br /&gt;
&lt;br /&gt;
seeds.&amp;quot;);&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		if fast_refocus then&lt;br /&gt;
			lsPrintWrapped(10, y+80, z+10, lsScreenX - 20, 0.7, 0.7, 0xD0D0D0ff, &amp;quot;Fast Refocus uses the &lt;br /&gt;
&lt;br /&gt;
original refocusing method which may work more reliably on computers with very stuttery framerates.  Otherwise, a simpler &lt;br /&gt;
&lt;br /&gt;
refocusing method is used which is reported to work better on most systems.&amp;quot;);&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		if is_done and (not num_loops or not grid_w) then&lt;br /&gt;
			error 'Canceled';&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		if lsButtonText(lsScreenX - 110, lsScreenY - 30, z, 100, 0xFFFFFFff, &amp;quot;End script&amp;quot;) then&lt;br /&gt;
			error &amp;quot;Clicked End Script button&amp;quot;;&lt;br /&gt;
		end&lt;br /&gt;
	&lt;br /&gt;
		&lt;br /&gt;
		lsDoFrame();&lt;br /&gt;
		lsSleep(10); -- Sleep just so we don't eat up all the CPU for no reason&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function refocusWindows()&lt;br /&gt;
	if fast_refocus then&lt;br /&gt;
		local first = true;&lt;br /&gt;
		for y=grid_h, 1, -1 do&lt;br /&gt;
			local first_on_line = true;&lt;br /&gt;
			for x=grid_w, 1, -1 do &lt;br /&gt;
				if not first then&lt;br /&gt;
					local rp = refreshPosUp(x, y);&lt;br /&gt;
					if first_on_line then&lt;br /&gt;
						local waitpos = refreshPosUp(x, y);&lt;br /&gt;
						setWaitSpot(waitpos[0]+6, waitpos[1]+20);&lt;br /&gt;
						--srSetMousePos(waitpos[0]+6, waitpos[1]+20);&lt;br /&gt;
					else&lt;br /&gt;
						local waitpos = pinnedPos(x, y);&lt;br /&gt;
						setWaitSpot(waitpos[0]-4, waitpos[1]);&lt;br /&gt;
					end&lt;br /&gt;
					srClickMouseNoMove(rp[0], rp[1], 0);&lt;br /&gt;
					waitForChange();&lt;br /&gt;
				end&lt;br /&gt;
				first = false;&lt;br /&gt;
				first_on_line = false;&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		for y=grid_h, 1, -1 do&lt;br /&gt;
			for x=grid_w, 1, -1 do &lt;br /&gt;
				local rp = refreshPosUp(x, y);&lt;br /&gt;
				srClickMouseNoMove(rp[0], rp[1], 0);&lt;br /&gt;
				lsSleep(refocus_click_time);&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	lsSleep(refocus_time); -- Wait for last window to bring to the foreground before clicking again&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Cegaiel</name></author>
	</entry>
</feed>