<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: The Ultimate Turkey Macro</title>
	<atom:link href="http://rf.shkm.net/11/2009/the-ultimate-turkey-macro/feed/" rel="self" type="application/rss+xml" />
	<link>http://rf.shkm.net/11/2009/the-ultimate-turkey-macro/</link>
	<description>&#34;Out upon&#039;t! What have I forgot?&#34;</description>
	<lastBuildDate>Tue, 29 Nov 2011 12:39:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Strobe</title>
		<link>http://rf.shkm.net/11/2009/the-ultimate-turkey-macro/comment-page-1/#comment-3861</link>
		<dc:creator>Strobe</dc:creator>
		<pubDate>Tue, 29 Nov 2011 12:39:11 +0000</pubDate>
		<guid isPermaLink="false">http://rf.shkm.net/?p=432#comment-3861</guid>
		<description>Hello Trisha,

I no longer play WoW so I&#039;m not really in the loop with recent changes, but if Blizzard did indeed remove macro targeting, there is no way this macro could work. Sorry!</description>
		<content:encoded><![CDATA[<p>Hello Trisha,</p>
<p>I no longer play WoW so I&#8217;m not really in the loop with recent changes, but if Blizzard did indeed remove macro targeting, there is no way this macro could work. Sorry!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trisha</title>
		<link>http://rf.shkm.net/11/2009/the-ultimate-turkey-macro/comment-page-1/#comment-3842</link>
		<dc:creator>Trisha</dc:creator>
		<pubDate>Sat, 26 Nov 2011 14:30:11 +0000</pubDate>
		<guid isPermaLink="false">http://rf.shkm.net/?p=432#comment-3842</guid>
		<description>ok so i looked up ur amazeing Macro &amp; typed it in exactly as it is writen &amp; saved it to my macro ran to the nearest turkey hit the macro button &amp; nothing happened. can u give me some advice please? i was told recently that WoW has takin Macro auto targeting away but i dont know thank you for your time.</description>
		<content:encoded><![CDATA[<p>ok so i looked up ur amazeing Macro &amp; typed it in exactly as it is writen &amp; saved it to my macro ran to the nearest turkey hit the macro button &amp; nothing happened. can u give me some advice please? i was told recently that WoW has takin Macro auto targeting away but i dont know thank you for your time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://rf.shkm.net/11/2009/the-ultimate-turkey-macro/comment-page-1/#comment-1098</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Mon, 04 Oct 2010 10:13:45 +0000</pubDate>
		<guid isPermaLink="false">http://rf.shkm.net/?p=432#comment-1098</guid>
		<description>Thank you so much for the reply. Im at work now but i will have to try it out. The breakdown was very helpful. again, thank you!1111111111</description>
		<content:encoded><![CDATA[<p>Thank you so much for the reply. Im at work now but i will have to try it out. The breakdown was very helpful. again, thank you!1111111111</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Strobe</title>
		<link>http://rf.shkm.net/11/2009/the-ultimate-turkey-macro/comment-page-1/#comment-1069</link>
		<dc:creator>Strobe</dc:creator>
		<pubDate>Fri, 01 Oct 2010 10:31:38 +0000</pubDate>
		<guid isPermaLink="false">http://rf.shkm.net/?p=432#comment-1069</guid>
		<description>Hello Matt,

Sure, I can give it a try. Let&#039;s break it up and use less shorthand for easier reading:

&lt;pre&gt;&lt;code&gt;/target Wild Turkey
/run
    if not GetRaidTargetIndex(&quot;target&quot;) and not UnitIsDead(&quot;target&quot;) and UnitName(&quot;target&quot;) == &quot;Wild Turkey&quot; then
        if turkey = nil or turkey == 0 then
            turkey = 8
        end
        SetRaidTarget(&quot;target&quot;, turkey);
        turkey = turkey -1
    end&lt;/code&gt;&lt;/pre&gt;

And now in bite-sized chunks.

&lt;pre&gt;&lt;code&gt;/target Wild Turkey&lt;/code&gt;&lt;/pre&gt;

This will target the nearest Wild Turkey

&lt;pre&gt;&lt;code&gt;/run&lt;/code&gt;&lt;/pre&gt;

This starts a Lua interpretor, allowing everything that follows to be written in pure Lua as opposed to WoW commands. It would be impossible to write this macro without the assistance of Lua.

&lt;pre&gt;&lt;code&gt;if not GetRaidTargetIndex(&quot;target&quot;) and not UnitIsDead(&quot;target&quot;) and UnitName(&quot;target&quot;) == &quot;Wild Turkey&quot; then&lt;/code&gt;&lt;/pre&gt;

This evaluates a condition:

If the current target is not already marked, and the current target is not dead, and the current target is indeed a Wild Turkey, do the following...

&lt;pre&gt;&lt;code&gt;if turkey = nil or turkey == 0 then
    turkey = 8
end&lt;/code&gt;&lt;/pre&gt;

This introduces a variable, &quot;turkey&quot;. It is not initialised to any value, but the first line will check if the variable doesn&#039;t exist, so that&#039;s no problem. So basically, if the variable turkey either does not exist or is equal to 0, set turkey to 8. end breaks us out of the if conditional. Why do this? The variable turkey is used to keep track of the raid icons (numbered from 1 to 8, see) in use. For now, just keep that in mind.

&lt;pre&gt;&lt;code&gt;SetRaidTarget(&quot;target&quot;, turkey);&lt;/code&gt;&lt;/pre&gt;

Add an icon to the current target. Which icon? That&#039;s defined by the current number of turkey. A list is available of what number is equivalent to what icon &lt;a href=&quot;http://www.wowwiki.com/API_GetRaidTargetIndex&quot; rel=&quot;nofollow&quot;&gt;at WoWWiki&lt;/a&gt;.

&lt;pre&gt;&lt;code&gt;turkey = turkey -1&lt;/code&gt;&lt;/pre&gt;

Decrement turkey by 1. Every time the button is pressed, you will effectively be decrementing your turkey variable by 1 in order to cycle through available raid icons. The above conditional ensures that if turkey ever gets to 0, it&#039;s set back to 8 (a valid icon number).

&lt;pre&gt;&lt;code&gt;end&lt;/code&gt;&lt;/pre&gt;

And this breaks us out of the outer conditional.

Given the explanation, you should be able to modify it to your liking. It should work with any target whatsoever, but I&#039;m not sure exactly what you&#039;re after.
</description>
		<content:encoded><![CDATA[<p>Hello Matt,</p>
<p>Sure, I can give it a try. Let&#8217;s break it up and use less shorthand for easier reading:</p>
<pre><code>/target Wild Turkey
/run
    if not GetRaidTargetIndex("target") and not UnitIsDead("target") and UnitName("target") == "Wild Turkey" then
        if turkey = nil or turkey == 0 then
            turkey = 8
        end
        SetRaidTarget("target", turkey);
        turkey = turkey -1
    end</code></pre>
<p>And now in bite-sized chunks.</p>
<pre><code>/target Wild Turkey</code></pre>
<p>This will target the nearest Wild Turkey</p>
<pre><code>/run</code></pre>
<p>This starts a Lua interpretor, allowing everything that follows to be written in pure Lua as opposed to WoW commands. It would be impossible to write this macro without the assistance of Lua.</p>
<pre><code>if not GetRaidTargetIndex("target") and not UnitIsDead("target") and UnitName("target") == "Wild Turkey" then</code></pre>
<p>This evaluates a condition:</p>
<p>If the current target is not already marked, and the current target is not dead, and the current target is indeed a Wild Turkey, do the following&#8230;</p>
<pre><code>if turkey = nil or turkey == 0 then
    turkey = 8
end</code></pre>
<p>This introduces a variable, &#8220;turkey&#8221;. It is not initialised to any value, but the first line will check if the variable doesn&#8217;t exist, so that&#8217;s no problem. So basically, if the variable turkey either does not exist or is equal to 0, set turkey to 8. end breaks us out of the if conditional. Why do this? The variable turkey is used to keep track of the raid icons (numbered from 1 to 8, see) in use. For now, just keep that in mind.</p>
<pre><code>SetRaidTarget("target", turkey);</code></pre>
<p>Add an icon to the current target. Which icon? That&#8217;s defined by the current number of turkey. A list is available of what number is equivalent to what icon <a href="http://www.wowwiki.com/API_GetRaidTargetIndex" rel="nofollow">at WoWWiki</a>.</p>
<pre><code>turkey = turkey -1</code></pre>
<p>Decrement turkey by 1. Every time the button is pressed, you will effectively be decrementing your turkey variable by 1 in order to cycle through available raid icons. The above conditional ensures that if turkey ever gets to 0, it&#8217;s set back to 8 (a valid icon number).</p>
<pre><code>end</code></pre>
<p>And this breaks us out of the outer conditional.</p>
<p>Given the explanation, you should be able to modify it to your liking. It should work with any target whatsoever, but I&#8217;m not sure exactly what you&#8217;re after.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://rf.shkm.net/11/2009/the-ultimate-turkey-macro/comment-page-1/#comment-1068</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Fri, 01 Oct 2010 10:00:22 +0000</pubDate>
		<guid isPermaLink="false">http://rf.shkm.net/?p=432#comment-1068</guid>
		<description>STROBE - so i have a question for you, can you explain this macro a bit? does this only work for them holiday turkeys? i have tried everything to try and make it work for other things while questing and such and it simply will not work for me. please please let me know. This macro was AMAZING while the event was happening, i would love to be able to throw a different target in there and just spam while lvling toons and such. Please let me know! appreciate the help!!!</description>
		<content:encoded><![CDATA[<p>STROBE &#8211; so i have a question for you, can you explain this macro a bit? does this only work for them holiday turkeys? i have tried everything to try and make it work for other things while questing and such and it simply will not work for me. please please let me know. This macro was AMAZING while the event was happening, i would love to be able to throw a different target in there and just spam while lvling toons and such. Please let me know! appreciate the help!!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

