<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.atitd.org/wiki/t4w/index.php?action=history&amp;feed=atom&amp;title=Copper_macro</id>
	<title>Copper macro - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://www.atitd.org/wiki/t4w/index.php?action=history&amp;feed=atom&amp;title=Copper_macro"/>
	<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t4w/index.php?title=Copper_macro&amp;action=history"/>
	<updated>2026-05-30T13:45:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>http://www.atitd.org/wiki/t4w/index.php?title=Copper_macro&amp;diff=27620&amp;oldid=prev</id>
		<title>Coyan at 05:16, 10 January 2009</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t4w/index.php?title=Copper_macro&amp;diff=27620&amp;oldid=prev"/>
		<updated>2009-01-10T05:16:15Z</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 05:16, 10 January 2009&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 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 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;// Written by: Coyan/Mosaic Guild&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;// This is what I suggest for setting up for this macro&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;// This is what I suggest for setting up for this macro&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;// First align your view so you can see all 7 crystals clearly&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;// First align your view so you can see all 7 crystals clearly&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Coyan</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t4w/index.php?title=Copper_macro&amp;diff=26206&amp;oldid=prev</id>
		<title>Sekhar at 19:55, 8 January 2009</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t4w/index.php?title=Copper_macro&amp;diff=26206&amp;oldid=prev"/>
		<updated>2009-01-08T19:55:48Z</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 19:55, 8 January 2009&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-l90&quot; &gt;Line 90:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 90:&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;END&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;END&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;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;back to Macro list:[[&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;http://www.atitd.org/wiki/tale4/ACtool_Macros &lt;/del&gt;Mosaic Macros]]&lt;/div&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;back to Macro list:[[&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;ACtool Macros | &lt;/ins&gt;Mosaic Macros]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sekhar</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t4w/index.php?title=Copper_macro&amp;diff=15336&amp;oldid=prev</id>
		<title>Coyan: New page: &lt;pre&gt; // This is what I suggest for setting up for this macro // First align your view so you can see all 7 crystals clearly // second use Alt-L to lock your camera angle // Third before s...</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t4w/index.php?title=Copper_macro&amp;diff=15336&amp;oldid=prev"/>
		<updated>2008-12-28T17:55:12Z</updated>

		<summary type="html">&lt;p&gt;New page: &amp;lt;pre&amp;gt; // This is what I suggest for setting up for this macro // First align your view so you can see all 7 crystals clearly // second use Alt-L to lock your camera angle // Third before s...&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;
// This is what I suggest for setting up for this macro&lt;br /&gt;
// First align your view so you can see all 7 crystals clearly&lt;br /&gt;
// second use Alt-L to lock your camera angle&lt;br /&gt;
// Third before starting this, I suggest you have your mouse sitting over&lt;br /&gt;
//  the first crystal.&lt;br /&gt;
// You will have 3 seconds between the recording of each crystal's location&lt;br /&gt;
// place your mouse over the darkest part of each crystal in turn&lt;br /&gt;
// Once it has identified the 7 crystals, it will run the mine&lt;br /&gt;
Constructs&lt;br /&gt;
  MouseX=List // this is an array of mouse X coords for gem sample points&lt;br /&gt;
  MouseY=List // this is an array of mouse X coords for gem sample points&lt;br /&gt;
END&lt;br /&gt;
Constants&lt;br /&gt;
  loopcnt = 1 &lt;br /&gt;
  Mousecnt = 1&lt;br /&gt;
  MouseXN = 0&lt;br /&gt;
  MouseYN = 0&lt;br /&gt;
  ColorN = 0&lt;br /&gt;
  ColorS = 0&lt;br /&gt;
  Minval = 0&lt;br /&gt;
  Maxval = 255&lt;br /&gt;
  CONSTVAL = 0&lt;br /&gt;
  Tmpval = 0&lt;br /&gt;
End&lt;br /&gt;
&lt;br /&gt;
Compute CONSTVAL = 100/255 // constant being set for saturation calculation&lt;br /&gt;
&lt;br /&gt;
// First part that requires a detailed explanation&lt;br /&gt;
// this loop will pause for 3 seconds then grab the current mouse location&lt;br /&gt;
// its purpose is to identify the 7 sampling locations for the crystals&lt;br /&gt;
// when it grabs the sampling spot, it will then echo a . to the chat window&lt;br /&gt;
// make sure you are in your main chat tab.&lt;br /&gt;
Loop 7&lt;br /&gt;
  Delay 3000&lt;br /&gt;
  Listadd MouseX, {MouseX}&lt;br /&gt;
  Listadd MouseY, {MouseY}&lt;br /&gt;
  SayPaste .&lt;br /&gt;
END&lt;br /&gt;
&lt;br /&gt;
loop 100&lt;br /&gt;
&lt;br /&gt;
  Compute loopcnt = 1&lt;br /&gt;
  loop 7&lt;br /&gt;
    mousepos MouseX[$loopcnt], MouseY[$loopcnt]&lt;br /&gt;
    LoadRGB MouseX[$loopcnt], MouseY[$loopcnt]&lt;br /&gt;
    Call CALCSATCOLOR&lt;br /&gt;
    IF $ColorN &amp;gt; $ColorS&lt;br /&gt;
	Compute ColorS = $ColorN&lt;br /&gt;
	Compute Mousecnt = $loopcnt&lt;br /&gt;
    END&lt;br /&gt;
    Compute loopcnt = $loopcnt + 1&lt;br /&gt;
    Delay 100&lt;br /&gt;
  END	&lt;br /&gt;
	&lt;br /&gt;
  mousepos MouseX[$Mousecnt], MouseY[$Mousecnt]&lt;br /&gt;
  Delay 200 &lt;br /&gt;
  leftclick&lt;br /&gt;
  Compute MouseXN = MouseX[$Mousecnt] + 15 // adjust this if you need to for the menu click&lt;br /&gt;
  Compute MouseYN = MouseY[$Mousecnt] - 10 // adjust this if you need to for the menu click&lt;br /&gt;
  Mousepos $MouseXN, $MouseYN&lt;br /&gt;
  Delay 200&lt;br /&gt;
  Leftclick&lt;br /&gt;
	&lt;br /&gt;
  Compute ColorS = 0 //resets the color satuation for each sampling&lt;br /&gt;
  Delay 4200 // Delay to manage the str/perc timer on mining, adjust as needed&lt;br /&gt;
	&lt;br /&gt;
END&lt;br /&gt;
&lt;br /&gt;
Procedure CALCSATCOLOR // This procedure calculates the saturation of the crystal&lt;br /&gt;
  Compute Minval = 0&lt;br /&gt;
  Compute Maxval = 255&lt;br /&gt;
  IF {RGBRed} &amp;gt; {RGBGreen}&lt;br /&gt;
	Compute Minval = {RGBGreen}&lt;br /&gt;
	Compute Maxval = {RGBRed}&lt;br /&gt;
  Else&lt;br /&gt;
	Compute Maxval = {RGBGreen}&lt;br /&gt;
	Compute Minval = {RGBRed}&lt;br /&gt;
  END&lt;br /&gt;
  IF {RGBBlue} &amp;lt; $Minval&lt;br /&gt;
	Compute Minval = {RGBBlue}&lt;br /&gt;
  ELSE&lt;br /&gt;
	IF {RGBBlue} &amp;gt; $Maxval&lt;br /&gt;
		Compute Maxval = {RGBBlue}&lt;br /&gt;
	END&lt;br /&gt;
  END&lt;br /&gt;
  Compute Tmpval = $Maxval - $Minval&lt;br /&gt;
  Compute Tmpval = $Tmpval / $Maxval&lt;br /&gt;
  Compute ColorN = $Tmpval * $CONSTVAL&lt;br /&gt;
END&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
back to Macro list:[[http://www.atitd.org/wiki/tale4/ACtool_Macros Mosaic Macros]]&lt;/div&gt;</summary>
		<author><name>Coyan</name></author>
	</entry>
</feed>